/* DLP Arena lightbox */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(10, 12, 18, 0.88);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lb-fade 120ms ease-out;
}
#lightbox.hidden { display: none; }

@keyframes lb-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

#lightbox-stage {
  position: relative;
  max-width: 92vw;
  max-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
#lightbox-stage.lb-pannable { cursor: grab; }
#lightbox-stage.lb-grabbing { cursor: grabbing; }

#lightbox-img {
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  transition: transform 90ms ease-out;
  user-select: none;
  -webkit-user-drag: none;
}
#lightbox-img.lb-zoomed { transition: none; }

.lb-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: background 120ms;
}
.lb-tool:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }
.lb-tool:focus-visible { outline: 2px solid #60a5fa; outline-offset: 2px; }

#lightbox-topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #e5e7eb;
  pointer-events: none;
}
#lightbox-topbar > * { pointer-events: auto; }
#lightbox-caption {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.875rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
#lightbox-counter {
  font-size: 0.8rem;
  color: #cbd5e1;
  font-variant-numeric: tabular-nums;
}
#lightbox-zoomlevel {
  font-size: 0.75rem;
  color: #cbd5e1;
  min-width: 3.2rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
}
#lightbox-prev { left: 1rem; }
#lightbox-next { right: 1rem; }

.lb-hint {
  position: absolute;
  bottom: 0.6rem;
  left: 0; right: 0;
  text-align: center;
  font-size: 0.7rem;
  color: rgba(226, 232, 240, 0.55);
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
