
        /* ============================================
           GALLERY PAGE
           Direction: Editorial Luxury · Dark & Cinematic
           ============================================ */

        :root {
            --gallery-bg: #0c0f14;
            --gallery-card: #141820;
            --gallery-border: rgba(255,255,255,0.06);
        }

        body { background: var(--gallery-bg); }

        /* ---- Hero ---- */
        .gallery-hero {
            position: relative;
            height: 520px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            background: var(--navy);
        }

        .gallery-hero-reel {
            position: absolute;
            inset: 0;
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 3px;
            opacity: 0.4;
            transform: scale(1.06);
            filter: saturate(0.7);
        }

        .gallery-hero-reel-col {
            display: flex;
            flex-direction: column;
            gap: 3px;
        }

        .gallery-hero-reel-col:nth-child(even) {
            transform: translateY(-40px);
            animation: reel-drift-down 18s linear infinite;
        }
        .gallery-hero-reel-col:nth-child(odd) {
            animation: reel-drift-up 22s linear infinite;
        }

        @keyframes reel-drift-up   { 0%{transform:translateY(0)}   100%{transform:translateY(-120px)} }
        @keyframes reel-drift-down { 0%{transform:translateY(-40px)} 100%{transform:translateY(80px)}  }

        .gallery-hero-reel img {
            width: 100%;
            height: 220px;
            object-fit: cover;
            flex-shrink: 0;
        }

        .gallery-hero-overlay {
            position: absolute;
            inset: 0;
            background:
                radial-gradient(ellipse 80% 60% at 50% 50%, rgba(10,22,40,0.55) 0%, rgba(10,22,40,0.92) 100%);
        }

        .gallery-hero-content {
            position: relative;
            z-index: 2;
            text-align: center;
            padding: 0 24px;
            margin-top: 70px;
        }

        .gallery-hero-tag {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(255,255,255,0.07);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255,255,255,0.12);
            padding: 7px 18px;
            border-radius: 50px;
            font-size: 0.7rem;
            font-weight: 700;
            letter-spacing: 3px;
            text-transform: uppercase;
            color: var(--sand-light);
            margin-bottom: 24px;
            animation: fadeUp 0.7s 0.2s both;
        }

        .gallery-hero h1 {
            font-size: clamp(2.8rem, 6vw, 5rem);
            color: #fff;
            margin-bottom: 16px;
            animation: fadeUp 0.7s 0.4s both;
            letter-spacing: -0.5px;
            line-height: 1.05;
        }

        .gallery-hero h1 em {
            color: var(--sand);
            font-style: italic;
        }

        .gallery-hero p {
            font-size: 1rem;
            color: rgba(255,255,255,0.6);
            max-width: 500px;
            margin: 0 auto;
            font-weight: 300;
            letter-spacing: 0.5px;
            line-height: 1.75;
            animation: fadeUp 0.7s 0.6s both;
        }

        /* ---- Photo count strip ---- */
        .gallery-count-strip {
            background: rgba(255,255,255,0.03);
            border-bottom: 1px solid var(--gallery-border);
        }

        .gallery-count-inner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 0;
            gap: 16px;
            flex-wrap: wrap;
        }

        .gallery-breadcrumb {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.78rem;
            color: rgba(255,255,255,0.35);
        }
        .gallery-breadcrumb a { color: var(--sand); font-weight: 500; transition: opacity 0.2s; }
        .gallery-breadcrumb a:hover { opacity: 0.75; }
        .gallery-breadcrumb svg { stroke: rgba(255,255,255,0.2); flex-shrink:0; }

        .gallery-total-count {
            font-size: 0.72rem;
            font-weight: 600;
            color: rgba(255,255,255,0.35);
            letter-spacing: 1px;
        }
        .gallery-total-count span { color: var(--sand); }

        /* ---- Filter bar ---- */
        .gallery-filter-bar {
            position: sticky;
            top: 70px;
            z-index: 50;
            background: rgba(12,15,20,0.94);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--gallery-border);
        }

        .gallery-filter-inner {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 14px 0;
            overflow-x: auto;
            scrollbar-width: none;
        }
        .gallery-filter-inner::-webkit-scrollbar { display: none; }

        .gf-label {
            font-size: 0.6rem;
            font-weight: 700;
            letter-spacing: 2.5px;
            text-transform: uppercase;
            color: rgba(255,255,255,0.25);
            white-space: nowrap;
            margin-right: 4px;
        }

        .gf-btn {
            padding: 7px 18px;
            border-radius: 50px;
            border: 1.5px solid rgba(255,255,255,0.12);
            background: transparent;
            font-family: 'DM Sans', sans-serif;
            font-size: 0.76rem;
            font-weight: 600;
            color: rgba(255,255,255,0.55);
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.22s;
            letter-spacing: 0.3px;
        }
        .gf-btn:hover {
            border-color: rgba(255,255,255,0.35);
            color: #fff;
        }
        .gf-btn.active {
            background: var(--sand);
            border-color: var(--sand);
            color: var(--navy);
            font-weight: 700;
        }

        /* ---- Main gallery area ---- */
        .gallery-page {
            padding: 52px 0 100px;
            background: var(--gallery-bg);
            min-height: 80vh;
        }

        /* ---- FEATURED ROW — first big statement ---- */
        .gallery-featured-row {
            display: grid;
            grid-template-columns: 1.65fr 1fr;
            grid-template-rows: 520px;
            gap: 6px;
            margin-bottom: 6px;
        }

        .gallery-featured-row .gp-right {
            display: grid;
            grid-template-rows: 1fr 1fr;
            gap: 6px;
        }

        /* ---- MASONRY GRID ---- */
        .gallery-masonry {
            columns: 4;
            column-gap: 6px;
            margin-bottom: 6px;
        }

        .gallery-masonry .gp-item {
            break-inside: avoid;
            margin-bottom: 6px;
        }

        /* Gallery photo item — base */
        .gp-item {
            position: relative;
            overflow: hidden;
            cursor: pointer;
            background: var(--gallery-card);
            display: block;
        }

        .gp-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94),
                        filter 0.5s ease;
            will-change: transform;
        }

        .gp-item:hover img {
            transform: scale(1.08);
            filter: brightness(0.75) saturate(1.1);
        }

        /* Overlay on hover */
        .gp-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(to top,
                rgba(5,12,25,0.88) 0%,
                rgba(5,12,25,0.2) 45%,
                transparent 100%);
            opacity: 0;
            transition: opacity 0.4s ease;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            padding: 22px 20px;
        }

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

        .gp-cat-tag {
            font-size: 0.58rem;
            font-weight: 700;
            letter-spacing: 2.5px;
            text-transform: uppercase;
            color: var(--sand);
            margin-bottom: 4px;
            font-family: 'DM Sans', sans-serif;
        }

        .gp-title {
            font-family: 'Playfair Display', serif;
            font-size: 1rem;
            color: #fff;
            line-height: 1.3;
        }

        /* Expand icon */
        .gp-expand {
            position: absolute;
            top: 14px;
            right: 14px;
            width: 36px;
            height: 36px;
            background: rgba(255,255,255,0.1);
            backdrop-filter: blur(8px);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transform: scale(0.8);
            transition: all 0.3s;
        }
        .gp-item:hover .gp-expand {
            opacity: 1;
            transform: scale(1);
        }
        .gp-expand svg { stroke: #fff; }

        /* Category color accents */
        .gp-item[data-cat="beach"] .gp-cat-tag { color: var(--light-cyan); }
        .gp-item[data-cat="rooms"] .gp-cat-tag { color: var(--sand); }
        .gp-item[data-cat="mansion"] .gp-cat-tag { color: #f0d78c; }
        .gp-item[data-cat="pool"] .gp-cat-tag { color: var(--cyan); }
        .gp-item[data-cat="dining"] .gp-cat-tag { color: #e8a87c; }
        .gp-item[data-cat="events"] .gp-cat-tag { color: #e8a8c8; }
        .gp-item[data-cat="villa"] .gp-cat-tag { color: #a8d8b8; }

        /* ---- Wide strip rows ---- */
        .gallery-strip-row {
            display: grid;
            gap: 6px;
            margin-bottom: 6px;
        }

        .gallery-strip-3 { grid-template-columns: repeat(3, 1fr); }
        .gallery-strip-4 { grid-template-columns: repeat(4, 1fr); }
        .gallery-strip-2-1 { grid-template-columns: 2fr 1fr; }
        .gallery-strip-1-2 { grid-template-columns: 1fr 2fr; }
        .gallery-strip-1-1-2 { grid-template-columns: 1fr 1fr 2fr; }
        .gallery-strip-2-1-1 { grid-template-columns: 2fr 1fr 1fr; }

        /* Heights for grid items */
        .gh-tall    { height: 480px; }
        .gh-medium  { height: 360px; }
        .gh-short   { height: 260px; }
        .gh-wide    { height: 320px; }
        .gh-square  { height: 300px; }
        .gh-cinema  { height: 420px; }

        /* Masonry items vary naturally by image ratio */
        .gallery-masonry .gp-item img { height: auto; }

        /* ---- Section label between groups ---- */
        .gallery-section-label {
            display: flex;
            align-items: center;
            gap: 16px;
            margin: 48px 0 28px;
        }
        .gallery-section-label::after {
            content: '';
            flex: 1;
            height: 1px;
            background: var(--gallery-border);
        }
        .gallery-section-label span {
            font-size: 0.6rem;
            font-weight: 700;
            letter-spacing: 3.5px;
            text-transform: uppercase;
            color: rgba(255,255,255,0.22);
            white-space: nowrap;
        }
        .gallery-section-label .label-icon {
            font-size: 1rem;
        }

        /* ---- Load more ---- */
        .gallery-load-more {
            text-align: center;
            margin-top: 52px;
        }

        .load-more-btn {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 14px 36px;
            background: transparent;
            border: 1.5px solid rgba(255,255,255,0.15);
            border-radius: 50px;
            font-family: 'DM Sans', sans-serif;
            font-size: 0.8rem;
            font-weight: 600;
            color: rgba(255,255,255,0.6);
            cursor: pointer;
            letter-spacing: 1px;
            text-transform: uppercase;
            transition: all 0.25s;
        }
        .load-more-btn:hover {
            border-color: var(--sand);
            color: var(--sand);
            transform: translateY(-2px);
        }

        /* ---- Empty state ---- */
        .gallery-empty {
            text-align: center;
            padding: 80px 20px;
            display: none;
        }
        .gallery-empty.show { display: block; }
        .gallery-empty p { color: rgba(255,255,255,0.3); font-size: 0.9rem; margin-top: 12px; }

        /* ---- CTA strip ---- */
        .gallery-cta-strip {
            margin-top: 64px;
            background: rgba(255,255,255,0.03);
            border: 1px solid var(--gallery-border);
            border-radius: 16px;
            padding: 48px 52px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 32px;
            flex-wrap: wrap;
        }

        .gallery-cta-left h3 {
            color: #fff;
            font-size: 1.7rem;
            margin-bottom: 8px;
            line-height: 1.2;
        }
        .gallery-cta-left h3 em { color: var(--sand); font-style: italic; }
        .gallery-cta-left p { color: rgba(255,255,255,0.45); font-size: 0.88rem; max-width: 420px; }

        .gallery-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }

        /* ============================================
           LIGHTBOX
           ============================================ */
        .lb-overlay {
            position: fixed;
            inset: 0;
            background: rgba(4,8,16,0.97);
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.35s ease, visibility 0.35s;
        }
        .lb-overlay.open {
            opacity: 1;
            visibility: visible;
        }

        /* Main image area */
        .lb-main {
            position: relative;
            max-width: 90vw;
            max-height: 85vh;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .lb-img-wrap {
            position: relative;
            max-width: 85vw;
            max-height: 80vh;
            overflow: hidden;
            border-radius: 4px;
        }

        .lb-img-wrap img {
            max-width: 85vw;
            max-height: 78vh;
            object-fit: contain;
            display: block;
            transition: opacity 0.25s ease, transform 0.25s ease;
            border-radius: 4px;
        }
        .lb-img-wrap img.fading {
            opacity: 0;
            transform: scale(0.97);
        }

        /* Caption */
        .lb-caption {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 20px 24px 18px;
            background: linear-gradient(to top, rgba(4,8,16,0.95) 0%, transparent 100%);
            border-radius: 0 0 4px 4px;
        }

        .lb-caption-cat {
            font-size: 0.6rem;
            font-weight: 700;
            letter-spacing: 2.5px;
            text-transform: uppercase;
            color: var(--sand);
            margin-bottom: 3px;
        }

        .lb-caption-title {
            font-family: 'Playfair Display', serif;
            font-size: 1.1rem;
            color: #fff;
            font-style: italic;
        }

        /* Nav arrows */
        .lb-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 52px;
            height: 52px;
            background: rgba(255,255,255,0.07);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.22s;
            color: #fff;
            z-index: 2;
        }
        .lb-nav:hover {
            background: rgba(212,168,67,0.25);
            border-color: var(--sand);
        }
        .lb-nav svg { stroke: currentColor; }
        .lb-prev { left: -80px; }
        .lb-next { right: -80px; }

        /* Close */
        .lb-close {
            position: fixed;
            top: 24px;
            right: 28px;
            width: 48px;
            height: 48px;
            background: rgba(255,255,255,0.07);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.22s;
            z-index: 10;
        }
        .lb-close:hover { background: rgba(255,255,255,0.15); }
        .lb-close svg { stroke: #fff; }

        /* Counter + thumbnails strip */
        .lb-footer {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 14px 28px;
            background: rgba(4,8,16,0.92);
            backdrop-filter: blur(16px);
            border-top: 1px solid rgba(255,255,255,0.06);
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
            z-index: 10;
        }

        .lb-counter {
            font-size: 0.72rem;
            color: rgba(255,255,255,0.35);
            font-weight: 600;
            letter-spacing: 1px;
            flex-shrink: 0;
        }
        .lb-counter span { color: var(--sand); font-size: 1rem; font-family: 'Playfair Display', serif; }

        .lb-thumbs {
            display: flex;
            gap: 6px;
            overflow-x: auto;
            scrollbar-width: none;
            flex: 1;
            justify-content: center;
        }
        .lb-thumbs::-webkit-scrollbar { display: none; }

        .lb-thumb {
            width: 54px;
            height: 38px;
            object-fit: cover;
            border-radius: 3px;
            opacity: 0.4;
            cursor: pointer;
            transition: opacity 0.2s, transform 0.2s;
            flex-shrink: 0;
            border: 2px solid transparent;
        }
        .lb-thumb:hover { opacity: 0.75; }
        .lb-thumb.active {
            opacity: 1;
            border-color: var(--sand);
            transform: scale(1.08);
        }

        .lb-kbd-hint {
            font-size: 0.64rem;
            color: rgba(255,255,255,0.2);
            flex-shrink: 0;
            letter-spacing: 0.5px;
        }

        /* ============================================
           FILTER ANIMATION
           ============================================ */
        .gp-item {
            transition: opacity 0.4s ease, transform 0.4s ease;
        }
        .gp-item.hidden {
            opacity: 0;
            pointer-events: none;
            transform: scale(0.95);
        }
        .gp-item.filtered-out {
            display: none;
        }

        /* ============================================
           RESPONSIVE
           ============================================ */
        @media (max-width: 1100px) {
            .gallery-masonry { columns: 3; }
            .gallery-featured-row { grid-template-columns: 1fr 1fr; }
            .lb-prev { left: -64px; }
            .lb-next { right: -64px; }
        }

        @media (max-width: 900px) {
            .gallery-masonry { columns: 2; }
            .gallery-strip-4 { grid-template-columns: repeat(2, 1fr); }
            .gallery-strip-1-1-2,
            .gallery-strip-2-1-1 { grid-template-columns: 1fr 1fr; }
            .gallery-featured-row { grid-template-rows: 360px; }
            .gh-tall { height: 360px; }
            .gh-cinema { height: 320px; }
            .lb-prev { left: 8px; }
            .lb-next { right: 8px; }
            .lb-nav { width: 42px; height: 42px; }
            .lb-img-wrap img { max-width: 95vw; }
        }

        @media (max-width: 640px) {
            .gallery-hero { height: 420px; }
            .gallery-hero h1 { font-size: 2.5rem; }
            .gallery-masonry { columns: 2; }
            .gallery-featured-row { grid-template-columns: 1fr; grid-template-rows: auto; }
            .gallery-featured-row .gf-main { height: 300px; }
            .gallery-featured-row .gp-right { grid-template-rows: 200px 200px; }
            .gallery-strip-3 { grid-template-columns: 1fr 1fr; }
            .gallery-strip-2-1,
            .gallery-strip-1-2 { grid-template-columns: 1fr; }
            .gallery-cta-strip { padding: 32px 24px; flex-direction: column; }
            .lb-footer { padding: 10px 16px; }
            .lb-kbd-hint { display: none; }
            .gh-medium { height: 240px; }
            .gh-wide { height: 220px; }
        }

        @keyframes fadeUp {
            from { opacity: 0; transform: translateY(24px); }
            to   { opacity: 1; transform: translateY(0); }
        }

