/* Walsh Real Estate — Bio's page, matched to the live reference. */
.walsh-bio-page {
  background: #ffffff;
  color: #000000;
  font-family: var(--walsh-font-body);
  overflow: hidden;
}

/* ---------------- Hero ---------------- */
.walsh-bio-hero {
  position: relative;
  width: 100%;
  height: 538px;
  overflow: hidden;
  background: var(--walsh-bg);
}
.walsh-bio-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.walsh-bio-hero::after {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .12);
  content: "";
}
.walsh-bio-hero h1 {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: min(759px, calc(100% - 40px));
  margin: 0;
  color: #ffffff;
  font-family: var(--walsh-font-heading);
  font-size: 60px;
  font-weight: 700;
  line-height: 84px;
  text-align: center;
  transform: translate(-50%, -50%);
}

/* ---------------- Bio cards ---------------- */
.walsh-bio-people {
  padding: 72px 0 60px;
  background: #ffffff;
}
.walsh-bio-card {
  display: flex;
  width: min(1178px, calc(100% - 80px));
  align-items: center;
  margin: 0 auto 48px;
  padding: 33px 16px 33px 54px;
  background: #f4f4f4;
  border-radius: 10px;
  gap: 64px;
}
.walsh-bio-card--reverse {
  padding: 33px 54px 33px 16px;
}
.walsh-bio-card__photo {
  flex: 0 0 auto;
  margin: 0;
}
.walsh-bio-card__photo img {
  display: block;
  width: 321px;
  height: 348px;
  border-radius: 10px;
  object-fit: cover;
  object-position: center top;
}
.walsh-bio-card--reverse .walsh-bio-card__photo img { width: 308px; }
.walsh-bio-card__text {
  flex: 1 1 auto;
  align-self: stretch;
  padding: 41px 40px 40px;
  background: #e9e9e9;
  border-radius: 10px;
}
.walsh-bio-card__text h2 {
  margin: 0 0 29px;
  color: #000000;
  font-family: var(--walsh-font-heading);
  font-size: 22px;
  font-weight: 700;
  line-height: 30.8px;
}
/* Demo clamps copy to 7 lines with an ellipsis behind a "Read more" button. */
.walsh-bio-card__copy {
  display: block;
  overflow: visible;
  color: #000000;
  font-size: 18px;
  font-weight: 300;
  line-height: 27px;
}
.walsh-bio-card__copy.is-expanded {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}
.walsh-bio-card__copy p { margin: 0 0 18px; }
.walsh-bio-card__copy p:last-child { margin-bottom: 0; }

/* "Read more" — measured 1:1 from the reference: Poppins 16px/500, black,
 * underlined, no background/border/padding. */
.walsh-bio-card__more {
  display: none;
  margin: 10px 0 0;
  padding: 0;
  border: 0 none;
  background: transparent;
  color: #000000;
  font-family: var(--walsh-font-body, 'Poppins', sans-serif);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-decoration: underline;
  cursor: pointer;
}
.walsh-bio-card__more:hover { color: #000000; }
.walsh-bio-card__more:focus-visible { outline: 2px solid #000000; outline-offset: 2px; }

/* ---------------- Certificates ---------------- */
.walsh-bio-certs {
  padding: 60px 0 78px;
  background: #f4f4f4;
  overflow: hidden;
}
.walsh-bio-certs h2 {
  margin: 0 0 35px;
  color: #000000;
  font-family: var(--walsh-font-heading);
  font-size: 40px;
  font-weight: 700;
  line-height: 56px;
  text-align: center;
}
.walsh-bio-certs__viewport { width: 100%; overflow: hidden; }
.walsh-bio-certs__track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 10px;
  animation: walsh-bio-marquee 60s linear infinite;
}
.walsh-bio-certs__viewport:hover .walsh-bio-certs__track { animation-play-state: paused; }
.walsh-bio-cert { margin: 0; }
.walsh-bio-cert img {
  display: block;
  width: auto;
  height: 369px;
  background: #ffffff;
  object-fit: contain;
}
@keyframes walsh-bio-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .walsh-bio-certs__track { animation: none; }
  .walsh-bio-certs__viewport { overflow-x: auto; }
}

/* ---------------- Tablet (768–1023px) — fully fluid ---------------- */
@media (max-width: 1023px) {
  .walsh-bio-hero { height: 360px; }
  .walsh-bio-hero h1 { font-size: 46px; line-height: 60px; }

  .walsh-bio-people { padding: 46px 0 34px; }
  .walsh-bio-card,
  .walsh-bio-card--reverse {
    width: calc(100% - 48px);
    margin-bottom: 34px;
    padding: 24px;
    gap: 24px;
  }
  .walsh-bio-card__photo img,
  .walsh-bio-card--reverse .walsh-bio-card__photo img {
    width: 260px;
    height: 300px;
  }
  .walsh-bio-card__text { padding: 26px 24px; }
  .walsh-bio-card__text h2 { margin-bottom: 18px; font-size: 20px; line-height: 28px; }
  .walsh-bio-card__copy { font-size: 16px; line-height: 24px; }

  .walsh-bio-certs { padding: 44px 0 54px; }
  .walsh-bio-certs h2 { margin-bottom: 26px; font-size: 32px; line-height: 44px; }
  .walsh-bio-cert img { height: 260px; }
}

/* ---------------- Phone (<=767px) — stacked ---------------- */
@media (max-width: 767px) {
  .walsh-bio-hero { height: calc(100vw * .34); min-height: 150px; }
  .walsh-bio-hero h1 { font-size: calc(100vw / 320 * 30); line-height: 1.4; }

  .walsh-bio-people { padding: 26px 0 10px; }
  .walsh-bio-card,
  .walsh-bio-card--reverse {
    display: block;
    width: calc(100% - 40px);
    margin-bottom: 24px;
    padding: 16px;
    border-radius: 8px;
  }
  .walsh-bio-card--reverse { display: flex; flex-direction: column-reverse; }
  .walsh-bio-card__photo { margin: 0 0 16px; }
  .walsh-bio-card--reverse .walsh-bio-card__photo { margin: 16px 0 0; }
  .walsh-bio-card__photo img,
  .walsh-bio-card--reverse .walsh-bio-card__photo img {
    width: 100%;
    height: calc(100vw * .82);
    max-height: 340px;
    border-radius: 8px;
  }
  .walsh-bio-card__text { padding: 18px 16px; border-radius: 8px; }
  .walsh-bio-card__text h2 { margin-bottom: 12px; font-size: 18px; line-height: 26px; }
  .walsh-bio-card__copy {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 7;
    font-size: 14px;
    line-height: 21px;
  }
  .walsh-bio-card__copy.is-expanded { display: block; overflow: visible; -webkit-line-clamp: unset; }
  .walsh-bio-card__more { display: inline-block; font-size: 16px; }
  .walsh-bio-card__copy p { margin-bottom: 12px; }

  .walsh-bio-certs { padding: 28px 0 34px; }
  .walsh-bio-certs h2 { margin-bottom: 18px; font-size: 25px; line-height: 35px; }
  .walsh-bio-cert img { height: 190px; }
}
