/* JUJUBUR V1.5.0 — mobile layout corrections. All rules are phone-only. */
@media screen and (max-width:767px){
  /* Homepage is a fixed five-panel app. Keep the footer inside the More panel;
     never let the document footer escape to the top of the locked body. */
  body.jj-page-home.jj-home-app-mode{position:fixed!important;inset:0!important;width:100%!important;height:100dvh!important;min-height:0!important;overflow:hidden!important;padding:0!important}
  body.jj-page-home.jj-home-app-mode main.jj-home-pager{top:100px!important;bottom:calc(78px + env(safe-area-inset-bottom,0px))!important;height:auto!important}
  body.jj-page-home.jj-home-app-mode .jj-home-window{box-sizing:border-box!important;padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))!important}
  body.jj-page-home.jj-home-app-mode .jj-home-window>[id="top"]{height:100%!important;min-height:100%!important;max-height:100%!important;overflow:hidden!important}
  body.jj-page-home.jj-home-app-mode .jj-home-window>[id="top"] .hero__inner{height:100%!important;min-height:0!important;box-sizing:border-box!important}
  body.jj-page-home.jj-home-app-mode .jj-home-window[data-home-window="more"]>.footer{position:relative!important;inset:auto!important;width:100%!important;max-width:none!important;min-height:0!important;overflow:hidden!important;margin-top:34px!important;padding-top:38px!important}
  body.jj-page-home.jj-home-app-mode .jj-home-window[data-home-window="more"]>.footer .footer__giant{font-size:19vw!important;padding-inline:18px!important;white-space:nowrap!important}
  body.jj-page-home.jj-home-app-mode .jj-home-window[data-home-window="more"]>.footer .footer__inner{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:28px!important;padding:34px 18px 38px!important}
  body.jj-page-home.jj-home-app-mode .jj-home-window[data-home-window="more"]>.footer .footer__cta{min-width:0!important}
  body.jj-page-home.jj-home-app-mode .jj-home-window[data-home-window="more"]>.footer .footer__mail{font-size:clamp(25px,7.5vw,36px)!important;overflow-wrap:anywhere!important}
  body.jj-page-home.jj-home-app-mode .jj-home-window[data-home-window="more"]>.footer .footer__cols{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:22px 14px!important;min-width:0!important}
  body.jj-page-home.jj-home-app-mode .jj-home-window[data-home-window="more"]>.footer .footer__cols>div{min-width:0!important}
  body.jj-page-home.jj-home-app-mode .jj-home-window[data-home-window="more"]>.footer .footer__cols a{max-width:100%!important;overflow-wrap:anywhere!important;font-size:11px!important;line-height:1.55!important}
  body.jj-page-home.jj-home-app-mode .jj-home-window[data-home-window="more"]>.footer .footer__bar{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:11px!important;padding:18px 18px 26px!important;line-height:1.7!important}
  body.jj-page-home.jj-home-app-mode .jj-home-window[data-home-window="more"]>.footer .footer__bar .footer__studio{margin-left:0!important}
  /* Public app dock: keep its full touch surface clear of page content. */
  body.jj-phone-page:not(.jj-page-home):not(.jj-page-atlas):not(.jj-page-admin):not(.jj-page-offline-atlas){padding-bottom:calc(100px + env(safe-area-inset-bottom,0px))!important}
  body.jj-phone-page :is(main,.main,.shell,.wrap){min-width:0;max-width:100%}
  body.jj-phone-page :is(.gallery img,.viewer img,.hero img,.about img,.service-card img,.template-card img){max-width:100%;height:auto}
  body.jj-phone-page :is(input,select,textarea,button){max-width:100%;box-sizing:border-box}
  body.jj-phone-page :is(.jj-app-nav,.atlas-app-dock){bottom:max(8px,env(safe-area-inset-bottom,0px))}
  body.jj-phone-page :is(.jj-app-more-sheet,.jj-admin-more-sheet){padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))}
  body.jj-page-admin.jj-admin-authenticated .wrap:has(#appView:not(.hidden)){padding-bottom:calc(112px + env(safe-area-inset-bottom,0px))!important}
  body.jj-page-camera .topbar{min-width:0}
  body.jj-page-camera .topbar .brand{min-width:0;flex:1 1 auto}
  body.jj-page-camera .topbar .mobile-nav{flex:0 0 44px;margin-left:auto}
  body.jj-page-camera .topbar nav:not(.open){visibility:hidden;pointer-events:none}
  body.jj-page-camera .topbar nav.open{visibility:visible;pointer-events:auto}
  body.jj-page-camera .wizard-controls{scroll-margin-bottom:calc(100px + env(safe-area-inset-bottom,0px))}
  body.jj-page-works .viewer,body.jj-page-wallpapers .viewer{padding-bottom:calc(34px + env(safe-area-inset-bottom,0px))!important}
  body.jj-page-works .viewer__bottom,body.jj-page-works .material-bar,body.jj-page-wallpapers .viewer__bottom{padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))!important}
  body.jj-page-ppt .dialog{padding-bottom:calc(28px + env(safe-area-inset-bottom,0px))!important}
  body.jj-page-photography-services .brief{scroll-margin-top:74px}
  body.jj-page-camera-manager .settings-footer{bottom:calc(88px + env(safe-area-inset-bottom,0px))!important}
}
@media screen and (max-width:360px){
  body.jj-page-home.jj-home-app-mode .jj-home-window-tabs button{min-width:48px!important;padding-inline:8px!important;font-size:9px!important}
  body.jj-phone-page:not(.jj-page-home) .jj-app-nav{width:calc(100vw - 14px)!important;left:7px!important;right:7px!important;transform:none!important}
  body.jj-phone-page:not(.jj-page-home) .jj-app-nav__item{font-size:9px!important}
}
@media screen and (max-width:1024px) and (max-height:500px) and (pointer:coarse){
  body.jj-page-home.jj-home-app-mode main.jj-home-pager{top:100px!important;bottom:calc(64px + env(safe-area-inset-bottom,0px))!important}
  body.jj-page-home.jj-home-app-mode .jj-home-window>[id="top"] .hero__inner{padding-top:74px!important;padding-bottom:24px!important}
}
@media(prefers-reduced-motion:reduce){
  body.jj-phone-page .jj-app-nav__item{transition:none!important}
  body.jj-phone-page .jj-app-more-sheet{transition:none!important}
}
@media screen and (max-width:767px){
 body.jj-page-home.menu-open .jj-home-window-tabs{display:none!important}
}
@media screen and (max-width:767px){
  /* The global form-control typography reset must not reveal the original ☰ glyph
     underneath the custom camera-guide grid icon. */
  body.jj-page-camera .topbar .mobile-nav{font-size:0!important;line-height:0!important}
  body.jj-page-camera .topbar .mobile-nav::before{font-size:20px!important;line-height:1!important}
}

@media screen and (max-width:1024px) and (max-height:500px) and (pointer:coarse){
  body.jj-phone-page:not(.jj-page-home):not(.jj-page-atlas):not(.jj-page-admin):not(.jj-page-offline-atlas){padding-bottom:calc(80px + env(safe-area-inset-bottom,0px))!important}
}

/* Landscape phone mode: retain the app dock, but return the homepage to a clean
   vertically scrolling composition. The slide deck has its own true fullscreen. */
@media screen and (max-width:1024px) and (max-height:500px) and (pointer:coarse){
  body.jj-phone-page:not(.jj-page-atlas):not(.jj-page-offline-atlas){padding-bottom:calc(82px + env(safe-area-inset-bottom,0px))!important}
  .jj-app-nav{position:fixed!important;z-index:3100!important;left:auto!important;right:8px!important;bottom:8px!important;transform:none!important;width:min(410px,calc(100vw - 16px))!important;height:55px!important;min-height:55px!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:3px!important;padding:4px 6px!important;border:1px solid rgba(222,190,145,.24)!important;border-radius:18px!important;background:linear-gradient(155deg,rgba(30,31,32,.97),rgba(13,15,17,.97))!important;box-shadow:0 13px 38px rgba(0,0,0,.43),inset 0 1px 0 rgba(255,255,255,.055)!important;backdrop-filter:blur(24px) saturate(1.25)!important;-webkit-backdrop-filter:blur(24px) saturate(1.25)!important}
  .jj-app-nav__item{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:6px!important;min-width:0!important;min-height:43px!important;padding:5px 4px!important;border:0!important;border-radius:12px!important;background:transparent!important;color:#aaa69e!important;text-decoration:none!important;font:500 10px/1.1 -apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif!important;letter-spacing:.015em!important}
  .jj-app-nav__item svg{display:block!important;width:18px!important;height:18px!important;flex:0 0 18px!important;stroke:currentColor!important;fill:none!important;stroke-width:1.65!important;stroke-linecap:round!important;stroke-linejoin:round!important}
  .jj-app-nav__item[aria-current="page"]{color:#1b1711!important;background:linear-gradient(145deg,#ead2ad,#c39c6a)!important;box-shadow:0 4px 15px rgba(190,151,96,.23),inset 0 1px 0 rgba(255,255,255,.45)!important;font-weight:650!important}
  body.menu-open .jj-app-nav{display:none!important}
  body.jj-app-more-open{overflow:hidden!important}
  .jj-app-more-backdrop{position:fixed!important;inset:0!important;z-index:3090!important;background:rgba(4,5,7,.62)!important;backdrop-filter:blur(5px)!important;-webkit-backdrop-filter:blur(5px)!important}
  .jj-app-more-sheet{position:fixed!important;z-index:3110!important;left:auto!important;right:8px!important;bottom:70px!important;width:min(410px,calc(100vw - 16px))!important;max-height:calc(100dvh - 82px)!important;overflow:auto!important;padding:12px 14px 18px!important;border:1px solid rgba(222,190,145,.26)!important;border-radius:21px!important;background:linear-gradient(155deg,#20201e,#111315 72%)!important;box-shadow:0 18px 60px rgba(0,0,0,.46)!important;transform:translateY(12px)!important;opacity:0!important;transition:transform .24s ease,opacity .24s ease!important}
  .jj-app-more-sheet:not([hidden]){transform:translateY(0)!important;opacity:1!important}
  .jj-app-more-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .jj-app-more-card{min-height:74px!important;padding:10px 11px!important;border-radius:13px!important}
  body.jj-page-home.jj-home-app-mode{position:static!important;inset:auto!important;width:auto!important;height:auto!important;min-height:100dvh!important;overflow-x:hidden!important;overflow-y:auto!important;padding:0 0 calc(82px + env(safe-area-inset-bottom,0px))!important}
  body.jj-page-home.jj-home-app-mode .jj-home-window-tabs{display:none!important}
  body.jj-page-home.jj-home-app-mode main.jj-home-pager{position:relative!important;inset:auto!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;width:100%!important;height:auto!important;min-height:0!important;display:block!important;overflow:visible!important;overflow-x:hidden!important;overflow-y:visible!important;scroll-snap-type:none!important;scroll-behavior:auto!important;padding:0!important;margin:0!important}
  body.jj-page-home.jj-home-app-mode .jj-home-window{position:relative!important;display:block!important;flex:none!important;width:100%!important;min-width:0!important;height:auto!important;min-height:0!important;overflow:visible!important;padding:0!important;scroll-snap-align:none!important}
  body.jj-page-home.jj-home-app-mode .jj-home-window>[id="top"]{height:calc(100svh - 64px)!important;min-height:calc(100svh - 64px)!important;max-height:none!important;overflow:hidden!important}
  body.jj-page-home.jj-home-app-mode .jj-home-window>[id="top"] .hero__inner{height:100%!important;min-height:0!important;box-sizing:border-box!important;padding-bottom:calc(30px + env(safe-area-inset-bottom,0px))!important}
  body.jj-page-home.jj-home-app-mode .jj-home-window[data-home-window="more"]>.footer{margin-top:30px!important}
  body.jj-page-admin.jj-admin-authenticated .wrap:has(#appView:not(.hidden)){padding-bottom:calc(86px + env(safe-area-inset-bottom,0px))!important}
}


/* V1.5.0 — continuous mobile editorial homepage; no horizontal app windows. */
@media(max-width:767px){
 body.jj-page-home.jj-home-scroll-story{position:relative!important;inset:auto!important;width:100%!important;height:auto!important;min-height:100dvh!important;overflow-x:hidden!important;overflow-y:auto!important;padding:0 0 calc(92px + env(safe-area-inset-bottom,0px))!important;scroll-behavior:smooth!important}
 body.jj-page-home.jj-home-scroll-story main{position:relative!important;inset:auto!important;width:100%!important;height:auto!important;min-height:0!important;display:block!important;overflow:visible!important;overflow-x:clip!important;overflow-y:visible!important;padding:0!important;margin:0!important}
 body.jj-page-home.jj-home-scroll-story main>*{position:relative;min-width:0;max-width:100%}
 body.jj-page-home.jj-home-scroll-story #top{min-height:min(790px,calc(100svh - 86px))!important;height:auto!important;max-height:none!important;overflow:hidden!important}
 body.jj-page-home.jj-home-scroll-story #top .hero__inner{min-height:min(790px,calc(100svh - 86px))!important;height:auto!important;box-sizing:border-box!important;padding-bottom:42px!important}
 body.jj-page-home.jj-home-scroll-story .jj-home-window-tabs{display:none!important}
 body.jj-page-home.jj-home-scroll-story .jj-scroll-reveal{opacity:0;transform:translate3d(0,28px,0);filter:blur(4px);transition:opacity .82s cubic-bezier(.2,.7,.2,1),transform .82s cubic-bezier(.2,.7,.2,1),filter .82s ease;transition-delay:calc(var(--jj-reveal-order,0)*65ms);will-change:opacity,transform,filter}
 body.jj-page-home.jj-home-scroll-story .jj-scroll-reveal.is-in-view{opacity:1;transform:translate3d(0,0,0);filter:blur(0)}
 body.jj-page-home.jj-home-scroll-story .footer{position:relative!important;inset:auto!important;width:100%!important;max-width:none!important;margin-top:38px!important;padding-bottom:30px!important}
 body.jj-page-home.jj-home-scroll-story .footer__giant{font-size:19vw!important;white-space:nowrap!important}
 body.jj-page-home.jj-home-scroll-story .wrap{padding-inline:18px!important}
 body.jj-phone-page .jj-app-nav{display:grid!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important}
 body.menu-open .jj-app-nav{display:grid!important}
 body.jj-page-atlas.atlas-guest .jj-app-nav{display:grid!important;visibility:visible!important;opacity:1!important}
 body.jj-page-atlas.atlas-private-workspace .jj-app-nav{display:none!important}
 body.jj-page-atlas.atlas-guest .atlas-app-dock{display:none!important}
 body.jj-page-atlas.atlas-guest .map-display-control,
 body.jj-page-atlas.atlas-guest #atlasMobileCreateButton,
 body.jj-page-atlas.atlas-guest #atlasMobileCreateSheet{display:none!important}
 body.jj-page-atlas.atlas-guest .map-toolbar{bottom:calc(84px + env(safe-area-inset-bottom,0px))!important;top:auto!important}
 body.jj-page-atlas.atlas-guest .map-footer{bottom:calc(142px + env(safe-area-inset-bottom,0px))!important}
 body.jj-page-atlas.atlas-guest .leaflet-control-scale{margin-bottom:calc(145px + env(safe-area-inset-bottom,0px))!important}
 body.jj-page-atlas.atlas-guest .leaflet-bottom{bottom:calc(142px + env(safe-area-inset-bottom,0px))!important}
 body.jj-page-atlas.atlas-guest .topbar .nav-return{display:none!important}
 body.jj-page-atlas.atlas-guest .topbar__label{display:none!important}
 body.jj-page-atlas.atlas-guest .topbar{gap:10px!important;padding-inline:15px!important}
 body.jj-page-atlas.atlas-guest .topbar .brand{margin-right:auto!important}
 body.jj-page-atlas.atlas-guest .atlas-install-launcher{display:none!important}
 body.jj-page-atlas .atlas-app-dock{bottom:calc(8px + env(safe-area-inset-bottom,0px))!important}
 body.jj-page-atlas.atlas-private-workspace .map-toolbar{bottom:calc(150px + env(safe-area-inset-bottom,0px))!important}
 body.jj-page-atlas.atlas-private-workspace .map-display-control{bottom:calc(208px + env(safe-area-inset-bottom,0px))!important}
 body.jj-page-atlas.atlas-private-workspace .leaflet-control-scale{margin-bottom:calc(220px + env(safe-area-inset-bottom,0px))!important}
 body.jj-page-atlas.atlas-private-workspace .leaflet-bottom{bottom:calc(218px + env(safe-area-inset-bottom,0px))!important}
 body.jj-page-photography-services .choices{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
 body.jj-page-photography-services .choices label{position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;min-height:58px!important;padding:13px 12px!important;border:1px solid rgba(215,184,135,.24)!important;border-radius:12px!important;background:rgba(255,255,255,.035)!important;color:#c9c2b7!important;text-align:center!important;box-shadow:none!important;transition:background .22s,border-color .22s,color .22s,transform .22s!important}
 body.jj-page-photography-services .choices label span{display:inline!important;min-height:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:inherit!important;font-size:12px!important;line-height:1.5!important}
 body.jj-page-photography-services .choices label:has(input:checked){background:rgba(214,183,137,.16)!important;border-color:#d6b789!important;color:#f1d8b5!important;box-shadow:inset 0 0 0 1px rgba(214,183,137,.12)!important}
 body.jj-page-photography-services .choices input:checked+span{background:transparent!important;border-color:transparent!important;color:inherit!important}
 body.jj-page-photography-services .choices label:active{transform:scale(.985)}
}
@media(prefers-reduced-motion:reduce){body.jj-page-home.jj-home-scroll-story .jj-scroll-reveal{opacity:1!important;transform:none!important;filter:none!important;transition:none!important}}
