/* ============================================
   GALLERY PAGE — Сетка + Lightbox
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400&display=swap');

/* ── Page layout ── */
.gallery-page {
    /* padding-top handled by base.css main rule */
}

/* ── Title ── */
.gallery-title {
    font-family: 'Montserrat', var(--font-primary);
    font-weight: 400;
    font-size: 48px;
    line-height: 120%;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-white);
    text-align: center;
    margin: 35px 0 45px;
}

/* ── Grid container ── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 546px);
    column-gap: 35px;
    row-gap: 45px;
    justify-content: center;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 40px 80px;
}

/* ── Gallery item ── */
.gallery-item {
    width: 546px;
}

.gallery-item__link {
    display: block;
    cursor: zoom-in;
    overflow: hidden;
    border-radius: 0;
    background-color: var(--color-bg);
    line-height: 0;
}

.gallery-item__img {
    display: block;
    width: 546px;
    height: 529px;
    object-fit: cover;
    transition: transform 0.4s var(--ease-smooth);
}

.gallery-item__link:hover .gallery-item__img {
    transform: scale(1.03);
}

.gallery-item__caption {
    font-family: 'Montserrat', var(--font-primary);
    font-weight: 400;
    font-size: 24px;
    line-height: 120%;
    letter-spacing: 0%;
    color: var(--color-white);
    margin-top: 20px;
}

/* ── Reveal animation ── */
.gallery-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-reveal), transform 0.6s var(--ease-reveal);
}

.gallery-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── GLightbox overrides for dark theme ── */
.glightbox-clean .gslide-description {
    background: transparent !important;
    text-align: center;
    padding-bottom: 25px;
}

.glightbox-clean .gslide-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #fff;
    margin: 0;
}

.glightbox-clean .gslide-desc {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 6px;
    padding: 0;
}

.glightbox-clean .gclose,
.glightbox-clean .gnext,
.glightbox-clean .gprev {
    background: rgba(22, 18, 14, 0.7);
    border-radius: 50%;
}

/* ── Mobile responsive ── */
@media (max-width: 991px) {

    .gallery-title {
        font-size: 28px;
        letter-spacing: 0.1em;
        margin-bottom: 30px;
        padding: 0 20px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 30px;
        padding: 0 20px 60px;
    }

    .gallery-item {
        width: 100%;
    }

    .gallery-item__img {
        width: 100%;
        height: auto;
        aspect-ratio: 546 / 529;
    }

    .gallery-item__caption {
        font-size: 16px;
        margin-top: 12px;
    }
}
