* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: sans-serif;
}

.carousel {
  position: relative;
  width: 100%;
  height: 650px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.carousel-track {
  display: flex;
  transition: transform 1.5s ease;
  width: 100%;
}

.slide {
  position: relative;
  min-width: 100%;
  height: 650px;
  overflow: hidden;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  opacity: 0;
  pointer-events: none;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Centered text */
.slide .text {
  position: absolute;
  top: 50%;
  right: 9%;
  transform: translateY(-50%);
  width: 46%;
  text-align: right;
}
.slide .text h2 {
  font-size: 3.6rem;
  line-height: 1;
  margin-bottom: 0;
  font-family: "DM Serif Display", serif;
  font-weight: 500;
  color: #8e001c;
  background-color: rgba(255, 255, 255, 0.9);
  display: inline-block;
  padding: 2.4rem 2.3rem 2rem;
  border-radius: 6px;
}
.slide .text p {
  font-size: 1.8rem;
  line-height: 1;
  font-family: "SourceSansPro", sans-serif;
  font-weight: 900;
  color: #000000;

  background-color: rgba(0, 0, 0, 0.3);
  display: inline-block;
  padding: 1rem 0.7rem;
}

.slide .text span {
  font-size: 1.6rem;
  line-height: 1;
  font-family: "SourceSansPro", sans-serif;
  font-weight: 400;
  color: #000000;
  display: inline-block;
  padding: 0;
  border-radius: 6px;
}

/* Dots */
.dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 5px;
  background: #bbb;
  border-radius: 50%;
  cursor: pointer;
}

.dot.active {
  background: #333;
}

/* Buttons */
.btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
  font-size: 18px;
  border-radius: 50%;
}

.btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.btn-prev {
  left: 10px;
}
.btn-next {
  right: 10px;
}

@media (max-width: 64em) {
  .carousel {
    height: 400px;
  }
  .slide {
    height: 400px;
  }
  .slide .text {
    top: 83%;
    left: 0%;
    width: 93%;
    right: 0 !important;
  }
  .slide .text h2 {
    font-size: 1.8rem;
	padding: 1rem;
	line-height: 1;
  }
   .slide .text span {
    font-size: 1rem;
  }
  .slide .text p {
    font-size: 1.2rem;
    line-height: 1.2;
  }
}

@media only screen and (max-width: 64.1em) {
/*   .slide .text {
    top: 50%;
    right: 5%;
    width: 43%;
  }
  .slide .text h2 {
    font-size: 3.4rem;
  }
  .slide .text span {
    font-size: 1.6rem;
  } */
}
