.carousel {
  margin: 40px auto 20px;
}

.carousel .items::-webkit-scrollbar,
.carousel .items::-webkit-scrollbar-track,
.carousel .items::-webkit-scrollbar-thumb {
  width: 0;
  height: 0;
  background: transparent;
  display: none;
}
.carousel .items {
  -ms-overflow-style: none;
  scrollbar-width: none;
  max-width: 400px;
  width: 100%;
  overflow-x: hidden;
  margin: 0 auto 20px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  display: flex;
  align-items: center;
}
.carousel .items.controller {
  overflow-x: scroll;
}
.carousel .device .items {
  max-width: initial;
  width: 95%;
  position: absolute;
  top: 4%;
  left: 2.5%;
}
.carousel .items > * {
  width: calc(100% - 50px);
  min-width: calc(100% - 50px);
  padding: 0 25px;
  scroll-snap-align: start;
}
.carousel .items > video,
.carousel .items > img {
  padding: 0;
  width: 100%;
  min-width: 100%;
}

.carousel .dots {
  display: flex;
  align-items: center;
  justify-content: center;
  grid-gap: 0 4px;
}
.carousel .dots > button {
  height: 26px;
  width: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  appearance: none;
}
.carousel .dots > button::after {
  content: '';
  height: 7px;
  width: 7px;
  min-width: 7px;
  border-radius: 100px;
  background-color: var(--pokpok-color-blue);
  opacity: .4;
  transition: opacity .2s;
}
.carousel .dots > button.active::after {
  opacity: 1;
}
.red .carousel .dots > button::after,
.blue .carousel .dots > button::after {
  background-color: var(--pokpok-color-white);
}

.carousel .arrows {
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
  position: relative;
}
.carousel .arrows > button {
  position: absolute;
  background: none;
  border: 0;
  appearance: none;
  height: 50px;
  width: 50px;
  cursor: pointer;
  top: -100px;
}
.carousel .arrows > button.arrow_left {
  left: -50px;
  transform: rotate(180deg);
}
.carousel .arrows > button.arrow_right {
  right: -50px;
}
.carousel .arrows > button img {
  height: 20px;
}

.carousel .testimonial {
  font-size: 1.1rem;
}
.carousel .testimonial .author {
  font-size: 1rem;
  display: block;
  margin-top: 20px;
  font-style: italic;
}

.carousel .label {
  font-size: 1.9rem;
  letter-spacing: .03em;
  font-family: var(--pokpok-font-regular);
  margin-top: 20px;
}
.carousel .label .new::before {
  content: 'New';
  color: var(--pokpok-color-red);
  font-size: 1.1rem;
  font-family: var(--pokpok-font-regular);
  display: block;
}
.carousel .label .caption {
  font-size: 1.4rem;
  display: block;
  margin-top: 4px;
  font-family: var(--pokpok-font-light);
}

@media (max-width: 500px) {
  .carousel .arrows > button {
    top: -130px;
  }
  .carousel .arrows > button.arrow_left {
    left: -30px;
  }
  .carousel .arrows > button.arrow_right {
    right: -30px;
  }
  .carousel .arrows > button img {
    height: 16px;
  }

  .carousel .testimonial .author {
    font-size: .9rem;
  }

  .carousel .label .caption {
    font-size: 1.1rem;
    margin-top: 0;
  }
}
