/* Meet the Team — canonical edge-to-edge clothesline.
   Removes the inherited 1400px gallery centring and competing relative
   offsets. Only the header and intro are content-width constrained. */

html:has(body.team-page){
  height:100%!important;
  max-height:100%!important;
  overflow-x:clip!important;
  overflow-y:hidden!important;
}
body.team-page{
  box-sizing:border-box!important;
  display:flex!important;
  flex-direction:column!important;
  width:100%!important;
  height:100dvh!important;
  min-height:0!important;
  max-height:100dvh!important;
  margin:0!important;
  overflow-x:clip!important;
  overflow-y:hidden!important;
}
.team-page .team-shell.experience-shell.container{
  box-sizing:border-box!important;
  display:flex!important;
  flex:1 1 0!important;
  flex-direction:column!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  height:auto!important;
  min-height:0!important;
  max-height:100%!important;
  margin:0!important;
  padding:clamp(.6rem,1.7dvh,1.4rem) 0 0!important;
  overflow:hidden!important;
}
.team-page .team-shell>.experience-header{
  display:flex!important;
  flex:0 0 auto!important;
  box-sizing:border-box!important;
  width:min(1400px,calc(100% - 2.5rem))!important;
  max-width:1400px!important;
  margin:0 auto!important;
  padding-bottom:clamp(.55rem,1.2dvh,1rem)!important;
}
.team-page .team-lineup{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  flex:1 1 0!important;
  min-height:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  gap:clamp(.45rem,1.2dvh,1rem)!important;
  margin:0!important;
  padding:clamp(.4rem,1dvh,.9rem) 0 0!important;
  overflow:hidden!important;
}
.team-page .team-intro{
  position:relative!important;
  display:block!important;
  flex:0 0 auto!important;
  box-sizing:border-box!important;
  width:min(1400px,calc(100% - 2.5rem))!important;
  max-width:1400px!important;
  margin:0 auto!important;
  padding:0!important;
  text-align:center!important;
}
.team-page .team-intro h1{
  font-size:clamp(2.2rem,4vw,3.7rem)!important;
}
.team-page .team-intro>p:last-child{margin:.45rem auto 0!important}

/* The gallery itself is a direct 100%-wide child of the full-width shell.
   NO translate(-50%), NO left:50%, NO margin-left:-50vw, and NO max-width. */
.team-page .team-gallery{
  position:relative!important;
  box-sizing:border-box!important;
  display:block!important;
  flex:1 1 0!important;
  left:0!important;
  right:auto!important;
  transform:none!important;
  margin:0!important;
  padding:0!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  overflow:hidden!important;
  isolation:isolate!important;
}
.team-page .team-gallery::before{
  content:""!important;
  position:absolute!important;
  top:clamp(53px,6.5dvh,69px)!important;
  left:0!important;
  right:0!important;
  width:100%!important;
  height:4px!important;
  border-radius:0!important;
  background:linear-gradient(180deg,#e0c9a7,#765a42 48%,#d5ae89)!important;
  box-shadow:0 2px 4px #0009!important;
  z-index:0!important;
  pointer-events:none!important;
}
.team-page .team-rope-window{
  position:relative!important;
  box-sizing:border-box!important;
  display:block!important;
  z-index:1!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:100%!important;
  max-height:100%!important;
  min-height:0!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scroll-snap-type:x proximity!important;
  overscroll-behavior:contain!important;
  touch-action:pan-x!important;
  mask-image:none!important;
  -webkit-mask-image:none!important;
  clip-path:none!important;
  scrollbar-width:none!important;
}
.team-page .team-rope-window::-webkit-scrollbar{display:none!important}
.team-page .team-rope-track{
  position:relative!important;
  box-sizing:content-box!important;
  display:flex!important;
  align-items:flex-start!important;
  flex-wrap:nowrap!important;
  gap:clamp(17px,2vw,33px)!important;
  width:max-content!important;
  min-width:100%!important;
  max-width:none!important;
  height:max-content!important;
  min-height:0!important;
  margin:0!important;
  padding:clamp(65px,8dvh,78px) clamp(47px,3.2vw,64px) 18px!important;
}
.team-page .team-rope-track::before{display:none!important}
.team-page .team-person{
  --card-width:clamp(275px,min(21vw,42dvh),330px);
  position:relative!important;
  flex:0 0 var(--card-width)!important;
  width:var(--card-width)!important;
  min-width:var(--card-width)!important;
  height:max-content!important;
  scroll-snap-align:start!important;
}
.team-page .team-photo{
  aspect-ratio:1.34/1!important;
}
.team-page .team-polaroid{
  padding:clamp(10px,1vw,13px) clamp(10px,1vw,13px) clamp(12px,1.3vw,17px)!important;
}
.team-page .team-polaroid h2{
  margin-top:9px!important;
  font-size:clamp(1.1rem,1.45vw,1.35rem)!important;
}
.team-page .team-polaroid p{
  font-size:clamp(.68rem,.85vw,.8rem)!important;
  line-height:1.4!important;
  min-height:2.5em!important;
  margin:5px auto 9px!important;
}
.team-page .team-polaroid-facts{
  margin-top:9px!important;
  padding-top:9px!important;
  gap:6px 10px!important;
}
.team-page .team-polaroid-facts dt{font-size:clamp(.53rem,.64vw,.63rem)!important}
.team-page .team-polaroid-facts dd{font-size:clamp(.61rem,.76vw,.73rem)!important}
.team-page .team-peg{
  width:clamp(34px,2.7vw,43px)!important;
  height:clamp(66px,5.3vw,82px)!important;
  top:clamp(-55px,-3.4vw,-45px)!important;
}
.team-page .team-gallery-controls{display:none!important}
.team-page>.site-legal-footer{
  display:block!important;
  position:relative!important;
  flex:0 0 auto!important;
  margin-top:0!important;
  width:100%!important;
}

/* Keep the entire page inside one viewport on normal desktop screens.
   Smaller heights scale the cards instead of adding document scrolling. */
@media(min-width:701px) and (max-height:790px){
  .team-page .team-rope-track{padding-top:clamp(53px,7.3dvh,64px)!important}
  .team-page .team-gallery::before{top:clamp(43px,6dvh,55px)!important}
  .team-page .team-person{--card-width:clamp(245px,min(21vw,39dvh),305px)}
  .team-page .team-photo{aspect-ratio:1.46/1!important}
  .team-page .team-polaroid p{margin:4px auto 6px!important}
  .team-page .team-polaroid-facts{padding-top:6px!important;margin-top:6px!important}
}
@media(max-height:590px){
  .team-page .team-shell.experience-shell.container{padding-top:.3rem!important}
  .team-page .team-lineup{gap:.2rem!important;padding:0!important}
  .team-page .team-intro h1{font-size:clamp(1.65rem,4dvh,2.35rem)!important}
  .team-page .team-intro>p:last-child{font-size:.68rem!important;margin:.18rem auto 0!important}
  .team-page .team-rope-track{padding-top:48px!important}
  .team-page .team-gallery::before{top:39px!important}
  .team-page .team-person{--card-width:clamp(205px,32dvh,240px)}
  .team-page .team-photo{aspect-ratio:1.55/1!important}
  .team-page .team-peg{width:31px!important;height:60px!important;top:-42px!important}
  .team-page .team-polaroid p{font-size:.61rem!important;min-height:1.9em!important;margin:2px 0!important}
  .team-page .team-polaroid-facts{margin-top:4px!important;padding-top:4px!important;gap:3px!important}
}
@media(max-width:700px){
  .team-page .team-shell>.experience-header,
  .team-page .team-intro{width:calc(100% - 1.5rem)!important}
  .team-page .team-lineup{gap:clamp(.45rem,1vh,.8rem)!important}
  .team-page .team-intro h1{font-size:clamp(1.9rem,7.5vw,2.7rem)!important}
  .team-page .team-rope-track{
    gap:clamp(13px,4vw,24px)!important;
    padding:clamp(59px,8dvh,74px) clamp(38px,10vw,48px) 12px!important;
  }
  .team-page .team-person{--card-width:min(80vw,345px)}
  .team-page .team-photo{aspect-ratio:1.29/1!important}
  .team-page .team-gallery::before{top:clamp(49px,6.5dvh,65px)!important}
}
@media(prefers-reduced-motion:reduce){
  .team-page .team-rope-window{scroll-behavior:auto!important}
  .team-page .team-person{transition:none!important}
}
