/* Slider container */
.slider {
  position: relative;
  width: 100%;
  max-width: 1000px; /* Maximum width for the slider */
  margin: 400px auto 0; /* Ensure 400px of space above the slider */
  overflow: hidden;
  border: 2px solid #ccc;
  border-radius: 10px;
  height: 600px; /* Fixed height for the slider */
  display: flex;
  align-items: center; /* Center images vertically */
  justify-content: center; /* Center images horizontally */
  background-color: #f0f0f0; /* Background color for empty spaces */
}

/* Slides container */
.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 400%; /* Adjust this based on the number of slides */
}

/* Each slide */
.slide {
  flex: 0 0 100%; /* Each slide takes 100% of the container width */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Images in slides */
.slide img {
  max-width: 100%; /* Ensure the image scales to fit the width */
  max-height: 100%; /* Ensure the image scales to fit the height */
  width: auto; /* Ensure the image maintains its aspect ratio */
  height: auto; /* Ensure the image maintains its aspect ratio */
  object-fit: contain; /* Make sure the entire image is visible without cutting */
  display: block; /* Prevent any unexpected behavior */
  border-radius: 10px; /* Optional: Matches the slider container's border radius */
}

/* Navigation buttons */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  z-index: 10;
  font-size: 18px;
  border-radius: 5px;
}

.nav-btn.left {
  left: 10px;
}

.nav-btn.right {
  right: 10px;
}

.nav-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}
