/* Slideshow container (desktop and mobile) */
.slideshow-container {
  position: relative;
  width: 100%;
  max-width: 100%;  /* Fluid width */
  height: 450px;    /* Default height for desktop */
  margin: 0 auto;
  overflow: hidden;
  background-color: #f5f5f5; /* Optional for debugging */
}

/* Slide styling */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out, visibility 0s linear 1s;
  z-index: 0;
}

/* Active slide */
.slide.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 1s ease-in-out, visibility 0s linear 0s;
  z-index: 1;
}

/* Image styling for slides */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Default for desktop - cover the container */
  display: block;
}

/* Responsive tweaks for mobile */
@media (max-width: 768px) {
  .slideshow-container {
    height: 250px; /* smaller but fixed height for mobile */
  }

  .slide {
    position: absolute;
    width: 100%;
    height: 100%;
  }

  .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* cover works best for slideshows */
  }
}
