/* 🖼️ Slider Container */
.image-slider {
  position: relative;
  width: 100%;             /* Responsive width */
  max-width: 700px;        /* Limit for large screens */
  aspect-ratio: 16 / 9;    /* Keeps images consistent in both orientations */
  overflow: hidden;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  background: transparent;
}

/* 🖼️ Track with sliding images */
.slider-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
  width: 100%;
  height: 100%;
}

/* 🖼️ Each image */
.slider-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;       /* Ensures coverage across portrait & landscape */
  display: block;
}

/* 📝 Caption Overlay (always on image bottom) */
.slider-caption {
  position: absolute;
  bottom: 0;               /* Anchor to bottom of image */
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1rem;
  padding: 8px 12px;
  font-weight: 600;
  font-family: Lato, sans-serif;
  text-align: center;
  line-height: 1.4;
  box-sizing: border-box;
}

/* 📱 Responsive tweaks */
@media (max-width: 480px) {
  .slider-caption {
    font-size: 0.85rem;
    padding: 6px 8px;
  }
}
