.gallery-hero {
    text-align: center;
    padding: 200px 20px 30px
}

    .gallery-hero h1 {
        font-family: var(--font-heading);
        font-size: 40px;
        font-weight: 400;
        color: #785400;
        margin-bottom: 10px
    }

    .gallery-empty, .gallery-filter-btn, .gallery-hero p {
        font-family: var(--font-body)
    }

    .gallery-hero p {
        font-size: 15px;
        color: #9d9800;
        letter-spacing: .5px
    }

.gallery-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 0 20px 45px
}

.gallery-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: 25px;
    border: 1px solid rgba(120,84,0,.3);
    background: #fff;
    color: #785400;
    cursor: pointer;
    transition: background-color .25s,border-color .25s,color .25s
}

    .gallery-filter-btn:hover {
        background: rgba(237,199,84,.15)
    }

    .gallery-filter-btn.active {
        background: #edc754;
        border-color: #edc754;
        color: #785400;
        font-weight: 500
    }

.gallery-filter-flag {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0
}

.gallery-grid {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 60px 130px;
    min-height: 40vh
}

.gallery-col {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
    will-change: transform
}

.gallery-item {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: 0 0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(120,84,0,.1);
    transition: transform .35s,box-shadow .35s
}

    .gallery-item img {
        width: 100%;
        display: block;
        border-radius: 8px;
        transition: transform .45s;
        aspect-ratio: 4/3;
        object-fit: cover
    }

    .gallery-item:focus-visible, .gallery-item:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 32px rgba(120,84,0,.18);
        outline: 0
    }

        .gallery-item:focus-visible img, .gallery-item:hover img {
            transform: scale(1.04)
        }

    .gallery-item:focus-visible {
        box-shadow: 0 0 0 3px #c9a84c,0 16px 32px rgba(120,84,0,.18)
    }

.gallery-empty {
    color: #785400;
    text-align: center;
    opacity: .7;
    padding: 40px 0;
    width: 100%
}

@media (max-width:900px) {
    .gallery-grid {
        padding: 45px 30px 90px;
        gap: 18px
    }

    .gallery-col {
        gap: 18px
    }
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px;
    background: rgba(26,20,10,.88);
    overflow: hidden
}

    .gallery-lightbox[hidden] {
        display: none
    }

.gallery-lightbox-img {
    max-width: min(92vw,1400px);
    max-height: 86vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 20px 50px rgba(0,0,0,.45)
}

.gallery-lightbox-close {
    position: absolute;
    top: 22px;
    right: 26px;
    background: 0 0;
    border: none;
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    opacity: .85;
    transition: color .2s,opacity .2s
}

.gallery-lightbox-arrow {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .2s,border-color .2s,color .2s
}

    .gallery-lightbox-arrow:hover, .gallery-lightbox-close:hover {
        color: #edc754;
        opacity: 1;
        border-color: rgba(237,199,84,.8)
    }

@media (max-width:600px) {
    .gallery-hero h1 {
        font-size: 28px
    }

    .gallery-grid {
        padding: 30px 18px 70px;
        gap: 16px
    }

    .gallery-col {
        gap: 16px
    }

    .gallery-filters {
        padding: 0 16px 30px
    }

    .gallery-lightbox {
        padding: 16px;
        gap: 4px
    }

    .gallery-lightbox-arrow {
        width: 40px;
        height: 40px;
        font-size: 24px
    }

    .gallery-lightbox-close {
        top: 12px;
        right: 14px
    }
}

@media (prefers-reduced-motion:reduce) {
    .gallery-item, .gallery-item img {
        transition: none
    }

        .gallery-item:focus-visible, .gallery-item:focus-visible img, .gallery-item:hover, .gallery-item:hover img {
            transform: none
        }
}
