/* The project guide shares the article's type and paper with room to read plans. */
.dossier-jumps { display:flex; flex-wrap:wrap; gap:.25rem 1.15rem; margin-top:1.2rem; }
.dossier-jumps a, .dossier-plans a, .dossier-figure figcaption a, .gallery-description a {
  color:#754129; text-decoration:underline; text-underline-offset:.2em;
}
.dossier-jumps a { display:inline-flex; align-items:center; min-height:2.75rem; padding-inline:.15rem; font-size:.95rem; }
.article:has(.project-dossier) .story-opener { grid-template-columns:minmax(0,1fr) minmax(0,1.12fr); }
.article:has(.project-dossier) .story-opener figure img { max-height:29rem; object-fit:contain; }
.project-dossier { margin:clamp(2rem,4vw,4rem) auto; }
.dossier-section { border-top:1px solid #879386; padding:clamp(1.25rem,2.4vw,2.25rem) 0 0; margin-bottom:clamp(2.4rem,5vw,4.3rem); }
.dossier-section h2 { margin:0 0 1.15rem; font:400 clamp(2.05rem,4.15vw,3.85rem)/1.08 var(--serif); letter-spacing:-.025em; scroll-margin-top:1rem; }
.dossier-section h2 { width:fit-content; max-width:100%; }
.dossier-section h2:focus-visible { outline:1px solid #8b998a; outline-offset:.2rem; }
html:lang(zh) .dossier-section h2 { font:400 clamp(1.75rem,3vw,2.8rem)/1.25 var(--zh-serif); letter-spacing:0; }
.dossier-gallery { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.6rem clamp(1rem,2vw,2rem); }
.dossier-gallery[data-images="1"] { grid-template-columns:minmax(0,49rem); }
.article .dossier-figure { margin:0; min-width:0; }
.dossier-open { background:#f1f1ea; position:relative; display:grid; place-items:center; cursor:zoom-in; border:1px solid #d9dbd3; }
.article .dossier-open img { display:block; width:100%; height:auto; max-height:none; aspect-ratio:1.49; object-fit:contain; }
.dossier-section[data-kind="plan"] .dossier-open { background:#f9f9f5; }
.dossier-section[data-kind="plan"] .dossier-open img { aspect-ratio:1.26; }
.dossier-enlarge { position:absolute; right:.5rem; bottom:.5rem; display:grid; place-items:center;
  background:#fffdf8; color:#354f40; width:1.9rem; height:1.9rem; border:1px solid #bfc5b9; font:1.2rem/1 var(--sans); }
.article .dossier-figure figcaption { margin:.55rem 0 0; color:#2e392e; font:1rem/1.5 var(--sans); }
.dossier-figure figcaption small { display:block; margin-top:.2rem; font-size:.83rem; line-height:1.5; }
.dossier-plans, .dossier-references { margin:0; padding:0; list-style:none; }
.dossier-plans + .dossier-gallery, .dossier-gallery + .dossier-references, .dossier-plans + .dossier-references { margin-top:1.3rem; }
.dossier-plans li { display:grid; grid-template-columns:minmax(7rem, .29fr) minmax(0,1fr); gap:.4rem 1.5rem; padding:1rem 0; border-block-start:1px solid var(--rule); align-items:baseline; }
.dossier-plans li:not(:has(>strong)) { grid-template-columns:minmax(0,1fr); }
.dossier-plans li strong { font:500 clamp(1.3rem,2.4vw,2rem)/1.25 var(--serif); color:#344c3c; }
.dossier-plans li p { margin:0; max-width:77ch; font:1rem/1.6 var(--sans); }
.dossier-plans li a { display:inline-block; margin-top:.25rem; font-size:.84rem; }
.dossier-references>li { border-block-start:1px solid var(--rule); }
.dossier-references a { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; column-gap:1rem; padding:.75rem 0; }
.dossier-references a>span { text-decoration:underline; text-underline-offset:.2em; }
.dossier-references small { color:#5b6359; }
#project-gallery-dialog { padding:0; width:min(72rem,95vw); max-width:95vw; max-height:94vh; max-height:94dvh; }
#project-gallery-dialog[open] { display:grid; grid-template-rows:auto minmax(4rem,1fr) auto; }
.gallery-toolbar { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.45rem .9rem; border-bottom:1px solid var(--rule); }
.gallery-toolbar a { text-decoration:underline; text-underline-offset:.2em; font-size:.9rem; }
.gallery-toolbar button, .gallery-controls button { min-height:2.75rem; background:transparent; color:var(--ink); border:0; cursor:pointer; }
.gallery-stage { display:grid; place-items:center; min-height:4rem; background:#f0f0ea; }
.gallery-stage img { display:block; width:100%; height:min(59vh,44rem); height:min(59dvh,44rem); object-fit:contain; }
.gallery-footer { display:flex; align-items:center; justify-content:space-between; gap:.65rem 1.5rem; padding:.65rem 1rem; }
.gallery-description { min-width:0; max-height:20vh; overflow:auto; }
.gallery-description p { margin:0; font:1rem/1.45 var(--sans); }
.gallery-description a { font-size:.84rem; }
.gallery-controls { display:flex; align-items:center; gap:.55rem; white-space:nowrap; }
.gallery-controls button { font-size:1.3rem; width:2.75rem; border:1px solid var(--rule); }
.gallery-controls span { font-size:.9rem; font-variant-numeric:tabular-nums; }
@media(max-width:760px) {
  .article:has(.project-dossier) .story-opener { grid-template-columns:minmax(0,1fr); }
  .dossier-gallery, .dossier-gallery[data-images="1"] { grid-template-columns:minmax(0,1fr); }
  .dossier-jumps { gap:0 .9rem; margin-top:.7rem; }
  .article .dossier-open img { aspect-ratio:auto; max-height:32rem; }
  .dossier-plans li { grid-template-columns:minmax(0,1fr); gap:.25rem; }
  .gallery-footer { flex-wrap:wrap; }
}

.gallery-controls[hidden] { display:none; }
@media (max-height:530px) {
  .gallery-stage img { height:min(45vh,18rem); height:min(45dvh,18rem); }
  .gallery-description { max-height:16vh; }
}
