.carousel-body {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
}

.carousel {
  position: relative;
  width: min(1350px, 100vw);
  max-width: 100vw;
  height: 60vw;
  max-height: 540px;
  min-height: 300px;
  overflow: clip;
  overflow-clip-margin: 16px;
  display: flex;
  align-items: center;
}

.slides-wrapper {
  overflow: visible;
  width: 100%;
  height: 100%;
}

.slides {
  display: flex;
  align-items: center;
  transition: transform 0.6s ease;
}

/* Suppress ALL transitions during instant wrap-around jump */
.slides.no-transition,
.slides.no-transition img {
  transition: none !important;
}

.slides img {
  width: 80vw;
  max-width: 960px;
  height: 45vw;
  max-height: 540px;
  min-height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin: 0 10px;
  flex-shrink: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
  opacity: 0.4;
  transform: scale(0.9);
  z-index: 0;
}

.slides img.active {
  opacity: 1;
  transform: scale(1) translateX(0);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.slides img.left {
  opacity: 0.85;
  transform: scale(0.93) translateX(110px);
  z-index: 1;
}

.slides img.right {
  opacity: 0.85;
  transform: scale(0.93) translateX(-110px);
  z-index: 1;
}

/* Material-style prev/next buttons */
button.prev,
button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  background-color: var(--color-aqua-70);
  color: var(--color-dodger-blue-950);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: background-color 200ms ease-in-out,
              box-shadow 200ms ease-in-out,
              transform 200ms ease-in-out;
}

button.prev {
  left: 200px;
}
button.next {
  right: 200px;
}

button.prev:hover,
button.next:hover {
  background-color: var(--color-aqua-100);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), 0 8px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(-50%) scale(1.08);
}

button.prev:active,
button.next:active {
  transform: translateY(-50%) scale(0.96);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Visit button row */
.carousel-visit {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

/* Mobile */
@media (max-width: 768px) {
  .carousel-body {
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
  }

  .carousel {
    width: 100vw;
    max-width: 100vw;
    height: 52vw;
    min-height: 180px;
    overflow: hidden;
  }

  /* Only show the active slide on mobile */
  .slides img.left,
  .slides img.right {
    opacity: 0;
    pointer-events: none;
  }

  .slides img {
    width: 88vw;
    height: 49vw;
    min-height: 160px;
    margin: 0 4px;
  }

  button.prev,
  button.next {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  button.prev {
    left: 6px;
  }

  button.next {
    right: 6px;
  }
}
