.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 6, 18, 0.92);
  backdrop-filter: blur(6px);
  padding: 32px;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: min(90vw, 760px);
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.lightbox-content img,
.lightbox-content video {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: block;
}

.lightbox-content video {
  width: auto;
  height: 85vh;
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 26px;
  z-index: 201;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: rgba(23, 20, 48, 0.8);
  color: var(--color-text);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease;
}

.lightbox-close:hover {
  background-color: var(--color-gold);
  color: #19140a;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 201;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: rgba(23, 20, 48, 0.8);
  color: var(--color-text);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease;
}

.lightbox-nav:hover {
  background-color: var(--color-gold);
  color: #19140a;
}

.lightbox-prev {
  left: 22px;
}

.lightbox-next {
  right: 22px;
}

.lightbox-caption {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-align: center;
  max-width: 90vw;
}

@media screen and (max-width: 700px) {
  .lightbox {
    padding: 16px;
  }

  .lightbox-content video {
    height: 75vh;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .lightbox-close {
    top: 14px;
    right: 14px;
  }

  .lightbox-caption {
    bottom: 10px;
    font-size: 0.8rem;
  }
}