/**
 * =====================================================
 * GALLERY LIGHTBOX COMPONENT STYLES
 * =====================================================
 * Modern 2025 Design
 * Nutzt das zentrale Design-System (design-system.css)
 * =====================================================
 */

/* Modal Backdrop */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  overflow: hidden;
}

.modal.show {
  display: block;
}

/* Modal Content Container */
.modal-content {
  width: 100%;
  height: 100%;
  margin-top: -40px;
  background-color: transparent;
}

/* Slides */
.mySlides {
  display: none;
  width: 100%;
  height: 100%;
  background-color: transparent;
}

.mySlides.active {
  display: block;
}

.mySlides img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Close Button */
.lightbox-close {
  position: fixed;
  top: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10001;
  backdrop-filter: blur(10px);
}

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

/* Navigation Buttons */
.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10001;
  backdrop-filter: blur(10px);
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

/* Image Counter */
.lightbox-counter {
  position: fixed;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: var(--font-size-counter);
  font-weight: 500;
  z-index: 10001;
  backdrop-filter: blur(10px);
}

/* Gallery thumbnail container */
.gallery-thumbnail-container {
  width: 100%;
  margin-bottom: 20px;
}

/* Gallery thumbnail base styles */
.gallery-thumbnail {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: brightness(85%);
}

.gallery-thumbnail:hover {
  filter: brightness(100%);
  transform: scale(1.02);
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
  .gallery-thumbnail-container {
    margin-bottom: 15px;
  }

  .mySlides img {
    object-fit: contain;
  }

  .lightbox-close {
    top: 15px;
    right: 15px;
    width: 44px;
    height: 44px;
  }

  .lightbox-close svg {
    width: 24px;
    height: 24px;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 44px;
    height: 44px;
    top: 50%;
    transform: translateY(-50%);
  }

  .lightbox-prev {
    left: 15px;
  }

  .lightbox-next {
    right: 15px;
  }

  .lightbox-prev:hover,
  .lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
  }

  .lightbox-prev svg,
  .lightbox-next svg {
    width: 20px;
    height: 20px;
  }

  .lightbox-counter {
    bottom: 20px;
    font-size: var(--font-size-counter);
    padding: 8px 16px;
  }
}

@media (max-width: 480px) {
  .mySlides img {
    object-fit: contain;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-prev:hover,
  .lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
  }

  .lightbox-counter {
    bottom: 15px;
    font-size: var(--font-size-counter);
    padding: 6px 12px;
  }
}
