/* ═════════════════════════════════════════════════════════════════════════════
   GALERÍA

   Bucle de fotos a pantalla completa (assets/js/gallery.js). La página no se
   desplaza. El visor a pantalla completa está en viewer.css.
   ═════════════════════════════════════════════════════════════════════════════ */

.gallery-viewport {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    pointer-events: none;
    /* El gesto táctil lo interpreta el bucle, no el navegador. */
    touch-action: none;
    overflow: hidden;
}

.gallery-center-text {
    font-family: var(--tatc-font-sans);
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--text-color);
    z-index: 10;
    pointer-events: auto;
    text-align: center;
    margin: 0;
    transition: color var(--theme-transition);
    will-change: opacity, filter;
}

#gallery-items-container {
    position: absolute;
    inset: 0;
}

.gallery-item {
    /* Tamaño y posición los pone gallery.js (cada foto con su tamaño, dentro de
       su celda). Solo cambian opacidad y desenfoque: nada de escala. */
    position: absolute;
    object-fit: cover;
    opacity: 0;
    visibility: hidden;
    will-change: opacity, filter;
    pointer-events: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    z-index: 5;
    cursor: pointer;
    user-select: none;
    -webkit-user-drag: none;
}
