/* Gallery Carousel Styles */

.gallery-carousel {
  padding: 2rem 0;
  background: transparent;
}

.gallery-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1.5rem !important;
  color: var(--text-color, #e0e0e0);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.carousel-container {
  flex: 1;
  overflow: hidden;
  position: relative;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: contain;
  border-radius: 4px;
}

/* Carousel buttons */
.carousel-btn {
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #e0e0e0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

.carousel-btn:active {
  transform: scale(0.95);
}

/* Carousel indicators */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.2);
}

.indicator.active {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.9);
  transform: scale(1.3);
}

/* Responsive styles */
@media (max-width: 768px) {
  .gallery-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  .carousel-wrapper {
    flex-direction: column;
    gap: 1.5rem;
  }

  .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
  }

  .carousel-prev {
    left: 10px;
  }

  .carousel-next {
    right: 10px;
  }

  .carousel-slide img {
    max-height: 350px;
  }
}

@media (max-width: 480px) {
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .carousel-slide img {
    max-height: 250px;
  }

  .indicator {
    width: 10px;
    height: 10px;
  }
}

/* Lightbox Styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  z-index: 10001;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1) rotate(90deg);
}

.lightbox-content {
  position: relative;
  width: 90%;
  height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: grab;
  transition: transform 0.1s ease-out;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

.lightbox-content img.dragging {
  cursor: grabbing;
}

.lightbox-zoom-info {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10000;
}

.lightbox.active .lightbox-zoom-info {
  opacity: 1;
  animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0; }
  10%, 70% { opacity: 1; }
}

/* Cursor hint for clickable images */
.carousel-slide img {
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.carousel-slide img:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

.carousel-slide img:active {
  transform: scale(0.98);
}

/* Mobile specific lightbox styles */
@media (max-width: 768px) {
  .lightbox-close {
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
  }

  .lightbox-content {
    width: 95%;
    height: 95%;
  }

  .lightbox-zoom-info {
    bottom: 20px;
    font-size: 0.85rem;
  }
}
