/* =========================================================
   BUA v2 — Lightbox
   Componente compartido por la galería de la home y la página
   /explora/galeria. Se carga en las dos para que sea el mismo
   componente, no dos copias parecidas.
   ========================================================= */

.v2-lightbox {
  position: relative;
  max-width: min(92vw, 1100px);
  border: 0;
  padding: 0;
  background: transparent;
}

.v2-lightbox::backdrop {
  background: rgba(6, 10, 16, .88);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.v2-lightbox img {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  margin: 0 auto;
  border-radius: 12px;
}

.v2-lightbox figcaption {
  padding: 10px 4px;
  color: #fff;
  font-size: .78rem;
  text-align: center;
}

.v2-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

/* Navegacion entre fotos: solo aparece si la pagina la pide. */
.v2-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  background: rgba(0, 0, 0, .5);
  color: #fff;
  cursor: pointer;
}

.v2-lightbox-nav:hover {
  background: rgba(0, 0, 0, .75);
}

.v2-lightbox-nav--prev { left: -18px; }
.v2-lightbox-nav--next { right: -18px; }

.v2-lightbox-counter {
  color: rgba(255, 255, 255, .7);
  font-size: .72rem;
  font-weight: 600;
}

@media (max-width: 640px) {
  .v2-lightbox-nav--prev { left: -6px; }
  .v2-lightbox-nav--next { right: -6px; }
  .v2-lightbox-close { top: -8px; right: -8px; }
}
