.carousel-container {
  position: relative;
  width: 100%;
  max-width: 700px; /* Set the maximum width for large screens */
  margin: auto;
  overflow: hidden; /* Hide overflow to keep it neat */
}

.carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-item {
  min-width: 100%;
  box-sizing: border-box;
}

.carousel img {
  width: 100%;
  height: auto;
  max-width: 100%; /* Make sure images don't exceed the container width */
}

/* Buttons for carousel navigation */
button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 10px;
  cursor: pointer;
}

button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.prev {
  left: 0;
}

.next {
  right: 0;
}

/* Media Queries for Responsiveness */
@media (max-width: 1200px) {
  .carousel-container {
    max-width: 600px; /* Smaller width for medium screens like tablets */
  }
}

@media (max-width: 768px) {
  .carousel-container {
    max-width: 90%; /* 90% of screen width on smaller tablets */
  }
}

@media (max-width: 480px) {
  .carousel-container {
    max-width: 95%; /* 95% of screen width on small phones */
  }
}

