/* ============================================================
   carousel.css — Photo carousel styles
   ============================================================ */

.carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #F3F4F6;
}

.carousel__track {
  display: flex;
  height: 100%;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel__slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.carousel__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 16px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  color: #fff;
  font-size: 12px;
  font-weight: 500;
}

/* --- Prev / Next buttons --- */
.carousel__prev,
.carousel__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  backdrop-filter: blur(4px);
  z-index: 5;
}

.carousel__prev:hover,
.carousel__next:hover {
  background: rgba(0, 0, 0, 0.7);
}

.carousel__prev {
  left: 8px;
}

.carousel__next {
  right: 8px;
}

/* --- Counter (e.g., "1 / 5") --- */
.carousel__counter {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  border-radius: 12px;
  z-index: 5;
  backdrop-filter: blur(4px);
}

/* --- Navigation dots --- */
.carousel__dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, border-color 0.2s;
}

.carousel__dot--active {
  background: #fff;
  border-color: #fff;
}

.carousel__dot:hover {
  border-color: #fff;
}

/* --- Placeholder (no photos) --- */
.carousel__placeholder {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 40px;
  opacity: 0.3;
}

/* --- Single photo: hide nav --- */
.carousel--single .carousel__prev,
.carousel--single .carousel__next,
.carousel--single .carousel__dots,
.carousel--single .carousel__counter {
  display: none;
}
