/* Veltia · visor de fotos a pantalla completa (usa los colores de la página que lo carga) */
html.zv-abierto { overflow: hidden; }
.zv { position: fixed; inset: 0; z-index: 95; display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; grid-template-rows: 56px minmax(0, 1fr) auto auto;
  background: var(--surface, #fff); color: var(--ink, #0a0a0a);
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
.zv[hidden] { display: none !important; }
.zv-cerrar { grid-column: 3; grid-row: 1; align-self: center; justify-self: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--line, #e2e2e0); background: var(--surface, #fff); color: inherit; font-size: 18px; cursor: pointer; }
.zv-cuenta { grid-column: 2; grid-row: 1; align-self: center; justify-self: center; font-weight: 600; font-size: 14px; color: var(--muted, #5e6166); font-variant-numeric: tabular-nums; }
.zv-flecha { grid-row: 2; align-self: center; justify-self: center; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line, #e2e2e0);
  background: var(--surface, #fff); color: inherit; font-size: 30px; line-height: 1; cursor: pointer; }
.zv-ant { grid-column: 1; }
.zv-sig { grid-column: 3; }
.zv-flecha:hover, .zv-cerrar:hover { border-color: var(--ink, #0a0a0a); }
.zv.una .zv-flecha { visibility: hidden; }
.zv-escena { position: relative; grid-column: 2; grid-row: 2; overflow: hidden; touch-action: none; user-select: none; cursor: zoom-in; min-height: 0; }
.zv-lienzo { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transition: transform .25s ease; }
.zv-lienzo.ampliada { transform: scale(2.6); cursor: zoom-out; }
.zv-lienzo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; background: #fff; -webkit-user-drag: none; }
.zv-sprite { height: 100%; max-height: 100%; aspect-ratio: 1; max-width: 100%; background-color: #fff; background-repeat: no-repeat; background-size: 1000% 1000%; }
.zv-minis .zv-sprite { height: 100%; }
.zv-minis { grid-column: 1 / -1; grid-row: 3; display: flex; justify-content: center; gap: 8px; padding: 10px 16px 4px; overflow-x: auto; }
.zv-minis button { flex: none; width: 64px; height: 64px; padding: 0; border: 1.5px solid var(--line, #e2e2e0); border-radius: 8px; overflow: hidden; background: #fff; cursor: pointer; }
.zv-minis button[aria-pressed="true"] { border-color: var(--ink, #0a0a0a); }
.zv-minis img, .zv-minis .zv-sprite { width: 100%; height: 100%; object-fit: contain; display: block; }
.zv-ayuda { grid-column: 1 / -1; grid-row: 4; text-align: center; margin: 4px 16px 12px; font-size: 13px; color: var(--muted, #5e6166); }
@media (max-width: 620px) {
  .zv { grid-template-columns: 0 minmax(0, 1fr) 0; }
  .zv-flecha { display: none; }
  .zv-cerrar { grid-column: 2; justify-self: end; margin-right: 12px; }
}
@media (prefers-reduced-motion: reduce) { .zv-lienzo { transition: none; } }
