@-webkit-keyframes slideIn {
  0% {
    left: 100%;
    transform: translate(0, 0);
  }

  100% {
    transform: translate(-100%, 0);
  }
}

@keyframes slideIn {
  0% {
    left: 100%;
    transform: translate(0, 0);
  }

  100% {
    transform: translate(-100%, 0);
  }
}

@-webkit-keyframes slideOut {
  0% {
    transform: translate(-100%, 0);
  }

  100% {
    transform: translate(-200%, 0);
  }
}

@keyframes slideOut {
  0% {
    transform: translate(-100%, 0);
  }

  100% {
    transform: translate(-200%, 0);
  }
}

.carousel {
  position: relative;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.34s;
}

.carousel.ready {
  opacity: 1;
}

.carousel .carousel-item {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 100%;
  -webkit-animation-duration: 0.34s;
          animation-duration: 0.34s;
  -webkit-animation-name: slideOut;
          animation-name: slideOut;
  -webkit-animation-timing-function: ease-out;
          animation-timing-function: ease-out;
}

@media (max-width: 767px) {
  .carousel .carousel-item h2 {
    line-height: 0.9;
  }
}

.carousel .carousel-item.active {
  -webkit-animation-name: slideIn;
          animation-name: slideIn;
  -webkit-animation-fill-mode: forwards;
          animation-fill-mode: forwards;
}

.carousel .carousel-pager {
  position: absolute;
  bottom: 4rem;
  display: flex;
  width: 100%;
  justify-content: center;
}

.carousel .carousel-pager-item {
  background-color: #fff;
  border: none;
  border-radius: 100px;
  margin: 0 10px 0 0;
  padding: 0;
  height: 6px;
  width: 22px;
}

.carousel .carousel-pager-item:last-of-type {
  margin-right: 0;
}

.carousel .carousel-pager-item.active {
  background-color: #1a1a1a;
}


