/* Photo Carousel Styles */

.carousel {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: #f5f5f5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  height: 400px;
}

.carousel-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 100%;
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 600ms ease-in-out;
  z-index: 1;
}

.carousel-item.active {
  opacity: 1;
  z-index: 2;
}

.carousel-item svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 500px;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 15px;
  margin: 0;
  font-size: 0.95em;
  transition: opacity 200ms ease-out;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5em;
  border-radius: 4px;
  transition: background 200ms ease-out;
  z-index: 10;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(0, 0, 0, 0.75);
}

.carousel-prev:focus-visible,
.carousel-next:focus-visible {
  outline: 3px solid white;
  outline-offset: 2px;
  background: rgba(0, 0, 0, 0.75);
}

.carousel-prev {
  left: 15px;
}

.carousel-next {
  right: 15px;
}

.carousel-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 200ms ease-out;
  padding: 0;
}

.carousel-dot.active {
  background: white;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.75);
}

.carousel-dot:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
}

/* Crossfade transition handled by opacity transition above */

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .carousel-item {
    transition: none;
  }

  .carousel-prev,
  .carousel-next,
  .carousel-dot,
  .carousel-caption {
    transition: none;
  }
}

/* Tablet */
@media (max-width: 767px) {
  .carousel {
    height: 350px;
  }

  .carousel-item svg {
    max-height: 350px;
  }

  .carousel-prev,
  .carousel-next {
    width: 40px;
    height: 40px;
    font-size: 1.2em;
  }

  .carousel-caption {
    padding: 12px;
    font-size: 0.9em;
  }
}

/* Mobile */
@media (max-width: 479px) {
  .carousel {
    height: 280px;
  }

  .carousel-item svg {
    max-height: 280px;
  }

  .carousel-prev,
  .carousel-next {
    width: 36px;
    height: 36px;
    font-size: 1em;
  }

  .carousel-dot {
    width: 10px;
    height: 10px;
  }

  .carousel-caption {
    padding: 10px;
    font-size: 0.85em;
  }
}
