/* Published portfolio additions: preserve the existing visual system. */
.portfolio-projects .project+.project{margin-top:88px}.project-media{background:#eeeee8}.publication-covers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3%;align-items:center;padding:6%;background:#eeeee8}.publication-covers img{width:100%;height:auto;display:block;box-shadow:0 5px 18px #171a141a}.extended-case .case-intro h1{font-size:clamp(40px,8vw,114px);line-height:1.12;text-transform:lowercase;text-wrap:balance}.extended-case .case-deck{font-size:clamp(21px,2.3vw,31px);line-height:1.6;max-width:930px;margin-top:34px;color:var(--muted);text-wrap:pretty}.publication-cover>img{max-height:900px;object-fit:contain}.publication-cover figcaption,.project-gallery-grid figcaption{font-size:14px;line-height:1.7;color:var(--muted);margin-top:16px;max-width:850px;text-wrap:pretty}.extended-case .case-context{padding-block:88px}.project-gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:56px 32px;padding:0 5%;align-items:start}.project-gallery-grid figure{min-width:0}.project-gallery-grid img{display:block;width:100%;height:auto}.project-gallery-grid .gallery-wide,.gallery-chapter{grid-column:1/-1}.gallery-chapter{font-size:clamp(28px,3.5vw,44px);margin:24px 0 0;text-transform:lowercase}.gallery-original{display:block;cursor:zoom-in}.gallery-original:focus-visible{outline:3px solid var(--blue);outline-offset:6px}.extended-case .case-context h2{text-transform:lowercase}.portfolio-tabs{flex-wrap:wrap}.extended-case .case-links{padding-top:70px}@media(max-width:760px){.portfolio-projects .project+.project{margin-top:64px}.extended-case .case-intro h1{font-size:clamp(36px,9.4vw,70px)}.extended-case .case-deck{font-size:22px;margin-top:28px}.publication-cover .publication-covers{grid-template-columns:1fr;padding:10%;gap:28px}.extended-case .case-context{padding-block:55px}.project-gallery-grid{grid-template-columns:1fr;gap:34px;padding-inline:6%}.gallery-chapter{margin-top:18px}.extended-case .case-links{padding-top:50px}}

.geometry-case .publication-cover>img,.geometry-case .project-gallery-grid img{max-width:425px;margin-inline:auto}.geometry-case .project-gallery-grid figure{justify-self:center;width:100%;max-width:425px}.geometry-case .project-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.geometry-case .project-gallery-grid .gallery-wide{grid-column:auto}@media(max-width:760px){.geometry-case .project-gallery-grid{grid-template-columns:1fr}}

/* Full-screen project image preview. */
.case-cover{position:relative}.case-cover img,.case-gallery img,.project-gallery-grid img{cursor:zoom-in}.lightbox-hint{position:absolute;right:18px;bottom:18px;z-index:2;background:var(--blue);color:#fff;padding:8px 12px;font-size:12px;line-height:1;text-transform:lowercase;pointer-events:none}.case-cover img[role="button"]:focus-visible,.case-gallery img[role="button"]:focus-visible{outline:3px solid var(--blue);outline-offset:6px}.lightbox-open{overflow:hidden}.portfolio-lightbox{position:fixed;inset:0;z-index:1000;background:rgba(8,8,7,.96);color:#fff;display:grid;grid-template-columns:minmax(64px,1fr) minmax(0,calc(100vw - 180px)) minmax(64px,1fr);grid-template-rows:70px minmax(0,1fr);align-items:center}.portfolio-lightbox[hidden]{display:none}.portfolio-lightbox figure{grid-column:2;grid-row:2;align-self:stretch;display:grid;grid-template-rows:minmax(0,1fr) auto;align-items:center;justify-items:center;min-width:0;min-height:0;margin:0;padding:0 0 24px}.portfolio-lightbox figure img{display:block;max-width:100%;max-height:calc(100vh - 150px);width:auto;height:auto;object-fit:contain;cursor:default;box-shadow:0 0 50px rgba(0,0,0,.25)}.portfolio-lightbox figcaption{width:100%;min-height:24px;margin-top:16px;color:#d6d6d1;font-size:14px;line-height:1.55;text-align:center;text-wrap:balance}.lightbox-toolbar{position:absolute;inset:0 0 auto;z-index:2;height:70px;display:flex;align-items:center;justify-content:space-between;padding:0 24px}.lightbox-count{font-size:14px;font-variant-numeric:tabular-nums}.portfolio-lightbox button{appearance:none;border:0;background:transparent;color:inherit;display:grid;place-items:center;padding:0;cursor:pointer}.portfolio-lightbox button:focus-visible{outline:2px solid #fff;outline-offset:4px}.portfolio-lightbox svg{width:28px;height:28px;stroke:currentColor;stroke-width:1.5}.lightbox-close{width:44px;height:44px}.lightbox-arrow{grid-row:2;width:52px;height:70px;justify-self:center}.lightbox-prev{grid-column:1}.lightbox-next{grid-column:3}.lightbox-arrow[hidden]{display:none}@media(max-width:760px){.lightbox-hint{right:10px;bottom:10px}.portfolio-lightbox{grid-template-columns:54px minmax(0,1fr) 54px;grid-template-rows:60px minmax(0,1fr)}.lightbox-toolbar{height:60px;padding:0 12px}.portfolio-lightbox figure{grid-column:1/-1;padding:0 14px 20px}.portfolio-lightbox figure img{max-height:calc(100vh - 150px)}.portfolio-lightbox figcaption{padding-inline:44px}.lightbox-arrow{z-index:2;width:44px;height:60px;background:rgba(8,8,7,.56)}.lightbox-prev{grid-column:1}.lightbox-next{grid-column:3}}
