/* Lightbox Styles */
.flw-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(4, 7, 13, 0.9);
  backdrop-filter: blur(8px);
  display: none; /* Hidden by default */
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 40px;
}

.flw-lightbox.is-active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-caption {
  margin-top: 16px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  font-family: "Orbitron", sans-serif;
}

/* Controls */
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 28px;
  transition: background 0.2s, transform 0.2s;
  z-index: 10001;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 24px;
  transition: background 0.2s, transform 0.2s, opacity 0.2s;
  z-index: 10001;
  user-select: none;
}

.lightbox-nav:hover {
  background: var(--accent);
  border-color: var(--accent-strong);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .flw-lightbox {
    padding: 20px;
  }
  
  .lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
  
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  
  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
}
