/* ===================== */
/* Base / Variables       */
/* ===================== */
:root{
    --rojo-masia: rgba(234, 56, 36);
    --text: #fff;
    --glass-border: rgba(255, 255, 255, 0.30);
    --glass-shine: rgba(255, 255, 255, 0.20);
    --shadow-red: rgba(163, 20, 29, 0.40);

    /* subtle brand tint for glass */
    --masia-tint: rgba(163, 20, 29, 0.14);
    --masia-tint-strong: rgba(163, 20, 29, 0.18);
    --event-bg: none;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
    margin: 0;
    font-family: "Futura", "Futura PT", "Avenir Next", "Avenir", system-ui, -apple-system, Arial, sans-serif;
    color: var(--text);

    /* Fondo fullscreen */
    background: #000;

    display: flex;
    justify-content: center;
    align-items: center;

    min-height: 100svh;
    text-align: center;
    padding: max(14px, env(safe-area-inset-top)) 0 max(14px, env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: hidden; /* sin scroll (landing) */
}

/* Background fixed layer (no se mueve al hacer scroll) */
body::before{
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;

    background-image: url("src/brnd/background.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;

    /* evita jitter/repaint */
    transform: translateZ(0);
    will-change: transform;
}

/* Contenedor general */
.page{
    width: min(520px, 92vw);
    padding: 0 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: clamp(10px, 1.8vh, 18px);
    max-height: 100svh;
}

/* ===================== */
/* Header / Hero          */
/* ===================== */
.hero{
    margin: 0;
}

/* Used by JS: ticketPulse 3.2s ease-in-out 1 */
@keyframes ticketPulse{
    0%   { transform: scale(1); }
    45%  { transform: scale(1); }
    50%  { transform: scale(1.025); }
    55%  { transform: scale(1); }
    100% { transform: scale(1); }
}

/* Logo */
.logo{
    display: block;
    width: clamp(190px, 80vw, 600px);
    max-width: 80%;
    height: auto;
    margin: 0 auto;
}

@media (max-width: 360px){
    .logo{
        width: clamp(120px, 55vw, 240px);
    }
}

/* ===================== */
/* Social buttons         */
/* ===================== */
.social{
    display: flex;
    justify-content: center;
    gap: clamp(12px, 2.6vw, 22px);
    margin: clamp(14px, 2.2vh, 22px) 0;
}

.social-btn{
    width: clamp(52px, 6.6vh, 74px);
    height: clamp(52px, 6.6vh, 74px);
    border-radius: 999px;

    background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06)), var(--masia-tint);
    border: 2px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    color: #fff;
    text-decoration: none;
    display: grid;
    place-items: center;

    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.social-btn::before{
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--glass-shine), transparent);
    transition: left 0.5s ease;
}

.social-btn:hover{
    background-color: var(--rojo-masia);
    border-color: var(--rojo-masia);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-red);
}

.social-btn:hover::before{ left: 100%; }
.social-btn:active{ transform: translateY(0); }

/* ===================== */
/* Cards section          */
/* ===================== */
.cards{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1.2vh, 14px);
}

.card{
    position: relative;
    display: grid;
    grid-template-columns: clamp(64px, 10vw, 88px) 1fr;
    align-items: center;

    min-height: clamp(64px, 8.8vh, 96px);
    padding: clamp(10px, 1.2vh, 14px) clamp(14px, 3vw, 18px);
    border-radius: clamp(34px, 6vw, 50px);

    background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06)), var(--masia-tint);
    border: 2px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    text-decoration: none;
    color: #fff;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card::before{
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--glass-shine), transparent);
    transition: left 0.5s ease;
}

.card:hover{
    background-color: var(--rojo-masia);
    border-color: var(--rojo-masia);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-red);
}

.card:hover::before{ left: 100%; }
.card:active{ transform: translateY(0); }

.card--big{
    min-height: clamp(82px, 11.5vh, 120px);

    background:
            linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06)),
            rgba(163, 20, 29, 0.22);

    border-color: rgba(255,255,255,0.40);

    box-shadow:
            0 12px 30px rgba(0,0,0,0.25),
            0 14px 34px rgba(163, 20, 29, 0.35);
}

/* Left column */
.card__image{
    display: grid;
    place-items: center;
    height: 100%;
}

.silhouette--westsrk{
    width: clamp(40px, 8vw, 60px);
    height: clamp(56px, 10vh, 82px);
    border-radius: 13px;
    opacity: 0.95;

    background-image: url("/src/flyrs/lm10_west_srk.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.silhouette--oleo{
    width: clamp(40px, 8vw, 60px);
    height: clamp(56px, 10vh, 82px);
    border-radius: 13px;
    opacity: 0.95;

    background-image: url("/src/flyrs/oleo.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.silhouette--aleesha{
    width: clamp(40px, 8vw, 60px);
    height: clamp(56px, 10vh, 82px);
    border-radius: 13px;
    opacity: 0.95;

    background-image: url("/src/flyrs/lm11_aleesha_club.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.silhouette--elvirtual{
    width: clamp(40px, 8vw, 60px);
    height: clamp(56px, 10vh, 82px);
    border-radius: 13px;
    opacity: 0.95;

    background-image: url("/src/flyrs/lm203-elvirtual.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

/* Content */
.card__content{
    text-align: left;
    padding-right: clamp(34px, 7vw, 46px); /* space for share button */
}

.card__content--center{
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
}

/* Small cards: left-align the centered content variant */
.card:not(.card--big) .card__content--center{
    justify-content: flex-start;
    text-align: left;
    padding: 0 clamp(14px, 3vw, 18px);
}

.card__content--center .card__subtitle{
    margin: 0;
}

/* Small cards: fixed icon slot + aligned text */
.small-row{
    display: inline-grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    column-gap: 12px;
}

.small-ico{
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
}

.small-ico svg{
    width: 26px;
    height: 26px;
    display: block;
}

.emoji{
    font-size: 26px;
    line-height: 1;
    display: block;
}

.small-text{
    display: inline-block;
}

.icon-spotify{
    color: #1DB954;
}

.card__title,
.card__subtitle{
    font-weight: 800;
    font-size: clamp(1.15rem, 3.6vw, 1.7rem);
    line-height: 1.05;
    letter-spacing: 0.02em;
}

.card__bio{
    margin-top: 6px;
    font-weight: 800;
    font-size: clamp(1rem, 3.2vw, 1.5rem);
    line-height: 1.05;
    letter-spacing: 0.02em;
}

/* Share button (paper plane) */
.share-btn{
    position: absolute;
    right: clamp(14px, 3vw, 20px);
    top: 50%;
    transform: translateY(-50%);

    width: 38px;
    height: 38px;

    border: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06)), var(--masia-tint-strong);
    backdrop-filter: blur(6px);
    border-radius: 12px;

    color: inherit;
    display: grid;
    place-items: center;
    cursor: pointer;
    padding: 0;

    transition: background 0.25s ease, transform 0.25s ease;
}

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

.share-btn:focus-visible{
    outline: 2px solid rgba(255,255,255,0.9);
    outline-offset: 3px;
    border-radius: 999px;
}

.share-btn:hover .plane{ transform: scale(1.06); }
.share-btn.is-copied{ transform: rotate(-12deg) scale(1.08); }

.plane{
    display: inline-block;
    transition: transform 0.18s ease;
}

/* Contact link */
.contact{
    margin-top: 6px;
    text-decoration: none;
    text-decoration-color: rgba(163, 20, 29, 0.6);
    color: #fff;
    font-weight: 600;
    font-size: 16px;
}

.contact:hover{
    text-decoration: underline;
}

/* ===================== */
/* Responsive fine-tune   */
/* ===================== */
@media (max-width: 420px){
    .social-btn{ width: 68px; height: 68px; }
    .card{ grid-template-columns: 96px 1fr; border-radius: 46px; }
    .silhouette--westsrk{ width: 56px; height: 86px; }
    .card__content{ padding-right: 42px; }
}

@media (max-height: 740px){
    .page{ gap: 8px; }
    .social{ margin: 10px 0; }
    .cards{ gap: 8px; }
    .card--big{ min-height: 96px; }
}

/* =========================
   Gallery page (mobile-first, glass)
   ========================= */

.page--gallery{
    min-height: 100svh;
    max-height: none;
    justify-content: flex-start;
}

/* Enable vertical scroll only on gallery page (landing stays no-scroll) */
body:has(.page--gallery){
    overflow-y: auto;
    align-items: flex-start;
}

body:has(.page--gallery) .page{
    max-height: none;
}

/* Botón volver en esquina */
.gallery-back{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.20);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

.gallery-back--corner{
    position: fixed;
    top: calc(env(safe-area-inset-top) + 12px);
    left: 14px;
    z-index: 60;
}

#backToEvents.gallery-back--corner{
    top: calc(env(safe-area-inset-top) + 12px);
}

/* Área principal */
.gallery{
    width: min(980px, 100%);
    padding: 0 18px 28px;
    margin: 0 auto;
}

.gallery__empty{
    text-align: center;
    padding: 20px 10px;
    color: rgba(255,255,255,0.92);
}

/* =========================
   Lightbox (imagen centrada y nunca cortada)
   ========================= */
.lightbox[hidden]{ display: none; }

.lightbox{
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 14px;
}

.lightbox__backdrop{
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.70);
    border: 0;
    cursor: pointer;
}

.lightbox__panel{
    position: relative;
    width: min(96vw, 980px);
    max-height: 90vh;
    min-height: 0;

    border-radius: 18px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    display: grid;
    grid-template-rows: 56px 1fr 64px;
    overflow: hidden;
    z-index: 1;
}

.lightbox__top{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px;
}

.lightbox__close{
    width: 40px;
    height: 40px;
    border-radius: 14px;

    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(0,0,0,0.28);
    color: rgba(255,255,255,0.95);

    display: grid;
    place-items: center;

    cursor: pointer;

    transition:
            transform 0.18s ease,
            background-color 0.18s ease,
            box-shadow 0.18s ease,
            border-color 0.18s ease;
}

/* Hover */
.lightbox__close:hover{
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.38);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

/* Click / tap */
.lightbox__close:active{
    transform: translateY(0) scale(0.94);
    box-shadow: 0 3px 10px rgba(0,0,0,0.28);
}

/* Accesibilidad teclado */
.lightbox__close:focus-visible{
    outline: none;
    box-shadow:
            0 0 0 2px rgba(255,255,255,0.95),
            0 0 0 5px rgba(0,0,0,0.6);
}

.lightbox__nav{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 44px;
    height: 44px;

    border: none;
    background: none;

    color: rgba(255,255,255,0.92);
    cursor: pointer;

    font-size: 32px;
    line-height: 1;

    display: grid;
    place-items: center;
    z-index: 2;

    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.lightbox__nav:hover{
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.lightbox__nav:active{
    transform: translateY(-50%) scale(0.95);
}

.lightbox__nav:disabled{
    opacity: 0.25;
    cursor: default;
    transform: translateY(-50%);
}

.lightbox__figure{
    margin: 0;
    min-height: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 8px;
    padding: 12px 56px;
}

.lightbox__img{
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;

    object-fit: contain;
    border-radius: 14px;
    display: block;
}

.lightbox__actions{
    display: grid;
    place-items: center;
    padding: 12px;

    background: linear-gradient(
            to top,
            rgba(0,0,0,0.45),
            rgba(0,0,0,0)
    );
}

.lightbox__download{
    padding: 10px 18px;
    border-radius: 999px;

    font-weight: 700;
    text-decoration: none;

    color: rgba(255,255,255,0.95);
    background: rgba(163, 20, 29, 0.28);
    border: 1px solid rgba(163, 20, 29, 0.45);

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    cursor: pointer;

    transition:
            transform 0.18s ease,
            background-color 0.18s ease,
            box-shadow 0.18s ease;
}

/* Hover (desktop) */
.lightbox__download:hover{
    background: rgba(163, 20, 29, 0.45);
    transform: translateY(-2px);
    box-shadow:
            0 6px 18px rgba(0,0,0,0.35),
            0 0 0 2px rgba(163,20,29,0.25);
}

/* Click / tap */
.lightbox__download:active{
    transform: translateY(0) scale(0.96);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* Accesibilidad teclado */
.lightbox__download:focus-visible{
    outline: none;
    box-shadow:
            0 0 0 3px rgba(255,255,255,0.9),
            0 0 0 6px rgba(163,20,29,0.45);
}

@media (max-width: 420px){
    .lightbox__figure{ padding: 10px 48px; }
    .lightbox__panel{ grid-template-rows: 56px 1fr 68px; }
}

/* =========================
   Gallery v2: selector (rail) + masonry grid
   ========================= */

.gallery__view{
    width: 100%;
}

/* --- Events rail (horizontal, snap) --- */
.events-rail{
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 78vw);
    gap: 14px;

    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;

    padding: 6px 4px 14px;
    margin: 0 -4px;
}

@media (min-width: 520px){
    .events-rail{ grid-auto-columns: 320px; }
}

.events-rail::-webkit-scrollbar{ height: 8px; }
.events-rail::-webkit-scrollbar-thumb{
    background: rgba(255,255,255,0.18);
    border-radius: 999px;
}

.event-card{
    scroll-snap-align: center;
    padding: 0;
    cursor: pointer;
    text-align: left;
    color: inherit;

    height: clamp(220px, 44vh, 360px);
    border-radius: 22px;

    background:
            linear-gradient(180deg, rgba(0,0,0,0.00), rgba(0,0,0,0.55)),
            rgba(255,255,255,0.06);

    border: 1px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    box-shadow: 0 16px 38px rgba(0,0,0,0.35);
    overflow: hidden;
    position: relative;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.event-card::before{
    content: "";
    position: absolute;
    inset: 0;
    background: var(--event-bg, none);
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
    filter: saturate(1.05);
}

.event-card::after{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.60));
}

.event-card > *{
    position: relative;
    z-index: 1;
}

.event-card:hover{
    transform: translateY(-2px);
    border-color: rgba(163,20,29,0.35);
}

.event-card:focus-visible{
    outline: 2px solid rgba(255,255,255,0.9);
    outline-offset: 4px;
}

.event-card__badge{
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-weight: 800;
    font-size: 0.9rem;
}

.event-card__footer{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 14px 12px;
}

.event-card__title{
    margin: 0;
    font-weight: 900;
    font-size: 1.25rem;
    line-height: 1.05;
}

.event-card__meta{
    margin: 6px 0 0;
    font-weight: 700;
    opacity: 0.92;
    font-size: 0.95rem;
}

.event-card.is-active{
    border-color: rgba(163,20,29,0.55);
    box-shadow:
            0 18px 44px rgba(0,0,0,0.38),
            0 0 0 3px rgba(163,20,29,0.22);
}

/* --- Photos header --- */
.photos-head{
    width: 100%;
    margin: 0 auto 10px;
    padding: 0 2px;
    text-align: left;
}

.photos-head__title{
    margin: 0;
    font-size: clamp(1.4rem, 4.2vw, 2rem);
    font-weight: 900;

    color: rgba(255, 255, 255, 0.92);

    -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.45);

    text-shadow:
            0 2px 6px rgba(0,0,0,0.55),
            0 10px 28px rgba(0,0,0,0.65);

    letter-spacing: 0.01em;
}

.photos-head__meta{
    margin: 6px 0 0;
    opacity: 0.9;
    font-weight: 600;
}

/* --- Irregular grid (masonry-ish) --- */
.photos-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}

@media (min-width: 520px){
    .photos-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.tile{
    padding: 0;
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden;

    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow: 0 12px 28px rgba(0,0,0,0.30);
    transition: transform 0.18s ease, border-color 0.18s ease;
    position: relative;
}

.tile:hover{
    transform: translateY(-2px);
    border-color: rgba(163,20,29,0.35);
}

.tile__img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Size variants (irregular but consistent) */
.tile--big{ grid-column: span 2; grid-row: span 2; }
.tile--wide{ grid-column: span 2; }
.tile--tall{ grid-row: span 2; }

@media (max-width: 360px){
    .tile--big{ grid-row: span 1; }
}

/* Vista de eventos: centra verticalmente el contenido */
body:has(#eventsView:not([hidden])) .page--gallery{
    justify-content: center;
}

/* Vista de fotos: se mantiene arriba (scroll) */
body:has(#photosView:not([hidden])) .page--gallery{
    justify-content: flex-start;
}

/* Reserva espacio superior para que el logo/títulos nunca queden debajo de botones fixed */
body:has(.page--gallery) .hero{
    padding-top: calc(env(safe-area-inset-top) + 54px);
}

/* =========================
   Gallery: más ancho en desktop
   ========================= */

@media (min-width: 900px){
    .page--gallery{
        width: min(1100px, 94vw);
    }

    .page--gallery .gallery{
        width: 100%;
        max-width: 1100px;
    }

    .events-rail{
        grid-auto-columns: 360px;
        margin: 0 -4px;

        -webkit-mask-image: -webkit-linear-gradient(
                left,
                transparent 0,
                rgba(0,0,0,1) 56px,
                rgba(0,0,0,1) calc(100% - 56px),
                transparent 100%
        );
        mask-image: linear-gradient(
                to right,
                transparent 0,
                rgba(0,0,0,1) 56px,
                rgba(0,0,0,1) calc(100% - 56px),
                transparent 100%
        );
    }

    .photos-grid{
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 420px){
    .events-rail{
        -webkit-mask-image: -webkit-linear-gradient(
                left,
                transparent 0,
                rgba(0,0,0,1) 34px,
                rgba(0,0,0,1) calc(100% - 34px),
                transparent 100%
        );
        mask-image: linear-gradient(
                to right,
                transparent 0,
                rgba(0,0,0,1) 34px,
                rgba(0,0,0,1) calc(100% - 34px),
                transparent 100%
        );
    }
}

@media (min-width: 1200px){
    .page--gallery{
        width: min(1280px, 92vw);
    }

    .page--gallery .gallery{
        max-width: 1280px;
    }

    .events-rail{
        grid-auto-columns: 420px;
    }

    .photos-grid{
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* Botón compartir (cards del selector de eventos) */
.event-card__share{
    position: absolute;
    right: 12px;
    bottom: 12px;

    width: 38px;
    height: 38px;
    border-radius: 12px;

    display: grid;
    place-items: center;

    color: rgba(255,255,255,0.9);
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.18);

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    cursor: pointer;
    z-index: 3;

    transition: transform 0.2s ease, background 0.2s ease;
}

.event-card__share:hover{
    background: rgba(163,20,29,0.75);
    transform: scale(1.05);
}

.event-card__share.is-copied{
    background: rgba(30,180,90,0.8);
}

@media (max-height: 500px){
    body:not(:has(.page--gallery)){
        overflow-y: auto;
        align-items: flex-start;
    }

    .page{
        max-height: none;
    }
}