        /* ========== HERO SECTION ========== */
        .gallery-hero {
            position: relative;
            height: 65vh;
            min-height: 520px;
            background-image: url('/assets/images/bg-gallery.jpeg'); /* fallback */
            background-size: cover;
            background-position: center 30%;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            isolation: isolate;
            overflow: hidden;
        }

        .gallery-hero::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.45) 100%);
            z-index: 1;
        }

        .hero-content {
            position: relative;
            z-index: 2;
            max-width: 800px;
            padding: 0 1.5rem;
            animation: fadeUp 1.2s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards;
        }

        .hero-content h1 {
            font-size: clamp(3rem, 8vw, 5.5rem);
            font-weight: 700;
            color: white;
            letter-spacing: -0.02em;
            text-shadow: 0 10px 25px rgba(0,0,0,0.2);
            margin-bottom: 1rem;
        }

        .hero-content p {
            font-size: clamp(1.1rem, 4vw, 1.5rem);
            color: rgba(255,255,255,0.92);
            font-weight: 400;
            backdrop-filter: blur(2px);
        }

        /* ========== FILTER BAR ========== */
        .filter-wrapper {
            position: sticky;
            top: 0;
            background: rgba(255, 255, 255, 0.96);
            backdrop-filter: blur(12px);
            z-index: 100;
            border-bottom: 1px solid rgba(0,0,0,0.05);
            box-shadow: 0 8px 20px rgba(0,0,0,0.02);
        }

        .filter-bar {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 0.75rem;
            padding: 1.25rem 1.5rem;
            max-width: 1300px;
            margin: 0 auto;
        }

        .filter-btn {
            background: transparent;
            border: none;
            padding: 0.6rem 1.5rem;
            font-size: 0.95rem;
            font-weight: 600;
            border-radius: 60px;
            cursor: pointer;
            transition: all 0.25s ease;
            font-family: inherit;
            color: #2c3e44;
            letter-spacing: 0.3px;
            backdrop-filter: blur(4px);
        }

        .filter-btn:hover {
            background: #eef2f0;
            transform: translateY(-2px);
        }

        .filter-btn.active {
            background: #1e2a2f;
            color: white;
            box-shadow: 0 6px 14px rgba(0,0,0,0.1);
        }

        /* ========== GALLERY GRID (MASONRY STYLE) ========== */
        .gallery-container {
            max-width: 1600px;
            margin: 3rem auto;
            padding: 0 1.5rem;
        }

        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1.75rem;
            grid-auto-flow: dense;
        }

        /* masonry-like varied heights */
        .gallery-item {
            position: relative;
            border-radius: 1.25rem;
            overflow: hidden;
            background-color: #f1f0ea;
            box-shadow: 0 15px 30px -12px rgba(0,0,0,0.1);
            transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
            cursor: pointer;
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s;
        }

        .gallery-item.revealed {
            opacity: 1;
            transform: translateY(0);
        }

        .gallery-item:hover {
            transform: translateY(-8px);
            box-shadow: 0 28px 36px -18px rgba(0,0,0,0.2);
        }

        .image-wrapper {
            position: relative;
            overflow: hidden;
            background: #ddd9cf;
            height: 100%;
        }

        .gallery-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.5s ease;
            aspect-ratio: 4 / 3;
        }

        /* varied aspect ratio for dynamic look (random feel via JS later) but we keep natural */
        .gallery-item.tall .gallery-img {
            aspect-ratio: 3 / 4;
        }
        .gallery-item.wide .gallery-img {
            aspect-ratio: 16 / 9;
        }

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

        .image-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 70%);
            display: flex;
            align-items: flex-end;
            justify-content: flex-start;
            padding: 1.5rem;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

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

        .dest-name {
            color: white;
            font-weight: 600;
            font-size: 1.3rem;
            letter-spacing: -0.2px;
            text-shadow: 0 2px 5px rgba(0,0,0,0.3);
            transform: translateY(10px);
            transition: transform 0.3s ease;
        }

        .gallery-item:hover .dest-name {
            transform: translateY(0);
        }

        /* No results placeholder */
        .no-results {
            text-align: center;
            padding: 3rem;
            font-size: 1.2rem;
            color: #7e8c8d;
            background: #f8f6f0;
            border-radius: 2rem;
            grid-column: 1 / -1;
        }

        /* ========== LIGHTBOX (POPUP) ========== */
        .lightbox {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.92);
            backdrop-filter: blur(12px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2000;
            visibility: hidden;
            opacity: 0;
            transition: visibility 0.2s, opacity 0.3s ease;
        }

        .lightbox.active {
            visibility: visible;
            opacity: 1;
        }

        .lightbox-content {
            position: relative;
            max-width: 90vw;
            max-height: 85vh;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .lightbox-img {
            max-width: 90vw;
            max-height: 75vh;
            object-fit: contain;
            border-radius: 1.5rem;
            box-shadow: 0 25px 40px rgba(0,0,0,0.4);
            animation: fadeScale 0.25s ease;
        }

        .lightbox-caption {
            margin-top: 1rem;
            color: white;
            font-size: 1.2rem;
            font-weight: 500;
            background: rgba(0,0,0,0.6);
            padding: 0.5rem 1.2rem;
            border-radius: 60px;
            backdrop-filter: blur(4px);
        }

        .lightbox-counter {
            position: absolute;
            bottom: -2rem;
            right: 0;
            color: rgba(255,255,255,0.7);
            font-size: 0.9rem;
            background: rgba(0,0,0,0.5);
            padding: 0.2rem 0.8rem;
            border-radius: 40px;
        }

        .nav-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255,255,255,0.2);
            backdrop-filter: blur(8px);
            border: none;
            width: 48px;
            height: 48px;
            border-radius: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
            color: white;
            font-size: 2rem;
            font-weight: 300;
        }

        .nav-btn:hover {
            background: rgba(255,255,255,0.4);
            transform: translateY(-50%) scale(1.05);
        }

        .prev-btn {
            left: 1rem;
        }
        .next-btn {
            right: 1rem;
        }

        .close-lightbox {
            position: absolute;
            top: 1.2rem;
            right: 1.8rem;
            background: rgba(0,0,0,0.6);
            border: none;
            font-size: 2rem;
            color: white;
            cursor: pointer;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: 0.2s;
        }

        .close-lightbox:hover {
            background: #c62828;
            transform: scale(1.05);
        }

        /* ========== FOOTER ========== */
        .gallery-footer {
            text-align: center;
            padding: 2.5rem;
            background: #f4f1ea;
            margin-top: 3rem;
            color: #3c5a5f;
            font-size: 0.9rem;
        }

        /* ========== ANIMATIONS ========== */
        @keyframes fadeUp {
            0% {
                opacity: 0;
                transform: translateY(35px);
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }
        @keyframes fadeScale {
            0% {
                opacity: 0;
                transform: scale(0.96);
            }
            100% {
                transform: scale(1);
                opacity: 1;
            }
        }

        /* Responsive */
        @media (max-width: 768px) {
            .gallery-grid {
                gap: 1rem;
                grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
            }
            .filter-btn {
                padding: 0.4rem 1rem;
                font-size: 0.85rem;
            }
            .hero-content h1 {
                font-size: 2.8rem;
            }
            .nav-btn {
                width: 40px;
                height: 40px;
                font-size: 1.6rem;
            }
        }

        @media (max-width: 480px) {
            .gallery-grid {
                grid-template-columns: 1fr;
            }
        }

        /* loading / lazy load effect */
        .gallery-img[lazy=loading] {
            filter: blur(5px);
        }