/* Full-bleed photographs, color matched to the existing portfolio beach. */
body[data-chapter="team"] .stage{background:#276c9d}
body[data-chapter="team"] .stage>#team-background,
body.team-profile-open[data-chapter="team"] .stage>#team-background,
body[data-team-layout="index"][data-chapter="team"] .stage>#team-background,
body[data-team-layout="index"].team-profile-open[data-chapter="team"] .stage>#team-background{
  inset:0;width:100%;height:100%;transform:none;object-fit:cover;object-position:50% 50%;mask-image:none;transition:opacity .55s;
}
/* The crop stays the one the transition clip ends on, profile open included: neither the handoff nor a click moves
   the picture. On a 16:9 screen the photograph is not cropped horizontally at all. */
body[data-chapter="team"] .shade,
body[data-team-layout="index"][data-chapter="team"] .shade{
  background:linear-gradient(90deg,#03131de8,rgba(3,19,29,.72) 22%,rgba(3,19,29,.10) 44%,transparent 61%),linear-gradient(0deg,#03131dcc,transparent 28%,transparent 81%,#03131d66),linear-gradient(270deg,#03131d55,transparent 15%);
}
body.team-profile-open[data-chapter="team"] .shade,
body[data-team-layout="index"].team-profile-open[data-chapter="team"] .shade{
  background:linear-gradient(90deg,#03131df5,rgba(3,19,29,.88) 25%,rgba(3,19,29,.24) 39%,transparent 55%),linear-gradient(0deg,#03131dcc,transparent 27%,transparent 81%,#03131d66),linear-gradient(270deg,#03131d55,transparent 15%);
}
.team-photo-light{mask-image:none;mask-repeat:no-repeat;mask-composite:add}
@media(min-width:701px) and (max-width:900px) and (min-aspect-ratio:4/5){
  .team-panel{width:235px}
  .team-panel h3{font-size:28px}
}
@media(max-aspect-ratio:4/5){
  body[data-chapter="team"] .stage>#team-background,
  body.team-profile-open[data-chapter="team"] .stage>#team-background,
  body[data-team-layout="index"][data-chapter="team"] .stage>#team-background,
  body[data-team-layout="index"].team-profile-open[data-chapter="team"] .stage>#team-background{
    inset:0;width:100%;height:100%;object-position:50% 50%;transform:translateY(calc(-1 * var(--team-photo-shift,0px)));mask-image:none;
  }
  body[data-chapter="team"] .shade,
  body.team-profile-open[data-chapter="team"] .shade,
  body[data-team-layout="index"][data-chapter="team"] .shade,
  body[data-team-layout="index"].team-profile-open[data-chapter="team"] .shade{
    background:linear-gradient(180deg,#03131d75,transparent 29%,transparent 53%,#03131d33 66%,#03131de8 89%,#03131df2);
  }
  .team-photo-light{mask-image:none;mask-repeat:no-repeat;mask-composite:add}
}
@media(max-aspect-ratio:4/5) and (max-height:700px){.team-caption{display:none}}
@media(prefers-reduced-motion:reduce){body[data-chapter="team"] .stage>#team-background{transition:none}}
