/* --- LIGHTBOX / MODAL --- */

.lightbox-overlay {
  position: fixed !important;
  inset: 0;
  width: 100vw;
  height: 100vh;

  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);

  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 999999;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  transform: scale(0.8);
  transition: transform 0.35s ease;
}

.lightbox-overlay.active .lightbox-content {
  transform: scale(1);
}

.lightbox-content img,
.lightbox-content video {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}

/* --- Close Button --- */

.lightbox-close {
  position: absolute;
  top: -20px;
  right: -20px;

  font-size: 34px;
  font-weight: 300;
  color: rgb(231, 231, 231);

  cursor: pointer;
  transition: opacity 0.25s ease, transform 0.25s ease;
  padding: 0 8px;

  line-height: 1;
  user-select: none;
}

.lightbox-close:hover {
  opacity: 0.6;
  transform: scale(1.1);
}
