/**
 * HUGOCIB - SIMPLE GALLERY LIGHTBOX
 * Minimal image slideshow with left/right navigation only
 */

/* Lightbox overlay */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
  display: flex;
  opacity: 1;
  align-items: center;
  justify-content: center;
}

/* Lightbox container */
.lightbox-container {
  position: relative;
  width: 90%;
  height: 90%;
  max-width: 1800px;
  max-height: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* Image and info wrapper */
.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  max-height: 100%;
}

/* Main image */
.lightbox-image {
  max-width: 100%;
  max-height: calc(100% - 30px);
  object-fit: contain;
  display: block;
}

/* Image location info */
.lightbox-info {
  width: 100%;
  display: flex;
  color: white;
  min-height: 20px;
  padding: 5px 15px;
  gap: 10px;
  align-items: center;
}

.lightbox-info-left {
  width: 100%;
}

.lightbox-location {
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.85;
  line-height: 1.2;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Navigation arrows */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* Close button */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Loading indicator */
.lightbox-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 18px;
}

.lightbox-loading::after {
  content: '';
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: block;
  margin: 10px auto 0;
}

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

/* Mobile responsiveness */
@media (max-width: 768px) {
  .lightbox-container {
    width: 100%;
    height: 100%;
  }
  
  .lightbox-image {
    max-height: calc(100% - 30px);
  }
  
  .lightbox-nav {
    display: none;
  }
  
  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
  
  .lightbox-location {
    font-size: 1rem;
    padding-left: 10px;
  }
}