/* =========================================
   GALERIE PREMIUM — INFO-TEC QUIEN-SOMOS
   Album éditorial bento + lightbox cinéma
   ========================================= */

.qs-landing .qs-gallery-section {
    position: relative;
    padding: 100px 0 110px;
    background:
        radial-gradient(ellipse 90% 60% at 50% 0%, rgba(30, 58, 138, 0.45) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 80% 100%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
        linear-gradient(165deg, #040a18 0%, #0a1128 35%, #0f1f4d 70%, #0a1128 100%);
    color: #e8eef8;
    overflow: hidden;
}

.qs-landing .qs-gallery-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 215, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 215, 0, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 75%);
    pointer-events: none;
}

.qs-landing .qs-gallery-section .container {
    position: relative;
    z-index: 1;
    max-width: 1280px;
}

.qs-landing .qs-gallery-section:has(.qs-gallery-swipe.is-active-view) .container {
    max-width: min(1440px, calc(100% - 24px));
}

.qs-landing .qs-gallery-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 36px;
}

/* Diaporama hero cinématique */
.qs-landing .qs-gallery-hero {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 36px;
    aspect-ratio: 21 / 9;
    min-height: 200px;
    max-height: min(52vh, 420px);
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 215, 0, 0.22);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 0 48px rgba(255, 215, 0, 0.08);
}

.qs-landing .qs-gallery-hero-track {
    position: absolute;
    inset: 0;
}

.qs-landing .qs-gallery-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1.1s ease, transform 7s ease-out;
    pointer-events: none;
}

.qs-landing .qs-gallery-hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    z-index: 1;
}

.qs-landing .qs-gallery-hero-slide picture,
.qs-landing .qs-gallery-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.qs-landing .qs-gallery-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        90deg,
        rgba(4, 10, 24, 0.55) 0%,
        transparent 35%,
        transparent 65%,
        rgba(4, 10, 24, 0.45) 100%
    ),
    linear-gradient(0deg, rgba(4, 10, 24, 0.88) 0%, transparent 50%);
    pointer-events: none;
}

.qs-landing .qs-gallery-hero-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 20px 24px 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    pointer-events: none;
}

.qs-landing .qs-gallery-hero-text {
    margin: 0;
    flex: 1 1 200px;
    font-size: clamp(0.85rem, 2vw, 1rem);
    font-weight: 600;
    color: #f1f5f9;
    line-height: 1.4;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.qs-landing .qs-gallery-hero-dots {
    display: flex;
    gap: 8px;
    pointer-events: auto;
}

.qs-landing .qs-gallery-hero-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: transform 0.2s, background 0.2s, width 0.2s;
}

.qs-landing .qs-gallery-hero-dot.is-active {
    width: 24px;
    border-radius: 4px;
    background: var(--gold);
}

.qs-landing .qs-gallery-hero-pause {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 4;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(10, 17, 40, 0.65);
    backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.qs-landing .qs-gallery-hero-pause:hover {
    background: rgba(255, 215, 0, 0.25);
    border-color: var(--gold);
    color: var(--gold);
}

.qs-landing .qs-gallery-item picture,
.qs-landing .qs-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.qs-landing .qs-gallery-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: 999px;
    background: rgba(255, 215, 0, 0.08);
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.qs-landing .qs-gallery-title {
    margin: 0 0 16px;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.1;
    color: #fff;
}

.qs-landing .qs-gallery-title span {
    background: linear-gradient(135deg, var(--gold) 0%, #fff3a0 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.qs-landing .qs-gallery-intro {
    margin: 0;
    color: #94a3b8;
    font-size: clamp(1rem, 2vw, 1.12rem);
    line-height: 1.65;
}

.qs-landing .qs-gallery-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 28px;
}

.qs-landing .qs-gallery-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.88rem;
    font-weight: 600;
    color: #cbd5e1;
}

.qs-landing .qs-gallery-count strong {
    color: var(--gold);
    font-size: 1.1rem;
}

/* Filtres */
.qs-landing .qs-gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
}

.qs-landing .qs-gallery-filter {
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: #94a3b8;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.25s, border-color 0.25s, background 0.25s, box-shadow 0.25s, transform 0.2s;
}

.qs-landing .qs-gallery-filter:hover {
    color: #e2e8f0;
    border-color: rgba(255, 215, 0, 0.35);
    transform: translateY(-1px);
}

.qs-landing .qs-gallery-filter.is-active {
    color: #0a1128;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-color: var(--gold);
    box-shadow: 0 8px 28px rgba(255, 215, 0, 0.28);
}

/* Conteneur vues */
.qs-landing .qs-gallery-stage {
    position: relative;
    width: 100%;
}

.qs-landing .qs-gallery-swipe,
.qs-landing .qs-gallery-flyer3d,
.qs-landing .qs-gallery-grid.is-hidden-view {
    display: none !important;
    visibility: hidden;
    pointer-events: none;
}

.qs-landing .qs-gallery-swipe.is-active-view {
    display: block !important;
    visibility: visible;
    pointer-events: auto;
}

.qs-landing .qs-gallery-flyer3d.is-active-view {
    display: block !important;
    visibility: visible;
    pointer-events: auto;
}

.qs-landing .qs-gallery-grid.is-active-view {
    display: grid !important;
    visibility: visible;
    pointer-events: auto;
}

/* Swipe tactile — Album Pro Max (Tout voir / Graduations) */
.qs-landing .qs-gallery-swipe {
    margin-bottom: 12px;
}

.qs-landing .qs-gallery-swipe.is-active-view {
    width: 100%;
}

.qs-landing .qs-gallery-swipe-hint,
.qs-landing .qs-gallery-flyer3d-hint {
    margin: 0 0 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 600;
}

.qs-landing .qs-gallery-swipe-hint i,
.qs-landing .qs-gallery-flyer3d-hint i {
    color: var(--gold);
    margin-right: 6px;
}

.qs-landing .qs-gallery-swipe-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding: 12px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 215, 0, 0.15);
}

.qs-landing .qs-gallery-swipe-counter {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.45rem);
    font-weight: 800;
    color: var(--gold);
    letter-spacing: 0.04em;
}

.qs-landing .qs-gallery-swipe-nav {
    display: flex;
    gap: 10px;
}

.qs-landing .qs-gallery-swipe-btn {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.1);
    color: var(--gold);
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.qs-landing .qs-gallery-swipe-btn:hover {
    background: var(--gold);
    color: #0a1128;
    transform: scale(1.06);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.35);
}

.qs-landing .qs-gallery-swipe-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding: 12px max(8px, env(safe-area-inset-left)) 24px max(8px, env(safe-area-inset-right));
    scrollbar-width: none;
    touch-action: pan-x;
}

.qs-landing .qs-gallery-swipe-track::-webkit-scrollbar {
    display: none;
}

.qs-landing .qs-swipe-slide {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    cursor: pointer;
    box-sizing: border-box;
}

.qs-landing .qs-swipe-album-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.28);
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 0 80px rgba(255, 215, 0, 0.06);
    background: linear-gradient(180deg, #0c1638 0%, #060d1f 100%);
}

.qs-landing .qs-swipe-photo-stage {
    position: relative;
    width: 100%;
    min-height: min(78vh, 680px);
    max-height: min(82vh, 760px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(30, 58, 138, 0.35) 0%, transparent 70%),
        #050b18;
}

.qs-landing .qs-swipe-picture {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: min(74vh, 640px);
}

.qs-landing .qs-swipe-photo {
    width: 100%;
    height: auto;
    max-height: min(76vh, 700px);
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: 8px;
    filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.45));
}

.qs-landing .qs-swipe-expand {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 215, 0, 0.5);
    border-radius: 50%;
    background: rgba(10, 17, 40, 0.75);
    backdrop-filter: blur(10px);
    color: var(--gold);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.qs-landing .qs-swipe-expand:hover {
    background: var(--gold);
    color: #0a1128;
    transform: scale(1.08);
}

.qs-landing .qs-swipe-caption-bar {
    padding: 18px 22px 20px;
    background: linear-gradient(180deg, rgba(6, 13, 31, 0.98) 0%, rgba(10, 17, 40, 1) 100%);
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qs-landing .qs-swipe-badge {
    align-self: flex-start;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.4);
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.qs-landing .qs-swipe-caption-bar p {
    margin: 0;
    font-size: clamp(0.95rem, 2vw, 1.08rem);
    font-weight: 600;
    color: #f1f5f9;
    line-height: 1.45;
}

.qs-landing .qs-gallery-swipe-progress {
    height: 4px;
    margin-top: 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.qs-landing .qs-gallery-swipe-progress-fill {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold));
    transition: width 0.35s ease;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
}

/* Flyer 3D — Présentiel / En ligne */
.qs-landing .qs-gallery-flyer3d {
    padding: 8px 0 16px;
}

.qs-landing .qs-flyer3d-scene {
    position: relative;
    width: 100%;
    min-height: min(78vh, 620px);
    margin: 0 auto;
    perspective: 1600px;
    perspective-origin: 50% 42%;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
    cursor: grab;
}

.qs-landing .qs-flyer3d-scene:active {
    cursor: grabbing;
}

.qs-landing .qs-flyer3d-window {
    position: absolute;
    inset: 4% 6%;
    border-radius: 14px;
    border: 2px solid rgba(255, 215, 0, 0.35);
    background: linear-gradient(145deg, rgba(15, 31, 77, 0.9) 0%, rgba(4, 10, 24, 0.95) 100%);
    box-shadow:
        0 40px 90px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 0 60px rgba(255, 215, 0, 0.12);
    transform: translateZ(-40px) rotateX(6deg);
    pointer-events: none;
}

.qs-landing .qs-flyer3d-window-bar {
    display: block;
    height: 36px;
    margin: 0;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    position: relative;
}

.qs-landing .qs-flyer3d-window-bar::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 16px 0 0 #f59e0b, 32px 0 0 #22c55e;
}

.qs-landing .qs-flyer3d-card {
    position: relative;
    z-index: 2;
    width: min(92%, 720px);
    height: min(68vh, 520px);
    transform-style: preserve-3d;
    transition: transform 0.12s ease-out;
    border-radius: 10px;
    overflow: hidden;
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 215, 0, 0.25);
    background: #0a1128;
    cursor: zoom-in;
}

.qs-landing .qs-flyer3d-card picture,
.qs-landing .qs-flyer3d-card img.qs-img-contain {
    width: 100%;
    height: 100%;
    display: block;
}

.qs-landing .qs-img-contain {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.qs-landing .qs-flyer3d-caption {
    margin: 18px auto 0;
    max-width: 720px;
    text-align: center;
    color: #cbd5e1;
    font-size: 0.95rem;
    font-weight: 600;
}

/* Grille bento */
.qs-landing .qs-gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 140px;
    gap: 14px;
}

.qs-landing .qs-gallery-item {
    position: relative;
    grid-column: span 3;
    grid-row: span 2;
    border-radius: 14px;
    overflow: hidden;
    cursor: zoom-in;
    opacity: 0;
    transform: translateY(24px) scale(0.97);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s ease;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.qs-landing .qs-gallery-item.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.qs-landing .qs-gallery-item[data-span="hero"] {
    grid-column: span 6;
    grid-row: span 3;
}

.qs-landing .qs-gallery-item[data-span="wide"] {
    grid-column: span 6;
    grid-row: span 2;
}

.qs-landing .qs-gallery-item[data-span="tall"] {
    grid-column: span 3;
    grid-row: span 3;
}

.qs-landing .qs-gallery-item[data-span="normal"] {
    grid-column: span 3;
    grid-row: span 2;
}

.qs-landing .qs-gallery-item.is-hidden-filter {
    display: none;
}

.qs-landing .qs-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
}

.qs-landing .qs-gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 40%,
        rgba(4, 10, 24, 0.55) 75%,
        rgba(4, 10, 24, 0.92) 100%
    );
    opacity: 0.75;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.qs-landing .qs-gallery-item:hover::after {
    opacity: 0.55;
}

.qs-landing .qs-gallery-item:hover img {
    transform: scale(1.06);
    filter: brightness(1.08) contrast(1.04);
}

.qs-landing .qs-gallery-item:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.qs-landing .qs-gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 16px 18px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

.qs-landing .qs-gallery-caption span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #e2e8f0;
    line-height: 1.35;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
    max-width: calc(100% - 40px);
}

.qs-landing .qs-gallery-zoom {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.45);
    color: var(--gold);
    font-size: 0.85rem;
    transition: background 0.25s, transform 0.25s;
}

.qs-landing .qs-gallery-item:hover .qs-gallery-zoom {
    background: var(--gold);
    color: #0a1128;
    transform: scale(1.08);
}

.qs-landing .qs-gallery-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(10, 17, 40, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 215, 0, 0.25);
    color: var(--gold);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Lightbox */
.qs-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    background: rgba(4, 10, 24, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.qs-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.qs-lightbox-inner {
    position: relative;
    width: min(1100px, 100%);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qs-lightbox-img-wrap {
    position: relative;
    width: 100%;
    max-height: calc(92vh - 80px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 215, 0, 0.15);
}

.qs-lightbox-img-wrap img {
    display: block;
    width: 100%;
    max-height: calc(92vh - 80px);
    object-fit: contain;
    background: #0a1128;
}

.qs-lightbox-caption {
    margin-top: 14px;
    text-align: center;
    color: #cbd5e1;
    font-size: 0.95rem;
    font-weight: 500;
    max-width: 90%;
}

.qs-lightbox-counter {
    position: absolute;
    top: -36px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.qs-lightbox-close,
.qs-lightbox-prev,
.qs-lightbox-next {
    position: absolute;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.qs-lightbox-close:hover,
.qs-lightbox-prev:hover,
.qs-lightbox-next:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: var(--gold);
    color: var(--gold);
}

.qs-lightbox-close {
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    z-index: 2;
}

.qs-lightbox-prev {
    left: max(-60px, -8vw);
    top: 50%;
    transform: translateY(-50%);
}

.qs-lightbox-next {
    right: max(-60px, -8vw);
    top: 50%;
    transform: translateY(-50%);
}

body.qs-lightbox-open {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 1024px) {
    .qs-landing .qs-gallery-grid {
        grid-template-columns: repeat(6, 1fr);
        grid-auto-rows: 120px;
    }

    .qs-landing .qs-gallery-item,
    .qs-landing .qs-gallery-item[data-span="normal"] {
        grid-column: span 3;
        grid-row: span 2;
    }

    .qs-landing .qs-gallery-item[data-span="hero"],
    .qs-landing .qs-gallery-item[data-span="wide"] {
        grid-column: span 6;
        grid-row: span 2;
    }

    .qs-landing .qs-gallery-item[data-span="tall"] {
        grid-column: span 3;
        grid-row: span 3;
    }

    .qs-lightbox-prev { left: 8px; }
    .qs-lightbox-next { right: 8px; }
}

@media (min-width: 900px) {
    .qs-landing .qs-swipe-slide {
        flex: 0 0 calc(100% - 8px);
    }

    .qs-landing .qs-swipe-photo-stage {
        min-height: min(80vh, 720px);
        padding: 24px 32px;
    }

    .qs-landing .qs-swipe-photo {
        max-height: min(78vh, 740px);
    }
}

@media (max-width: 640px) {
    .qs-landing .qs-swipe-slide {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .qs-landing .qs-swipe-photo-stage {
        min-height: min(68vh, 520px);
        padding: 10px;
    }

    .qs-landing .qs-swipe-picture {
        min-height: min(64vh, 480px);
    }

    .qs-landing .qs-gallery-swipe-toolbar {
        padding: 10px 14px;
    }

    .qs-landing .qs-flyer3d-scene {
        min-height: min(70vh, 480px);
    }

    .qs-landing .qs-flyer3d-card {
        width: 94%;
        height: min(62vh, 440px);
    }

    .qs-landing .qs-gallery-section {
        padding: 72px 0 80px;
    }

    .qs-landing .qs-gallery-hero {
        aspect-ratio: 4 / 3;
        max-height: 280px;
        margin-bottom: 28px;
        border-radius: 14px;
    }

    .qs-landing .qs-gallery-hero-caption {
        padding: 14px 16px 12px;
    }

    .qs-landing .qs-gallery-hero-text {
        font-size: 0.78rem;
    }

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

    .qs-landing .qs-gallery-item,
    .qs-landing .qs-gallery-item[data-span="hero"],
    .qs-landing .qs-gallery-item[data-span="wide"],
    .qs-landing .qs-gallery-item[data-span="tall"],
    .qs-landing .qs-gallery-item[data-span="normal"] {
        grid-column: span 1;
        grid-row: span 1;
    }

    .qs-landing .qs-gallery-item[data-span="hero"] {
        grid-column: span 2;
        grid-row: span 2;
    }

    .qs-landing .qs-gallery-caption span {
        font-size: 0.72rem;
    }

    .qs-lightbox-prev,
    .qs-lightbox-next {
        width: 40px;
        height: 40px;
        top: auto;
        bottom: 12px;
        transform: none;
    }

    .qs-lightbox-prev { left: 12px; }
    .qs-lightbox-next { right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .qs-landing .qs-gallery-item,
    .qs-landing .qs-gallery-item img,
    .qs-landing .qs-gallery-hero-slide,
    .qs-lightbox {
        transition: none;
    }

    .qs-landing .qs-gallery-hero-slide {
        transform: none;
    }
}
