/* Public gallery page and homepage gallery preview. */
.mobile-nav-link {
    display: none
}
.gallery-page .home-topbar {
    height: 104px;
    background: #fff;
    border-bottom: 1px solid rgba(198,165,101,.45);
    box-shadow: 0 4px 18px rgba(18,60,48,.06);
    color: #17211d
}
.gallery-page .home-nav-shell {
    width: min(100% - 56px,1440px);
    height: 100%;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center
}
.gallery-page .home-brand {
    justify-self: center;
    position: relative;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: #082b23;
    gap: 10px
}
.gallery-page .home-brand .header-logo {
    display: block;
    width: auto;
    height: 58px;
    max-width: 245px;
    object-fit: contain;
    background: transparent
}
.gallery-page .home-brand small {
    color: #b38a42
}
.gallery-page .home-nav {
    display: flex;
    align-items: center;
    gap: clamp(14px,1.7vw,30px);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase
}
.gallery-page .home-nav-right {
    justify-content: flex-end
}
.gallery-page .home-nav a {
    position: relative;
    padding: 10px 0;
    color: #b38a42
}
.gallery-page .home-nav a:not(.home-join-link)::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -12px;
    width: 0;
    height: 2px;
    background: #0a5947;
    transform: translateX(-50%);
    transition: width 220ms ease
}
.gallery-page .home-nav a:not(.home-join-link):hover,.gallery-page .home-nav a:not(.home-join-link):focus-visible,.gallery-page .home-nav a.active,.gallery-page .home-nav a[aria-current="page"] {
    color: #0a5947
}
.gallery-page .home-nav a:not(.home-join-link):hover::after,.gallery-page .home-nav a:not(.home-join-link):focus-visible::after,.gallery-page .home-nav a.active::after,.gallery-page .home-nav a[aria-current="page"]::after {
    width: 30px
}
.gallery-page .home-nav a:focus-visible,.gallery-filter:focus-visible,.gallery-open:focus-visible,.gallery-preview-link:focus-visible {
    outline: 2px solid #0a5947;
    outline-offset: 5px
}
.gallery-page .home-join-link {
    padding: 14px 20px;
    background: #0a4a3b;
    border: 1px solid #0a4a3b;
    color: #fff!important
}
.gallery-page .home-join-link:hover,.gallery-page .home-join-link:focus-visible {
    background: #c6a565;
    border-color: #c6a565;
    color: #082b23!important
}
.gallery-page .menu-toggle {
    display: none
}
.gallery-hero {
    padding: 112px 24px 90px;
    background: #f6f2e9;
    text-align: center
}
.gallery-hero>span {
    display: block;
    width: 56px;
    height: 1px;
    margin: 22px auto;
    background: #c6a565
}
.gallery-hero h1 {
    margin: 0;
    color: #082b23;
    font: 400 clamp(3rem,6vw,5.6rem)/.98 Georgia,serif;
    letter-spacing: -.04em
}
.gallery-hero h1 em {
    color: #c6a565
}
.gallery-hero>p:last-child {
    max-width: 590px;
    margin: 25px auto 0;
    color: #53625b;
    font: 17px/1.7 Georgia,serif
}
.gallery-section {
    padding: 30px 48px 110px;
    background: #fff
}
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 55px
}
.gallery-filter {
    min-height: 42px;
    padding: 0 17px;
    border: 1px solid #0a5947;
    background: #f6f2e9;
    color: #0a5947;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer
}
.gallery-filter:hover,.gallery-filter:focus-visible,.gallery-filter.active {
    background: #0a5947;
    color: #fff
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    grid-auto-flow: dense;
    gap: 18px;
    max-width: 1450px;
    margin: auto
}
.gallery-item {
    min-width: 0;
    transition: opacity 180ms ease,transform 180ms ease
}
.gallery-item.is-hidden {
    display: none
}
.gallery-item.featured {
    grid-column: span 2
}
.gallery-open {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer
}
.gallery-image-wrap {
    position: relative;
    overflow: hidden;
    background: #eee9de;
    aspect-ratio: 16/10
}
.gallery-item.portrait .gallery-image-wrap {
    aspect-ratio: 4/5
}
.gallery-image-wrap:after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(8,43,35,0);
    transition: background 300ms ease;
    pointer-events: none
}
.gallery-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease
}
.gallery-open:hover .gallery-image-wrap:after,.gallery-open:focus-visible .gallery-image-wrap:after {
    background: rgba(8,43,35,.18)
}
.gallery-open:hover img,.gallery-open:focus-visible img {
    transform: scale(1.04)
}
.gallery-placeholder {
    display: grid;
    place-items: center;
    color: #7d775f;
    font: 14px Georgia,serif;
    letter-spacing: .05em
}
.gallery-details {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 16px 2px 20px
}
.gallery-number {
    color: #c6a565;
    font: 28px Georgia,serif
}
.gallery-details small {
    display: block;
    margin: 2px 0 6px;
    color: #9a793f;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .16em
}
.gallery-details h2 {
    margin: 0;
    color: #082b23;
    font: 24px/1.15 Georgia,serif
}
.gallery-details p {
    margin: 7px 0 0;
    color: #7d775f;
    font-size: 12px
}
.gallery-lightbox {
    width: min(1100px,calc(100% - 32px));
    max-width: 1100px;
    padding: 52px 65px 32px;
    border: 0;
    background: #fff;
    box-shadow: 0 25px 80px rgba(0,0,0,.4)
}
.gallery-lightbox::backdrop {
    background: rgba(5,30,24,.86)
}
.gallery-lightbox figure {
    margin: 0;
    text-align: center
}
.lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 70vh;
    margin: auto;
    object-fit: contain
}
.gallery-lightbox figcaption {
    padding-top: 16px
}
.gallery-lightbox figcaption small {
    color: #9a793f;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em
}
.gallery-lightbox h2 {
    margin: 7px 0 0;
    color: #082b23;
    font: 28px Georgia,serif
}
.lightbox-close,.lightbox-previous,.lightbox-next {
    position: absolute;
    border: 0;
    background: #082b23;
    color: #fff;
    cursor: pointer
}
.lightbox-close {
    top: 13px;
    right: 13px;
    width: 36px;
    height: 36px;
    font-size: 26px;
    line-height: 1
}
.lightbox-previous,.lightbox-next {
    top: 50%;
    width: 42px;
    height: 52px;
    font-size: 35px;
    transform: translateY(-50%)
}
.lightbox-previous {
    left: 13px
}
.lightbox-next {
    right: 13px
}
.gallery-preview {
    padding: 72px 48px 84px;
    background: #f6f2e9
}
.gallery-preview-heading {
    max-width: 650px;
    margin: 0 auto 46px;
    text-align: center
}
.gallery-preview h2 {
    margin: 0;
    color: #082b23;
    font: clamp(2.4rem,4vw,4.5rem)/1 Georgia,serif
}
.gallery-preview-heading>p:last-of-type {
    color: #53625b;
    font: 17px/1.7 Georgia,serif
}
.gallery-preview-link {
    display: inline-block;
    margin-top: 13px;
    padding: 14px 20px;
    background: #0a4a3b;
    border: 1px solid #0a4a3b;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase
}
.gallery-preview-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 18px;
    max-width: 1250px;
    margin: auto
}
.gallery-preview-grid article {
    min-width: 0
}
.gallery-preview-grid img,.gallery-preview-placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    background: #eee9de
}
.gallery-preview-placeholder {
    display: grid;
    place-items: center;
    color: #7d775f;
    font: 14px Georgia,serif
}
.gallery-preview-grid h3 {
    margin: 14px 0 0;
    color: #082b23;
    font: 24px Georgia,serif
}
/* Reflows gallery cards and navigation for tablet and mobile breakpoints. */
@media(max-width:900px) {
    .gallery-page .home-nav-shell {
        width: min(100% - 36px,1440px)
    }
    .gallery-page .home-nav {
        gap: 12px;
        font-size: 9px
    }
    .gallery-page .home-brand .header-logo {
        height: 52px
    }
    .gallery-grid {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }
    .gallery-item.featured {
        grid-column: span 2
    }
}
@media(max-width:760px) {
    .mobile-nav-link {
        display: block
    }
    .gallery-page .home-topbar {
        height: 76px
    }
    .gallery-page .home-nav-shell {
        width: 100%;
        padding: 0 20px;
        display: flex;
        justify-content: space-between
    }
    .gallery-page .home-brand {
        order: 1
    }
    .gallery-page .home-brand .header-logo {
        width: auto;
        height: 45px
    }
    .gallery-page .menu-toggle {
        display: grid;
        order: 2;
        width: 43px;
        height: 43px;
        padding: 10px;
        border: 1px solid #0a5947;
        place-content: center;
        gap: 5px;
        color: #0a5947;
        background: transparent
    }
    .gallery-page .menu-toggle span {
        width: 20px;
        height: 1px;
        background: currentColor
    }
    .gallery-page .home-nav-left {
        display: none
    }
    .gallery-page .home-nav-right {
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        z-index: 5;
        display: none;
        padding: 16px 20px 22px;
        background: #fff;
        border-bottom: 1px solid rgba(198,165,101,.45);
        box-shadow: 0 8px 18px rgba(18,60,48,.06);
        align-items: stretch;
        gap: 0
    }
    .gallery-page .home-nav-right.open {
        display: flex
    }
    .gallery-page .home-nav-right a {
        padding: 15px 3px;
        border-bottom: 1px solid rgba(23,33,29,.14)
    }
    .gallery-page .home-nav-right .home-join-link {
        margin-top: 10px;
        text-align: center
    }
    .gallery-hero {
        padding: 84px 22px 68px
    }
    .gallery-section {
        padding: 28px 20px 75px
    }
    .gallery-filters {
        margin-bottom: 36px
    }
    .gallery-lightbox {
        padding: 52px 48px 28px
    }
    .gallery-preview {
        padding: 56px 20px 70px
    }
    .gallery-preview-grid {
        grid-template-columns: 1fr
    }
}
@media(max-width:720px) {
    .gallery-grid {
        grid-template-columns: 1fr
    }
    .gallery-item.featured {
        grid-column: auto
    }
    .gallery-item .gallery-image-wrap {
        aspect-ratio: 4/3!important
    }
    .gallery-lightbox {
        padding: 48px 15px 24px
    }
    .lightbox-previous {
        left: 5px
    }
    .lightbox-next {
        right: 5px
    }
}
@media(prefers-reduced-motion:reduce) {
    .gallery-item,.gallery-image-wrap img,.gallery-image-wrap:after {
        transition: none
    }
    .gallery-open:hover img,.gallery-open:focus-visible img {
        transform: none
    }
}
