/* Carousel container */
.carousel-container {
  position: relative;
  width: 80%;  /* Adjust width as needed */
  max-width: 800px;  /* Limit max width */
  margin: 0 auto;  /* Center the carousel */
  overflow: hidden;  /* Hide the overflow of the images */
  border-radius: 8px;  /* Optional rounded corners */
}

/* Image styling */
.carousel-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;  /* Adjust height as needed */
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: contain;  /* Ensure the image fits the container while maintaining aspect ratio */
  transition: transform 0.5s ease-in-out;  /* Smooth transition for slides */
}

/* Navigation buttons */
.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 18px;
  z-index: 10;
}

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

/* Positioning the previous and next buttons */
.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* Optional: Add some transition effects for the button */
.carousel-button:focus {
  outline: none;
}

/* Media query for responsiveness */
@media (max-width: 767px) {
  .carousel-container {
    width: 90%;  /* Adjust the width to 90% for smaller screens */
    max-width: none;  /* Remove the max-width to allow the container to scale */
  }

  .carousel-slide {
    height: 250px;  /* Adjust the height for smaller screens */
  }

  .carousel-button {
    font-size: 16px;  /* Reduce the button size */
    padding: 8px;  /* Reduce padding for smaller screens */
  }
}
