/* Hero carousel — matches the existing hero card styling exactly. */
.hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
}

.hero-slider-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
}

.hero-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-slide-caption {
  padding: 1.25rem;
}

.hero-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-secondary, #1f2937);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  z-index: 2;
}

.hero-slider-arrow:hover {
  background: #fff;
}

.hero-slider-prev { left: 0.75rem; }
.hero-slider-next { right: 0.75rem; }

.hero-slider-dots {
  position: absolute;
  bottom: 0.85rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  z-index: 2;
}

.hero-slider-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  border: none;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  padding: 0;
}

.hero-slider-dot[aria-current="true"] {
  width: 1.35rem;
  background: var(--brand, #e2506a);
}

/* Desktop / mobile artwork swap. */
.hero-slide-img-mobile { display: none; }

@media (max-width: 640px) {
  .hero-slide-img-desktop.has-mobile { display: none; }
  .hero-slide-img-mobile { display: block; }
  .hero-slider-arrow { width: 2rem; height: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slider-track { transition: none; }
}
