/* Team clothesline final geometry pass.
   Replace conflicting 100vw and viewport-lock overrides with one real, browser-wide scroll strip. */
html:has(body.team-page){height:auto!important;max-height:none!important;overflow-x:clip!important;overflow-y:auto!important}
body.team-page{height:auto!important;max-height:none!important;min-height:100dvh!important;overflow-x:clip!important;overflow-y:auto!important;display:flex!important;flex-direction:column}
.team-page .team-shell{width:min(1400px,calc(100% - 2.5rem))!important;max-width:none!important;height:auto!important;min-height:0!important;max-height:none!important;flex:1 0 auto!important;overflow:visible!important;padding-bottom:0}
.team-page .team-lineup{
 width:100%;max-width:100%;flex:1 0 auto!important;min-height:0!important;
 overflow:visible!important;justify-content:flex-start!important;
 padding:clamp(24px,4vh,55px) 0 clamp(2.4rem,4.5vh,3.5rem)!important;
 gap:clamp(.85rem,1.6vh,1.3rem)!important
}
.team-page .team-intro{width:100%;padding-top:0!important}
.team-page .team-gallery{
 left:calc(50% - 50vw)!important;transform:none!important;
 width:100vw!important;max-width:100vw!important;
 height:auto!important;max-height:none!important;
 min-width:0!important;margin:0!important;padding:0!important;
 position:relative;overflow:visible!important;isolation:isolate
}
.team-page .team-gallery::before{top:57px;z-index:0}
.team-page .team-rope-window{
 display:block;box-sizing:border-box;
 position:relative;z-index:1;
 width:100%!important;max-width:100%!important;
 height:auto!important;max-height:none!important;
 min-height:0!important;overflow-x:auto!important;overflow-y:hidden!important;
 mask-image:none!important;-webkit-mask-image:none!important;
 clip-path:none!important;scroll-snap-type:x proximity;
 touch-action:pan-x;overscroll-behavior-x:contain;
 scrollbar-width:thin;scrollbar-color:#725d94 #120f1b
}
.team-page .team-rope-track{
 --rope-gap:clamp(24px,2.4vw,45px);
 position:relative;display:flex;width:max-content;min-width:100%;max-width:none;
 height:auto;align-items:flex-start;gap:var(--rope-gap);
 padding:clamp(69px,6vw,80px) clamp(85px,7vw,125px) clamp(40px,4vw,64px)!important;
}
.team-page .team-person{--card-width:clamp(276px,26vw,368px);flex:0 0 var(--card-width);width:var(--card-width);height:auto;scroll-snap-align:start}
.team-page .team-photo{aspect-ratio:1.37/1!important}
.team-page .team-polaroid{min-height:0}
.team-page .team-polaroid p{min-height:2.7em}
.team-page .team-gesture-guide{top:37%;pointer-events:none}
.team-page .team-gallery-controls{
 flex:0 0 auto;display:flex;align-items:center;justify-content:center;
 gap:1rem;margin:.15rem auto .25rem;position:relative;z-index:5
}
.team-page .team-gallery-controls button{width:42px;height:42px;border-radius:50%}
.team-page .team-gallery-count{min-width:95px;text-align:center;color:#c4b6de;font:700 .74rem "DM Sans",sans-serif;letter-spacing:.06em}
.team-page .team-gallery-controls button:focus-visible{outline:2px solid #e1bbff;outline-offset:3px}
.team-page .site-legal-footer{position:relative;width:100%;margin-top:auto}
@media(max-width:700px){
 .team-page .team-shell{width:calc(100% - 1.5rem)!important}
 .team-page .team-lineup{padding:1.4rem 0 2.3rem!important;gap:1rem!important}
 .team-page .team-gallery{left:calc(50% - 50vw)!important}
 .team-page .team-rope-track{--rope-gap:24px;padding:70px 35px 38px!important}
 .team-page .team-person{--card-width:min(77vw,330px)}
 .team-page .team-photo{aspect-ratio:1.28/1!important}
 .team-page .team-gallery-controls{margin:0 auto .75rem}
 .team-page .team-gesture-guide{top:40%}
}
@media(max-height:750px) and (min-width:701px){
 .team-page .team-lineup{padding:12px 0 24px!important;gap:.5rem!important}
 .team-page .team-rope-track{padding-top:60px!important;padding-bottom:32px!important}
 .team-page .team-photo{aspect-ratio:1.6/1!important}
}
@media(prefers-reduced-motion:reduce){.team-page .team-rope-window{scroll-behavior:auto}}


/* Full-viewport Team clothesline without the old narrow clipping boundary.
   Horizontal swipe/drag remains; vertical page scroll is unnecessary. */
@media(min-width:701px) and (min-height:590px){
 html:has(body.team-page){height:100%!important;max-height:100dvh!important;overflow-x:clip!important;overflow-y:hidden!important}
 body.team-page{height:100dvh!important;min-height:0!important;max-height:100dvh!important;overflow-x:clip!important;overflow-y:hidden!important;display:flex!important;flex-direction:column!important}
 .team-page .team-shell{
   width:min(1400px,calc(100% - 2.5rem))!important;
   flex:1 1 auto!important;min-height:0!important;max-height:100%!important;
   overflow:visible!important;
   display:flex!important;flex-direction:column!important;
 }
 .team-page .team-lineup{
   flex:1 1 auto!important;min-height:0!important;
   display:flex!important;flex-direction:column!important;
   padding:clamp(5px,1dvh,12px) 0 0!important;
   gap:clamp(4px,.7dvh,9px)!important;
   overflow:visible!important;justify-content:flex-start!important;
 }
 .team-page .team-intro{flex:0 0 auto!important;padding-top:0!important}
 .team-page .team-intro h1{font-size:clamp(2rem,3.7dvw,3.4rem)!important}
 .team-page .team-intro>p:last-child{margin:.3rem auto 0!important}
 .team-page .team-gallery{
   position:relative!important;
   left:50%!important;
   margin-left:-50vw!important;
   transform:none!important;
   width:100vw!important;
   min-width:100vw!important;
   max-width:100vw!important;
   height:100%!important;
   min-height:0!important;
   flex:1 1 auto!important;
   overflow:visible!important;
   padding:0!important;
   isolation:isolate!important;
 }
 .team-page .team-gallery::before{
   left:0!important;right:0!important;width:100%!important;
   top:clamp(49px,6.3dvh,65px)!important;
 }
 .team-page .team-rope-window{
   width:100vw!important;max-width:100vw!important;min-width:100vw!important;
   height:100%!important;max-height:100%!important;
   min-height:0!important;
   overflow-x:auto!important;overflow-y:hidden!important;
   scrollbar-width:none!important;
 }
 .team-page .team-rope-window::-webkit-scrollbar{display:none!important}
 .team-page .team-rope-track{
   --rope-gap:clamp(16px,2vw,32px);
   height:max-content!important;min-height:0!important;
   padding:clamp(57px,6.8dvh,72px) clamp(18px,2vw,34px) 12px!important;
 }
 .team-page .team-person{
   --card-width:clamp(215px,min(20vw,34dvh),295px);
   width:var(--card-width)!important;
   flex:0 0 var(--card-width)!important;
 }
 .team-page .team-photo{aspect-ratio:1.6/1!important}
 .team-page .team-polaroid{padding:8px 9px 10px!important}
 .team-page .team-polaroid h2{font-size:clamp(.98rem,1.4vw,1.18rem)!important}
 .team-page .team-polaroid p{margin:5px 0!important;font-size:clamp(.62rem,.8vw,.77rem)!important;min-height:2em!important}
 .team-page .team-polaroid-facts{margin-top:7px!important;padding-top:7px!important;gap:4px 8px!important}
 .team-page .team-polaroid-facts dt{font-size:.55rem!important}
 .team-page .team-polaroid-facts dd{font-size:.65rem!important;margin-top:1px!important}
 .team-page .team-peg{width:32px!important;height:65px!important;top:-46px!important}
 .team-page .team-gallery-controls{display:none!important}
 .team-page .site-legal-footer{flex:0 0 auto!important;margin-top:0!important}
}
@media(max-width:700px){
 .team-page .team-gallery{left:50%!important;margin-left:-50vw!important;transform:none!important;width:100vw!important;min-width:100vw!important;max-width:100vw!important}
 .team-page .team-rope-window{width:100vw!important;min-width:100vw!important;max-width:100vw!important}
 .team-page .team-gallery-controls{display:none!important}
}
@media(max-height:589px){
 .team-page .team-gallery-controls{display:none!important}
}
