/* ============================================================
   MechaPaint - lightbox.css
   Fullscreen viewer for card images (.uv-card-img).
   Close: X button, Escape, Space, Enter, or click the backdrop.
   ============================================================ */

.uv-card-img, .showcase-item img { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(5, 7, 11, 0.92);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.lightbox.is-open { opacity: 1; }

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(13, 16, 23, 0.8);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.lightbox-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

body.lightbox-open { overflow: hidden; }
