.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10000;
}

.lightbox.active {
  opacity: 1;
}

.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(10px);
}

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

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

#universal-lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.3s ease;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid #FF9800;
  color: #FF9800;
  font-size: 30px;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10002;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 15px rgba(255, 152, 0, 0.2);
}

.lightbox-close:hover {
  background: rgba(255, 152, 0, 0.9);
  color: white;
  transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.85);
  border: 2px solid #FF9800;
  color: #FF9800;
  font-size: 32px;
  padding: 20px 25px;
  cursor: pointer;
  border-radius: 12px;
  transition: all 0.3s ease;
  z-index: 10002;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 15px rgba(255, 152, 0, 0.2);
  opacity: 0.85;
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 152, 0, 0.9);
  color: white;
  transform: translateY(-50%) scale(1.1);
  opacity: 1;
}

.lightbox-info {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  background: rgba(0, 0, 0, 0.8);
  padding: 15px 25px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  max-width: 80%;
  margin-top: 20px;
}

.lightbox-info h3 {
  color: #FF9800;
  font-size: 1.3em;
  margin-bottom: 8px;
  text-shadow: 0 0 10px rgba(255, 152, 0, 0.3);
}

.lightbox-info p {
  color: #E0E0E0;
  font-size: 1em;
  margin-bottom: 10px;
  opacity: 0.9;
}

.lightbox-counter {
  font-size: 0.9em;
  color: #FF9800;
  margin-top: 5px;
}

.lightbox-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
}

.lightbox-loader.active {
  display: block;
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 152, 0, 0.3);
  border-top: 4px solid #FF9800;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .lightbox-prev,
  .lightbox-next {
    padding: 15px 20px;
    font-size: 28px;
  }
  
  .lightbox-prev {
    left: 15px;
  }
  
  .lightbox-next {
    right: 15px;
  }
  
  .lightbox-close {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
  
  .lightbox-info {
    padding: 10px 20px;
  }
  
  .lightbox-info h3 {
    font-size: 1.1em;
  }
  
  .lightbox-info p {
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  .lightbox-prev,
  .lightbox-next {
    padding: 12px 15px;
    font-size: 24px;
  }
  
  .lightbox-prev {
    left: 10px;
  }
  
  .lightbox-next {
    right: 10px;
  }
  
  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    font-size: 20px;
  }
  
  #universal-lightbox-image {
    max-height: 70vh;
  }
  
  .lightbox-info {
    bottom: 10px;
    padding: 8px 15px;
  }
}