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

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  background: rgba(0, 0, 0, 0.96);
}

.lightbox.active {
  display: block;
}

.lightbox-track {
  height: 100%;
  width: 100%;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-behavior: smooth;
  touch-action: pan-x;
}

.lightbox-track::-webkit-scrollbar {
  display: none;
}

.lightbox-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.lightbox-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.lightbox-swipe-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
  touch-action: pan-y;
}

.lightbox-top {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-end;
  padding: 0 12px;
  z-index: 3;
  pointer-events: none;
}

.lightbox-close {
  pointer-events: auto;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  cursor: pointer;
}

.lightbox-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  gap: 6px;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
}

.lightbox-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-dot.active {
  background: rgba(255, 255, 255, 0.92);
}