/* Lightbox 2.0 — Immersive Gallery */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 13, 26, 0.98);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.lightbox-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
}

.lightbox-img-wrapper {
  position: relative;
  max-width: 85vw;
  max-height: 80vh;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, 0.2);
}

.lightbox-content img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  transition: opacity 0.18s ease;
}

/* UI Controls */
.lightbox-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 40px;
  pointer-events: none;
  z-index: 10;
}

.lightbox-btn {
  pointer-events: auto;
  background: rgba(4, 19, 35, 0.5);
  border: 1px solid rgba(232, 244, 248, 0.1);
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.lightbox-btn:hover {
  background: var(--accent);
  color: #020d1a;
  box-shadow: 0 0 20px var(--accent);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  z-index: 20;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-counter {
  position: absolute;
  bottom: 30px;
  color: rgba(232, 244, 248, 0.6);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.screenshot-card {
  transition: transform 0.3s ease;
}

.screenshot-card:hover {
  transform: scale(1.02);
}

.screenshot-card img {
  cursor: zoom-in;
}

@media (max-width: 768px) {
  .lightbox-nav {
    padding: 0 15px;
  }
  .lightbox-btn {
    width: 44px;
    height: 44px;
  }
}
