/* Real photographs fill their existing windows. Keep the original image link;
   maps, drawings, boards and other source evidence do not use these rules. */
.culture-case #decisions #culture-decision-campus-images > figure:first-child > a > img[src$="photo-entrance.jpg"],
.culture-case #decisions #culture-decision-walkthrough-images > figure > a > img:is([src$="render-entrance-refreshed.webp"],[src$="render-bridge-refreshed.webp"],[src$="render-kiosk-refreshed.webp"],[src$="render-landmark-final.jpg"]){
 display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:cover;
}
/* The three development photos and the digital-context photo use intrinsic
   portrait frames. Let each frame follow its photograph rather than fitting a
   portrait into a landscape mat, on both desktop and mobile. */
.culture-case #decisions #culture-decision-production-images > figure > a:has(> img:is([src$="photo-entrance.jpg"],[src$="render-entrance-raw.jpg"],[src$="render-entrance-final.jpg"])),
.culture-case #decisions #culture-decision-digital-images > figure > a:has(> img[src$="render-directional-site.jpg"]){
 aspect-ratio:var(--detail-ratio);height:auto;background:transparent;
}
.culture-case #decisions #culture-decision-production-images > figure > a > img:is([src$="photo-entrance.jpg"],[src$="render-entrance-raw.jpg"],[src$="render-entrance-final.jpg"]),
.culture-case #decisions #culture-decision-digital-images > figure > a > img[src$="render-directional-site.jpg"]{
 display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:cover;
}

/* Put any difference in source proportions outside the image. The three
   named strips override their original, ID-scoped fixed-frame rules. */
.culture-case #decisions :is(#culture-decision-campus-images,#culture-decision-model-images,#culture-decision-drawings-images,.decision-strip) > figure > a:has(> :is(img,picture)):not(:has(> img:is(
 [src$="photo-entrance.jpg"],
 [src$="render-entrance-raw.jpg"],
 [src$="render-entrance-final.jpg"],
 [src$="render-directional-site.jpg"],
 [src$="render-entrance-refreshed.webp"],
 [src$="render-bridge-refreshed.webp"],
 [src$="render-kiosk-refreshed.webp"],
 [src$="render-landmark-final.jpg"]
))){
 display:block;align-self:start;aspect-ratio:auto;height:auto;background:transparent;
}
.culture-case #decisions :is(#culture-decision-campus-images,#culture-decision-model-images,#culture-decision-drawings-images,.decision-strip) > figure > a:has(> :is(img,picture)):not(:has(> img:is(
 [src$="photo-entrance.jpg"],
 [src$="render-entrance-raw.jpg"],
 [src$="render-entrance-final.jpg"],
 [src$="render-directional-site.jpg"],
 [src$="render-entrance-refreshed.webp"],
 [src$="render-bridge-refreshed.webp"],
 [src$="render-kiosk-refreshed.webp"],
 [src$="render-landmark-final.jpg"]
))) :is(img,picture){
 position:static;display:block;width:100%;height:auto;max-height:none;aspect-ratio:auto;
}

/* In the supplemental views the landmark is the only visualization.
   Map artwork and the presentation pages keep their full proportions. */
.culture-case .case-library .evidence-grid figure > a{
 display:block;overflow:hidden;border-radius:var(--ui-radius);
}
.culture-case .case-library .evidence-grid figure > a > img{
 display:block;width:100%;height:auto;max-height:none;background:transparent;
}
.culture-case .case-library .evidence-grid .media-photo > a > img{
 aspect-ratio:4/3;object-fit:cover;
}

/* Selected Four case studies share the model case's type and media scale. */
:is(.ferrero-case,.culture-case,.network-model,.stacking-model) .case-head h1 {
 font-family:var(--display-face);
 font-weight:400;
 font-size:clamp(44px,6.4vw,92px);
 line-height:1.06;
}

:is(.ferrero-case,.culture-case,.network-model,.stacking-model) .case-head .case-deck {
 font-size:clamp(20px,2.3vw,28px);
 line-height:1.3;
}

:is(.ferrero-case,.culture-case,.network-model,.stacking-model)
 :is(.ferrero-chapter-heading h2,.ferrero-tools-used>h2,.ferrero-inline-tools>header>h2) {
 font:400 clamp(32px,3.8vw,48px)/1.12 var(--display-face);
 letter-spacing:-.02em;
}

:is(.ferrero-case,.culture-case,.network-model,.stacking-model) .ferrero-phase-progress {
 display:grid;
 gap:var(--space-3);
 margin:0;
 max-width:52ch;
}
:is(.ferrero-case,.culture-case,.network-model,.stacking-model) .ferrero-phase-progress dt {
 margin:0 0 var(--space-1);
 color:#d6ba7a;
 font-size:12px;
 line-height:20px;
}
:is(.ferrero-case,.culture-case,.network-model,.stacking-model) .ferrero-phase-progress dd {
 margin:0;
 color:var(--muted);
 line-height:var(--text-body-leading);
}

:is(.ferrero-case,.culture-case,.network-model,.stacking-model)
 figure > a[data-image]:has(> :is(img,picture,svg)) {
 display:block;
 border-radius:var(--ui-radius);
 overflow:hidden;
}

/* The two hero layers share the lettering sheet's ratio, preserving the complete drawing. */
.ferrero-case .ferrero-hero-toggle {aspect-ratio:3200/2071}

@media(max-width:700px) {
 :is(.ferrero-case,.culture-case,.network-model,.stacking-model) .case-head h1 {
  font-size:clamp(38px,10vw,56px);
  line-height:1.08;
 }
}
