.js-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.js-carousel__track {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
}

.js-carousel__item {
  flex: 0 0 auto;
  /* min-width: 100%; */
  box-sizing: border-box;
  padding: 0 10px;
  aspect-ratio: 1/1;
}

.js-carousel--fade .js-carousel__track {
  display: block !important;
}

.js-carousel--fade .js-carousel__item {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  -webkit-transition: opacity 0.5s ease;
  -o-transition: opacity 0.5s ease;
  transition: opacity 0.5s ease;
}

.js-carousel--fade .js-carousel__item.is-active {
  opacity: 1;
  pointer-events: auto;
}

.js-carousel__nav {
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%);
      -ms-transform: translateY(-50%);
          transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  cursor: pointer;
  z-index: 10;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}

.js-carousel__nav--prev { left: 10px; }
.js-carousel__nav--next { right: 10px; }

.js-carousel__dots {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.js-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  padding: 0;
  cursor: pointer;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}

.js-carousel__dot.is-active {
  background: #333;
}