/* Shared dentistry presentation component, medical-page adjustments. */
#medical-stories { scroll-margin-top:155px; }
#medical-stories > .container { width:min(1480px,calc(100% - clamp(48px,8vw,128px))); }
.med-study-heading h3 { margin:0 0 12px; color:#fff; font:500 clamp(30px,3.2vw,46px)/1.2 Oswald,Arial,sans-serif; }
.med-studies .clinic-study__task { font:500 24px/1.35 Oswald,Arial,sans-serif; }
.med-studies .clinic-study__task > span { font-family:Inter,Arial,sans-serif; }
.med-studies .clinic-study__notes { gap:20px; }
.med-studies .clinic-study__canvas img { object-fit:contain; }
/* One common image box for all six cards; natural source proportions vary. */
#projects .projects-grid { align-items:stretch; }
#projects .project-card { display:block; min-width:0; aspect-ratio:4/3; }
#projects .project-card > picture { display:block; width:100%; height:100%; }
#projects .project-card > picture > img { display:block; width:100%; height:100%; max-width:none; object-fit:cover; object-position:center; }
.med-room-scene { padding:40px 0 56px; border-top:1px solid #d4d4cb; scroll-margin-top:155px; }
.med-room-scene + .med-room-scene { margin-top:20px; }
.med-room-scene > header { margin-bottom:26px; }
.med-room-scene > header h3 { margin:0; font:500 clamp(30px,3.4vw,46px)/1.15 Oswald,Arial,sans-serif; }
.med-room-scene figure { margin:0; }
.med-room-scene figure > img { display:block; width:100%; height:auto; max-height:820px; object-fit:contain; background:#f1f1ec; }
.med-room-scene figcaption { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:40px; margin-top:20px; }
.med-room-scene figcaption p { max-width:880px; margin:0; color:var(--med-muted); }
.med-room-scene figcaption .med-link { margin-top:0; white-space:nowrap; }
@media(max-width:760px) {
 .med-study-heading h3 { font-size:32px; }
 .med-studies .clinic-study__task { font-size:24px; }
 .med-room-scene { padding-block:28px 34px; }
 .med-room-scene > header { margin-bottom:20px; }
 .med-room-scene figcaption { grid-template-columns:1fr; gap:16px; }
 .med-room-scene figcaption .med-link { justify-self:start; }
 #projects .project-overlay { padding:20px; }
}

/* Stable full-width frames; preserve the natural image ratio inside each frame. */
.med-studies .clinic-room-views.is-enhanced { aspect-ratio:4/3; }
.med-studies .clinic-room-views.is-enhanced .clinic-study__canvas { width:100%;height:100%;aspect-ratio:auto;overflow:hidden; }
.med-studies .clinic-room-views.is-enhanced .clinic-study__canvas img { position:absolute;inset:0;width:100%;height:100%;object-fit:contain; }

/* Mobile framing and shorter Gorlab image sequence. */
@media(max-width:760px){
 body .hero { background-position:left center; }
 #medical-room-gorlab .clinic-study__canvas img { object-position:left center; }
 #medical-room-gorlab-corridor-sanitary .clinic-room-frame:not([data-room-frame="0"]) { display:none; }
}
