/* ================================================================
   GALLERY PAGE — ALBUM BASED
   ================================================================ */

:root {
    --gallery-green: #123f32;
    --gallery-green-dark: #092f28;
    --gallery-orange: #e6672f;
    --gallery-cream: #fbf7ef;
    --gallery-paper: #fffdf9;
    --gallery-text: #17282d;
    --gallery-muted: #73807c;
    --gallery-border: #e1e6e1;
    --gallery-width: 1320px;
    --gallery-serif: "DM Serif Display", Georgia, serif;
    --gallery-sans: "DM Sans", sans-serif;
}


.gallery-h1 {
    color: #fff;
}

.gallery-h2 {
    color: #fffdf9;
}

.gallery-h3 {
    color: #fffdf9;
}

.gallery-page {
    color: var(--gallery-text);
    font-family: var(--gallery-sans);
}

.gallery-page * {
    box-sizing: border-box;
}

.gallery-page img {
    display: block;
    max-width: 100%;
}

.gallery-page a {
    color: inherit;
    text-decoration: none;
}

.gallery-page button,
.gallery-page input,
.gallery-page select {
    font: inherit;
}

.gallery-container {
    width: min(calc(100% - 48px), var(--gallery-width));
    margin-inline: auto;
}


/* HERO */

.gallery-hero {
    min-height: 510px;
    position: relative;
    overflow: hidden;
    background: var(--gallery-green-dark);
}

.gallery-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            rgba(5, 35, 29, .93),
            rgba(5, 35, 29, .59) 47%,
            rgba(5, 35, 29, .13) 76%);
}

.gallery-hero-content {
    min-height: 510px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}

.gallery-breadcrumb {
    margin-bottom: 34px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .68);
    font-size: 12px;
}

.gallery-eyebrow,
.gallery-kicker {
    display: block;
    margin-bottom: 9px;
    color: var(--gallery-orange);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.gallery-hero h1 {
    max-width: 800px;
    margin: 0;
    font-family: var(--gallery-serif);
    font-size: clamp(58px, 6vw, 90px);
    font-weight: 400;
    line-height: .95;
}

.gallery-hero-content>p {
    max-width: 660px;
    margin: 20px 0 25px;
    color: rgba(255, 255, 255, .8);
    font-size: 15px;
    line-height: 1.7;
}

.gallery-primary-button,
.gallery-outline-button {
    width: max-content;
    min-height: 48px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
}

.gallery-primary-button {
    background: var(--gallery-orange);
    color: #fff !important;
}

.gallery-outline-button {
    border: 1px solid rgba(255, 255, 255, .65);
    color: #fff !important;
}


/* FILTER */

.gallery-filter-section {
    position: relative;
    z-index: 10;
    margin-top: -30px;
}

.gallery-filter-inner {
    min-height: 82px;
    padding: 17px;
    display: grid;
    grid-template-columns: 1fr 280px auto;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--gallery-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(24, 53, 45, .11);
}

.gallery-search {
    min-height: 48px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--gallery-border);
    border-radius: 7px;
}

.gallery-search i {
    color: var(--gallery-green);
}

.gallery-search input {
    width: 100%;
    border: 0;
    outline: 0;
}

.gallery-filter-inner select {
    min-height: 48px;
    padding: 0 13px;
    border: 1px solid var(--gallery-border);
    border-radius: 7px;
    background: #fff;
}

.gallery-reset-button {
    min-height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 7px;
    background: var(--gallery-green);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}


/* SHARED */

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

.gallery-heading-row {
    margin-bottom: 28px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.gallery-heading-row h2 {
    margin: 0;
    font-family: var(--gallery-serif);
    font-size: 42px;
    font-weight: 400;
}

.gallery-heading-row p {
    margin: 8px 0 0;
    color: var(--gallery-muted);
    line-height: 1.6;
}


/* ALBUMS */

.gallery-albums-section {
    background: var(--gallery-paper);
}

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

.gallery-album-card {
    overflow: hidden;
    border: 1px solid var(--gallery-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(25, 55, 45, .045);
}

.gallery-album-card[hidden] {
    display: none !important;
}

.gallery-album-cover {
    width: 100%;
    height: 305px;
    position: relative;
    overflow: hidden;
    padding: 0;
    border: 0;
    background: var(--gallery-green-dark);
    cursor: pointer;
    text-align: left;
}

.gallery-album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s;
}

.gallery-album-card:hover .gallery-album-cover img {
    transform: scale(1.045);
}

.gallery-album-cover-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top,
            rgba(5, 30, 25, .90),
            rgba(5, 30, 25, .03) 66%);
}

.gallery-featured-badge {
    position: absolute;
    left: 13px;
    top: 13px;
    padding: 6px 10px;
    border-radius: 18px;
    background: var(--gallery-orange);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

.gallery-image-count {
    position: absolute;
    right: 13px;
    top: 13px;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .93);
    color: var(--gallery-text);
    font-size: 10px;
    font-weight: 700;
}

.gallery-album-cover-copy {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    color: #fff;
}

.gallery-album-cover-copy>span {
    color: #efb386;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.gallery-album-cover-copy h3 {
    margin: 4px 0 6px;
    font-family: var(--gallery-serif);
    font-size: 27px;
    font-weight: 400;
    line-height: 1.12;
}

.gallery-album-cover-copy small {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, .72);
}

.gallery-album-thumbnails {
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.gallery-album-thumb {
    height: 74px;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: #edf1ef;
    cursor: pointer;
}

.gallery-album-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ALL PHOTOS */

.gallery-photos-section {
    background: var(--gallery-cream);
}

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

.gallery-photo-card {
    min-width: 0;
}

.gallery-photo-card[hidden] {
    display: none !important;
}

.gallery-photo-card-tall {
    grid-row: span 2;
}

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

.gallery-photo-button {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: var(--gallery-green-dark);
    cursor: pointer;
    text-align: left;
}

.gallery-photo-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s;
}

.gallery-photo-card:hover img {
    transform: scale(1.05);
}

.gallery-photo-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top,
            rgba(4, 28, 24, .86),
            rgba(4, 28, 24, .03) 63%);
}

.gallery-photo-copy {
    position: absolute;
    left: 15px;
    right: 55px;
    bottom: 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #fff;
}

.gallery-photo-copy>span {
    color: #efb386;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.gallery-photo-copy strong {
    margin: 3px 0;
    font-family: var(--gallery-serif);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.15;
}

.gallery-photo-copy small {
    color: rgba(255, 255, 255, .65);
    font-size: 10px;
}

.gallery-expand-icon {
    width: 34px;
    height: 34px;
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 50%;
    color: #fff;
}


/* EMPTY */

.gallery-empty {
    display: none;
    padding: 70px 20px;
    text-align: center;
}

.gallery-empty.show {
    display: block;
}

.gallery-empty i {
    color: var(--gallery-green);
    font-size: 48px;
}

.gallery-empty h3 {
    margin: 15px 0 5px;
    font-family: var(--gallery-serif);
    font-size: 29px;
    font-weight: 400;
}

.gallery-empty p {
    color: var(--gallery-muted);
}


/* CTA */

.gallery-cta {
    min-height: 360px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: var(--gallery-green-dark);
}

.gallery-cta-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 38, 32, .78);
}

.gallery-cta-inner {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
}

.gallery-cta-inner>span {
    color: #efb386;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.gallery-cta h2 {
    margin: 8px 0 7px;
    font-family: var(--gallery-serif);
    font-size: 46px;
    font-weight: 400;
}

.gallery-cta p {
    max-width: 700px;
    margin: 0 auto 22px;
    color: rgba(255, 255, 255, .72);
    line-height: 1.65;
}

.gallery-cta-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}


/* LIGHTBOX */

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px 90px;
    background: rgba(0, 0, 0, .94);
}

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

.gallery-lightbox figure {
    width: min(1100px, 100%);
    margin: 0;
    color: #fff;
    text-align: center;
}

.gallery-lightbox-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.gallery-lightbox figure img {
    max-width: 100%;
    max-height: 74vh;
    object-fit: contain;
}

.gallery-lightbox figcaption {
    margin-top: 14px;
}

.gallery-lightbox-category {
    color: #efb386;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.gallery-lightbox figcaption h3 {
    margin: 5px 0 2px;
    font-family: var(--gallery-serif);
    font-size: 25px;
    font-weight: 400;
}

.gallery-lightbox figcaption p,
.gallery-lightbox figcaption small {
    margin: 0;
    color: rgba(255, 255, 255, .65);
    font-size: 12px;
}

.gallery-lightbox-close {
    width: 44px;
    height: 44px;
    position: absolute;
    right: 20px;
    top: 20px;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.gallery-lightbox-nav {
    width: 48px;
    height: 48px;
    position: absolute;
    top: 50%;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
    color: #fff;
    cursor: pointer;
    transform: translateY(-50%);
}

.gallery-lightbox-prev {
    left: 22px;
}

.gallery-lightbox-next {
    right: 22px;
}


/* TABLET */

@media (max-width: 1050px) {

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

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

}


/* MOBILE */

@media (max-width: 760px) {

    .gallery-container {
        width: min(calc(100% - 28px), var(--gallery-width));
    }

    .gallery-hero,
    .gallery-hero-content {
        min-height: 560px;
    }

    .gallery-hero h1 {
        font-size: 52px;
    }

    .gallery-filter-section {
        margin-top: -18px;
    }

    .gallery-filter-inner {
        grid-template-columns: 1fr;
    }

    .gallery-heading-row {
        display: block;
    }

    .gallery-album-grid {
        grid-template-columns: 1fr;
    }

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

    .gallery-photo-card {
        height: 220px;
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .gallery-cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .gallery-lightbox {
        padding: 65px 15px 90px;
    }

    .gallery-lightbox-nav {
        top: auto;
        bottom: 20px;
        transform: none;
    }

}

@media (max-width: 480px) {

    .gallery-photo-grid {
        grid-template-columns: 1fr;
    }

    .gallery-photo-card {
        height: 280px;
    }

}