/* ── Image lightbox ───────────────────────────────── */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lightbox-fade-in 0.15s ease;
}
@keyframes lightbox-fade-in {
  from { opacity: 0 }
  to { opacity: 1 }
}
.lightbox-content {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.lightbox-image {
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
  touch-action: none;
  transition: transform 0.1s ease-out;
  user-select: none;
}
.lightbox-actions {
  display: flex;
  gap: 8px;
}
.lightbox-btn {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Brief "!" shown in place of the download icon when the fetch fails. */
.lightbox-dl-err {
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  color: #ff6b6b;
}
