.hero-image-md {
  height: 500px;
}

.hero-image-sm {
  height: 300px;
}

.hero-wrapper {
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3); 
  z-index: 1;
}

/* Ensure captions appear above overlay */
.carousel-caption {
  position: absolute;
  z-index: 2;
}