/* Wrapper container */
.rhHeroBannerContainer {
  position: relative;
  min-height: 600px;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Each banner */
.rhHeroBannerContent {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Picture wrapper for desktop & mobile */
.hero-banner-image-container picture.hero-banner-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 600px;
  display: block;
  opacity: 0;
  object-fit: cover;
  animation: dissolve 4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: 500ms;
}

/* Inner image */
.hero-banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Active banner */
picture.hero-banner-image.active {
  opacity: 1;
  z-index: 1;
}

/* Show text when banner active */
picture.hero-banner-image.active ~ .rhHeroBannerDetails {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Text container */
.rhHeroBannerDetails {
  position: absolute;
  top: 0;
  width: 100%;
  margin-top: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

/* Text styles */
.rhHeroBannerTitle {
  font-family: Archivo;
  font-weight: 500;
  font-size: 48px;
  line-height: 110%;
  text-align: center;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.rhHeroBannerSubTitle {
  font-family: Archivo;
  font-weight: 400;
  font-size: 18px;
  line-height: 136%;
  text-align: center;
  color: #FFFFFF;
  margin-bottom: 29px;
}

/* CTA button */
.rhHeroBannerAnchor {
  font-family: Archivo;
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  text-align: center;
  color: #FFFFFF;
  background: linear-gradient(270deg, #712CCB 0%, #A77FDC 100%);
  border-radius: 60px;
  border: 1px solid #F6EDFF;
  padding: 14px 38.5px;
  display: inline-block;
}

/* Dissolve animation */
@keyframes dissolve {
  0% { opacity: 0; transform: scale(1.02); }
  100% { opacity: 1; transform: scale(1); }
}

/* Mobile responsive */
@media screen and (max-width: 768px) {
  .rhHeroBannerContainer { min-height: 560px; }

  .hero-banner-image-container picture.hero-banner-image { height: 560px; }

  .rhHeroBannerDetails { margin-top: 55px; }

  .rhHeroBannerTitle {
    font-weight: 500;
    font-size: 28px;
    line-height: 110%;
    text-align: center;
  }

  .rhHeroBannerSubTitle {
    font-weight: 400;
    font-size: 14px;
    line-height: 136%;
    text-align: center;
    margin-bottom: 19px;
  }

  .rhHeroBannerAnchor { padding: 10px 23.5px; }
}
