.carousel-item {
    position: relative;
    height: 60vh; /* Set the carousel item to full viewport height */
}
.image-container {
    position: relative;
    display: inline-block;
}
.carousel-item {
  height: 40vh; /* Set the carousel item to full viewport height */
}
  
  .img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-color: rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
  }
  .image-container:hover img, 
    .image-container:hover .img-overlay {
    transform: scale(1.1);
    transition: all 0.4s;
  }
  .image-container:hover .img-overlay {
    opacity: 1;
  }
  
  .image-text {
    color: white;
    font-size: 16px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
  }
  