/* Carousel Component Styles */
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 1144px;
  margin: 0 auto;
  overflow: hidden;
  background: transparent;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 125%; /* 1430/1144 = 125% aspect ratio */
}

@media (max-width: 1143px) {
  .carousel-wrapper {
    padding-bottom: 125%; /* Maintain aspect ratio on smaller screens */
  }
}

.carousel-slides {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Navigation Buttons */
.carousel-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 10;
  color: #333;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-50%) scale(1.05);
}

.carousel-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-btn:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

.carousel-btn-prev {
  left: 20px;
}

.carousel-btn-next {
  right: 20px;
}

/* Touch interaction styles */
.carousel-slides.dragging {
  transition: none;
}

.carousel-slide.dragging {
  transition: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .carousel-btn {
    width: 40px;
    height: 40px;
  }
  
  .carousel-btn-prev {
    left: 10px;
  }
  
  .carousel-btn-next {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .carousel-btn {
    width: 36px;
    height: 36px;
  }
  
  .carousel-btn svg {
    width: 18px;
    height: 18px;
  }
  
  .carousel-btn-prev {
    left: 8px;
  }
  
  .carousel-btn-next {
    right: 8px;
  }
}

/* Loading state */
.carousel-slide img {
  background: #f0f0f0;
}

.carousel-slide img:not([src]) {
  background-image: linear-gradient(90deg, #f0f0f0 25%, transparent 25%), 
                    linear-gradient(#f0f0f0 25%, transparent 25%), 
                    linear-gradient(90deg, transparent 75%, #f0f0f0 75%), 
                    linear-gradient(transparent 75%, #f0f0f0 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 0, 10px 10px, 10px 10px;
}