/* ============================================================
   GALERIA — tira de miniaturas (filmstrip) del visor PhotoSwipe.
   Se superpone en la parte inferior del lightbox (.pswp, appendTo:'root').
   El visor tiene fondo oscuro propio (no hereda las --color-* de la invitacion):
   acento neutro claro. Se carga en los DOS documentos donde abre el visor
   (vista publica /confirmar + documento padre del editor).
   ============================================================ */
.pswp__filmstrip {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;                 /* sobre la imagen; los controles del visor viven arriba */
    display: flex;
    gap: 8px;
    align-items: center;
    box-sizing: border-box;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;       /* Firefox */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0));
    animation: pswpFilmIn .35s ease both;   /* aparicion suave al abrir el visor */
    -webkit-user-select: none;
    user-select: none;
}
.pswp__filmstrip::-webkit-scrollbar { display: none; }   /* WebKit */

@keyframes pswpFilmIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.pswp__film-thumb {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 9px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    opacity: 0.5;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    transition: opacity .25s ease, transform .25s ease, box-shadow .25s ease;
}
.pswp__film-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;        /* el click lo maneja el <button> */
}
.pswp__film-thumb:hover { opacity: 0.85; }
.pswp__film-thumb.is-active {
    opacity: 1;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 0 2px #fff, 0 6px 16px -6px rgba(0, 0, 0, 0.7);
}
.pswp__film-thumb:focus-visible {
    opacity: 1;
    box-shadow: 0 0 0 2px #c9a96e;
}

/* Pantallas anchas: miniaturas un poco mayores y la tira centrada, no a lo ancho. */
@media (min-width: 768px) {
    .pswp__filmstrip {
        justify-content: center;
        flex-wrap: nowrap;
        padding-bottom: 14px;
    }
    .pswp__film-thumb { width: 60px; height: 60px; }
}
