/* ============================
   LIGHTBOX
   ============================ */

#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 9999;
}

#lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

#lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  width: auto;
  height: auto;
}

.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  color: white;
  cursor: pointer;
  user-select: none;
  padding: 20px;
  z-index: 10;
}

.lb-left {
  left: 20px;
}

.lb-right {
  right: 20px;
}

.lb-arrow:hover {
  opacity: 0.7;
}

/* Close & Fullscreen Buttons */
.lb-close, .lb-fullscreen {
  position: absolute;
  top: 20px;
  color: white;
  cursor: pointer;
  user-select: none;
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.lb-close {
  right: 20px;
  font-size: 36px;
  width: 44px;
  height: 44px;
}

.lb-fullscreen {
  right: 74px;
  font-size: 20px;
  width: 44px;
  height: 44px;
}

.lb-close:hover, .lb-fullscreen:hover {
  opacity: 0.7;
}