 :root {
             --accent-main-theme:        #ba0a97;
            --bg:         #f7f6f3;
            --surface:    #ffffff;
            --text:       #1c1a18;
            --text-muted: #7a776f;
            --accent:     #2e7d57;
            --accent-dim: #e8f3ed;
            --border:     #e2dfd8;
            --shadow:     rgba(0,0,0,0.09);
        }

        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

        body {
            background: var(--bg);
            font-family: 'DM Sans', sans-serif;
            color: var(--text);
            min-height: 100vh;
        }

        /* ── HEADER ── */
        .gallery-header {
            text-align: center;
            padding: 3rem 2rem 1.8rem;
            background: var(--surface);
            border-bottom: 1px solid var(--border);
        }
        .gallery-eyebrow {
               font-weight: bold;
            font-size: 15px;
            letter-spacing: 0.26em;
            text-transform: uppercase;
            color: var(--accent);
            margin-bottom: 1.6rem;
        }
        .gallery-title {
            font-family: 'Playfair Display', serif;
            font-size: clamp(1.8rem, 4.5vw, 3rem);
            font-weight: 450;
            line-height: 1.15;
            color: var(--text);
        }
        .gallery-title em {
            font-style: italic;
            color: var(--accent);
        }
        .gallery-sub {
            font-size: 10px;
            color: var(--text-muted);
            margin-top: .5rem;
            letter-spacing: .05em;
        font-weight: bold;
        }

        /* ── FILTER BUTTONS ── */
        .gallery-filters {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            justify-content: center;
            padding: 1.4rem 1.5rem 1rem;
            background: var(--surface);
            border-bottom: 1px solid var(--border);
        }
        .f-btn {
            background: transparent;
            border: 1px solid var(--border);
            color: var(--text-muted);
            font-family: 'DM Sans', sans-serif;
            font-size: 12px;
            letter-spacing: .08em;
            text-transform: uppercase;
            padding: 5px 16px;
            border-radius: 20px;
            cursor: pointer;
            transition: color .2s, border-color .2s, background .2s;
        }
        .f-btn:hover {
            color: var(--accent);
            border-color: var(--accent);
            background: var(--accent-dim);
        }
        .f-btn.active {
            background: var(--accent);
            border-color: var(--accent);
            color: #fff;
            font-weight: 500;
        }

        /* ── PHOTO COUNT ── */
        .gallery-stats {
            text-align: center;
            font-size: 22px;
            color: var(--text-muted);
            padding: .75rem 1.5rem .4rem;
            letter-spacing: .04em;
        }
        .gallery-stats span {
            color: var(--accent);
            font-weight: 500;
        }

        /* ── MASONRY GRID ── */
        .gallery-wrap {
            padding: 1.2rem 1.2rem 3rem;
            max-width: 1400px;
            margin: 0 auto;
        }
        .masonry-grid {
            columns: 2;
            column-gap: 12px;
        }
        @media (min-width: 540px)  { .masonry-grid { columns: 3; } }
        @media (min-width: 900px)  { .masonry-grid { columns: 4; } }
        @media (min-width: 1200px) { .masonry-grid { columns: 5; } }

        /* ── GALLERY CARD ── */
        .gallery-item {
            break-inside: avoid;
            margin-bottom: 12px;
            background: var(--surface);
            border-radius: 10px;
            overflow: hidden;
            cursor: pointer;
            border: 1px solid var(--border);
            box-shadow: 0 2px 8px var(--shadow);
            opacity: 0;
            transform: translateY(14px);
            transition: opacity .5s ease, transform .5s ease,
                        box-shadow .3s ease, border-color .3s ease;
        }
        .gallery-item.visible {
            opacity: 1;
            transform: translateY(0);
        }
        .gallery-item.hidden {
            display: none;
        }
        .gallery-item:hover {
            box-shadow: 0 8px 32px rgba(0,0,0,.14);
            border-color: #c8c4bc;
        }

        /* image wrapper */
        .item-img-wrap {
            position: relative;
            overflow: hidden;
        }

        /* ── IMAGE ── */
        .item-img-wrap img {
            width: 100%;
            height: auto;
            display: block;
            transition: transform .4s ease;
        }
        .gallery-item:hover .item-img-wrap img {
            transform: scale(1.04);
        }

        /* ── NAME LABEL — always visible below image ── */
        .item-name {
            padding: 8px 10px 9px;
            font-size: 12px;
            font-family: 'DM Sans', sans-serif;
            color: var(--text);
            line-height: 1.4;
            border-top: 1px solid var(--border);
            background: var(--surface);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            text-align: center;
        }

        /* category badge — shows on hover */
        .item-badge {
            position: absolute;
            top: 8px; left: 8px;
            font-size: 9px;
            letter-spacing: .1em;
            text-transform: uppercase;
            background: rgba(255,255,255,.9);
            border: 1px solid var(--border);
            color: var(--accent);
            padding: 3px 9px;
            border-radius: 20px;
            opacity: 0;
            transition: opacity .2s;
            pointer-events: none;
        }
        .gallery-item:hover .item-badge { opacity: 1; }

        /* expand icon — shows on hover */
        .item-expand {
            position: absolute;
            top: 8px; right: 8px;
            width: 28px; height: 28px;
            background: rgba(255,255,255,.9);
            border: 1px solid var(--border);
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            opacity: 0;
            transition: opacity .2s;
            color: var(--accent);
            font-size: 11px;
            pointer-events: none;
        }
        .gallery-item:hover .item-expand { opacity: 1; }

        /* ── LIGHTBOX ── */
        .lightbox {
            display: none;
            position: fixed; inset: 0;
            z-index: 9999;
            background: rgba(20,19,17,.93);
            backdrop-filter: blur(6px);
            align-items: center;
            justify-content: center;
            flex-direction: column;
        }
        .lightbox.open { display: flex; }

        .lb-top-bar {
            position: absolute;
            top: 0; left: 0; right: 0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px 20px;
        }
        .lb-counter {
            font-size: 11px;
            letter-spacing: .14em;
            color: rgba(255,255,255,.4);
            text-transform: uppercase;
        }
        .lb-close {
            background: rgba(255,255,255,.1);
            border: 1px solid rgba(255,255,255,.2);
            color: #ff0000fd;
            font-size: 38   px;
            width: 46px; height: 46px;
            border-radius: 50%;
            cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            transition: background .2s;
        }
        .lb-close:hover { background: rgb(254, 244, 244); }

        .lb-stage {
            display: flex;
            align-items: center;
            /* gap: 0px; */
            max-width: 1000px;
            margin: 0vw;
        }
        .lb-arrow {
            background: rgba(255,255,255,.1);
            border: 1px solid rgba(255,255,255,.18);
            color: #fff;
            font-size: 45px;
            width: 26px; height: 46px;
            border-radius: 30%;
            cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            flex-shrink: 0;
            transition: background .2s;
            user-select: none;
        }
        .lb-arrow:hover { background: rgba(255, 255, 255, 0.22); }

        .lb-img-wrap {
            max-width: min(84vw, 980px);
            max-height: 76vh;
            overflow: hidden;
            border-radius: 8px;
        }
        .lb-img {
            display: block;
            max-width: min(84vw, 980px);
            max-height: 100vh;
            width: auto; height: auto;
            border-radius: 8px;
            object-fit: contain;
            transition: opacity .25s ease;
        }

        .lb-info {
            text-align: center;
            margin-top: 59px;
            padding: 0 1rem;
        }
        .lb-title {
            font-family: 'Playfair Display', serif;
            font-size: 18px;
            font-style: italic;
            color: rgba(255,255,255,.9);
            margin-bottom: 4px;
        }
        .lb-category {
            font-size: 15px;
            letter-spacing: .18em;
            text-transform: uppercase;
            color: rgba(255,255,255,.38);
        }

        /* progress bar */
        .lb-progress {
            position: absolute; bottom: 0; left: 0; right: 0;
            height: 2px;
            background: var(--accent    );
        }
        .lb-progress-fill {
            height: 100%;
            background: var(--accent-main-theme);
            transition: width .25s ease;
        }

        /* no results */
        .no-results {
            display: none;
            text-align: center;
            padding: 4rem 2rem;
            color: var(--text-muted);
            font-family: 'Playfair Display', serif;
            font-style: italic;
            font-size: 1.1rem;
        }

        /* scrollbar */
        ::-webkit-scrollbar { width: 5px; }
        ::-webkit-scrollbar-track { background: var(--bg); }
        ::-webkit-scrollbar-thumb { background: #c8c4bc; border-radius: 3px; }