/* Slider opacity tweaks: darken images using an overlay */
.carousel-inner .carousel-item {
  position: relative;
  overflow: hidden;
}

.carousel-inner .carousel-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* overlay uses the same rgba value as the caption background to darken the image */
.carousel-inner .carousel-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
  pointer-events: none;
}

/* make sure caption appears above the overlay */
.carousel-caption {
  position: relative;
  z-index: 2;
  /* background: rgba(0, 0, 0, 0.35); */
  padding: 1rem;
  border-radius: 0.25rem;
}

/* slightly brighten active slide image for emphasis */
.carousel-inner .carousel-item img {
  filter: brightness(0.9);
}
.carousel-inner .carousel-item.active img {
  filter: brightness(1);
}
