/* vrv-zoom.css — zoom "girandola" su foto e maserati
 * Coppia di vrv-zoom.js. Caricato in visualizza_post.php e _draft.php
 */

/* Overlay full-screen scuro: la "scena" dello zoom */
.vrv-zoom {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center,
              rgba(0, 0, 0, .80), rgba(0, 0, 0, .94));
  opacity: 0;
  transition: opacity .3s ease;
  cursor: zoom-out;
  -webkit-tap-highlight-color: transparent;
  /* da chiuso non deve intercettare i click sotto di sé */
  pointer-events: none;
}

.vrv-zoom.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* La foto ingrandita: grande al centro (~90%), con alone luminoso */
.vrv-zoom-img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .65),
              0 0 60px rgba(255, 210, 130, .18),
              0 0 0 1px rgba(255, 255, 255, .08);
  transform-origin: 50% 50%;
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
  user-select: none;
  -webkit-user-drag: none;
}

/* Contatore "n / tot" per i maserati */
.vrv-zoom-count {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font: 600 14px/1 var(--vv-content-font, system-ui, sans-serif);
  color: #fff;
  background: rgba(0, 0, 0, .45);
  padding: 6px 13px;
  border-radius: 999px;
  letter-spacing: .03em;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
}

.vrv-zoom.is-open .vrv-zoom-count {
  opacity: .9;
}

/* Affordance: si capisce che foto e maserati sono ingrandibili */
.vv-post-content img,
.vv-post-content .vv-slot--carousel {
  cursor: zoom-in;
}

/* Immagini-link: lascia il cursore del link */
.vv-post-content a img {
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .vrv-zoom-img {
    transition: opacity .25s ease !important;
  }
}
