.carousel {
  width: 100vw;
  position: relative;
}

.carousel__slides,
.carousel__slide {
  width: 100%;
}

.carousel__slides {
  display: flex;
  column-gap: 20px; /* optional */
  overflow: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* for Firefox and latest Chromium */
}

.carousel__slide {
  flex: 0 0 auto;
  scroll-snap-align: center;
}

.carousel__slides::-webkit-scrollbar {
  display: none; /* for Safari and legacy Chromium */
}

.carousel__navdots {
  margin-bottom: 20px;
  bottom: 0;
  position: absolute;
  column-gap: 16px;
  display: flex;
  justify-content: center;
  left: 0;
  position: absolute;
  right: 0;
}

.carousel__navdots button {
  /* reset default button style */
  -moz-appearance: none;
  -webkit-apperance: none;
  appearance: none;
  border: 0;
  cursor: pointer;
  border: 2px solid #fff;
  background-color: transparent;
  border-radius: 50%;
  height: 20px;
  padding: 0;
  width: 20px;
}

.carousel__navdots button:focus-visible {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

.carousel__navdots button.is-active {
  background-color: var(--secondary-color);
}

.carousel__slides.smooth-scroll {
  scroll-behavior: smooth;
}
