/* Lightbox CSS (native replacement for lity) */
.lightbox-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.92);
  justify-content: center;
  align-items: center;
  transition: opacity 0.2s;
  opacity: 0;
}
.lightbox-overlay.active {
  display: flex;
  opacity: 1;
}
.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 0 24px #000, 0 0 0 100vmax rgba(0, 0, 0, 0.92);
  border-radius: 4px;
  background: #111;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: lightbox-in 0.2s;
}
@keyframes lightbox-in {
  from {
    transform: scale(0.98);
    opacity: 0.7;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.lightbox-content img,
.lightbox-content video {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 4px;
  background: #222;
  margin: 0;
  box-shadow: 0 0 12px #000;
}
.lightbox-close {
  position: absolute;
  top: 0.5em;
  right: 0.7em;
  color: #fff;
  font-size: 2.2em;
  font-weight: bold;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
  text-shadow: 0 2px 8px #000;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.lightbox-close:hover {
  opacity: 1;
}
