/* Preserve the original closed controls; expand only the opened phone rail. */
@media(max-width:560px), (max-width:900px) and (max-height:500px) and (orientation:landscape) and (pointer:coarse){
 body[data-portfolio-phone-menu]{padding-bottom:calc(68px + env(safe-area-inset-bottom))}
 body[data-portfolio-phone-menu] #reopen-menu,
 body[data-portfolio-phone-menu].rail-hidden .mobile-socials,
 body[data-portfolio-phone-menu].rail-hidden .tablet-wordmark{
  top:auto;
  bottom:calc(12px + env(safe-area-inset-bottom));
 }
 body[data-portfolio-phone-menu] #reopen-menu{width:72px;padding-inline:12px;white-space:nowrap}
 html:has(body[data-portfolio-menu-open]),body[data-portfolio-menu-open]{overflow:hidden;overscroll-behavior:none}
 body[data-portfolio-menu-open] #site-rail{
  inset:0;
  width:100%;
  max-width:none;
  height:100%;
  height:100dvh;
  border-inline-end:0;
  padding-top:calc(12px + env(safe-area-inset-top));
  padding-right:max(20px,env(safe-area-inset-right));
  padding-bottom:calc(10px + env(safe-area-inset-bottom));
  padding-left:max(20px,env(safe-area-inset-left));
  overscroll-behavior:contain;
 }
}
