/* A quiet opening, followed by the clinic's own treatment photographs. */
.hero.hero-text-only {
  display: block;
  min-height: 0;
}

.hero-text-only .hero-copy {
  max-width: 1000px;
  margin: 0 auto;
  padding: 62px 6% 35px;
  align-items: center;
  text-align: center;
}

.hero-text-only .hero-description {
  max-width: none;
}

.hero-text-only .hero-intro {
  max-width: 570px;
}

.hero-text-only .hero-actions {
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.hero-text-only .hero-credential {
  align-self: center;
}

.hero-text-only .hero-foot {
  flex-direction: row;
  width: 100%;
  max-width: 590px;
  text-align: left;
}

.hero-text-only .hero-foot > span {
  display: block;
}

.hero-text-only .hero-address {
  text-align: right;
}

/* Treatment portraits share a consistent framed layout. */
.visit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: clamp(38px, 6vw, 84px);
  align-items: center;
}

.visit-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(14px, 1.5vw, 24px);
  min-width: 0;
}

.visit-photo {
  margin: 0;
  background: #fff;
  border: 1px solid #d8d9ce;
}

.visit-photo:nth-child(2) {
  margin-top: 44px;
}

.visit-photo img {
  display: block;
  width: 100%;
  height: auto;
  /* Match the right-hand portrait so both images fill their frames evenly. */
  aspect-ratio: 851 / 1849;
  object-fit: cover;
  object-position: center;
}

.visit-layout .steps {
  grid-template-columns: 1fr;
  gap: 28px;
  border: 0;
  padding: 0;
  min-width: 0;
}

.visit-layout .steps article {
  position: relative;
  padding-left: 55px;
}

.visit-layout .steps article > span {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 2.3rem;
  margin: 0;
}

.visit-layout .steps h3 {
  margin-bottom: 12px;
}

.visit-layout .steps article + article {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.visit-layout .steps article + article > span {
  top: 28px;
}

@media (max-width: 900px) {
  .visit-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .visit-gallery {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    gap: 20px;
  }

  .visit-photo:nth-child(2) {
    margin-top: 30px;
  }

  .visit-layout .steps {
    max-width: 680px;
  }
}

@media (max-width: 650px) {
  .hero-text-only .hero-copy {
    padding: 42px 7% 28px;
  }

  .visit-layout {
    gap: 32px;
  }

  .visit-gallery {
    gap: 14px;
  }

  .visit-photo:nth-child(2) {
    margin-top: 24px;
  }
}

@media (max-width: 370px) {
  .hero-text-only .hero-actions {
    flex-direction: column;
  }

  .hero-text-only .hero-foot {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-text-only .hero-address {
    text-align: center;
  }
}
