/* ═══════════════════════════════════════════════════════════════════
   Gallery Page — Bento Grid Redesign
   Magazine-style asymmetric grid + scroll reveal + 3D tilt + lightbox
   ═══════════════════════════════════════════════════════════════════ */

/* ── 1. Premium Hero (preserved) ─────────────────────────────── */
.gallery-hero-premium {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    background: linear-gradient(160deg, var(--dark) 0%, #0f172a 40%, #0c1222 100%);
    padding: 180px 0 60px;
    overflow: hidden;
}

.gallery-hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.gallery-hero-orb.orb--1 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.08;
    top: -200px;
    right: -120px;
    animation: orb-drift 14s ease-in-out infinite;
}

.gallery-hero-orb.orb--2 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, #6366f1 0%, transparent 70%);
    opacity: 0.06;
    bottom: -100px;
    left: -80px;
    animation: orb-drift 16s ease-in-out infinite reverse;
}

@keyframes orb-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(35px, -20px) scale(1.06); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

.gallery-hero-pattern {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(rgba(16, 227, 206, 0.06) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 1;
}

.gallery-hero-breadcrumb {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.gallery-hero-breadcrumb a {
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.25s ease;
}

.gallery-hero-breadcrumb a:hover {
    color: var(--primary);
}

.gallery-hero-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.gallery-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 227, 206, 0.12);
    border: 1px solid rgba(16, 227, 206, 0.3);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.gallery-hero-badge i {
    animation: camera-flash 2.5s ease-in-out infinite;
}

@keyframes camera-flash {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.7; }
}

.gallery-hero-content h1 {
    font-size: 3.2rem;
    font-weight: 900;
    margin-bottom: 16px;
    background: linear-gradient(to right, #fff 0%, #e2e8f0 60%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gallery-hero-content p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.15rem;
    max-width: 500px;
    margin: 0 auto 32px;
    line-height: 1.8;
}

.gallery-hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.gh-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gh-stat-num {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -1px;
}

.gh-stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 600;
}

.gh-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 1px;
}


/* ═══════════════════════════════════════════════════════════════════
   2. Main Gallery Section
   ═══════════════════════════════════════════════════════════════════ */

.gallery-main-section {
    padding: 70px 0 90px;
    background: 
        radial-gradient(ellipse at 20% 0%, rgba(16, 227, 206, 0.025) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(99, 102, 241, 0.02) 0%, transparent 50%),
        var(--bg-body);
    position: relative;
}


/* ── Segmented Control Filter ── */

.gallery-filter-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 48px;
}

.segmented-control {
    display: inline-flex;
    background: white;
    border-radius: 18px;
    padding: 5px;
    gap: 0;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.03);
    position: relative;
}



.segment {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    border: none;
    background: transparent;
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    text-decoration: none;
    font-family: inherit;
    z-index: 1;
}

.segment:hover {
    color: var(--dark);
    background: rgba(16, 227, 206, 0.04);
}

.segment.active {
    color: var(--dark);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 3px 12px rgba(16, 227, 206, 0.3), 0 0 0 1px rgba(16, 227, 206, 0.2);
    font-weight: 700;
}

.segment-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.segment.active .segment-count {
    background: rgba(0, 0, 0, 0.2);
    color: var(--dark);
}


/* ═══════════════════════════════════════════════════════════════════
   3. BENTO GRID — Magazine Layout
   ═══════════════════════════════════════════════════════════════════ */

.gallery-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 18px;
    grid-auto-flow: dense;
}

/* ── 3a. Bento Size Variants (4-column desktop) ──────────────── */

/* Pattern repeats every 10 items for visual variety:
   1: large (2×2),  2: small,  3: tall (1×2),  4: small,  5: wide (2×1),
   6: tall (1×2),   7: small,  8: small,       9: large (2×2), 10: small */

/* Large hero: 2 columns × 2 rows */
.bento-item:nth-child(10n+1),
.bento-item:nth-child(10n+9) {
    grid-column: span 2;
    grid-row: span 2;
}

/* Tall portrait: 1 column × 2 rows */
.bento-item:nth-child(10n+3),
.bento-item:nth-child(10n+6) {
    grid-column: span 1;
    grid-row: span 2;
}

/* Wide landscape: 2 columns × 1 row */
.bento-item:nth-child(10n+5) {
    grid-column: span 2;
    grid-row: span 1;
}

/* Small default: 1×1 (items 2, 4, 7, 8, 10 — no extra rules needed) */


/* ── 3b. Bento Card ──────────────────────────────────────────── */

.bento-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform, opacity;
}

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

.bento-card {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    background: var(--surface);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 6px 18px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.bento-card:hover {
    z-index: 10;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.1),
        0 24px 50px -12px rgba(16, 227, 206, 0.25);
}

/* ── 3c. Image Wrap ──────────────────────────────────────────── */

.bento-img-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.bento-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: block;
}

.bento-card:hover .bento-img {
    transform: scale(1.08);
}

/* Shine sweep */
.bento-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        transparent 35%,
        rgba(255, 255, 255, 0.25) 50%,
        transparent 65%
    );
    transform: translateX(-100%);
    transition: transform 0.8s ease;
    pointer-events: none;
    z-index: 2;
}

.bento-card:hover .bento-shine {
    transform: translateX(100%);
}

/* ── 3d. Overlay ─────────────────────────────────────────────── */

.bento-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px 22px 22px;
    background: linear-gradient(
        to top,
        rgba(15, 23, 42, 0.92) 0%,
        rgba(15, 23, 42, 0.55) 30%,
        rgba(15, 23, 42, 0.08) 55%,
        transparent 75%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.bento-card:hover .bento-overlay {
    opacity: 1;
}

.bento-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 8px;
    transform: translateY(8px);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    width: fit-content;
    background: rgba(16, 227, 206, 0.15);
    padding: 3px 10px;
    border-radius: 6px;
}

.bento-card:hover .bento-date {
    transform: translateY(0);
}

.bento-title {
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1.35;
    margin-bottom: 4px;
    transform: translateY(8px);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) 0.05s;
}

.bento-card:hover .bento-title {
    transform: translateY(0);
}

/* Larger titles on large cards */
.bento-item:nth-child(10n+1) .bento-title,
.bento-item:nth-child(10n+9) .bento-title {
    font-size: 1.35rem;
}

.bento-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transform: translateY(8px);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s;
}

.bento-card:hover .bento-desc {
    transform: translateY(0);
}

/* Expand icon */
.bento-expand {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 44px;
    height: 44px;
    background: rgba(16, 227, 206, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    font-size: 1rem;
    opacity: 0;
    transform: scale(0.4) rotate(-30deg);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 18px rgba(16, 227, 206, 0.35);
}

.bento-card:hover .bento-expand {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}


/* ═══════════════════════════════════════════════════════════════════
   4. Pagination
   ═══════════════════════════════════════════════════════════════════ */

.gallery-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 64px;
}

.gp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 46px;
    padding: 0 16px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    color: var(--dark);
    background: white;
    border: 1px solid var(--surface-dark);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.gp-btn:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
    box-shadow: 0 4px 16px rgba(16, 227, 206, 0.12);
    transform: translateY(-2px);
}

.gp-btn.gp-active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
    font-weight: 700;
    box-shadow: 0 4px 18px rgba(16, 227, 206, 0.3);
}

.gp-btn.gp-arrow {
    min-width: 46px;
    padding: 0;
    border-radius: 14px;
}

.gp-btn.gp-disabled {
    opacity: 0.35;
    pointer-events: none;
    background: var(--surface);
}


/* ═══════════════════════════════════════════════════════════════════
   5. Empty State
   ═══════════════════════════════════════════════════════════════════ */

.gallery-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.empty-icon-wrap {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-light), var(--surface-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-dark);
}

.gallery-empty-state h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.gallery-empty-state p {
    color: var(--text-gray);
}


/* ═══════════════════════════════════════════════════════════════════
   6. LIGHTBOX — Enhanced with Crossfade + Loader
   ═══════════════════════════════════════════════════════════════════ */

.lb-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lb-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

/* ── Loader ──────────────────────────────────────────────────── */

.lb-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lb-loader.visible {
    opacity: 1;
}

.lb-spinner {
    width: 52px;
    height: 52px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: lb-spin 0.8s linear infinite;
}

@keyframes lb-spin {
    to { transform: rotate(360deg); }
}

/* ── Content ─────────────────────────────────────────────────── */

.lb-content {
    position: relative;
    z-index: 3;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.88) translateY(20px);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lb-overlay.active .lb-content {
    transform: scale(1) translateY(0);
}

.lb-image-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-image-wrap img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 16px;
    box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.6);
    transition: opacity 0.35s ease;
}

.lb-image-wrap img.loading {
    opacity: 0.4;
}

.lb-counter {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lb-info {
    color: white;
    text-align: center;
    margin-top: 22px;
    max-width: 600px;
}

.lb-info h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--primary);
}

.lb-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 6px;
}

.lb-info span {
    display: inline-block;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.9rem;
    margin-top: 4px;
}

/* ── Close button ────────────────────────────────────────────── */

.lb-close {
    position: absolute;
    top: -60px;
    right: 0;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.lb-close:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
    transform: scale(1.1);
}

/* ── Nav buttons ──────────────────────────────────────────────── */

.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    backdrop-filter: blur(8px);
}

.lb-nav:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
    transform: translateY(-50%) scale(1.1);
}

.lb-nav:active {
    transform: translateY(-50%) scale(0.93);
}

.lb-prev {
    right: 28px;
}

.lb-next {
    left: 28px;
}


/* ═══════════════════════════════════════════════════════════════════
   7. RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */

/* ── ≤1200px: 3 columns ──────────────────────────────────────── */
@media (max-width: 1200px) {
    .gallery-bento {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 200px;
        gap: 14px;
    }

    /* Reset all spans for 3-col layout, then redefine pattern */
    .bento-item {
        grid-column: span 1;
        grid-row: span 1;
    }

    /* Pattern for 3-column: every 9 items */
    .bento-item:nth-child(9n+1) { grid-column: span 2; grid-row: span 2; }  /* large */
    .bento-item:nth-child(9n+4) { grid-row: span 2; }                       /* tall */
    .bento-item:nth-child(9n+7) { grid-column: span 2; }                    /* wide */
}

/* ── ≤1024px: 2 columns, simplified pattern ──────────────────── */
@media (max-width: 1024px) {
    .gallery-hero-premium {
        min-height: auto;
        padding: 160px 0 50px;
    }

    .gallery-hero-content h1 {
        font-size: 2.4rem;
    }

    .gallery-bento {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
        gap: 12px;
    }

    /* Reset all spans for 2-col layout */
    .bento-item {
        grid-column: span 1;
        grid-row: span 1;
    }

    /* Simplified 2-col pattern */
    .bento-item:nth-child(5n+1) { grid-column: span 2; grid-row: span 2; }  /* wide feature */
    .bento-item:nth-child(5n+3) { grid-row: span 2; }                       /* tall */
}

/* ── ≤768px ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .gallery-hero-premium {
        padding: 130px 0 50px;
    }

    .gallery-hero-content h1 {
        font-size: 1.8rem;
    }

    .gallery-hero-content p {
        font-size: 1rem;
    }

    .gallery-hero-stats {
        gap: 16px;
    }

    .gh-stat-num {
        font-size: 1.5rem;
    }

    .gallery-hero-badge {
        padding: 6px 16px;
        font-size: 0.82rem;
    }

    .gallery-main-section {
        padding: 50px 0 60px;
    }

    .gallery-filter-bar {
        margin-bottom: 36px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
    }

    .segmented-control {
        border-radius: 14px;
        padding: 4px;
        flex-shrink: 0;
    }

    .segment {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .segment-count {
        min-width: 18px;
        height: 18px;
        font-size: 0.68rem;
    }

    .gallery-bento {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
        gap: 10px;
    }

    .bento-item {
        grid-column: span 1;
        grid-row: span 1;
    }

    .bento-item:nth-child(5n+1) { grid-column: span 2; grid-row: span 2; }
    .bento-item:nth-child(5n+3) { grid-row: span 2; }

    .bento-card {
        border-radius: 14px;
    }

    .bento-overlay {
        padding: 20px 14px 16px;
    }

    .bento-title {
        font-size: 0.95rem;
    }

    .bento-item:nth-child(5n+1) .bento-title {
        font-size: 1.15rem;
    }

    .bento-date { font-size: 0.72rem; }
    .bento-desc { font-size: 0.78rem; }

    .bento-expand {
        width: 36px;
        height: 36px;
        top: 12px;
        left: 12px;
        font-size: 0.85rem;
    }

    .gallery-pagination {
        margin-top: 44px;
        gap: 8px;
    }

    .gp-btn {
        min-width: 40px;
        height: 40px;
        font-size: 0.85rem;
    }

    /* Lightbox mobile */
    .lb-overlay { padding: 16px; }
    .lb-content { max-width: 95vw; }
    .lb-image-wrap img { max-height: 60vh; border-radius: 12px; }

    .lb-close {
        top: -50px;
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .lb-info { margin-top: 16px; }
    .lb-info h3 { font-size: 1.2rem; }
    .lb-info p { font-size: 0.9rem; }

    .lb-prev { right: 8px; }
    .lb-next { left: 8px; }
    .lb-nav {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
}

/* ── ≤480px: 1 column ────────────────────────────────────────── */
@media (max-width: 480px) {
    .gallery-hero-premium {
        padding: 120px 0 40px;
    }

    .gallery-hero-content h1 {
        font-size: 1.45rem;
    }

    .gallery-hero-content p { display: none; }
    .gallery-hero-orb { display: none; }

    .gallery-filter-bar {
        margin-bottom: 28px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
    }

    .segmented-control {
        border-radius: 12px;
        padding: 3px;
        flex-shrink: 0;
    }

    .segment {
        padding: 7px 12px;
        font-size: 0.75rem;
        border-radius: 10px;
    }

    .segment-count {
        min-width: 16px;
        height: 16px;
        font-size: 0.65rem;
    }

    .gallery-bento {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
        gap: 12px;
    }

    /* All items full width on mobile */
    .bento-item {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }

    /* Reset title sizes - all cards same size now */
    .bento-item:nth-child(5n+1) .bento-title,
    .bento-item:nth-child(9n+1) .bento-title,
    .bento-item:nth-child(10n+1) .bento-title,
    .bento-item:nth-child(10n+9) .bento-title {
        font-size: 0.95rem;
    }

    .bento-card {
        border-radius: 12px;
    }

    /* Lightbox mobile */
    .lb-overlay { padding: 10px; }

    .lb-image-wrap img {
        max-height: 50vh;
        border-radius: 10px;
    }

    .lb-close {
        top: -46px;
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }

    .lb-nav { display: none; }

    .lb-info { margin-top: 12px; }
    .lb-info h3 { font-size: 1.1rem; }
    .lb-counter { bottom: 8px; left: 8px; padding: 4px 12px; font-size: 0.75rem; }
}


/* ═══════════════════════════════════════════════════════════════════
   8. Reduced Motion
   ═══════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    .bento-item {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .bento-item.revealed {
        opacity: 1;
        transform: none;
    }

    .bento-card,
    .bento-card:hover {
        transform: none !important;
        transition: none;
    }

    .bento-img,
    .bento-card:hover .bento-img {
        transform: none;
        transition: none;
    }

    .bento-shine,
    .bento-overlay *,
    .bento-expand {
        transition: none;
    }

    .gallery-hero-orb {
        animation: none;
    }

    .lb-content {
        transition: none;
    }
}
