/**
 * CRUX VISUALS — RENDER LIGHTBOX
 * Fullscreen viewer for Selected Projects and Portfolio renders.
 * Intentionally not used by the marquee.
 */
.render-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  padding: 48px;
}
.render-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.render-lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.97);
  transition: transform 0.25s ease;
}
.render-lightbox.is-open .render-lightbox__img {
  transform: scale(1);
}
.render-lightbox__video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.97);
  transition: transform 0.25s ease;
}
.render-lightbox.is-open .render-lightbox__video {
  transform: scale(1);
}
.render-lightbox__img[hidden],
.render-lightbox__video[hidden] {
  display: none;
}
/* Casual-download deterrents (not real DRM): no drag-out, no text/image
   selection, no browser "grab" cursor hinting that dragging is possible. */
.render-lightbox__img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.render-lightbox__video {
  user-select: none;
}
.render-lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(237, 230, 214, 0.4);
  background: transparent;
  color: var(--cream);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.render-lightbox__close:hover {
  background: rgba(237, 230, 214, 0.12);
  border-color: var(--cream);
}
body.render-lightbox-open {
  overflow: hidden;
}
.case-item__media,
.work-card {
  cursor: pointer;
}
@media (max-width: 720px) {
  .render-lightbox { padding: 20px; }
  .render-lightbox__close { top: 12px; right: 14px; width: 40px; height: 40px; }
}
