/* Fullscreen lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(3, 10, 16, 0.92);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox.is-open { display: flex; }

.lb-figure {
  margin: 0;
  width: min(1200px, 92vw);
  height: min(78vh, 820px);
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 10px;
}

.lb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.03);
}

.lb-cap {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
}

.lb-cap b {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.lb-cap span {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
}

/* Controls */
.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 26px;
  line-height: 1;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.lb-close:hover,
.lb-prev:hover,
.lb-next:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.24);
}

.lb-close { top: 18px; right: 18px; font-size: 30px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* Mobile tweaks */
@media (max-width: 600px) {
  .lb-figure { height: 78vh; }
  .lb-prev, .lb-next { width: 40px; height: 40px; }
}