.carousel {
  --current-slide: 0;
  /* we set position relative so absolute position works properly for the buttons */
  position: relative;
  overflow: overlay;
  scrollbar-width: none;
  width: 100%;
}

.carousel-button {
  /* vertically centering the buttons */
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;

  /* basic styling */
  padding: 0;
  margin: 0.5rem;
  border-radius: 50%;
  background-color: transparent;
  border: none;
  font-family: FontAwesome;
  font-size: 3.5rem;
  cursor: pointer;
  color: #EE7100;
  transition: color 0.1s;
}

.carousel-button:hover {
  color: rgba(0, 0, 0, 0.5);
}

.carousel-button_next {
  /* The "next slide button" will be at the right */
  right: 0;
}

.slides {
  display: flex;
  transition: transform 0.5s;
  transform: translateX(calc(-100% * var(--current-slide)));
}

.slide {
  flex: 0 0 100%;
  padding-left: 15px;
  padding-right: 15px;

}

.slide-content {
  background-color: #F2F2F1;
  padding-left: 40px;
  padding-right: 40px;
  padding-top: 15px;
  padding-bottom: 15px;
  height: 100%;
}

@media screen and (min-width: 768px) {
  .carousel-button {
    font-size: 3.5rem;
    margin: 1rem;
  }

  .slide {
    flex: 0 0 50%;
  }

  .slides {
    transform: translateX(calc(-50% * var(--current-slide)));
  }
}

@media screen and (min-width: 1536px) {
  .carousel-button {
    font-size: 3.5rem;
    margin: 1rem;
  }

  .slide {
    flex: 0 0 33.44%;
  }

  .slides {
    transform: translateX(calc(-33.44% * var(--current-slide)));
  }
}