.gallery-hero{
    position:relative;
    min-height:430px;
    display:flex;
    align-items:center;
    overflow:hidden;
    color:#fff;
    background:
        linear-gradient(
            135deg,
            #0a3d2a,
            #0b7442 60%,
            #3f9366
        );
}

.gallery-hero__shapes{
    position:absolute;
    right:4%;
    top:50%;
    width:350px;
    height:350px;
    transform:translateY(-50%);
}

.gallery-hero__shapes::before,
.gallery-hero__shapes::after{
    content:"";
    position:absolute;
    border:1px solid rgba(255,255,255,.12);
}

.gallery-hero__shapes::before{
    inset:20px;
    transform:rotate(20deg);
}

.gallery-hero__shapes::after{
    inset:75px;
    transform:rotate(45deg);
}

.gallery-hero__overlay{
    position:absolute;
    inset:0;
    background:
        linear-gradient(
            90deg,
            rgba(4,31,21,.62),
            transparent 72%
        );
}

.gallery-hero__content{
    position:relative;
    z-index:2;
    padding-block:80px;
}

.page-eyebrow{
    display:inline-block;
    margin-bottom:10px;
    color:#c8ead7;
    text-transform:uppercase;
    letter-spacing:.16em;
    font-size:12px;
    font-weight:900;
}

.gallery-hero h1{
    margin:0;
    font:
        600 clamp(48px,7vw,82px)/1
        Georgia,
        serif;
}

.gallery-hero p{
    max-width:720px;
    margin:20px 0 0;
    color:rgba(255,255,255,.92);
    font-size:clamp(17px,2vw,21px);
}


.gallery-intro{
    padding:90px 0 60px;
}

.gallery-intro__grid{
    display:grid;
    grid-template-columns:.85fr 1.15fr;
    gap:70px;
    align-items:end;
}

.gallery-intro h2{
    margin:5px 0 0;
    font:
        600 clamp(34px,4vw,52px)/1.08
        Georgia,
        serif;
}

.gallery-intro__copy p{
    max-width:680px;
    margin:0;
    color:var(--muted);
    font-size:18px;
    line-height:1.8;
}

.gallery-count{
    display:inline-flex;
    margin-top:16px;
    padding:7px 12px;
    color:var(--green);
    border-radius:999px;
    background:var(--soft);
    font-size:12px;
    font-weight:900;
}


.gallery-section{
    padding:25px 0 105px;
}

.public-gallery{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    grid-auto-flow:dense;
    gap:12px;
}

.public-gallery__item{
    position:relative;
    min-width:0;
    aspect-ratio:1/1;
    padding:0;
    overflow:hidden;
    border:0;
    border-radius:14px;
    background:#dbe7e0;
    cursor:pointer;
}

.public-gallery__item--large{
    grid-column:span 2;
    grid-row:span 2;
}

.public-gallery__item img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    transition:
        transform .45s ease,
        filter .45s ease;
}

.public-gallery__overlay{
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:flex-end;
    gap:7px;
    padding:18px;
    text-align:left;
    color:#fff;
    background:
        linear-gradient(
            to top,
            rgba(3,27,18,.76),
            rgba(3,27,18,.05) 62%
        );
    opacity:0;
    transition:opacity .3s ease;
}

.public-gallery__zoom{
    width:38px;
    height:38px;
    display:grid;
    place-items:center;
    border:1px solid rgba(255,255,255,.35);
    border-radius:50%;
    background:rgba(255,255,255,.1);
    font-size:23px;
    font-weight:400;
    backdrop-filter:blur(5px);
}

.public-gallery__overlay strong{
    max-width:100%;
    font:
        600 17px/1.25
        Georgia,
        serif;
}

.public-gallery__item:hover img{
    transform:scale(1.05);
    filter:saturate(1.05);
}

.public-gallery__item:hover .public-gallery__overlay,
.public-gallery__item:focus-visible .public-gallery__overlay{
    opacity:1;
}


.gallery-empty{
    width:min(650px,100%);
    margin:auto;
    padding:70px 30px;
    text-align:center;
    border:1px solid var(--line);
    border-radius:20px;
    background:var(--soft);
}

.gallery-empty__icon{
    width:70px;
    height:70px;
    display:grid;
    place-items:center;
    margin:0 auto 18px;
    color:#fff;
    border-radius:18px;
    background:var(--green);
    font-size:30px;
}

.gallery-empty h2{
    margin:0;
    font:
        600 34px/1.1
        Georgia,
        serif;
}

.gallery-empty p{
    margin:12px 0 0;
    color:var(--muted);
}


.gallery-closing{
    padding:80px 0;
    color:#fff;
    background:
        linear-gradient(
            135deg,
            #0a3f2b,
            #0b653c
        );
}

.gallery-closing__inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:40px;
}

.gallery-closing .section-kicker{
    color:#bce7cf;
}

.gallery-closing h2{
    margin:5px 0 0;
    font:
        600 clamp(30px,4vw,46px)/1.1
        Georgia,
        serif;
}

.gallery-closing__links{
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-end;
    gap:10px;
}

.gallery-closing__links a{
    min-height:44px;
    display:inline-flex;
    align-items:center;
    padding:0 16px;
    color:#fff;
    border:1px solid rgba(255,255,255,.25);
    border-radius:999px;
    background:rgba(255,255,255,.06);
    text-decoration:none;
    font-weight:800;
}


/* LIGHTBOX */

body.lightbox-open{
    overflow:hidden;
}

.gallery-lightbox{
    position:fixed;
    inset:0;
    z-index:999;
    display:none;
    align-items:center;
    justify-content:center;
    padding:
        max(18px,env(safe-area-inset-top))
        max(18px,env(safe-area-inset-right))
        max(18px,env(safe-area-inset-bottom))
        max(18px,env(safe-area-inset-left));
}

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

.gallery-lightbox__backdrop{
    position:absolute;
    inset:0;
    background:rgba(2,16,11,.92);
    backdrop-filter:blur(8px);
}

.gallery-lightbox__dialog{
    position:relative;
    z-index:2;
    width:min(1200px,100%);
    min-width:0;
}

.gallery-lightbox figure{
    margin:0;
}

.gallery-lightbox__image-wrap{
    height:min(78vh,850px);
    display:flex;
    align-items:center;
    justify-content:center;
}

.gallery-lightbox__image-wrap img{
    max-width:100%;
    max-height:100%;
    display:block;
    object-fit:contain;
    border-radius:10px;
    box-shadow:
        0 25px 80px
        rgba(0,0,0,.45);
}

.gallery-lightbox figcaption{
    min-height:32px;
    padding-top:13px;
    color:rgba(255,255,255,.86);
    text-align:center;
    font-size:14px;
    font-weight:700;
}

.gallery-lightbox__close{
    position:fixed;
    top:max(18px,env(safe-area-inset-top));
    right:max(18px,env(safe-area-inset-right));
    z-index:4;
    width:48px;
    height:48px;
    display:grid;
    place-items:center;
    padding:0;
    color:#fff;
    border:1px solid rgba(255,255,255,.25);
    border-radius:50%;
    background:rgba(255,255,255,.08);
    font-size:31px;
    cursor:pointer;
}

.gallery-lightbox__arrow{
    position:absolute;
    top:50%;
    z-index:4;
    width:52px;
    height:52px;
    display:grid;
    place-items:center;
    transform:translateY(-50%);
    padding:0;
    color:#fff;
    border:1px solid rgba(255,255,255,.25);
    border-radius:50%;
    background:rgba(5,35,23,.72);
    font-size:38px;
    cursor:pointer;
}

.gallery-lightbox__arrow--prev{
    left:-72px;
}

.gallery-lightbox__arrow--next{
    right:-72px;
}


@media(max-width:1100px){

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

    .gallery-lightbox__arrow--prev{
        left:12px;
    }

    .gallery-lightbox__arrow--next{
        right:12px;
    }

}


@media(max-width:800px){

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

    .public-gallery{
        grid-template-columns:repeat(2,1fr);
    }

    .gallery-closing__inner{
        align-items:flex-start;
        flex-direction:column;
    }

    .gallery-closing__links{
        justify-content:flex-start;
    }

}


@media(max-width:560px){

    .gallery-hero{
        min-height:370px;
    }

    .gallery-intro{
        padding:65px 0 40px;
    }

    .gallery-section{
        padding-bottom:70px;
    }

    .public-gallery{
        gap:8px;
    }

    .public-gallery__item{
        border-radius:10px;
    }

    .public-gallery__item--large{
        grid-column:span 2;
        grid-row:span 1;
        aspect-ratio:16/9;
    }

    .public-gallery__overlay{
        opacity:1;
        padding:11px;
        background:
            linear-gradient(
                to top,
                rgba(3,27,18,.65),
                transparent 60%
            );
    }

    .public-gallery__zoom{
        display:none;
    }

    .public-gallery__overlay strong{
        font-size:13px;
    }

    .gallery-lightbox{
        padding:12px;
    }

    .gallery-lightbox__image-wrap{
        height:75vh;
    }

    .gallery-lightbox__arrow{
        width:44px;
        height:44px;
        font-size:31px;
    }

}
