/**
 * @file
 * CSS for the Simple Slideshow.
 */

/* Slideshow container */
.simple-slideshow-wrapper {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

/* Slides */
.simple-slideshow {
  position: relative;
  width: 100%;
}

.simple-slideshow-slide {
  display: none; /* Initially hidden, JS will change to flex when active */
  width: 100%;
  height: 500px; /* Fixed height to match max-height of images */
  align-items: center;
  justify-content: center;
}

.simple-slideshow-slide img {
  max-width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  display: block;
}

/* Navigation arrows */
.simple-slideshow-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  z-index: 1;
}

.simple-slideshow-prev,
.simple-slideshow-next {
  position: absolute;
  top: 0;
  padding: 10px 15px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  cursor: pointer;
  border-radius: 3px;
  transition: background-color 0.3s;
}

.simple-slideshow-prev:hover,
.simple-slideshow-next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.simple-slideshow-prev {
  left: 10px;
}

.simple-slideshow-next {
  right: 10px;
}

/* Dots */
.simple-slideshow-dots {
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
  z-index: 1;
}

.simple-slideshow-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  background-color: rgba(255, 255, 255, 0.5);
  border: 1px solid #b3b3b3;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.simple-slideshow-dot:hover,
.simple-slideshow-dot.active {
  background-color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .simple-slideshow-prev,
  .simple-slideshow-next {
    padding: 8px 12px;
    font-size: 16px;
  }

  .simple-slideshow-dot {
    width: 10px;
    height: 10px;
    margin: 0 4px;
  }
}

@media (max-width: 480px) {
  .simple-slideshow-prev,
  .simple-slideshow-next {
    padding: 6px 10px;
    font-size: 14px;
  }

  .simple-slideshow-dot {
    width: 8px;
    height: 8px;
    margin: 0 3px;
  }
}
