/* Homepage video and phone science join only; preserve all other presentation. */
body.h2-match #school-tour-video{height:auto;min-height:calc(218 * var(--u))}
body.h2-match #school-tour-video .school-tour-split{height:auto}
body.h2-match #school-tour-video .school-tour-player{width:100%;max-width:420px;height:auto;max-height:none;aspect-ratio:16/9;justify-self:center}
body.h2-match #school-tour-video .tour-video-frame{width:100%;height:100%;aspect-ratio:16/9}
/* The retained original video poster is 4:3 with 16:9 content between black bars.
   Preserve its natural proportions and crop only that letterboxing. */
html body.h2-match #school-tour-video .h2-video-image{width:100%!important;height:auto!important;left:0;top:50%;transform:translateY(-50%);object-fit:initial}
body.h2-match #school-tour-video .school-tour-play-control{display:grid;place-items:center;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:64px;height:64px;border:3px solid #fff;border-radius:50%;background:#17121c55;color:#fff;font:32px/1 Arial,sans-serif;padding-left:4px;pointer-events:none}
body.h2-match #school-tour-video .school-tour-play-label{display:block;position:absolute;left:0;right:0;bottom:0;background:#0009;color:#fff;padding:7px 10px;font:700 clamp(12px,1.6vw,19px)/1.15 Arial,sans-serif;pointer-events:none}
@media(max-width:700px){
 body.h2-match #school-tour-video .school-tour-player{max-width:480px}
 /* Complete the original chrome path inside a padded viewBox; match the photo
    mask to its centerline so no rectangular photograph edge shows above it. */
 body.h2-match #education.cinema-science::before{height:42px;top:-24px;background-image:url('/h2-science-wave.v138.svg');background-size:100% 100%;background-position:center}
 body.h2-match #education .cinema-science-picture{overflow:visible}
 body.h2-match #education .cinema-science-picture>figure{position:absolute;inset:-24px 0 auto;height:calc(100% + 24px);width:100%;z-index:1;overflow:hidden;-webkit-mask-image:url('/h2-science-photo-top.v138.svg'),linear-gradient(#fff,#fff);mask-image:url('/h2-science-photo-top.v138.svg'),linear-gradient(#fff,#fff);-webkit-mask-size:100% 42px,100% calc(100% - 40px);mask-size:100% 42px,100% calc(100% - 40px);-webkit-mask-position:center top,center bottom;mask-position:center top,center bottom;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;mask-composite:add}
}
