/**
 * Component: reveal-gallery
 * Gallery a immagine singola: frame impilati, transizione "reveal" a clip-path.
 * Classi globali (componente condiviso): reveal-gallery, -track, -slide, -nav, -btn, -counter.
 */

.reveal-gallery { position: relative; }

.reveal-gallery-track {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.reveal-gallery-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    -webkit-clip-path: inset(0 0 0 0);
    clip-path: inset(0 0 0 0);
}
.reveal-gallery-slide.is-active { opacity: 1; visibility: visible; }

.reveal-gallery-slide picture { display: block; width: 100%; height: 100%; }
.reveal-gallery-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Leggero zoom dell'immagine in entrata (effetto reveal vivo) */
.reveal-gallery-slide.is-entering img {
    animation: reveal-gallery-zoom 1100ms cubic-bezier(.66, 0, .2, 1);
}
@keyframes reveal-gallery-zoom {
    from { transform: scale(1.08); }
    to   { transform: scale(1); }
}

/* Navigazione: frecce tonde bianche + contatore, in basso a destra */
.reveal-gallery-nav {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 10px;
}
/* Variante verticale: frecce su/giù impilate */
.reveal-gallery-nav--vertical { flex-direction: column; }
.reveal-gallery-btn {
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--website-color-white, #fff);
    color: #1C1917;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}
.reveal-gallery-btn:hover { transform: translateY(-1px); }
.reveal-gallery-btn:focus-visible { outline: 2px solid var(--website-color-white, #fff); outline-offset: 3px; }
.reveal-gallery-btn svg { width: 18px; height: 18px; display: block; }
.reveal-gallery-counter {
    min-width: 44px;
    height: 44px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    color: var(--website-color-white, #fff);
}

@media (prefers-reduced-motion: reduce) {
    .reveal-gallery-slide.is-entering img { animation: none; }
}
