/* Team page: keep the exported desktop layout while correcting the stacked view. */
.team-reveal-line {
  display: block;
}

body[data-page="team"] .team-mobile-hero {
  display: none;
}

/* VitaNatale also reveals each whole card; keep the card still while its children animate. */
body[data-page="team"] > .section:first-of-type .grid_2-col > .ix-content-block {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  transition: none !important;
}

@media (prefers-reduced-motion: no-preference) {
  body[data-page="team"] > .section.team-reveal-fallback [data-team-reveal] {
    opacity: 0;
    transform: translateY(16px);
  }

  body[data-page="team"] > .section.team-reveal-fallback-active [data-team-reveal] {
    transition: opacity 1.9s ease-in-out, transform 1.9s ease-in-out;
  }

  body[data-page="team"] > .section.team-reveal-fallback [data-team-reveal].team-is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991px) {
  body[data-page="team"] > .section:first-of-type .position_sticky.is-top-section-padding {
    top: 0;
  }

  body[data-page="team"] > .section:first-of-type .grid_3-col {
    row-gap: 2rem;
  }

  body[data-page="team"] > .section:first-of-type .grid_2-col {
    row-gap: 2.5rem;
  }

  body[data-page="team"] > .section:first-of-type .grid_2-col > .ix-content-block {
    text-align: left;
  }

  body[data-page="team"] > .section:first-of-type .grid_2-col .image-ratio_3x2 {
    margin-bottom: 0;
  }

  body[data-page="team"] > .section:first-of-type .grid_2-col .margin-top_xsmall {
    margin-top: 1rem;
  }

  body[data-page="team"] > .section:first-of-type .grid_2-col .heading_small {
    margin-bottom: .5rem;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 600;
    line-height: 1.25;
  }

  body[data-page="team"] > .section:first-of-type .grid_2-col .label {
    margin-bottom: .875rem;
    color: #6b5b48;
    font-size: .9375rem;
    line-height: 1.45;
  }

  body[data-page="team"] > .section:first-of-type .grid_2-col p {
    margin: 0;
    font-size: .9375rem;
    line-height: 1.55;
  }
}

@media (max-width: 767px) {
  body[data-page="team"] {
    --team-mobile-rhythm: 48px;
  }

  body[data-page="team"] > .section:first-of-type {
    padding-top: var(--team-mobile-rhythm) !important;
    padding-bottom: var(--team-mobile-rhythm);
  }

  body[data-page="team"] > .section:first-of-type .team-mobile-hero {
    isolation: isolate;
    position: relative;
    display: flex;
    aspect-ratio: 4 / 5;
    align-items: center;
    justify-content: center;
    width: auto;
    margin: 0 calc(0rem - clamp(1rem, 5vw, 1.5rem));
    overflow: hidden;
    background-color: #a08362;
    border-radius: 1.25rem;
    box-shadow: 0 .75rem 1.75rem rgb(77 53 31 / 14%), inset 0 1px 0 rgb(255 250 240 / 30%);
  }

  body[data-page="team"] .team-mobile-hero__backdrop {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: url("../images/Team-doctors-group-1200-03-11-26.webp"), linear-gradient(90deg, #d0bfa9, #d5c2ab 8%, #d5c1ad 25%, #d3c2ad 50%, #d4c1a9 75%, #cfbca5);
    background-position: center bottom, center;
    background-size: 100% auto, 100% 100%;
    background-repeat: no-repeat;
    mix-blend-mode: soft-light;
  }

  body[data-page="team"] > .section:first-of-type .team-mobile-hero::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    background: linear-gradient(180deg, rgb(113 78 46 / 22%), rgb(86 56 32 / 33%));
    content: "";
    pointer-events: none;
  }

  body[data-page="team"] > .section:first-of-type .team-mobile-hero__title {
    position: absolute;
    inset: 0 1rem;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0;
    padding: 1.75rem 0 1.625rem;
    font-family: var(--_typography---font--heading-font);
    font-size: clamp(1.75rem, 8.6vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: .98;
    text-align: center;
    text-wrap: balance;
  }

  body[data-page="team"] > .section:first-of-type .team-mobile-hero__title-dark {
    color: #3b2a21;
  }

  body[data-page="team"] > .section:first-of-type .team-mobile-hero__title-light {
    color: #fffaf0;
  }

  html.w-mod-js:not(.w-mod-ix3) body[data-page="team"][data-page="team"][data-page="team"] .team-mobile-hero__title,
  body[data-page="team"] > .section:first-of-type .team-mobile-hero__title,
  body[data-page="team"] > .section:first-of-type .team-mobile-hero__title .gsap_split_word {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }

  body[data-page="team"] > .section:first-of-type .position_sticky > .header {
    display: none;
  }

  body[data-page="team"] > .section:first-of-type .header .eyebrow {
    margin-bottom: 16px;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: .02em;
    white-space: nowrap;
  }

  body[data-page="team"] > .section:first-of-type .grid_3-col {
    /* The intro's button group includes 16px of trailing space. */
    row-gap: 32px;
  }

  body[data-page="team"] > .section:first-of-type .header .heading_primary {
    font-size: clamp(2rem, 8.6vw, 2.5rem);
    line-height: 1.08;
  }

  body[data-page="team"] > .section:first-of-type .header .subheading {
    margin-bottom: 1.25rem;
  }

  body[data-page="team"] > .section:first-of-type .header .button-group,
  body[data-page="team"] > .section:first-of-type .header .button {
    width: 100%;
  }

  body[data-page="team"] > .section:first-of-type .grid_2-col > .ix-content-block:not(:last-child) {
    padding-bottom: 23px;
    border-bottom: 1px solid #e7ddd0;
  }

  body[data-page="team"] > .section:first-of-type .grid_2-col {
    row-gap: 24px;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  body[data-page="team"] > .section:first-of-type .team-mobile-hero {
    margin-right: -2rem;
    margin-left: -2rem;
  }
}
