/* Carousel Container */
.carousel-container {
  position: relative;
  width: 100%;
  height: 500px;
  max-width: 100%;
  margin: auto;
  overflow: hidden;
}

/* Carousel Slides */
.carousel-slide {
  display: none;
  position: absolute;
  width: 100%;
  height: 100%;
  transition: opacity 0.2s ease-in-out;
  
}

.carousel-slide.active {
  
  display: block;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 15%;
  filter: brightness(90%);
  
}

/* Carousel Caption */
.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(45deg, black, transparent, #0073e6);
}

.carousel-caption > * {
  background: none;
}

.carousel-caption h2 {
  font-size: 15pt;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.carousel-caption h3 {
  font-size: 20pt;
  border-bottom: solid 4px white;
  margin-bottom: 20px;
}

.carousel-caption p {
  margin-bottom: 20px;
  opacity: 0.8;
  font-family: 'Roboto', sans-serif;
  padding: 0 50px;
  text-align: center;
}

/* Carousel Navigation Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 12px;
  cursor: pointer;
  font-size: 15px;
  border-radius: 50%;
}

.carousel-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

/* Media Query for Larger Screens */
@media screen and (min-width: 800px) {
  .carousel-caption h2 {
    font-size: 30pt;
  }

  .carousel-caption h3 {
    font-size: 50pt;
  }
  
  .carousel-caption p {
    padding: 0;
  }
}