*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.carousel {
  width: 100vw;
  height: 100vh;
  position: relative;
}

.carousel > ul {
  margin: 0;
  padding: o;
  list-style: none;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: 200ms opacity ease-in-out;
  transition-delay: 200ms;
}

.slide-img {
  display: block;
  width: 100%;
  height: 100%;
  object-position: center;
  filter: brightness(50%);
}

.content {
  position: absolute;
  top: 40%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.content h3,
.content p {
  color: #fff;
  text-shadow: none;
  line-height: 50px;
  padding: 0px 10px;
  letter-spacing: 0.5px;
  transition: all 0.5s;
}

.content p {
  color: #fff;
  text-shadow: none;
  line-height: 30px;
  padding: 0px 10px;
  letter-spacing: 0.5px;
  text-align: center;
  transition: all 0.5s;
  margin-bottom: 20px;
}

.content h3 {
  font-size: 50px;
  text-transform: uppercase;
  font-weight: 400;
}

.content p {
  font-size: 18px;
  font-weight: 400;
}

.link {
  border: 1px solid #fff;
  padding: 10px 20px;
  color: #fff;
}

@media (max-width: 992px) {
  .content h3 {
    font-size: 30px;
    text-transform: uppercase;
    font-weight: 400;
  }

  .content p {
    font-size: 14px;
    font-weight: 400;
  }
}

@media (max-width: 768px) {
  .content h3 {
    font-size: 24px;
    text-transform: uppercase;
    font-weight: 400;
    margin-bottom: 10px;
  }

  .content p {
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 10px;
  }
  .slide-img {
    height: 60vh;
  }
}

.slide[data-active] {
  opacity: 1;
  z-index: 1;
  transition-delay: 0;
}

.carousel-button {
  position: absolute;
  z-index: 2;
  background: none;
  border: none;
  font-size: 4rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  border-radius: 0.25rem;
  padding: 0 0.5rem;
}

.carousel-button:hover,
.carousel-button:focus {
  color: white;
}

.carousel-button.prev {
  left: 1rem;
}

.carousel-button.next {
  right: 2rem;
}
