.team-portrait-list { display: none; }

@media (max-width: 767px) {
  body[data-page="team"] .team-legacy-doctors {
    display: none;
  }

  .team-portrait-list {
    display: grid;
    gap: 24px;
    margin: 24px calc(0rem - clamp(1rem, 5vw, 1.5rem)) 0;
    justify-items: center;
  }

  .team-portrait {
    position: relative;
    isolation: isolate;
    container-type: inline-size;
    width: 100%;
    max-width: 496px;
    aspect-ratio: 1;
    margin: 0;
    overflow: hidden;
    border-radius: 20px;
    background: #a38e77;
    box-shadow: 0 12px 28px rgb(77 53 31 / 14%);
  }

  .team-portrait > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .team-portrait__caption {
    position: absolute;
    inset: auto 0 0;
    box-sizing: border-box;
    height: 25%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    color: #2f241c;
    background: linear-gradient(135deg, rgb(255 249 236 / 82%), rgb(239 224 202 / 72%));
    backdrop-filter: blur(18px) saturate(115%);
    -webkit-backdrop-filter: blur(18px) saturate(115%);
    border-top: 1px solid rgb(255 255 255 / 65%);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 28%);
    text-align: center;
  }

  .team-portrait__name,
  .team-portrait__specialty {
    display: block;
    white-space: nowrap;
    line-height: 1.3;
  }

  .team-portrait__name {
    font-family: var(--_typography---font--heading-font);
    font-size: clamp(12px, 4.05cqw, 20px);
    font-weight: 700;
  }

  .team-portrait__specialty {
    font-family: var(--_typography---font--body-font);
    font-size: clamp(10px, 3.1cqw, 15px);
    font-weight: 500;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .team-portrait-list { margin-right: -2rem; margin-left: -2rem; }
}
