/* Grandpa's Kitchen: shared additions to style.css.
   Sideways-scroll guard, photo slots, gallery, lightbox, form states, owner door. */
html{font-variant-emoji:text;-webkit-text-size-adjust:100%}
/* One guard for every page. "clip" (not "hidden") so the sticky nav keeps working and iPhone can't pan sideways. */
html,body{max-width:100%;overflow-x:hidden}
@supports (overflow:clip){html,body{overflow-x:clip}}
img,picture,video,canvas,svg{max-width:100%}
[hidden]{display:none!important}
/* decorative badges that sit past an image edge stay inside the screen on phones */
@media (max-width:720px){
  .about-tag{right:.75rem!important}
  .story-tag{left:.75rem!important}
  .hero-badge{right:.5rem!important}
  .hero-float-card{left:.5rem!important}
}
/* a photo slot with no photo yet: the logo on sand, never a broken image */
.photo-ph{display:grid;place-items:center;width:100%;height:100%;min-height:200px;background:var(--sand,#F5EAD8);border-radius:inherit;position:relative;overflow:hidden}
.photo-ph::before{content:"";position:absolute;inset:14px;border:1px dashed rgba(26,14,6,.22);border-radius:6px}
.photo-ph img{width:min(46%,180px)!important;height:auto!important;aspect-ratio:1;object-fit:contain!important;position:static!important;border:0!important;border-radius:0!important;opacity:.95}
.hero-img-main .photo-ph{position:absolute;inset:0;min-height:0}
.story-img-main.photo-wrap,.team-img-wrap{display:block}
/* menu items: optional one-line description */
.menu-item-desc{display:block;font-size:.8rem;color:var(--mid);font-weight:400;letter-spacing:0;text-transform:none;margin-top:2px}
.menu-item{align-items:baseline}
.menu-item-name{min-width:0}
.menu-empty{color:var(--mid);font-size:.95rem}
/* gallery */
.gal-wrap{padding:4rem 6% 5rem;max-width:1280px;margin:0 auto}
.gal-filters{display:flex;gap:.6rem;flex-wrap:wrap;margin:1.5rem 0 2rem}
.gal-filter{font:700 .72rem/1 'Nunito',sans-serif;letter-spacing:.12em;text-transform:uppercase;padding:.75rem 1.1rem;min-height:44px;border-radius:4px;border:1px solid var(--border);background:#fff;color:var(--char);cursor:pointer}
.gal-filter.active,.gal-filter:hover{background:var(--terra);color:#fff;border-color:var(--terra)}
.gal-grid{columns:3 260px;column-gap:14px}
.gal-item{break-inside:avoid;margin:0 0 14px;display:block;width:100%;padding:0;border:0;background:var(--sand);border-radius:6px;overflow:hidden;cursor:zoom-in;position:relative}
.gal-item img{display:block;width:100%;height:auto;transition:transform .5s ease}
.gal-item:hover img{transform:scale(1.03)}
.gal-item figcaption,.gal-cap{position:absolute;left:0;right:0;bottom:0;padding:1.6rem .9rem .7rem;background:linear-gradient(transparent,rgba(26,14,6,.78));color:#fff;font-size:.82rem;text-align:left;opacity:0;transition:opacity .25s}
.gal-item:hover .gal-cap,.gal-item:focus-visible .gal-cap{opacity:1}
.gal-empty{padding:3rem 1.5rem;text-align:center;background:var(--sand);border-radius:8px;color:var(--mid)}
.gal-empty img{width:120px;height:auto;margin:0 auto 1rem;display:block}
.gal-strip{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px}
.gal-strip .gal-item{margin:0;aspect-ratio:1;columns:auto}
.gal-strip .gal-item img{height:100%;object-fit:cover}
.lb{position:fixed;inset:0;z-index:150;background:rgba(20,10,4,.94);display:grid;grid-template-rows:1fr auto;padding:16px max(16px,env(safe-area-inset-right,0px)) max(16px,env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px))}
.lb-stage{display:grid;place-items:center;min-height:0;touch-action:pan-y}
.lb-stage img{max-width:100%;max-height:100%;object-fit:contain;border-radius:4px}
.lb-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#F5EAD8;font-size:.9rem;padding-top:10px}
.lb-btn{width:48px;height:48px;border-radius:50%;border:1px solid rgba(245,234,216,.3);background:rgba(245,234,216,.08);color:#fff;cursor:pointer;display:grid;place-items:center}
.lb-btn svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.lb-x{position:absolute;top:max(12px,env(safe-area-inset-top,0px));right:12px;z-index:2}
body.lb-open{overflow:hidden}
/* contact form states */
.form-error{background:#FCEBE5;border:1px solid #E7B5A4;color:#7A2B12;border-radius:6px;padding:.8rem 1rem;font-size:.92rem;margin-bottom:1rem}
.hp-field{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.btn-submit[disabled]{opacity:.6;cursor:not-allowed}
/* ---------- hidden owner door (hold the logo 5 seconds, then PIN) ---------- */
.gate-ring{position:absolute;inset:-7px;pointer-events:none;opacity:0;transition:opacity .2s}
.gate-ring.on{opacity:1}
.gate-ring svg{width:100%;height:100%;transform:rotate(-90deg)}
.gate-ring circle{fill:none;stroke-width:3.5}
.gate-ring .gr-bg{stroke:rgba(255,255,255,.18)}
.gate-ring .gr-fg{stroke:#C86020;stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:100}
.gate-tip{position:absolute;left:0;top:calc(100% + 10px);background:#1A0E06;color:#fff;font:700 12px/1 "Nunito",system-ui,sans-serif;padding:7px 10px;border-radius:7px;white-space:nowrap;opacity:0;transform:translateY(-4px);transition:opacity .2s,transform .2s;pointer-events:none;letter-spacing:.02em;border:1px solid #3A2012}
.gate-tip.on{opacity:1;transform:none}
body.gate-open{overflow:hidden}
.gate{position:fixed;inset:0;z-index:200;background:rgba(20,10,4,.92);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);display:grid;place-items:center;padding:16px;animation:gateIn .2s ease-out}
@keyframes gateIn{from{opacity:0}to{opacity:1}}
.gate-card{width:min(340px,100%);background:#1A0E06;color:#fff;border-radius:18px;padding:24px 22px 16px;text-align:center;border-top:5px solid #C86020;box-shadow:0 30px 60px -20px rgba(0,0,0,.6)}
.gate-logo{width:46px;height:46px;margin:0 auto 10px;color:#fff}
.gate-logo svg{width:100%;height:100%}
.gate-card h2{font-family:"Anton",Impact,sans-serif;text-transform:uppercase;font-size:22px;margin:0;letter-spacing:-.005em}
.gate-sub{margin:4px 0 14px;color:#E7D6BF;font-size:15px}
.gate-dots{display:flex;justify-content:center;gap:14px;margin-bottom:6px}
.gate-dots i{width:14px;height:14px;border-radius:50%;border:2px solid #9E7A5C;transition:background .15s,border-color .15s}
.gate-dots i.on{background:#C86020;border-color:#C86020}
.gate-dots.shake{animation:gShake .35s}
@keyframes gShake{25%{transform:translateX(-8px)}50%{transform:translateX(8px)}75%{transform:translateX(-4px)}}
.gate-msg{min-height:20px;margin:0 0 8px;color:#FFB27A;font-size:13.5px}
.gate-keys{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.gk{height:58px;border-radius:14px;border:1px solid #4A2A16;background:#2E1A0E;color:#fff;font:700 24px/1 "Nunito",system-ui,sans-serif;cursor:pointer;-webkit-tap-highlight-color:transparent}
.gk:active{background:#C86020;border-color:#C86020}
.gk:focus-visible,.gw:focus-visible,.gate-cancel:focus-visible{outline:3px solid #C86020;outline-offset:2px}
.gk-del svg{width:26px;height:26px;fill:none;stroke:#fff;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.gate-cancel{margin-top:12px;min-height:44px;width:100%;border:0;background:none;color:#E7D6BF;font:600 15px "Nunito",system-ui,sans-serif;cursor:pointer;text-decoration:underline}
.gate-who{display:grid;gap:10px;margin-top:16px}
.gw{display:flex;align-items:center;gap:12px;min-height:60px;padding:0 16px;border-radius:14px;border:1px solid #4A2A16;background:#2E1A0E;color:#fff;font:700 18px "Nunito",system-ui,sans-serif;cursor:pointer;text-align:left}
.gw:hover{border-color:#C86020}
.gw-av{width:38px;height:38px;border-radius:50%;background:#C86020;display:grid;place-items:center;font-weight:800}
.gate-go{display:flex;flex-direction:column;align-items:center;gap:14px;padding:30px 0;font-weight:700}
.gate-spin{width:34px;height:34px;border-radius:50%;border:4px solid #4A2A16;border-top-color:#C86020;animation:gSpin .8s linear infinite}
@keyframes gSpin{to{transform:rotate(360deg)}}
.gate-hint{position:fixed;top:72px;left:12px;z-index:60;max-width:min(360px,calc(100vw - 24px));display:flex;gap:10px;align-items:flex-start;background:#FFFFFF;color:#1A0E06;border-radius:12px;padding:11px 10px 11px 12px;box-shadow:0 14px 34px -12px rgba(0,0,0,.45);border-left:5px solid #C86020;font:500 14px/1.4 "Nunito",system-ui,sans-serif;animation:gateIn .3s ease-out}
.gate-hint b{font-weight:800}
.gh-arrow{width:20px;height:20px;flex:0 0 20px;fill:none;stroke:#C86020;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;margin-top:1px}
.gh-x{flex:0 0 32px;width:32px;height:32px;margin:-6px -4px -6px 0;border:0;background:none;display:grid;place-items:center;cursor:pointer;border-radius:8px}
.gh-x svg{width:18px;height:18px;stroke:#55585E;stroke-width:2.2;stroke-linecap:round;fill:none}
@media (prefers-reduced-motion:reduce){.gate,.gate-hint,.gate-dots.shake{animation:none}}
.gate-hint{transition:opacity .2s}body.gate-holding .gate-hint{opacity:0;pointer-events:none}
.nav-logo,.logo-wrap{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;touch-action:manipulation}
.logo-wrap{position:relative}
.gate-hint{top:auto;bottom:max(12px,env(safe-area-inset-bottom,0px));left:12px}
/* photo slots with no photo yet: the logo on sand, sized by the page's own image rules */
img[data-ph]{object-fit:contain!important;background:var(--sand,#F5EAD8);padding:14%;box-sizing:border-box;filter:none!important}
img.story-img-inset[data-ph]{display:none!important}
.menu-cols{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))!important}
.teaser-gallery{padding:5rem 5%}
.teaser-gallery .pkg-header{display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:1.5rem;margin-bottom:2rem}
.review-card[hidden]{display:none!important}
.footer-links{flex-wrap:wrap;row-gap:.5rem}
