/* Slideshow Component Styles */

/* Full-height container between header and footer */
.slideshow {
  width: 100%;
  height: calc(100vh - var(--header-height) - var(--footer-height));
  position: relative;
  overflow: hidden;
  background-color: var(--color-white);
}

/* Slideshow container with relative positioning */
.slideshow-container {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Individual slides with absolute positioning and opacity-based visibility */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity var(--transition-slow);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Active slide is visible */
.slide.active {
  opacity: 1;
  z-index: var(--z-base);
}

/* Slide images - maintain aspect ratio and fit within viewport */
.slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Progress indicators with centered dash layout */
.progress-indicators {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-sm);
  z-index: var(--z-dropdown);
}

/* Individual dash indicators */
.dash {
  width: 40px;
  height: 2px;
  background-color: var(--color-warm-grey);
  transition: background-color var(--transition-normal);
  cursor: pointer;
}

/* Active dash indicator */
.dash.active {
  background-color: var(--color-white);
}

/* Hover pause styles for desktop */
@media (width >= 1024px) {
  .slideshow:hover .slide {
    animation-play-state: paused;
  }
  
  .dash:hover {
    background-color: var(--color-warm-grey-light);
  }
  
  .dash.active:hover {
    background-color: var(--color-white);
  }
}

/* Mobile optimizations */
@media (width <= 767px) {
  .progress-indicators {
    bottom: var(--space-lg);
  }
  
  .dash {
    width: 30px;
  }
}

/* Tablet optimizations */
@media (width >= 768px) and (width <= 1023px) {
  .progress-indicators {
    bottom: var(--space-xl);
  }
  
  .dash {
    width: 35px;
  }
}
