.carousel-outer-container {
  max-width: 1140px; /* Bootstrap container-lg width */
  margin: 5rem auto;

  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  width: 100%;
}

.carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.carousel-track-container {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in;
  padding: 0;
  margin: 0;
  list-style: none;
  width: 100%; /* Ensure the track doesn't overflow the container */
}

.carousel-slide {
  flex: 0 0 100%; /* Each slide takes up 100% of the container */
  min-width: 100%;
  box-sizing: border-box;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  max-width: 100vw;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  padding: 0.5rem;
  cursor: pointer;
  z-index: 10;
}

.carousel-button.left {
  left: 10px;
}

.carousel-button.right {
  right: 10px;
}

.carousel-nav {
  text-align: center;
  margin-top: 0.5rem;
}

.carousel-indicator {
  background: #ccc;
  border: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
}

.carousel-indicator.active {
  background: #333;
}

@media (max-width: 1200px) {
  .carousel-outer-container {
    max-width: 98vw;
    padding: 10px;
  }
}

@media (max-width: 800px) {
  .carousel-outer-container {
    max-width: 100vw;
    padding: 6px;
  }
  .carousel-slide img {
    border-radius: 4px;
  }
}

@media (max-width: 500px) {
  .carousel-outer-container {
    padding: 2px;
    border-radius: 4px;
  }
  .carousel-slide img {
    border-radius: 2px;
  }
}
