/**
 * Carousel Component Styles
 * Extracted from _includes/carousel.html
 * Created: 2025-11-05
 */

.carousel__holder {
  position: relative;
  width: 100%;
  height: 0;
  margin: 1rem 0;
}

.carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel__activator {
  display: none;
}

.carousel__controls {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.carousel__control {
  position: absolute;
  top: 50%;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  border-width: 5px 5px 0 0;
  border-style: solid;
  border-color: #fff;
  opacity: 0.35;
  cursor: pointer;
  z-index: 3;
}

.carousel__control:hover {
  opacity: 1;
}

.carousel__control--backward {
  left: 20px;
  transform: rotate(-135deg);
}

.carousel__control--forward {
  right: 20px;
  transform: rotate(45deg);
}

.carousel__track {
  position: relative;
  height: 100%;
}

.carousel__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
  opacity: 0;
  transition: opacity 0.5s ease, filter 0.5s ease;
}

.carousel__title {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  padding: 10px 20px;
  text-shadow: 1px 1px 3px #666;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  border-radius: 5px;
  z-index: 2;
}

a.carousel__link {
  display: block;
  height: 100%;
  width: 100%;
  text-decoration: none;
}

.carousel__indicators {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
}

.carousel__indicator {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin: 0 2.5px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.35;
  cursor: pointer;
}

.carousel__indicator:hover {
  opacity: 0.75;
}
