/* Photo-led menu viewer: full image, page counter and a persistent filmstrip. */
body #home-restaurant-menu-dialog{
  position:fixed;inset:0;width:100%;max-width:none;height:100dvh;max-height:100dvh;
  margin:0;padding:0;border:0;border-radius:0;background:#000!important;color:#fff!important;
  color-scheme:dark;overflow:hidden;box-shadow:none;
}
#home-restaurant-menu-dialog:not([open]){display:none!important}
#home-restaurant-menu-dialog .home-restaurant-menu-dialog-inner{
  display:flex;flex-direction:column;width:100%;height:100%;max-height:none;overflow:hidden;background:#000!important;
}
#home-restaurant-menu-dialog header{
  position:relative;z-index:2;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;
  flex:0 0 auto;align-items:center;min-height:calc(62px + env(safe-area-inset-top,0px));
  padding:calc(7px + env(safe-area-inset-top,0px)) 14px 7px;border:0;background:#000!important;color:#fff;
}
#home-restaurant-menu-dialog .home-restaurant-menu-dialog-close{
  width:44px;height:44px;display:grid;place-items:center;padding:9px;border:0;border-radius:0;
  background:transparent;color:#fff;cursor:pointer;
}
#home-restaurant-menu-dialog .home-restaurant-menu-dialog-close .material-symbols-outlined{font-size:27px}
#home-restaurant-menu-dialog .home-restaurant-menu-dialog-count{font-size:16px;font-weight:600;letter-spacing:.04em;color:#fff}
#home-restaurant-menu-dialog .home-restaurant-menu-dialog-viewport{
  position:relative;display:flex;align-items:center;justify-content:center;flex:1;min-height:0;
  width:100%;padding:0;overflow:hidden;background:#000;touch-action:none;
}
#home-restaurant-menu-dialog .home-restaurant-menu-dialog-viewport>img{
  display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;
  user-select:none;-webkit-user-select:none;transform-origin:center;will-change:transform;
}
#home-restaurant-menu-dialog .home-restaurant-menu-dialog-thumbnails{
  position:relative;display:flex;align-items:center;justify-content:flex-start;gap:8px;
  flex:0 0 auto;min-height:116px;max-width:100%;overflow-x:auto;overflow-y:hidden;
  padding:12px 14px calc(12px + env(safe-area-inset-bottom,0px));margin:0;background:#000;
  overscroll-behavior:contain;scrollbar-width:none;touch-action:pan-x;
}
#home-restaurant-menu-dialog .home-restaurant-menu-dialog-thumbnails::-webkit-scrollbar{display:none}
#home-restaurant-menu-dialog .home-restaurant-menu-dialog-thumbnails button{
  display:block;flex:0 0 66px;width:66px;height:90px;padding:4px;overflow:hidden;
  border:2px solid transparent;border-radius:7px;background:#26211b;opacity:.65;cursor:pointer;
  transition:opacity 160ms ease,border-color 160ms ease;
}
#home-restaurant-menu-dialog .home-restaurant-menu-dialog-thumbnails button[aria-current="true"]{
  border-color:#fff;opacity:1;box-shadow:0 0 0 1px rgba(255,255,255,.2);
}
#home-restaurant-menu-dialog .home-restaurant-menu-dialog-thumbnails img{
  display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;border-radius:2px;
}
#home-restaurant-menu-dialog .home-restaurant-menu-dialog-prev,
#home-restaurant-menu-dialog .home-restaurant-menu-dialog-next{display:none}
#home-restaurant-menu-dialog button:focus-visible{outline:2px solid #fff;outline-offset:2px}
@media(min-width:768px){
  #home-restaurant-menu-dialog .home-restaurant-menu-dialog-thumbnails{padding-inline:24px;justify-content:safe center}
  #home-restaurant-menu-dialog .home-restaurant-menu-dialog-prev:not([hidden]),
  #home-restaurant-menu-dialog .home-restaurant-menu-dialog-next:not([hidden]){display:grid;z-index:1}
}
@media(max-height:560px){
  #home-restaurant-menu-dialog header{min-height:48px;padding-block:2px}
  #home-restaurant-menu-dialog .home-restaurant-menu-dialog-thumbnails{min-height:76px;padding-top:6px;padding-bottom:calc(6px + env(safe-area-inset-bottom,0px));gap:6px}
  #home-restaurant-menu-dialog .home-restaurant-menu-dialog-thumbnails button{height:62px;flex-basis:46px;width:46px;padding:2px}
}
@media(prefers-reduced-motion:reduce){#home-restaurant-menu-dialog .home-restaurant-menu-dialog-thumbnails button{transition:none}}
