/* Slot-style carousel: one slide = one scene, slide left/right between scenes. */

.carousel {
  max-width: 100%;
  position: relative;
  margin: 8px 0 4px;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: 4px;
}

.carousel .slides {
  display: flex;
  transition: transform 0.45s ease-in-out;
  will-change: transform;
}

.carousel .slide {
  flex: 0 0 100%;
  min-width: 100%;
  box-sizing: border-box;
  /* center content vertically: slides have different aspect ratios, so shorter
     (wide) slides sit centered in the row instead of sticking to the top. */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Navigation bar (below the media, never covers content) */
.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
}

.carousel-nav .control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background-color: #2c4a8a;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  transition: background-color 0.2s ease;
  user-select: none;
}

.carousel-nav .control:hover {
  background-color: #203767;
}

.carousel-nav .slide-counter {
  min-width: 64px;
  text-align: center;
  font-size: 15px;
  color: #464646;
  font-variant-numeric: tabular-nums;
}

@media screen and (max-width: 600px) {
  .carousel-nav .control {
    width: 30px;
    height: 30px;
    font-size: 17px;
  }
}
