html.file-is-open { overflow:hidden }
.project-dossier {
  --ink:#243c58; position:fixed; inset:0 0 0 auto; margin:0; padding:0; border:0;
  width:75vw; max-width:none; height:100%; height:100dvh; max-height:none; overflow:clip; background:transparent;
}
.project-dossier::backdrop { background:rgb(211 226 239 / .2); backdrop-filter:blur(5px) }
.file-sleeve {
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,2fr); height:100%;
  animation:file-enter 1.15s cubic-bezier(.76,0,.18,1) both;
}
.file-sheet {
  min-height:0; padding:clamp(20px,3vh,40px) clamp(18px,1.7vw,36px);
  display:flex; flex-direction:column; color:#f2f6fb; background:#2b425e;
  clip-path:polygon(24px 0,100% 0,100% 100%,0 100%,0 24px);
}
.file-meta {display:flex;align-items:center;justify-content:space-between;gap:10px}
.file-tab,.file-gallery figcaption {font:500 clamp(10px,.8vw,14px)/1.55 var(--mono,monospace);letter-spacing:.045em}
.file-close {flex:none;width:40px;height:40px;padding:0;border:1px solid #a7b7c9;border-radius:3px;color:inherit;background:transparent;font:300 24px/1 Arial,sans-serif}
.file-description {min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.file-description h2 {margin:1.15em 0 .7em;padding-bottom:.65em;border-bottom:1px solid #94a8ba;overflow-wrap:anywhere;font:500 clamp(28px,2.6vw,54px)/1.12 Inter,"PingFang SC","Microsoft YaHei",sans-serif;letter-spacing:-.035em}
.file-copy {font:400 clamp(14px,.96vw,18px)/1.8 Inter,"PingFang SC","Microsoft YaHei",sans-serif;color:#e6edf5;overflow-wrap:anywhere}
.file-copy p {margin:0 0 1em}
.file-copy .file-note {font-size:.88em;color:#d0dfed}
.file-more:not([hidden]) {align-self:flex-start;display:inline-flex;align-items:center;gap:2em;min-height:42px;margin-top:16px;padding:0 12px;border:1px solid #a7b7c9;border-radius:3px;color:inherit;text-decoration:none;font:500 15px/1 var(--mono,monospace)}
.file-more[hidden]{display:none}
.file-close:is(:hover,:focus-visible),.file-more:is(:hover,:focus-visible){background:#e2ebf2;color:#253e59}
.file-gallery {min-width:0;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;background:#f0f3f6;padding:clamp(20px,2.3vw,42px);counter-reset:plate}
.file-gallery figure {margin:0 0 clamp(28px,4vh,60px);counter-increment:plate}
.file-gallery figure:last-child {margin-bottom:0}
.file-gallery figure:only-child {min-height:100%;display:flex;flex-direction:column;justify-content:center}
.file-gallery :is(img,video){display:block;width:100%;max-height:78dvh;object-fit:contain}
.file-gallery figcaption {display:flex;gap:1em;align-items:baseline;margin-top:10px;padding-top:10px;border-top:1px solid #adbdc9;color:#41566d}
.file-gallery figcaption::before {content:counter(plate,decimal-leading-zero) " /";flex:none}
.project-dossier.closing .file-sleeve {animation:file-exit .32s ease-in both}
@keyframes file-enter {from{transform:translateX(100%)}to{transform:translateX(0)}}
@keyframes file-exit {to{transform:translateX(100%)}}
@media(min-width:761px) and (max-width:1090px){.project-dossier{width:90vw}.file-sleeve{grid-template-columns:minmax(0,2fr) minmax(0,3fr)}}
@media(max-width:760px){
  .project-dossier{width:100%}.file-sleeve{display:block;overflow:auto;overscroll-behavior:contain;background:#f0f3f6}
  .file-sheet{clip-path:none;padding:calc(16px + env(safe-area-inset-top)) 22px 24px}
  .file-close{width:44px;height:44px}.file-description{overflow:visible;flex:auto}
  .file-description h2{margin:.55em 0 .6em;font-size:clamp(27px,7vw,38px)}
  .file-copy{font-size:15px}.file-gallery{overflow:visible;padding:22px 18px calc(22px + env(safe-area-inset-bottom))}
  .file-gallery figure:only-child{min-height:0}.file-gallery :is(img,video){max-height:66svh}
}
@media(prefers-reduced-motion:reduce){.project-dossier .file-sleeve{animation:none!important}}
html.file-is-open.has-moving-pointer .project-dossier,html.file-is-open.has-moving-pointer .project-dossier * {cursor:auto!important}
html.file-is-open.has-moving-pointer .project-dossier :is(a,button){cursor:pointer!important}

.file-gallery img{height:auto}

/* The camp portfolio reads as image-and-text chapters within the right pane. */
.project-dossier .file-gallery.file-editorial {display:block;scrollbar-gutter:stable}
.file-editorial .file-chapter {margin:0 0 clamp(40px,6vh,72px)}
.file-editorial .file-chapter header {margin-bottom:24px;max-width:44rem}
.file-editorial .file-chapter-number {margin:0 0 12px;color:#647d8e;font:500 .73rem/1.5 var(--mono,monospace);letter-spacing:.1em}
.file-editorial h3 {margin:0 0 16px;color:#243c58;font:500 clamp(24px,2.1vw,38px)/1.3 Inter,"Microsoft YaHei",sans-serif;letter-spacing:-.035em}
.file-editorial .file-chapter header>p:last-child {margin:0;color:#405663;font:400 clamp(14px,1vw,17px)/1.9 Inter,"Microsoft YaHei",sans-serif}
.project-dossier .file-editorial .file-chapter figure {display:block;min-height:0;width:100%;max-width:none;margin:0 0 28px}
.project-dossier .file-editorial .file-chapter img {width:100%;height:auto;max-height:none}
.file-editorial .file-chapter+.file-chapter {padding-top:28px;border-top:1px solid #c6d5dd}
.file-editorial .file-chapter-grid {display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:24px;align-items:start}
.project-dossier .file-editorial .file-chapter-grid figure {grid-column:auto;justify-self:stretch}
.file-editorial .file-source-note {margin:0;padding-top:20px;border-top:1px solid #c6d5dd;color:#647986;font:400 .76rem/1.8 Inter,"Microsoft YaHei",sans-serif}
@media(max-width:760px){
  .file-editorial .file-chapter-grid {grid-template-columns:1fr}
  .project-dossier .file-editorial .file-chapter-grid figure:last-child {max-width:323px;justify-self:center}
}
