/* =====================================================
   GALLERY PAGE
===================================================== */

.main-nav a.gallery-active::after {

    width: 100%;

}


.gallery-page-hero {

    padding: 105px 0;

    background:
        linear-gradient(
            135deg,
            rgba(8, 47, 34, 0.98),
            rgba(20, 92, 66, 0.92)
        );

    color: white;

}


.gallery-page-hero-inner {

    max-width: 760px;

}


.gallery-page-eyebrow {

    display: inline-block;

    margin-bottom: 14px;

    color: #e4c979;

    font-size: 14px;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 1.4px;

}


.gallery-page-hero h1 {

    margin-bottom: 16px;

    font-family: "Playfair Display", serif;

    font-size:
        clamp(
            48px,
            6vw,
            78px
        );

    line-height: 1.05;

}


.gallery-page-hero p {

    max-width: 650px;

    color:
        rgba(
            255,
            255,
            255,
            0.9
        );

    font-size: 16px;

    line-height: 1.8;

}


.gallery-page-main {

    padding: 75px 0 90px;

    background: var(--cream);

}


.gallery-page-heading {

    max-width: 720px;

    margin-bottom: 38px;

}


.gallery-page-heading h2 {

    margin: 7px 0 12px;

    font-family: "Playfair Display", serif;

    font-size:
        clamp(
            34px,
            4vw,
            48px
        );

    color: #20251f;

}


.gallery-page-heading p {

    color: var(--muted);

}


.gallery-grid {

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 18px;

}


.gallery-item {

    width: 100%;

    margin: 0;

    padding: 0;

    border: none;

    border-radius: 10px;

    overflow: hidden;

    display: block;

    aspect-ratio: 4 / 3;

    background: #e8e4dc;

    cursor: zoom-in;

    box-shadow:
        0 7px 22px
        rgba(0, 0, 0, 0.07);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;

}


.gallery-item:hover {

    transform: translateY(-4px);

    box-shadow:
        0 14px 32px
        rgba(0, 0, 0, 0.12);

}


.gallery-item img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center;

    transition: transform 0.45s ease;

}


.gallery-item:hover img {

    transform: scale(1.025);

}

.gallery-cta {

    padding: 58px 0;

    background: var(--green-dark);

    color: white;

}


.gallery-cta-inner {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 40px;

}


.gallery-cta-inner h2 {

    margin: 7px 0 8px;

    font-family: "Playfair Display", serif;

    font-size:
        clamp(
            30px,
            4vw,
            44px
        );

}


.gallery-cta-inner p {

    max-width: 690px;

    color:
        rgba(
            255,
            255,
            255,
            0.82
        );

}


.gallery-cta-button {

    flex-shrink: 0;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 48px;

    padding: 11px 24px;

    border-radius: 7px;

    background: white;

    color: var(--green-dark);

    text-decoration: none;

    font-size: 14px;

    font-weight: 700;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;

}


.gallery-cta-button:hover {

    transform: translateY(-2px);

    box-shadow:
        0 9px 22px
        rgba(0, 0, 0, 0.18);

}


/* =====================================================
   LIGHTBOX
===================================================== */

body.gallery-lightbox-open {

    overflow: hidden;

}


.gallery-lightbox {

    position: fixed;

    inset: 0;

    z-index: 3000;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 70px;

    background:
        rgba(
            4,
            18,
            13,
            0.94
        );

}


.gallery-lightbox.is-open {

    display: flex;

}


.gallery-lightbox img {

    max-width: min(1100px, 88vw);

    max-height: 84vh;

    width: auto;

    height: auto;

    border-radius: 8px;

    box-shadow:
        0 20px 60px
        rgba(0, 0, 0, 0.4);

}


.gallery-lightbox-close,
.gallery-lightbox-nav {

    position: absolute;

    border: none;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(
            255,
            255,
            255,
            0.12
        );

    color: white;

    cursor: pointer;

    transition:
        background 0.25s ease,
        transform 0.25s ease;

}


.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover {

    background:
        rgba(
            255,
            255,
            255,
            0.22
        );

    transform: scale(1.06);

}


.gallery-lightbox-close {

    top: 22px;

    right: 22px;

    width: 46px;

    height: 46px;

    font-size: 20px;

}


.gallery-lightbox-nav {

    top: 50%;

    width: 48px;

    height: 48px;

    transform: translateY(-50%);

}


.gallery-lightbox-nav:hover {

    transform:
        translateY(-50%)
        scale(1.06);

}


.gallery-lightbox-previous {

    left: 25px;

}


.gallery-lightbox-next {

    right: 25px;

}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 800px) {

    .gallery-page-hero {

        padding: 70px 0;

    }


    .gallery-page-main {

        padding: 55px 0 70px;

    }


    .gallery-grid {

        grid-template-columns: repeat(2, minmax(0, 1fr));

    }


    .gallery-cta-inner {

        align-items: flex-start;

        flex-direction: column;

        gap: 24px;

    }


    .gallery-lightbox {

        padding: 62px 18px;

    }


    .gallery-lightbox img {

        max-width: 92vw;

        max-height: 76vh;

    }


    .gallery-lightbox-nav {

        top: auto;

        bottom: 18px;

        transform: none;

    }


    .gallery-lightbox-nav:hover {

        transform: scale(1.06);

    }


    .gallery-lightbox-previous {

        left:
            calc(50% - 64px);

    }


    .gallery-lightbox-next {

        right:
            calc(50% - 64px);

    }

}


@media (max-width: 560px) {

    .gallery-grid {

        grid-template-columns: 1fr;

    }

}


@media (max-width: 560px) {

    .gallery-item {

        aspect-ratio: 5 / 4;

    }

}
