.hero-container {
  position: relative;
  width: 100%;
  height: 100%; /* Adjust based on your design */
  overflow: hidden;
}

.hero {
  position: relative;
  width: 100%;
  height: 25vh;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: transform 2.5s ease-in-out, opacity 2.5s ease-in-out;
  object-fit:  cover;
  z-index: 0; /* Make sure images are layered correctly */
}

.hero-image:first-child {
  opacity: 1;
  z-index: 1;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  transform: translate(-50%, -50%);
  z-index: 5;
  color: white;
  text-align: center;
  pointer-events: none;
  font-family: "Josefin Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-size: 1.3rem;
  display: inline;
}

.hero-text span{
  display: inline;
}


