.carousel {
  position: relative;
  width: 100vw;
  max-width: none;
  height: 420px;
  margin: 0 0 72px;
  overflow: hidden;
  border-radius: 0;
  box-shadow: 0 7px 18px rgba(0,0,0,0.14);
}


.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}


.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.carousel-slide.is-prev {
  opacity: 0;
  z-index: 1;
}

.carousel-slide.is-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(100deg, rgba(210,210,210,0.55) 20%, rgba(245,245,245,0.85) 40%, rgba(210,210,210,0.55) 60%);
  background-size: 220% 100%;
  animation: carousel-skeleton 1.15s ease-in-out infinite;
}

.carousel-slide:not(.is-active).is-loading::before {
  display: none;
}

.carousel-slide a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide.is-loading img {
  opacity: 1;
}

.carousel-slide.is-loaded img {
  opacity: 1;
  transition: opacity 0.22s ease;
}

@keyframes carousel-skeleton {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  display: block;
  transform: scale(1.02);
  position: relative;
  z-index: 3;
}

.carousel-slide.is-active img {
  animation: carousel-kenburns 14s ease-out forwards;
}

@keyframes carousel-kenburns {
  from { transform: scale(1.02); }
  to { transform: scale(1.12); }
}

@keyframes carousel-kenburns-mobile {
  from { transform: scale(1.02); }
  to { transform: scale(1.18); }
}

.carousel-slide.is-loaded::before {
  display: none;
}


.carousel-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  display: inline-block;
  white-space: nowrap;
  padding: 8px 80px;
  text-align: center;
  font-size: clamp(1.65rem, 2.5vw, 2.35rem);
  font-variant: small-caps;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 4px rgba(0,0,0,.3);
  background: linear-gradient(to right,
    transparent 0%,
    rgba(0, 0, 0, 0.32) 25%,
    rgba(0, 0, 0, 0.32) 75%,
    transparent 100%
  );
  z-index: 10;
  transition: transform 0.2s ease;
}

.carousel-slide a:hover .carousel-title {
  transform: translateX(-50%) translateY(-50%) scale(1.06);
}

.carousel-title::before,
.carousel-title::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right,
    transparent 0%,
    rgba(0, 0, 0, 0.28) 25%,
    rgba(0, 0, 0, 0.28) 75%,
    transparent 100%
  );
}
.carousel-title::before { top: 0; }
.carousel-title::after  { bottom: 0; }


.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}



.carousel-indicators {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  background: rgba(0,0,0,0.3);
  padding: 6px 8px;
  border-radius: 20px;
}
.carousel-indicators .indicator {
  width: 24px;
  height: 6px;
  border-radius: 10px;
  background: rgba(255,255,255,0.5);
  transition: background 0.3s ease;
  cursor: pointer;
}
.carousel-indicators .indicator.active {
  background: white;
}


@media (max-width: 768px) {
  .carousel { width: 100%; height: 280px; border-radius: 0; margin: 0 0 52px; padding: 0;}
  .carousel-slide.is-active img { animation-name: carousel-kenburns-mobile; }
}

@media (hover: none) and (pointer: coarse) {
  .carousel .nf-left,
  .carousel .nf-right {
    display: none;
  }
}
