/* Phone layout fixes (Dec 2026), after the owner's check on an iPhone. Loaded after every other stylesheet.
   Only small screens are touched unless a rule says otherwise. Nothing here changes any wording. */
@media (max-width:47.99rem){
/* 1. Rooms page: the caption moves to the top corner of the photo so it never sits under the ages tag */
.story__pic .story__cap[class]{inset-block:.6rem auto}

/* 2. Bottom bar: shorter tiles, smaller Ask us disc, less padding */
html .abar.abar[class]{padding:.3rem max(.4rem,env(safe-area-inset-right)) max(.25rem,calc(env(safe-area-inset-bottom) - 1.25rem)) max(.4rem,env(safe-area-inset-left));gap:.2rem;transition:transform .3s cubic-bezier(.3,.7,.3,1),opacity .2s linear,visibility 0s}
html .abar .abar__btn[class],html .abar .abar__ask[class]{min-height:2.35rem;padding-block:.2rem .15rem;font-size:.62rem;gap:.1rem}
html .abar .abar__btn[class] svg,html .abar .abar__ask[class] svg{width:1.1rem;height:1.1rem}
html .abar .abar__ask-disc[class]{width:2.6rem;height:2.6rem;margin-top:-1rem;box-shadow:0 0 0 4px var(--abar-paper),0 6px 12px -8px color-mix(in srgb,var(--c-ink) 55%,transparent)}
html .abar .abar__ask-disc[class] svg{width:1.3rem;height:1.3rem}
/* it steps out of the way while reading down the page and comes back on the way up */
html.v47-bar-away .abar.abar[class]{transform:translateY(calc(100% + 1.2rem))}

/* 3. Menu: no language strip above it, rows sized to the screen so it fits without scrolling, a plain quick fade */
/* the language strip is gone on phones (the three languages are inside the menu) */
html .site-header[class][class]{--strip-h:0px}
.site-header .hdr-strip[class]{display:none}
html.js .full-menu.is-open[class]{padding-block:1.5rem .9rem;gap:.5rem;animation:v47-menu-in .24s cubic-bezier(.2,.7,.2,1) both}
html.js .full-menu.is-open.is-closing[class]{animation:v47-menu-out .18s ease-in both}
html.js .full-menu.is-open .fm-roll[class]{animation:none}
.full-menu .fm-root[class],.full-menu .fm-sub[class]{gap:.28rem}
.full-menu .fm-root__item[class],.full-menu .fm-link[class]{min-height:clamp(2.25rem,calc((100dvh - 18.5rem) / 7),3.3rem);padding-block:.1rem}
html.js .full-menu .nav__extras[class]{gap:.4rem;padding-top:.5rem}
.full-menu .nav__extras-title[class]{display:none}
.full-menu .nav__quick-link[class]{min-height:2.35rem}
.full-menu .nav__madrassa a[class]{padding-block:.15rem}

/* 4. Labels over photos and films: a small tag in the corner instead of a wide pill */
.vb .vb__label[class],.pb .pb__label[class]{font-size:.74rem;line-height:1.2;padding:.28rem .6rem;inset-block:auto .6rem;inset-inline:.6rem auto;max-inline-size:70%;transition:opacity .5s ease}
/* over a playing film the tag fades after a few seconds; it stays for anyone who asked for less motion */
.vb.v47-quiet .vb__label[class]{opacity:0}
}
@keyframes v47-menu-in{from{opacity:0;transform:translateY(-.5rem)}to{opacity:1;transform:none}}
@keyframes v47-menu-out{from{opacity:1;transform:none}to{opacity:0;transform:translateY(-.4rem)}}
@media (prefers-reduced-motion:reduce){html .abar.abar[class]{transition:none}html.js .full-menu.is-open[class],html.js .full-menu.is-open.is-closing[class]{animation-duration:.01s}}
/* Home hero, tablet and computer: the two arrows sit on the same line as the dots and the pause button */
@media (min-width:48rem){.ph .ph__arrow[class]{translate:0 -1.215rem}}
