.smgb-gallery-page #primary,
.smgb-gallery-page .content-area,
.smgb-gallery-page .site-main {
    width: 100% !important;
    max-width: 100% !important;
}

.smgb-single-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 40px 20px;
}

.smgb-single-title {
    margin: 0 0 28px;
    text-align: center;
}

.smgb-gallery {
    display: grid;
    gap: 16px;
}

.smgb-gallery-item {
    display: block;
    text-decoration: none;
}

.smgb-gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

@media (max-width: 900px) {
    .smgb-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 600px) {
    .smgb-gallery {
        grid-template-columns: 1fr !important;
    }
}

.smgb-gallery-list {
    display: grid;
    gap: 24px;
}

.smgb-gallery-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.smgb-gallery-card-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    margin-bottom: 1px;
}

.smgb-gallery-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.smgb-gallery-card-title {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.35;
}

.smgb-gallery-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 220px;
    padding: 20px;
    text-align: center;
    color: #666;
}

.smgb-gallery-list-empty {
    margin: 0;
}

@media (max-width: 900px) {
    .smgb-gallery-list {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 600px) {
    .smgb-gallery-list {
        grid-template-columns: 1fr !important;
    }
}
.smgb-gallery-list {
    display: grid;
}

.smgb-gallery-card-image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center center;
}

.smgb-gallery-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 20px;
    text-align: center;
    background: #f3f3f3;
    color: #666;
}