/* Full-bleed, with type protected by the softly lit left side of the photo. */
.clinic-hero {
  position: relative;
  padding: 0;
  isolation: isolate;
  background: #faf6eb;
}

.clinic-hero__layout {
  display: flex;
  min-height: clamp(540px, 42vw, 730px);
  align-items: center;
  max-width: 1260px;
  padding: 48px 30px;
}

.clinic-hero__layout > div { z-index: 1; max-width: min(44%, 525px); }
.clinic-hero h1 { font-size: clamp(2.45rem, 4.15vw, 4.4rem); text-wrap: balance; }
.clinic-hero h1 span { white-space: nowrap; }
.clinic-hero__lede { color: #25493c; max-width: 26rem; }

.clinic-hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.clinic-hero__media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgb(255 250 239 / .97) 0%, rgb(255 250 239 / .86) 29%, rgb(255 250 239 / .56) 42%, transparent 64%);
}

.clinic-hero__media img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  object-position: 62% 48%;
}

.clinic-hero__media figcaption {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 14px;
  margin: 0;
  padding: 3px 7px;
  color: #244538;
  background: rgb(255 250 239 / .91);
  border-radius: 3px;
}

@media (max-width: 760px) {
  .clinic-hero__layout { display: flex; flex-direction: column; align-items: stretch; min-height: 0; gap: 0; padding: 0; }
  .clinic-hero__layout > div { max-width: none; padding: 26px 20px 28px; }
  .clinic-hero__media { position: relative; order: -1; z-index: 0; height: clamp(218px, 58vw, 340px); }
  .clinic-hero__media::after { background: linear-gradient(0deg, rgb(250 246 235 / .35), transparent 36%); }
  .clinic-hero__media img { object-position: 77% center; }
  .clinic-hero__media figcaption { bottom: 7px; right: 10px; }
  .clinic-hero h1 { font-size: clamp(2.05rem, 8.1vw, 3.4rem); }
}
