/* Page-specific styles extracted from gallery.html. */

.gallery-hero {
            padding: 60px 0 40px;
            text-align: center;
        }

        .gallery-title {
            font-family: var(--font-head);
            font-size: clamp(28px, 5vw, 48px);
            letter-spacing: 6px;
            color: var(--white);
            text-transform: uppercase;
            margin-bottom: 10px;
        }

        .gallery-subtitle {
            font-size: 13px;
            color: var(--text-muted);
            letter-spacing: 1px;
        }

        /* Category filter pills */
        .gallery-filters {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            justify-content: center;
            margin: 28px 0 40px;
        }

        .filter-pill {
            font-family: var(--font-head);
            font-size: 9px;
            letter-spacing: 2px;
            text-transform: uppercase;
            padding: 8px 18px;
            border-radius: 20px;
            border: 1px solid var(--border);
            background: transparent;
            color: var(--text-muted);
            cursor: pointer;
            transition: all 0.2s;
        }

        .filter-pill:hover {
            border-color: var(--purple);
            color: var(--white);
        }

        .filter-pill.active {
            background: rgba(155,111,255,0.15);
            border-color: var(--purple);
            color: var(--purple);
        }

        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 12px;
            margin-top: 40px;
            padding-bottom: 60px;
        }

        .gallery-item {
            position: relative;
            border: 1px solid var(--border);
            border-radius: 8px;
            overflow: hidden;
            cursor: pointer;
            background: var(--bg-card);
            aspect-ratio: 4/3;
            transition: border-color 0.2s, transform 0.2s;
        }

        .gallery-item:hover {
            border-color: var(--purple);
            transform: translateY(-2px);
        }

        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: opacity 0.2s;
        }

        .gallery-item:hover img {
            opacity: 0.8;
        }

        .gallery-item-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 55%);
            opacity: 0;
            transition: opacity 0.2s;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            justify-content: flex-end;
            padding: 14px 16px;
            gap: 4px;
        }

        .gallery-item:hover .gallery-item-overlay {
            opacity: 1;
        }

        .gallery-item-label {
            font-family: var(--font-head);
            font-size: 10px;
            letter-spacing: 1.5px;
            color: var(--white);
            text-transform: uppercase;
        }

        .gallery-item-cat {
            font-family: var(--font-head);
            font-size: 8px;
            letter-spacing: 1.5px;
            color: var(--purple);
            text-transform: uppercase;
        }

        .gallery-item.hidden {
            display: none;
        }

        /* Lightbox */
        .lightbox {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.93);
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.25s;
            padding: 20px;
        }

        .lightbox.active {
            opacity: 1;
            pointer-events: all;
        }

        .lightbox-inner {
            position: relative;
            max-width: 90vw;
            max-height: 90vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 14px;
        }

        .lightbox-img {
            max-width: 100%;
            max-height: 80vh;
            border-radius: 8px;
            border: 1px solid var(--border);
            object-fit: contain;
            display: block;
        }

        .lightbox-caption {
            font-family: var(--font-head);
            font-size: 10px;
            letter-spacing: 2px;
            color: var(--text-muted);
            text-transform: uppercase;
            text-align: center;
        }

        .lightbox-close {
            position: fixed;
            top: 20px;
            right: 24px;
            font-size: 28px;
            color: var(--text-muted);
            cursor: pointer;
            background: none;
            border: none;
            line-height: 1;
            transition: color 0.15s;
        }

        .lightbox-close:hover { color: var(--white); }

        .lightbox-nav {
            position: fixed;
            top: 50%;
            transform: translateY(-50%);
            font-size: 28px;
            color: var(--text-muted);
            cursor: pointer;
            background: rgba(0,0,0,0.5);
            border: 1px solid var(--border);
            border-radius: 6px;
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: color 0.15s, border-color 0.15s;
        }

        .lightbox-nav:hover {
            color: var(--white);
            border-color: var(--purple);
        }

        .lightbox-prev { left: 16px; }
        .lightbox-next { right: 16px; }

        .lightbox-counter {
            font-family: var(--font-head);
            font-size: 9px;
            letter-spacing: 2px;
            color: var(--text-muted);
            text-align: center;
        }
        .district-hero-icon { width: 64px; height: 64px; flex-shrink: 0; margin-top: 6px; }
        .district-hero-row { display: flex; align-items: flex-start; gap: 28px; margin-bottom: 20px; }
        .district-hero-row h1 { margin-bottom: 0; }
