/* ============================================================
   LIGHTBOX.CSS — fullscreen image modal
   ============================================================ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: rgba(0, 0, 0, 0.9);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 900px;
  max-height: 80vh;
  flex: 1;
  min-height: 0;
}

.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  transition: background var(--transition-fast);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 56px;
  color: #fff;
  transition: opacity var(--transition-fast);
}

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

.lightbox-arrow--prev { left: 0; }
.lightbox-arrow--next { right: 0; }

.lightbox-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.lightbox-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.lightbox-dot.active {
  background: #fff;
}

.lightbox-thumbs {
  display: flex;
  gap: var(--space-sm);
  max-width: 100%;
  overflow-x: auto;
  padding: 2px;
}

.lightbox-thumb {
  width: 48px;
  height: 64px;
  object-fit: cover;
  opacity: 0.5;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity var(--transition-fast);
}

.lightbox-thumb.active {
  opacity: 1;
  outline: 2px solid #fff;
}
