/* Visor de imágenes propio (js/lightbox.js) */
.lightbox {
  position: fixed; inset: 0; z-index: 100000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(17, 17, 17, .94);
  opacity: 0; transition: opacity .2s;
  touch-action: pan-y pinch-zoom;
}
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox__stage { position: relative; max-width: 92vw; max-height: 86vh; overflow: hidden; }
.lightbox__img {
  display: block; max-width: 92vw; max-height: 86vh; width: auto; height: auto;
  transition: transform .25s ease; cursor: zoom-in; user-select: none;
}
.lightbox.is-zoomed .lightbox__img { transform: scale(2); cursor: zoom-out; }
.lightbox__btn {
  position: absolute; z-index: 2; border: 0; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(30, 30, 30, .6); color: #fff;
  font: 400 28px/48px var(--font-heading); text-align: center;
}
.lightbox__btn:hover, .lightbox__btn:focus-visible { background: rgba(60, 60, 60, .9); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__counter {
  position: absolute; top: 24px; left: 24px;
  color: #ddd; font: 500 14px/1 var(--font-heading); letter-spacing: .05em;
}
.lightbox__caption { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: #eee; font: 400 14px/1.4 var(--font-heading); padding: 0 60px; }
.lightbox--single .lightbox__prev, .lightbox--single .lightbox__next, .lightbox--single .lightbox__counter { display: none; }
body.has-lightbox { overflow: hidden; }
@media (max-width: 767px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; transform: none; }
}
