/* ============================================================
   Barbairos — Lightbox (imagens ampliadas)
   ============================================================ */

.lightbox {
  position: fixed; inset: 0; z-index: 300; display: none;
  align-items: center; justify-content: center;
  background: rgba(8, 6, 4, .95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lightbox.open { display: flex; }

.lightbox-figure { display: flex; flex-direction: column; align-items: center; max-width: min(92vw, 920px); gap: 16px; }
.lightbox-figure img {
  max-width: 92vw; max-height: 78vh; border-radius: 12px;
  box-shadow: 0 40px 100px rgba(0,0,0,.7), 0 0 0 1px var(--line-strong);
}
.lightbox-figure figcaption { color: var(--muted); font-style: italic; font-size: .95rem; text-align: center; }

.lightbox-close {
  position: absolute; top: 18px; right: 22px;
  background: none; border: 0; color: var(--text);
  font-size: 2.6rem; line-height: 1; padding: 6px;
  transition: color .2s ease, transform .2s ease;
}
.lightbox-close:hover { color: var(--gold); transform: rotate(90deg); }

.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(212,175,106,.1); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 50%;
  width: 54px; height: 54px; font-size: 1.9rem; line-height: 1;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.lightbox-nav:hover { background: var(--gold); color: #161009; border-color: transparent; }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

@media (max-width: 620px) {
  .lightbox-nav { width: 46px; height: 46px; font-size: 1.5rem; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}
