/* Shared mobile layout fixes for the static export. */
html { overflow-x: hidden; scroll-behavior: smooth; }
body { min-width: 0; overflow-x: hidden; }
img, video, svg { max-width: 100%; }
img[src*="menu-ker-galette"], img[src*="contact-ker-galette"] { cursor: zoom-in; }
.menu-lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1rem; background: rgba(5, 20, 38, .9); cursor: zoom-out; }
.menu-lightbox img { max-width: min(96vw, 1100px); max-height: 92vh; width: auto; height: auto; object-fit: contain; box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, .4); cursor: default; }
.menu-lightbox-close { position: absolute; top: max(1rem, env(safe-area-inset-top)); right: max(1rem, env(safe-area-inset-right)); width: 2.75rem; height: 2.75rem; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; background: rgba(255,255,255,.12); color: white; font-size: 2rem; line-height: 1; cursor: pointer; }
.menu-lightbox-close:hover, .menu-lightbox-close:focus-visible { background: rgba(255,255,255,.25); outline: 2px solid white; outline-offset: 2px; }

@media (max-width: 640px) {
  .ker-container { width: min(calc(100% - 2rem), 72rem); margin-inline: auto; }
  header.py-4 .ker-container > div, header.py-4 nav, header.py-4 nav > div { opacity: 1 !important; transform: none !important; }
  header.py-4 .ker-container { gap: .75rem; }
  header.py-4 nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem .5rem; width: 100%; margin: 0; }
  header.py-4 nav > div { min-width: 0; text-align: center; }
  header.py-4 nav .nav-link { display: block; padding: .5rem .25rem; font-size: .75rem; line-height: 1.15; white-space: normal; }
  .hero-section { min-height: 26rem; }
  .hero-section h1 { font-size: clamp(2.5rem, 14vw, 4rem); line-height: .95; }
  h1.text-4xl, h1.text-5xl { font-size: clamp(2rem, 9vw, 2.75rem); line-height: 1.05; }
  h2.text-2xl, h2.text-3xl { font-size: 1.45rem; line-height: 1.15; }
  section.py-16 { padding-top: 3rem; padding-bottom: 3.25rem; }
  section.py-12 { padding-top: 2.5rem; padding-bottom: 2.75rem; }
  .ker-container > p, section p { line-height: 1.65; }
  a.inline-block, a[class*="bg-"] { min-height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; }
  footer .ker-container { gap: 1.5rem; }
  footer nav, footer .flex { flex-wrap: wrap; gap: .75rem; }
  input, textarea, select { max-width: 100%; box-sizing: border-box; font-size: 1rem; }
}

@media (max-width: 380px) {
  .ker-container { width: calc(100% - 1.25rem); }
  header.py-4 nav .nav-link { font-size: .7rem; }
  section.py-16 { padding-top: 2.5rem; }
}
