/* ============================================================
   JN Carousel UI — Lightbox CSS
   v1.2.0
   ============================================================ */

.jnc-lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
.jnc-lightbox-overlay.is-open {
  display: flex;
}

/* ── Imagem ── */
.jnc-lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 6px;
  object-fit: contain;
  display: block;
  box-shadow: 0 4px 40px rgba(0,0,0,.6);
  transition: opacity .25s ease;
}

/* ── Legenda ── */
.jnc-lightbox-caption {
  position: fixed;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  color: #ddd;
  font-size: .9rem;
  text-align: center;
  max-width: 600px;
  padding: 6px 16px;
  margin: 0;
  pointer-events: none;
}

/* ── Botão fechar ── */
.jnc-lightbox-close {
  position: fixed;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 100001;
}
.jnc-lightbox-close:hover,
.jnc-lightbox-close:focus-visible {
  background: rgba(255,255,255,.28);
  outline: 2px solid #fff;
}

/* ── Navegação prev / next ── */
.jnc-lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 100001;
}
.jnc-lightbox-nav:hover,
.jnc-lightbox-nav:focus-visible {
  background: rgba(255,255,255,.28);
  outline: 2px solid #fff;
}
.jnc-lightbox-prev { left: 16px; }
.jnc-lightbox-next { right: 16px; }

/* ── Contador (ex: 2 / 7) ── */
.jnc-lightbox-counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.65);
  font-size: .85rem;
  pointer-events: none;
  white-space: nowrap;
}

/* ── Responsivo ── */
@media (max-width: 600px) {
  .jnc-lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  .jnc-lightbox-prev { left: 6px; }
  .jnc-lightbox-next { right: 6px; }
  .jnc-lightbox-img  { max-width: 96vw; }
}
