/* Phone / tablet / iPad fixes — loaded last on every page (includes/head.php). */

/* Open menu: pinned under the header and scrollable on its own, so every link
   (including the expanded Memories and Other Links lists) can be reached. */
@media(max-width:1100px){
 header #navigation.open{position:fixed;top:var(--nav-top,80px);left:0;right:0;
  max-height:calc(100vh - var(--nav-top,80px));max-height:calc(100dvh - var(--nav-top,80px));
  overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  touch-action:pan-y;padding-bottom:calc(28px + env(safe-area-inset-bottom,0px))}
 header #navigation.open>*{flex-shrink:0}
 html.nav-locked,html.nav-locked body{overflow:hidden}
}

/* Embedded Jotforms: never clip the form; allow touch scrolling inside the frame. */
#form-page .form-card{overflow:visible}
#form-page .form-card iframe{min-height:600px;max-height:none;-webkit-overflow-scrolling:touch;touch-action:auto}
@media(max-width:767px){#form-page .form-card iframe{min-height:75vh;min-height:75dvh}}
