/* MLT Lightbox — full-screen enlarged screenshot viewer. */

.mlt-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(3, 5, 10, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.mlt-lightbox.is-open {
  display: flex;
  opacity: 1;
  animation: mlt-lightbox-in 0.22s ease;
}

@keyframes mlt-lightbox-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.mlt-lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 14px;
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  cursor: zoom-out;
  transform: scale(0.97);
  transition: transform 0.22s ease;
}

.mlt-lightbox.is-open .mlt-lightbox__img {
  transform: scale(1);
}

.mlt-lightbox__close {
  position: absolute;
  top: clamp(12px, 2vw, 24px);
  right: clamp(12px, 2vw, 24px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.mlt-lightbox__close:hover,
.mlt-lightbox__close:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  transform: scale(1.05);
  outline: none;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .mlt-lightbox,
  .mlt-lightbox.is-open,
  .mlt-lightbox__img,
  .mlt-lightbox__close { transition: none; animation: none; }
}
