/* ── Lightbox — Industrial Theme ──────────────────────────────── */
/* Structural rules live in style.css (#image-lightbox, buttons, etc.)
   This file provides supplemental polish and hover-preview styles. */

/* Gallery horizontal scrollbar */
#lightbox-gallery::-webkit-scrollbar {
  height: 4px;
}
#lightbox-gallery::-webkit-scrollbar-track {
  background: transparent;
}
#lightbox-gallery::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
}

/* Optional caption injected by JS */
#lightbox-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  pointer-events: none;
  white-space: nowrap;
}

/* ── Image Hover Preview ──────────────────────────────────────── */
#image-hover-preview {
  display: none;
  position: fixed;
  z-index: 10000;
  pointer-events: none;
  border-radius: var(--radius-md, 10px);
  box-shadow: var(--shadow-lg, 0 12px 28px rgba(0,0,0,0.35));
  background: var(--bg-elevated, #fff);
  border: 1px solid var(--border, #dde2ee);
  padding: 4px;
  max-width: 300px;
  max-height: 300px;
  transition: opacity 100ms ease-out;
}

#image-hover-preview.active {
  display: block;
}

#image-hover-preview img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-sm, 6px);
  object-fit: contain;
}
