/* Lapisan overlay */
.lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.lb-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Figur lightbox */
.lb-fig {
  position: relative;
  max-width: 96vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-fig img {
  max-width: 96vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
  border-radius: 10px;
  background: #0b0b0b;
}

/* Caption */
.lb-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2.2rem;
  text-align: center;
  color: #e5e7eb;
  font-size: .95rem;
}

/* Tombol navigasi */
.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  background: rgba(17,24,39,.7);
  color: #fff;
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
  user-select: none;
}
.lb-close:hover,
.lb-prev:hover,
.lb-next:hover {
  background: rgba(17,24,39,.9);
  transform: scale(1.04);
}
.lb-close { top: -44px; right: 0; }
.lb-prev  { left: -48px; top: 50%; transform: translateY(-50%); }
.lb-next  { right: -48px; top: 50%; transform: translateY(-50%); }
@media (max-width: 768px) {
  .lb-prev  { left: 6px;  }
  .lb-next  { right: 6px; }
  .lb-close { top: -44px; right: 6px; }
}

/* Kunci scroll saat aktif */
body.lb-open { overflow: hidden; }
