.team-section .team-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;max-width:1060px;margin:0 auto}
.team-section .team-card{min-width:0;margin:0;background:#fff;border:1px solid #dce4ed;border-radius:4px;overflow:hidden}
.team-section .person-photo{width:100%;aspect-ratio:4/5;margin:0;background:#e9eef3}
.team-section .person-photo:not(.legacy-portrait) img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 25%}
.team-caption{position:relative;padding:20px 22px 22px}
.team-caption:before{content:"";display:block;width:28px;height:3px;background:#ffd500;margin-bottom:13px}
.team-section .team-card h3{margin:0;color:#06264b;font-size:20px;font-weight:600;line-height:1.35;letter-spacing:-.3px}
.team-section .team-card p{margin:7px 0 0;color:#687d94;font-size:13px;line-height:1.6;white-space:pre-line}
@media(max-width:800px){.team-section .team-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}}
@media(max-width:540px){.team-section .team-grid{gap:16px 12px}.team-caption{padding:14px 12px 16px}.team-caption:before{width:22px;margin-bottom:10px}.team-section .team-card h3{font-size:17px}.team-section .team-card p{font-size:12px}}
@media(max-width:340px){.team-section .team-grid{grid-template-columns:minmax(0,1fr)}}
/* Smaller portraits while keeping the balanced three-column layout. */
.team-section .team-grid{max-width:820px;gap:22px}
.team-section .person-photo{aspect-ratio:1/1}
.team-section .team-caption{padding:15px 18px 17px}
.team-section .team-card h3{font-size:18px}
@media(max-width:800px){.team-section .team-grid{max-width:540px;gap:18px}}
@media(max-width:540px){.team-section .team-grid{max-width:360px;gap:14px 12px}.team-section .team-caption{padding:12px}.team-section .team-card h3{font-size:16px}}
