/* Homepage-only integrated hero visual. Keep the search panel outside the artwork. */
@media (min-width: 901px) {
  .portal-page .service-hero {
    position: relative;
    isolation: isolate;
  }

  .portal-page .service-hero::before {
    display: block;
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    left: 0;
    height: 600px;
    opacity: 1;
    background-image: linear-gradient(to bottom, transparent 82%, #fff 100%), url("images/elderlyhub-home-hero-couple-v1.png");
    background-size: cover;
    background-position: center top, center 25%;
    background-repeat: no-repeat;
    content: "";
    pointer-events: none;
  }

  .portal-page .service-hero-grid {
    display: flex;
    position: relative;
    min-height: 500px;
    align-items: flex-start;
    background: transparent;
  }

  .portal-page .service-hero-copy {
    width: min(53%, 650px);
    flex: 0 0 auto;
    align-self: flex-start;
    height: auto;
  }

  .portal-page .service-hero h1 {
    max-width: 650px;
    font-size: clamp(54px, 4.7vw, 72px);
  }

  .portal-page .service-hero-lead {
    max-width: 620px;
    font-size: 20px;
  }

  .portal-page .service-switcher {
    position: absolute;
    bottom: 46px;
    left: 0;
    width: min(53%, 650px);
    margin: 0 !important;
    transform: none !important;
  }

  .portal-page .service-hero-photo {
    display: none;
  }
}

.portal-page .service-hero {
  background: #fff;
}

@media (max-width: 900px) {
  .portal-page .service-hero-photo {
    width: 100%;
    max-width: none;
    height: 300px;
    margin: 0;
    overflow: hidden;
  }

  .portal-page .service-hero-photo img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: 78% center;
  }
}

@media (max-width: 600px) {
  .portal-page .service-hero-photo {
    height: 230px;
  }
}
