.gallery-hero {
    position: relative;
    min-height: 520px;
    display: grid;
    align-items: center;
    color: #fff;
    background-position: center;
    background-size: cover;
    isolation: isolate;
}

.gallery-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(3, 40, 25, .92) 0%, rgba(3, 40, 25, .68) 48%, rgba(3, 40, 25, .26) 100%),
        linear-gradient(180deg, rgba(3, 40, 25, .12), rgba(3, 40, 25, .48));
}

.gallery-hero-content {
    padding: 80px 0;
}

.gallery-eyebrow {
    margin: 0 0 10px;
    color: var(--brand-gold);
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.gallery-hero h1 {
    max-width: 820px;
    margin: 0 0 16px;
    font-size: clamp(2.2rem, 4.8vw, 4.7rem);
    line-height: 1.04;
    letter-spacing: 0;
}

.gallery-hero p:not(.gallery-eyebrow) {
    max-width: 640px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, .9);
    font-size: 1.05rem;
}

.gallery-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.gallery-section {
    padding: 72px 0;
    background: #fff;
}

.gallery-section-header {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.gallery-slider-shell {
    position: relative;
    margin-bottom: 34px;
}

.gallery-main-swiper {
    overflow: hidden;
    border-radius: 8px;
    background: var(--brand-green-deep);
    box-shadow: 0 18px 45px rgba(3, 40, 25, .14);
}

.gallery-feature-button {
    position: relative;
    width: 100%;
    min-height: 540px;
    display: block;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: var(--brand-green-deep);
    cursor: pointer;
}

.gallery-feature-button img {
    width: 100%;
    height: 540px;
    object-fit: cover;
}

.gallery-feature-button::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3, 40, 25, 0) 42%, rgba(3, 40, 25, .86) 100%);
}

.gallery-feature-button span {
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 24px;
    z-index: 1;
    display: grid;
    gap: 6px;
    text-align: left;
    color: #fff;
}

.gallery-feature-button small {
    color: var(--brand-gold);
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.gallery-feature-button strong {
    font-size: clamp(1.35rem, 3vw, 2.3rem);
    line-height: 1.08;
}

.gallery-slider-nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    background: rgba(3, 40, 25, .72);
    color: #fff;
    cursor: pointer;
    transform: translateY(-50%);
}

.gallery-slider-prev {
    left: 16px;
}

.gallery-slider-next {
    right: 16px;
}

.gallery-slider-nav:hover {
    background: var(--brand-gold);
    color: var(--brand-green-deep);
}

.gallery-slider-pagination {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px !important;
    z-index: 5;
}

.gallery-slider-pagination .swiper-pagination-bullet {
    background: rgba(255, 255, 255, .76);
    opacity: 1;
}

.gallery-slider-pagination .swiper-pagination-bullet-active {
    background: var(--brand-gold);
}

.gallery-thumbs-swiper {
    margin-top: 14px;
    padding-bottom: 2px;
}

.gallery-thumbs-swiper .swiper-slide {
    width: 120px;
    height: 76px;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    opacity: .72;
}

.gallery-thumbs-swiper .swiper-slide-thumb-active {
    border-color: var(--brand-gold);
    opacity: 1;
}

.gallery-thumbs-swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-grid-compact {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.gallery-grid-compact .gallery-tile-wide {
    grid-column: span 1;
}

.gallery-grid-compact .gallery-image-button {
    height: 150px;
}

.gallery-grid-compact figcaption {
    display: none;
}

.gallery-tile {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(3, 40, 25, .08);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.gallery-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(215, 173, 50, .45);
    box-shadow: 0 22px 44px rgba(3, 40, 25, .12);
}

.gallery-tile-wide {
    grid-column: span 2;
}

.gallery-image-button {
    position: relative;
    width: 100%;
    height: 270px;
    display: block;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: var(--brand-green-deep);
    cursor: pointer;
}

.gallery-tile-wide .gallery-image-button {
    height: 330px;
}

.gallery-image-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease, opacity .35s ease;
}

.gallery-image-button:hover img {
    opacity: .86;
    transform: scale(1.04);
}

.gallery-zoom {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--brand-gold);
    color: var(--brand-green-deep);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .24);
}

.gallery-tile figcaption {
    padding: 20px;
}

.gallery-tile figcaption span {
    display: block;
    margin-bottom: 6px;
    color: var(--brand-gold-deep);
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.gallery-tile figcaption strong {
    display: block;
    margin-bottom: 8px;
    color: var(--brand-green-deep);
    font-size: 1.08rem;
}

.gallery-tile figcaption p {
    margin: 0;
    color: var(--muted);
    font-size: .92rem;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(3, 40, 25, .9);
}

.gallery-lightbox.is-open {
    display: flex;
}

.gallery-lightbox-panel {
    width: min(1100px, 100%);
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .34);
}

.gallery-lightbox-panel img {
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
    background: #071b12;
}

.gallery-lightbox-caption {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    padding: 16px 18px;
}

.gallery-lightbox-caption span {
    color: var(--brand-gold-deep);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.gallery-lightbox-caption strong {
    color: var(--brand-green-deep);
}

.gallery-lightbox-close {
    position: fixed;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 8px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    cursor: pointer;
}

.gallery-lightbox-close:hover {
    background: var(--brand-gold);
    color: var(--brand-green-deep);
}

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

    .gallery-tile-wide {
        grid-column: span 1;
    }

    .gallery-feature-button,
    .gallery-feature-button img {
        height: 460px;
        min-height: 460px;
    }

    .gallery-grid-compact {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .gallery-hero {
        min-height: 560px;
    }

    .gallery-hero-overlay {
        background:
            linear-gradient(90deg, rgba(3, 40, 25, .94), rgba(3, 40, 25, .72)),
            linear-gradient(180deg, rgba(3, 40, 25, .16), rgba(3, 40, 25, .58));
    }

    .gallery-hero-content {
        padding: 64px 0;
    }

    .gallery-hero h1 {
        font-size: clamp(2rem, 11vw, 2.8rem);
    }

    .gallery-hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .gallery-section {
        padding: 54px 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .gallery-feature-button,
    .gallery-feature-button img {
        height: 360px;
        min-height: 360px;
    }

    .gallery-feature-button span {
        left: 18px;
        right: 18px;
        bottom: 18px;
    }

    .gallery-slider-nav {
        display: none;
    }

    .gallery-thumbs-swiper .swiper-slide {
        width: 92px;
        height: 62px;
    }

    .gallery-grid-compact {
        display: none;
    }

    .gallery-image-button,
    .gallery-tile-wide .gallery-image-button {
        height: 250px;
    }

    .gallery-lightbox {
        padding: 14px;
    }
}
