/* ==========================================================================
   lightbox.css — Modal Lightbox (Play Reel)
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  display: none;
  align-items: center;
  justify-content: center;
  animation: fade-in 0.3s var(--ease);
}

.lightbox.is-open {
  display: flex;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  cursor: none;
}

.lightbox__content {
  position: relative;
  width: 90vw;
  max-width: 1200px;
  aspect-ratio: 16/9;
  z-index: 1;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--black);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
  animation: scale-in 0.4s var(--ease);
}

.lightbox__content iframe,
.lightbox__content video {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.lightbox__close {
  position: fixed;
  top: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: var(--red);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  z-index: 1001;
  transition:
    background 0.3s var(--ease),
    transform 0.3s var(--ease);
  cursor: none;
}

.lightbox__close::before,
.lightbox__close::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 24px;
  background: var(--white);
  border-radius: 1px;
}

.lightbox__close::before {
  transform: rotate(45deg);
}

.lightbox__close::after {
  transform: rotate(-45deg);
}

.lightbox__close:hover {
  background: var(--red-hover);
  transform: rotate(90deg);
}

@media (max-width: 640px) {
  .lightbox__close {
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }

  .lightbox__content {
    width: 95vw;
  }
}
