/* =============================================
   GALERÍA INACE – Styles
   ============================================= */

/* === Custom Properties === */
:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-primary-light: #3b82f6;
    --color-primary-glow: rgba(37, 99, 235, 0.25);
    --color-accent: #2563eb;
    --color-dark: #0a0c14;
    --color-dark-soft: #12151f;
    --color-dark-card: #181c28;
    --color-text: #334155;
    --color-text-light: #94a3b8;
    --color-text-muted: #64748b;
    --color-bg: #ffffff;
    --color-bg-light: #f8fafc;
    --color-border: #e2e8f0;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-md: 1.125rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 2rem;
    --font-size-3xl: 2.5rem;
    --font-size-4xl: 3.25rem;

    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    --container-max: 1200px;
    --header-height: 72px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.16);
    --shadow-glow: 0 0 20px var(--color-primary-glow);

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --transition-fast: 200ms var(--ease-out);
    --transition-base: 350ms var(--ease-out);
    --transition-slow: 600ms var(--ease-out);
}

/* === Reset === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
    touch-action: manipulation;
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    touch-action: manipulation;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.text-accent {
    color: var(--color-primary);
}

/* =============================================
   HEADER (same as main page)
   ============================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: background var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    z-index: 10;
}

.header__logo-img {
    height: 48px;
    width: auto;
    transition: transform var(--transition-fast);
}

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

.header__logo-text {
    display: none;
}

.header__nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.header__nav-link {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text);
    position: relative;
    padding: var(--space-xs) 0;
    transition: color var(--transition-fast);
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    border-radius: 1px;
    transition: width var(--transition-base);
}

.header__nav-link:hover {
    color: var(--color-primary);
}

.header__nav-link:hover::after {
    width: 100%;
}

.header__nav-link--active {
    color: var(--color-primary);
}

.header__nav-link--active::after {
    width: 100%;
}

.header__nav-link--cta {
    background: var(--color-primary);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.header__nav-link--cta::after {
    display: none;
}

.header__nav-link--cta:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

/* Mobile toggle */
.header__menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    z-index: 10000;
}

.header__menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-dark);
    border-radius: 2px;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.header__menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header__menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.header__menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =============================================
   GALLERY HERO
   ============================================= */
.gallery-hero {
    position: relative;
    padding: calc(var(--header-height) + var(--space-4xl)) 0 var(--space-3xl);
    background: var(--color-dark);
    overflow: hidden;
    text-align: center;
}

.gallery-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(37, 99, 235, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(37, 99, 235, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, var(--color-dark) 0%, #0d1017 100%);
}

.gallery-hero__content {
    position: relative;
    z-index: 2;
}

.gallery-hero__tag {
    display: inline-block;
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-primary-light);
    background: rgba(37, 99, 235, 0.12);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
}

.gallery-hero__title {
    font-size: clamp(2rem, 5vw, var(--font-size-4xl));
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: var(--space-lg);
}

.gallery-hero__subtitle {
    font-size: var(--font-size-md);
    color: rgba(255, 255, 255, 0.5);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Hero load animations */
.anim-load {
    opacity: 0;
    transform: translateY(24px);
}

.anim-load.visible {
    animation: fadeInUp 0.7s var(--ease-out) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   3D GALLERY WALL
   ============================================= */
.gallery-wall-section {
    background: var(--color-dark);
    padding: 0 0 var(--space-4xl);
    position: relative;
    overflow: hidden;
}

.gallery-wall-wrap {
    perspective: 1200px;
    perspective-origin: 50% 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-2xl) 0;
    overflow: visible;
}

.gallery-wall {
    display: flex;
    flex-direction: column;
    gap: 16px;
    transform-style: preserve-3d;
    transform: rotateX(4deg);
    transition: transform 0.6s var(--ease-out);
}

.gallery-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    transform-style: preserve-3d;
}

.gallery-item {
    position: relative;
    width: 160px;
    flex-shrink: 0;
    transform-style: preserve-3d;
    transition: transform 0.5s var(--ease-out);
}

.gallery-item__inner {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    background: var(--color-dark-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.03);
    transition: box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}

.gallery-item__img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e2330 0%, #252a38 40%, #1a1f2c 100%);
    position: relative;
}

/* Subtle shimmer on blank images */
.gallery-item__img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg,
            transparent 35%,
            rgba(255, 255, 255, 0.02) 45%,
            rgba(255, 255, 255, 0.04) 50%,
            rgba(255, 255, 255, 0.02) 55%,
            transparent 65%);
    animation: img-shimmer 4s ease-in-out infinite;
}

@keyframes img-shimmer {

    0%,
    100% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(100%);
    }
}

/* Reflection */
.gallery-item__reflection {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 2px;
    background: linear-gradient(135deg, #1e2330 0%, #252a38 40%, #1a1f2c 100%);
    transform: scaleY(-1);
    opacity: 0.15;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, transparent 70%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, transparent 70%);
}

/* Hover on gallery items */
.gallery-item:hover {
    transform: translateZ(20px) scale(1.06);
    z-index: 10;
}

.gallery-item:hover .gallery-item__inner {
    box-shadow:
        0 8px 32px rgba(37, 99, 235, 0.2),
        0 0 0 1px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.25);
}

/* Curved perspective for edge items */
.gallery-row .gallery-item:nth-child(1) {
    transform: rotateY(14deg);
}

.gallery-row .gallery-item:nth-child(2) {
    transform: rotateY(8deg);
}

.gallery-row .gallery-item:nth-child(3) {
    transform: rotateY(3deg);
}

.gallery-row .gallery-item:nth-child(4) {
    transform: rotateY(0deg);
}

.gallery-row .gallery-item:nth-child(5) {
    transform: rotateY(0deg);
}

.gallery-row .gallery-item:nth-child(6) {
    transform: rotateY(-3deg);
}

.gallery-row .gallery-item:nth-child(7) {
    transform: rotateY(-8deg);
}

.gallery-row .gallery-item:nth-child(8) {
    transform: rotateY(-14deg);
}

/* Keep hover with curve */
.gallery-row .gallery-item:nth-child(1):hover {
    transform: rotateY(14deg) translateZ(20px) scale(1.06);
}

.gallery-row .gallery-item:nth-child(2):hover {
    transform: rotateY(8deg) translateZ(20px) scale(1.06);
}

.gallery-row .gallery-item:nth-child(3):hover {
    transform: rotateY(3deg) translateZ(20px) scale(1.06);
}

.gallery-row .gallery-item:nth-child(4):hover {
    transform: rotateY(0deg) translateZ(20px) scale(1.06);
}

.gallery-row .gallery-item:nth-child(5):hover {
    transform: rotateY(0deg) translateZ(20px) scale(1.06);
}

.gallery-row .gallery-item:nth-child(6):hover {
    transform: rotateY(-3deg) translateZ(20px) scale(1.06);
}

.gallery-row .gallery-item:nth-child(7):hover {
    transform: rotateY(-8deg) translateZ(20px) scale(1.06);
}

.gallery-row .gallery-item:nth-child(8):hover {
    transform: rotateY(-14deg) translateZ(20px) scale(1.06);
}

/* Floor reflection */
.gallery-floor {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, rgba(10, 12, 20, 0.95));
    pointer-events: none;
}

/* =============================================
   GRID GALLERY SECTION
   ============================================= */
.gallery-grid-section {
    padding: var(--space-5xl) 0;
    background: var(--color-bg-light);
}

.gallery-grid-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section__tag {
    display: inline-block;
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    background: rgba(37, 99, 235, 0.08);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
}

.section__title {
    font-size: clamp(1.8rem, 3.5vw, var(--font-size-3xl));
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Filters */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.gallery-filter {
    padding: 10px 24px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text-muted);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-full);
    background: var(--color-bg);
    transition: all var(--transition-fast);
}

.gallery-filter:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.gallery-filter.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}

/* Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: var(--space-lg);
}

.gallery-grid__item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.gallery-grid__item--tall {
    grid-row: span 2;
}

.gallery-grid__item--wide {
    grid-column: span 2;
}

.gallery-grid__item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-xl);
    z-index: 2;
}

.gallery-grid__img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 40%, #e2e8f0 100%);
    position: relative;
}

/* Light shimmer on blank images */
.gallery-grid__img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg,
            transparent 35%,
            rgba(255, 255, 255, 0.5) 45%,
            rgba(255, 255, 255, 0.7) 50%,
            rgba(255, 255, 255, 0.5) 55%,
            transparent 65%);
    animation: grid-shimmer 3s ease-in-out infinite;
}

@keyframes grid-shimmer {

    0%,
    100% {
        transform: translateX(-120%);
    }

    60%,
    80% {
        transform: translateX(120%);
    }
}

/* Overlay on hover */
.gallery-grid__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(10, 12, 20, 0.85) 0%,
            rgba(10, 12, 20, 0.3) 50%,
            transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-xl);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
}

.gallery-grid__item:hover .gallery-grid__overlay {
    opacity: 1;
}

.gallery-grid__cat {
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary-light);
    margin-bottom: var(--space-xs);
}

.gallery-grid__overlay h4 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: #fff;
}

/* Filter animation */
.gallery-grid__item.hidden {
    display: none;
}

/* =============================================
   CTA BANNER
   ============================================= */
.gallery-cta {
    padding: var(--space-4xl) 0;
    background: var(--color-bg);
}

.gallery-cta__inner {
    text-align: center;
    background: linear-gradient(135deg, var(--color-dark) 0%, #1e293b 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-4xl) var(--space-2xl);
    position: relative;
    overflow: hidden;
}

.gallery-cta__inner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.gallery-cta__inner h2 {
    font-size: clamp(1.5rem, 3vw, var(--font-size-3xl));
    font-weight: 800;
    color: #fff;
    margin-bottom: var(--space-md);
}

.gallery-cta__inner p {
    font-size: var(--font-size-md);
    color: rgba(255, 255, 255, 0.6);
    max-width: 520px;
    margin: 0 auto var(--space-2xl);
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 14px 32px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: var(--color-primary);
    color: #fff;
    border: none;
}

.btn--primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow), var(--shadow-lg);
}

.btn--glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 150%;
    }
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: var(--color-dark);
    background: #0a0c14;
    color: rgba(255, 255, 255, 0.7);
    padding-top: var(--space-4xl);
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--space-3xl);
    padding-bottom: var(--space-3xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__brand {
    display: flex;
    flex-direction: column;
}

.footer__logo-img {
    height: 200px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s;
}

.footer__logo-img:hover {
    opacity: 0.8;
}

.footer__tagline {
    font-size: var(--font-size-sm);
    margin-top: var(--space-md);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
}

.footer__links h4 {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: #fff;
    margin-bottom: var(--space-lg);
}

.footer__links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__links a,
.footer__links li {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition-fast);
}

.footer__links a:hover {
    color: var(--color-primary-light);
}

.footer__bottom {
    padding: var(--space-xl) 0;
}

.footer__bottom-inner {
    text-align: center;
}

.footer__bottom p {
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.35);
}

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out);
}

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

.lightbox__close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.lightbox__close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox__content {
    max-width: 90vw;
    max-height: 85vh;
}

.lightbox__img-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.lightbox__img {
    display: block;
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    background: var(--color-dark-card);
    border-radius: var(--radius-lg);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

/* =============================================
   REVEAL
   ============================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 200px;
    }

    .gallery-item {
        width: 130px;
    }

    .footer__inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    /* --- Header mobile --- */
    .header__menu-toggle {
        display: flex;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }

    .header__nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        height: 100dvh;
        background: #ffffff;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        pointer-events: none;
        transition: transform 0.4s var(--ease-out);
        z-index: 9999;
        padding: var(--space-2xl) var(--space-xl);
        overflow-y: auto;
    }

    .header__nav.open {
        transform: translateX(0);
        pointer-events: all;
    }

    .header__nav-list {
        flex-direction: column;
        gap: var(--space-lg);
        text-align: center;
        width: 100%;
    }

    .header__nav-link {
        font-size: var(--font-size-xl);
        padding: var(--space-sm) var(--space-md);
        display: block;
    }

    .header__nav-link--cta {
        margin-top: var(--space-md);
        padding: 14px 32px;
    }

    /* --- Gallery Hero mobile --- */
    .gallery-hero {
        padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-2xl);
    }

    .gallery-hero__title {
        font-size: clamp(1.6rem, 6vw, 2.5rem);
    }

    .gallery-hero__subtitle {
        font-size: var(--font-size-base);
    }

    /* --- 3D Wall mobile --- */
    .gallery-wall-section {
        padding: 0 0 var(--space-2xl);
    }

    .gallery-wall-wrap {
        padding: var(--space-xl) 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        display: block; /* Fix for horizontal scroll */
        mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    }

    .gallery-wall-wrap::-webkit-scrollbar {
        display: none;
    }

    .gallery-wall {
        transform: none !important;
        flex-direction: column;
        gap: 12px;
        width: fit-content;
        padding: 0 var(--space-xl);
    }

    .gallery-row {
        gap: 12px;
    }

    .gallery-item {
        width: 120px;
        transform: none !important; /* Disable curved perspective on mobile for cleaner scroll */
    }

    .gallery-item__reflection {
        display: none; /* Reflections can look weird on mobile scroll */
    }

    /* --- Grid Gallery mobile --- */
    .gallery-grid-section {
        padding: var(--space-3xl) 0;
    }

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

    .gallery-grid__item--wide {
        grid-column: span 2;
    }

    .gallery-grid__overlay {
        opacity: 1;
        background: linear-gradient(to top,
                rgba(10, 12, 20, 0.7) 0%,
                transparent 60%);
        padding: var(--space-md);
    }

    .gallery-grid__overlay h4 {
        font-size: var(--font-size-base);
    }

    .gallery-grid__cat {
        font-size: 0.65rem;
    }

    /* --- Filters mobile --- */
    .gallery-filters {
        gap: var(--space-xs);
        padding: 0 var(--space-sm);
    }

    .gallery-filter {
        padding: 8px 16px;
        font-size: var(--font-size-xs);
    }

    /* --- CTA mobile --- */
    .gallery-cta {
        padding: var(--space-2xl) 0;
    }

    .gallery-cta__inner {
        padding: var(--space-2xl) var(--space-xl);
        border-radius: var(--radius-lg);
    }

    .gallery-cta__inner h2 {
        font-size: clamp(1.3rem, 5vw, 2rem);
    }

    .gallery-cta__inner p {
        font-size: var(--font-size-sm);
    }

    .gallery-cta__inner .btn {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
    }

    /* --- Footer mobile --- */
    .footer {
        padding-top: var(--space-3xl);
    }

    .footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }

    .footer__brand {
        grid-column: 1 / -1;
    }

    .footer__bottom {
        padding: var(--space-lg) 0;
        padding-bottom: calc(var(--space-lg) + env(safe-area-inset-bottom, 0px));
    }

    /* --- Lightbox mobile --- */
    .lightbox__content {
        max-width: 95vw;
        max-height: 90vh;
    }

    .lightbox__img {
        max-width: 95vw;
        max-height: 80vh;
    }

    .lightbox__close {
        top: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }

    .gallery-hero {
        padding: calc(var(--header-height) + var(--space-xl)) 0 var(--space-xl);
    }

    .gallery-hero__title {
        font-size: 1.5rem;
    }

    .gallery-hero__subtitle {
        font-size: var(--font-size-sm);
    }

    .gallery-hero__tag {
        font-size: 0.65rem;
        padding: 5px 12px;
    }

    .gallery-item {
        width: 75px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 140px;
        gap: var(--space-sm);
    }

    .gallery-grid__item--tall {
        grid-row: span 1;
    }

    .gallery-grid__overlay {
        padding: var(--space-sm);
    }

    .gallery-grid__overlay h4 {
        font-size: var(--font-size-sm);
    }

    .gallery-filter {
        padding: 6px 12px;
        font-size: 0.7rem;
    }

    .gallery-cta__inner {
        padding: var(--space-xl) var(--space-lg);
    }

    .gallery-cta__inner h2 {
        font-size: 1.2rem;
    }

    .gallery-cta__inner p {
        font-size: var(--font-size-xs);
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .footer__brand {
        grid-column: auto;
    }

    .footer__bottom p {
        font-size: 0.65rem;
        line-height: 1.5;
    }

    .section__tag {
        font-size: 0.65rem;
        padding: 5px 12px;
    }

    .section__title {
        font-size: clamp(1.3rem, 5.5vw, 1.7rem);
    }
}

/* Ultra-small devices */
@media (max-width: 360px) {
    .container {
        padding: 0 var(--space-sm);
    }

    .gallery-wall-section {
        display: none;
    }

    .gallery-hero__title {
        font-size: 1.3rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }

    .gallery-grid__item--wide,
    .gallery-grid__item--tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-cta__inner .btn {
        padding: 14px 20px;
        font-size: var(--font-size-sm);
    }
}