
        body.gallery-page {
            background: var(--bg-body);
            color: var(--text-main);
        }

        .gallery-hero {
            margin-bottom: 20px;
            padding-top: 140px;
            background: linear-gradient(135deg, rgba(15, 32, 39, 0.85), rgba(32, 58, 67, 0.8), rgba(44, 83, 100, 0.7)),
                url('https://images.unsplash.com/photo-1565610222536-ef125c59da2e?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=45');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            text-align: center;
            color: white;
            position: relative;
            overflow: hidden;
            border-radius: 0 0 36px 36px;
        }

        .gallery-hero .hero-title {
            font-family: 'Oswald', sans-serif;
            font-size: 3.5rem;
            color: white;
            margin-bottom: 15px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        .gallery-hero h1 {
            font-family: 'Oswald', sans-serif;
            font-size: 3.5rem;
            color: white;
            margin-bottom: 15px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .gallery-hero .hero-desc {
            max-width: 600px;
            margin: 0 auto 40px;
            color: #64748B;
            font-size: 1.1rem;
        }

        .filter-menu {
            display: flex;
            justify-content: center;
            gap: 10px;
            /* default allow wrapping on larger screens */
            flex-wrap: wrap;
            position: sticky;
            top: 100px;
            z-index: 90;
            padding: 10px;
            background: rgba(248, 250, 252, 0.9);
            backdrop-filter: blur(5px);
            border-radius: 50px;
            width: fit-content;
            margin: 0 auto 40px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
            border: 1px solid #E2E8F0;
            /* mobile-friendly horizontal scrolling when needed */
            -webkit-overflow-scrolling: touch;
        }

        .filter-btn {
            padding: 10px 24px;
            border: none;
            background: transparent;
            border-radius: 30px;
            font-weight: 600;
            color: #64748B;
            cursor: pointer;
            transition: 0.3s;
            font-size: 0.95rem;
            /* ensure buttons don't shrink when container scrolls */
            flex: 0 0 auto;
            display: inline-block;
        }

        .filter-btn:hover,
        .filter-btn.active {
            background: #ff6600;
            color: white;
            box-shadow: 0 5px 15px rgba(15, 23, 42, 0.2);
        }

        .gallery-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px 80px;
            column-count: 4;
            column-gap: 20px;
        }

        .gallery-item {
            break-inside: avoid;
            margin-bottom: 20px;
            position: relative;
            border-radius: var(--radius);
            overflow: hidden;
            cursor: zoom-in;
            background: #000;
            transform: translateZ(0);
            border-radius: 8px;
        }

        .gallery-item img {
            width: 100%;
            height: auto;
            display: block;
            transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s;
            /* slightly round thumbnails for a softer look */
            border-radius: 8px;
        }

        .gallery-item:hover img {
            transform: scale(1.1);
            opacity: 0.6;
        }

        .item-overlay {
            position: absolute;
            inset: 0;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            padding: 25px;
            pointer-events: none;
        }

        .item-cat {
            font-size: 0.75rem;
            font-weight: 700;
            color: var(--primary);
            text-transform: uppercase;
            letter-spacing: 1px;
            transform: translateY(20px);
            opacity: 0;
            transition: 0.3s 0.1s;
        }

        .item-title {
            font-family: 'Oswald', sans-serif;
            font-size: 1.4rem;
            color: white;
            margin: 5px 0;
            transform: translateY(20px);
            opacity: 0;
            transition: 0.3s 0.2s;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
        }

        .zoom-icon {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0);
            font-size: 2rem;
            color: white;
            opacity: 0;
            transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            width: 60px;
            height: 60px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(5px);
        }

        .gallery-item:hover .item-cat,
        .gallery-item:hover .item-title {
            transform: translateY(0);
            opacity: 1;
        }

        .gallery-item:hover .zoom-icon {
            transform: translate(-50%, -50%) scale(1);
            opacity: 1;
        }

        .gallery-item.hide {
            display: none;
        }

        .gallery-item.show {
            animation: fadeIn 0.5s ease forwards;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .lightbox {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.97);
            z-index: 2000;
            display: none;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .lightbox.active {
            opacity: 1;
        }

        .lb-content {
            position: relative;
            max-width: 90%;
            max-height: 85vh;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .lb-img {
            max-width: 100%;
            max-height: 80vh;
            border-radius: 8px;
            box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
            transform: scale(0.9);
            transition: 0.3s;
        }

        .lightbox.active .lb-img {
            transform: scale(1);
        }

        .lb-close {
            position: absolute;
            top: 20px;
            right: 30px;
            color: white;
            font-size: 3rem;
            cursor: pointer;
            transition: 0.3s;
            z-index: 10;
            line-height: 1;
        }

        .lb-close:hover {
            color: var(--primary);
            transform: rotate(90deg);
        }

        .lb-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 60px;
            height: 60px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            transition: 0.3s;
        }

        .lb-nav:hover {
            background: var(--primary);
        }

        .lb-prev {
            left: 30px;
        }

        .lb-next {
            right: 30px;
        }

        .lb-caption {
            position: absolute;
            bottom: 30px;
            left: 0;
            width: 100%;
            text-align: center;
            color: white;
            text-shadow: 0 2px 5px black;
        }

        .lb-title {
            font-family: 'Oswald', sans-serif;
            font-size: 1.5rem;
            margin-bottom: 5px;
        }

        .lb-desc {
            font-size: 0.9rem;
            color: #CBD5E1;
        }

        @media (max-width: 1200px) {
            .gallery-container {
                column-count: 3;
            }
        }

        @media (max-width: 992px) {
            .gallery-container {
                column-count: 2;
            }
        }

        @media (max-width: 600px) {
            .gallery-container {
                column-count: 1;
            }

            .filter-menu {
                /* make a single horizontal row that can be scrolled left/right */
                overflow-x: auto;
                justify-content: flex-start;
                max-width: 100%;
                border-radius: 0;
                border-left: 0;
                border-right: 0;
                gap: 12px;
                flex-wrap: nowrap; /* keep items on one line */
                -webkit-overflow-scrolling: touch;
                scrollbar-width: thin;
            }

            .filter-menu::-webkit-scrollbar { height: 8px; }
            .filter-menu::-webkit-scrollbar-thumb { background: rgba(15,23,42,0.12); border-radius: 999px; }

            .filter-btn {
                white-space: nowrap;
                flex: 0 0 auto;
            }

            .gallery-hero .hero-title {
                font-size: 2.5rem;
            }

            .lb-nav {
                width: 40px;
                height: 40px;
                font-size: 1rem;
            }

            .lb-prev {
                left: 10px;
            }

            .lb-next {
                right: 10px;
            }

            /* hide previous/next nav buttons on mobile since swipe is supported */
            .lb-nav {
                display: none;
            }
        }