.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 10, 15, 0.95);
  backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
  overflow: hidden; 
}

.lightbox-content {
  max-width: 100%;
  max-height: 100%;
  overflow: auto; 
  touch-action: pan-x pan-y pinch-zoom;
  -ms-touch-action: pan-x pan-y pinch-zoom;
  -webkit-overflow-scrolling: touch;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-img {
  max-width: 95%;
  max-height: 95%;
  border-radius: 10px;
  border: 1px solid #00ffff88;
  box-shadow: 0 0 25px #00ffff55;
  animation: popIn 0.3s ease;
  cursor: zoom-out;
  object-fit: contain;
  user-select: none;
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.8rem;
  font-size: 2.5rem;
  color: #00ffffcc;
  cursor: pointer;
  text-shadow: 0 0 15px #00ffff99;
  transition: all 0.2s ease;
  font-family: 'Orbitron', sans-serif;
  z-index: 10000;
}

.lightbox-close:hover {
  color: #ffffff;
  text-shadow: 0 0 25px #00ffff;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
