.carousel-container {
  max-width: 550px;
  background-color: white;
  overflow: hidden;
  padding: 25px;
}

.main-carousel {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  object-fit: contain;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-btn:hover {
  background-color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.carousel-btn.prev {
  left: 20px;
}

.carousel-btn.next {
  right: 20px;
}

.carousel-btn svg {
  width: 24px;
  height: 24px;
  fill: #2c3e50;
}

.thumbnails {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 10px;
  flex-wrap: nowrap;
}

.thumbnail {
  width: 80px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.thumbnail:hover {
  opacity: 0.8;
}

.thumbnail.active {
  opacity: 1;
  border-color: #3498db;
  box-shadow: 0 3px 8px rgba(52, 152, 219, 0.3);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.api-controls {
  margin-top: 25px;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 10px;
}

.api-controls h3 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 18px;
}

.control-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.control-btn {
  padding: 10px 15px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 14px;
}

.control-btn:hover {
  background-color: #2980b9;
}

.status-indicator {
  text-align: center;
  margin-top: 15px;
  font-size: 14px;
  color: #7f8c8d;
}

@media (max-width: 768px) {
  .main-carousel {
    height: 300px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }

  .thumbnail {
    width: 60px;
    height: 45px;
  }

  .control-buttons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .main-carousel {
    height: 250px;
  }

  .carousel-btn {
    width: 35px;
    height: 35px;
  }

  .carousel-btn.prev {
    left: 10px;
  }

  .carousel-btn.next {
    right: 10px;
  }

  .thumbnail {
    width: 50px;
    height: 38px;
  }
}
