.team-gallery{--gallery-height:clamp(280px,34vw,440px);padding-block:60px 64px;overflow:hidden;background:#FAF8F5;color:#22272A}
.team-gallery-heading{display:flex;align-items:end;justify-content:space-between;gap:28px;margin-bottom:30px}
.team-gallery-heading h2{margin:16px 0 0;max-width:680px}
.team-gallery-controls{display:flex;gap:12px;flex-shrink:0}
.team-gallery-controls button{font:inherit;font-size:14px;line-height:1.4;padding:12px 17px;border:1px solid #CBBBA5;background:transparent;color:inherit;border-radius:2px;cursor:pointer;min-height:44px}
.team-gallery-controls button:hover:not(:disabled){background:#ECE6DC}
.team-gallery-controls button:disabled{opacity:.35;cursor:default}
.team-gallery-controls button:focus-visible,.team-gallery-track:focus-visible{outline:2px solid #22272A;outline-offset:4px}
.team-gallery-track{display:flex;align-items:center;gap:24px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-padding-inline:max(24px,calc((100vw - 1320px)/2 + clamp(24px,5.4vw,80px)));padding:4px max(24px,calc((100vw - 1320px)/2 + clamp(24px,5.4vw,80px))) 18px;scrollbar-width:thin;scrollbar-color:#CBBBA5 transparent}
.team-gallery-slide{flex:0 0 auto;width:calc(var(--gallery-height)*var(--photo-ratio));max-width:calc(100vw - 48px);margin:0;scroll-snap-align:start}
.team-gallery-slide img{display:block;width:100%;height:auto;border-radius:2px}
.team-gallery-bottom{display:flex;justify-content:space-between;gap:20px;padding-top:16px;font-size:14px;line-height:1.5}
.team-gallery-count{white-space:nowrap}
@media(max-width:759px){.team-gallery{padding-block:38px 42px;--gallery-height:360px}.team-gallery-heading{align-items:start;flex-direction:column;gap:20px;margin-bottom:22px}.team-gallery-track{gap:16px}.team-gallery-bottom{font-size:14px;align-items:start}.team-gallery-bottom>span:first-child{max-width:180px}}

/* Full-bleed continuous photo strip. */
.team-gallery-track{padding:0;scroll-padding:0;scroll-snap-type:none;scrollbar-width:none}
.team-gallery-track::-webkit-scrollbar{display:none}
.team-gallery-slide{scroll-snap-align:none}
.team-gallery-pause{font:inherit;font-size:14px;color:inherit;border:0;border-bottom:1px solid currentColor;background:transparent;padding:0 0 3px;cursor:pointer}
.team-gallery-pause:focus-visible{outline:2px solid currentColor;outline-offset:5px}
