/* An original blue-glass motion study, inspired by the reference. */
.theme-medical .motion-toggle {display:grid; color:#fff; border-color:#8296a4}
.med-hero {position:relative; display:block; min-height:clamp(560px, 58vw, 720px); overflow:hidden; background:#153a56; border-radius:0 0 22px 22px}
.theme-medical main {position:relative; isolation:isolate}
.med-liquid {position:fixed; inset:0; width:100%; height:100dvh; display:block; pointer-events:none; z-index:-1}
.med-hero {background:transparent}
.med-guide {background:rgba(14,38,58,.84)}
.mcj-directory,.mcj-planner,.med-gallery {background:rgba(244,249,253,.82); padding-inline:clamp(18px,3vw,42px); border-radius:18px}
.mcj-directory,.mcj-planner {margin-block:clamp(24px,4vw,58px)}
.med-gallery {margin-block:clamp(24px,4vw,58px)}
.theme-medical .studio-footer {background:rgba(5,17,27,.91)}
.med-hero::after {content:""; position:absolute; inset:0; pointer-events:none; background:linear-gradient(270deg, rgba(6,23,38,.88) 0%, rgba(6,23,38,.64) 34%, rgba(6,23,38,.14) 100%)}
html[dir=ltr] .med-hero::after {transform:scaleX(-1)}
.med-hero-copy {position:relative; z-index:1; min-height:inherit; max-width:650px; padding:clamp(48px,6vw,92px); align-items:start}
.med-hero h1 {font-size:clamp(60px,7vw,100px); text-shadow:0 1px 8px rgba(5,27,45,.22)}
.med-intro {max-width:34ch}
.med-gallery-grid {grid-template-columns:repeat(4,minmax(0,1fr))}
.med-gallery-grid figure:first-child img {object-position:8% center}
@media(max-width:840px){.med-hero-copy{padding:48px 34px}.med-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){
 .med-hero {min-height:610px;border-radius:0 0 16px 16px}
 .med-hero::after {background:linear-gradient(180deg,rgba(6,23,38,.82),rgba(6,23,38,.55) 52%,rgba(6,23,38,.18))}
 html[dir=ltr] .med-hero::after {transform:none}
 .med-hero-copy {min-height:610px;justify-content:flex-start;padding:64px 24px 40px}
 .med-hero h1,.med-hero h1:lang(en) {font-size:clamp(45px,10.5vw,65px)}
 .med-gallery-grid figure:first-child {grid-column:auto}
 .med-gallery-grid figure:first-child img {aspect-ratio:1.16}
}
/* Featured medical photo: prominent in the opening, without covering the backdrop. */
.med-hero {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:0}
.med-hero-copy {min-height:0;padding:clamp(36px,4.5vw,70px)}
.med-hero-feature {position:relative;z-index:1;min-width:0;margin:clamp(20px,3vw,42px);margin-inline-start:0;color:#fff}
.med-hero-feature img {width:100%;height:auto;aspect-ratio:1.55;object-fit:cover;object-position:8% center;border-radius:16px}
.med-hero-feature figcaption {margin-top:12px;color:#fff;font-size:14px}
.med-gallery-grid {grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:840px){.med-hero-copy{padding:34px 25px}.med-hero-feature{margin:20px;margin-inline-start:0}.med-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){
 .med-hero {display:grid;grid-template-columns:1fr;min-height:0}
 .med-hero-copy {min-height:0;padding:34px 24px 24px}
 .med-hero-feature {margin:0 18px 28px}
 .med-hero-feature img {aspect-ratio:1.65}
}
