/* Initial state for .hero-gradient (hidden by default) */
.template-hero-gradient-overlay {
  position: absolute;
  height: 500px;
  width: 100%;
  background: var(--gradient-background-shops);
  z-index: 1;
  opacity: 0; /* Initially hidden */
  transition: opacity 1s ease-in-out; /* Smooth transition for opacity */
}




/* When screen size exceeds 1440px, fade the element in */
@media screen and (min-width: 1440px) {
  .template-hero-gradient-overlay {
    opacity: 1; /* Make visible */
  }
}

.template-hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  /* max-width: 1440px; */
  height: auto;
  max-height: 500px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  background: var(--black-total);
}

.template-hero picture img {
  width: 100%; /* Allow image to fill the container */
  max-width: 1440px;
  height: auto;
  min-height: 250px;
  display: block;
  object-fit: cover; /* Ensures the image maintains aspect ratio without shrinking */
}

.template-hero .h1 {
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  position: absolute;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  text-align: center;
  z-index: 2;
}

.template-hero-mobile {
  display: none !important;
}

.template-hero-mobile {
  width: 100%;
  max-width: 767px;
  height: auto;
}


@media screen and (max-width: 1020px) {
  .h1,
  h1 {
    font-size: 40px;
    font-weight: 700;
    font-family: "Moderat";
    line-height: 110%;
    letter-spacing: 0em;
  }
}





@media screen and (max-width: 390px) {
  .template-hero-desktop {
    display: none !important;
  }
  .template-hero-mobile {
    display: flex !important;
  }
}

@-webkit-keyframes fadeInScale {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
