/* /css/lightbox.css - Ambient Pixels Lightbox Component */
/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 2rem;
  box-sizing: border-box;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-height: 80vh;
  max-width: 100%;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease;
}

.lightbox-content img:hover {
  transform: scale(1.01);
}

.lightbox-caption {
  color: #fff;
  padding: 1rem;
  text-align: center;
  font-size: 1.1rem;
  margin-top: 1rem;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 4px;
  max-width: 100%;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: #fff;
  font-size: 2.5rem;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
}

.lightbox-close:hover {
  color: #4bcaff;
  transform: rotate(90deg);
  background: rgba(0, 0, 0, 0.8);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  padding: 1.5rem;
  user-select: none;
  transition: all 0.2s ease;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
}

.lightbox-nav:hover {
  color: #4bcaff;
  opacity: 1;
  background: rgba(0, 0, 0, 0.7);
}

.lightbox-nav.prev {
  left: 2rem;
}

.lightbox-nav.next {
  right: 2rem;
}

/* Loading spinner */
.lightbox-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top: 3px solid #4bcaff;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Media query for mobile */
@media (max-width: 768px) {
  .lightbox {
    padding: 1rem;
  }
  
  .lightbox-nav {
    font-size: 2rem;
    width: 3rem;
    height: 3rem;
    padding: 0.5rem;
  }
  
  .lightbox-close {
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    width: 2rem;
    height: 2rem;
  }
  
  .lightbox-nav.prev {
    left: 0.5rem;
  }
  
  .lightbox-nav.next {
    right: 0.5rem;
  }
}

/* Fade in animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-content img {
  animation: fadeIn 0.3s ease-out;
}
