/* One slide = one browser content viewport, including when Safari's bars are open.
   Keep this after the historical editorial refinements. No authored crop, scale,
   typography or per-device layout is changed here. */
html.project-deck body.page-project-detail .project-story {
  height:100svh;height:100dvh;
}
html.project-deck body.page-project-detail #project-story > .story-slide {
  box-sizing:border-box;height:100%;min-height:0;max-height:100%;
  overflow:clip!important;justify-content:center!important;
  padding-top:max(80px,calc(env(safe-area-inset-top,0px) + 64px))!important;
  padding-bottom:max(52px,calc(env(safe-area-inset-bottom,0px) + 44px))!important;
}
html.project-deck body.page-project-detail #project-story .story-composition {
  flex:1 1 0!important;width:100%;height:100%!important;min-height:0!important;
  max-height:100%!important;margin-block:0;overflow:clip!important;
}
html.project-deck body.page-project-detail #project-story :is(.story-copy,.story-editorial-aside,.story-editorial-primary,.story-diagram-aside,.story-diagram-pair) {
  min-height:0;max-height:100%!important;overflow:clip!important;
}
html.project-deck body.page-project-detail #project-story .story-copy {
  display:flex!important;flex-direction:column;flex:0 1 auto!important;
}
html.project-deck body.page-project-detail #project-story .story-copy__body {
  min-height:0;max-height:none!important;overflow:clip!important;flex:0 1 auto;
}
html.project-deck body.page-project-detail #project-story .story-copy :is(h2,.story-eyebrow) {flex:none}
.story-copy__body.has-condensed-copy{mask-image:linear-gradient(#000 0%,#000 calc(100% - 18px),transparent 100%)}
html.project-deck body.page-project-detail #project-story :is(.story-media,.story-editorial-primary) {
  height:100%!important;min-height:0!important;max-height:100%!important;
}
html.project-deck body.page-project-detail #project-story .story-media__item {
  min-height:0!important;height:100%!important;max-height:100%!important;aspect-ratio:auto!important;
}
html.project-deck body.page-project-detail #project-story .story-media__item :is(img,video) {
  min-height:0;height:100%!important;max-height:100%!important;
}
html.project-deck body.page-project-detail #project-story .story-editorial-aside {
  height:100%;grid-template-rows:minmax(0,1fr) minmax(0,1.4fr);align-content:center;
}
html.project-deck body.page-project-detail #project-story .story-editorial-aside>.story-media__item {width:100%}
html.project-deck body.page-project-detail #project-story .story-editorial-sequence {
  flex:1 1 0;min-height:0;max-height:100%;align-items:stretch;
}
html.project-deck body.page-project-detail #project-story .story-editorial-sequence .story-media__item {align-self:stretch;overflow:clip}
html.project-deck body.page-project-detail #project-story .story-editorial-sequence .story-media__item :is(img,video) {flex:1 1 0;width:100%;min-height:0;aspect-ratio:auto}
html.project-deck body.page-project-detail #project-story .story-editorial-sequence figcaption {flex:none}
html.project-deck body.page-project-detail #project-story .custom-slide__block {overflow:clip}
/* The complete copy is always available by choice, not a surprise inner scroll. */
html.project-deck body.page-project-detail #project-story .story-read-more {display:none!important}
.story-copy-expand {
  position:absolute;bottom:max(12px,env(safe-area-inset-bottom,0px));right:var(--story-gutter,28px);
  border:0;background:transparent;color:inherit;padding:10px 0;min-height:40px;
  font:400 12px/1.4 var(--font-support);cursor:pointer;z-index:5;
}
.story-copy-expand[hidden]{display:none}
.story-copy-expand:focus-visible{outline:1px solid currentColor;outline-offset:3px}
.story-text-dialog{box-sizing:border-box;width:min(760px,calc(100% - 32px));max-height:calc(100svh - 32px);border:1px solid #7775;border-radius:12px;background:#20211f;color:#f4f4f1;padding:24px;overscroll-behavior:contain}
.story-text-dialog::backdrop{background:#0009;backdrop-filter:blur(10px)}
.story-text-dialog,.story-text-dialog *{cursor:auto!important}
.story-text-dialog>button{display:block;position:sticky;top:0;margin:0 0 24px auto;padding:12px 16px;border:1px solid #fff5;border-radius:30px;background:#20211f;color:inherit;font:400 14px var(--font-support)}
.story-text-dialog h2{font:400 clamp(24px,4vw,38px)/1.15 var(--font-display);margin:0 0 20px}
.story-text-dialog p{font:400 16px/1.6 var(--font-support);margin:0 0 1em}
.story-text-dialog section+section{margin-top:32px}
@media(min-width:701px){
 html.project-deck body.page-project-detail #project-story .story-composition--text .story-copy{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
}
@media(max-width:700px),(max-width:950px) and (max-height:550px){
 html.project-deck body.page-project-detail #project-story>.story-slide {padding-inline:28px!important;padding-top:104px!important;gap:12px}
 html.project-deck body.page-project-detail #project-story .story-composition {
  gap:clamp(10px,2dvh,18px)!important;align-content:stretch!important;justify-content:center!important;
 }
 html.project-deck body.page-project-detail #project-story .story-composition:is(.story-composition--text_image,.story-composition--statement,.story-composition--statement_image,.story-composition--image_text_image) {display:flex!important;flex-direction:column!important}
 html.project-deck body.page-project-detail #project-story .story-slide--mirrored .story-composition:is(.story-composition--text_image,.story-composition--statement,.story-composition--statement_image,.story-composition--image_text_image){flex-direction:column-reverse!important}
 html.project-deck body.page-project-detail #project-story .story-composition>.story-copy {flex:0 1 auto!important;max-height:46%!important}
 html.project-deck body.page-project-detail #project-story .story-composition--without-media>.story-copy {max-height:100%!important}
 html.project-deck body.page-project-detail #project-story .story-composition>:is(.story-media,.story-editorial-primary) {flex:1 1 0!important}
 html.project-deck body.page-project-detail #project-story .story-composition>.story-editorial-aside {
  display:grid!important;grid-template-rows:minmax(0,.8fr) minmax(0,1.2fr);flex:0 1 52%;height:52%;gap:12px;
 }
 html.project-deck body.page-project-detail #project-story .story-editorial-aside>.story-copy {max-height:100%;overflow:clip!important}
 html.project-deck body.page-project-detail #project-story .story-editorial-aside>.story-media__item {display:block;min-height:0;max-height:100%!important}
 html.project-deck body.page-project-detail #project-story .story-composition--pair .story-media {grid-template-rows:repeat(2,minmax(0,1fr));align-items:stretch}
 html.project-deck body.page-project-detail #project-story .story-media--grid {grid-template-rows:repeat(2,minmax(0,1fr))}
 html.project-deck body.page-project-detail #project-story .story-composition--triptych .story-editorial-sequence {grid-template-rows:repeat(2,minmax(0,1fr))}
 html.project-deck body.page-project-detail #project-story .story-copy h2 {font-size:clamp(23px,6vw,32px)!important;margin-bottom:10px}
 html.project-deck body.page-project-detail #project-story .story-copy__body {font-size:14px!important;line-height:1.5!important}
 html.project-deck body.page-project-detail #project-story .story-copy__body p {font-size:inherit!important;line-height:inherit!important}
 html.project-deck body.page-project-detail #project-story .project-cover:not(.has-expanded-details) .project-cover__content {overflow:clip}
 .story-copy-expand{right:28px}
}
