/* Set Bootstrap carousel fade effect duration to 1 second */
.carousel-fade .carousel-item {
  transition-duration: 1s;
}

/* Remove any custom numbering or labels from carousel indicators */
.carousel-indicators li::before,
.carousel-indicators li::after {
  content: none !important;
  display: none !important;
}

/* Remove any numbers or labels from Bootstrap carousel indicators */
.carousel-indicators [data-bs-target]::before,
.carousel-indicators [data-bs-target]::after {
  content: none !important;
}

/* Remove any default list-style or numbering */
.carousel-indicators {
  list-style: none;
  z-index: 2;
}

/* Ensure indicators are only dots, no numbers */
.carousel-indicators li {
  font-size: 0 !important;
  color: transparent !important;
  text-indent: -9999px;
}


/* Add top margin to carousel to prevent it being hidden under fixed navbar */
.carousel {
  width: 100% !important;
  max-width: 100% !important;
  position: relative;
}

.carousel-inner,
.carousel-item,
.carousel-item img {
  width: 100% !important;
  max-width: 100% !important;
  position: relative;
}

.carousel-item .carousel-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: var(--width-size-carousel-caption);
  height: var(--height-size-carousel-caption);
}

.carousel-item .carousel-caption h2 {
  font-size: var(--font-size-1);
  color: #fff;
  text-shadow:
    3px 3px 8px rgba(0, 0, 0, 0.9),
    1px 1px 2px rgba(0, 0, 0, 0.9);
  max-width: 90%;
  margin: 0em 0rem 0.8rem 0rem;
}

.carousel-item .carousel-caption p {
  font-size: var(--font-size-4);
  color: hsl(0, 0%, 95%);
  text-align: center;
  text-shadow:
    2px 2px 6px rgba(0, 0, 0, 0.7),
    1px 1px 2px rgba(0, 0, 0, 0.6);
  max-width: 90%;
  margin-bottom: 1em;
}

.carousel-item .carousel-caption .btn {
  padding: 0.75rem 1.5rem;
  font-size: var(--font-size-4);
  font-weight: 400;
  background-color: var(--opti-blue);
  color: white;
  border: none;
  border: 0px solid white;
  transition: background-color 0.1s ease;
  padding: 0.15em 1em 0.15em 1em;

}

.carousel-item .carousel-caption .btn:hover {
  background-color: hsl(195, 100%, 35%);
  z-index: 4;
}

.carousel-item .carousel-caption .carousel-credit {
  position: absolute;
  bottom: 5%;
  right: 2.5%;
  color: hsl(0, 0%, 80%);
  font-size: 0.75rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  z-index: 2;
  line-height: 1;
}

.carousel-item img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;

  height: var(--height-size-carousel-item);
  object-fit: cover;
  object-position: center;
}




/* Remove horizontal padding/margins from carousel container */
.carousel,
.carousel-inner {
  padding: 0 !important;
  margin: 0 !important;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
  padding: 2em 2em; /* add padding for better click area */
}
