/* Authored case documents: keep source order, full prose and local photo groups. */
.case-document{max-width:1000px;padding-top:48px;padding-bottom:64px;color:var(--project-ink,#1c1e37)}
.case-document>h2{font-size:clamp(28px,3vw,38px);line-height:1.22;margin:48px 0 20px;max-width:none}
.case-document>h2:first-child{margin-top:0}
.case-document>h3{font-size:clamp(24px,2.5vw,30px);line-height:1.25;margin:32px 0 16px}
.case-document>p{font-size:18px;line-height:1.7;color:var(--project-body,#616273);margin:0 0 20px;overflow-wrap:anywhere}
.case-document a:not(.project-photo-link){color:#104f73;text-decoration:underline;text-underline-offset:.15em}
.case-document-figure{margin:32px 0 40px;background:#f1f3f5;padding:16px}
.case-document-photos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.case-document-photos-single{grid-template-columns:1fr}
.case-document-photo{min-width:0}
.case-document-photo .project-picture,.case-document-photo .project-photo-content{position:relative;display:block;width:100%;height:auto;inset:auto}
.case-document-photo .project-cover{position:static;display:block;width:100%;height:auto;max-height:650px;object-fit:contain;background:#e6e6e8}
.case-document-figure figcaption{white-space:pre-line;position:static;font-size:16px;font-weight:400;line-height:1.6;color:#323743;padding:16px 4px 0;max-width:none;overflow-wrap:anywhere}
@media(max-width:767px){.case-document{padding-top:32px;padding-bottom:40px}.case-document>p{font-size:17px;line-height:1.65}.case-document-figure{margin:24px 0 32px;padding:12px}.case-document-photos{grid-template-columns:1fr;gap:12px}.case-document-figure figcaption{font-size:15px}.case-document-photo .project-cover{max-height:550px}}

