/* Phone layout shared by both language versions. */
.mobile-room-list,.mobile-works,.mobile-photo-nav,.video-fullscreen{display:none}
.mobile-photo-nav[hidden],.video-fullscreen[hidden]{display:none!important}
@media(max-width:700px){
  html{-webkit-text-size-adjust:100%}
  body{overflow-x:hidden}
  button,a{-webkit-tap-highlight-color:transparent}
  button{touch-action:manipulation}
  .site-language{top:max(8px,env(safe-area-inset-top));right:8px;font-size:13px;min-height:28px}
  .site-language a{display:inline-flex;min-width:30px;min-height:30px;align-items:center;justify-content:center}
  body:has(#zoom.open) .site-language,body:has(dialog[open]) .site-language,body:has(.alleen-foto-scherm.open) .site-language{display:none}
  .mobile-gallery .hidden{display:none!important}
  .mobile-gallery .plaza .plaza-content{padding:100px 12px 30px!important}
  .mobile-gallery .plaza h1{font-size:36px}
  .mobile-gallery .plaza p{font-size:15px;line-height:1.6}
  .mobile-gallery .museum-ring{width:100%;margin:20px 0 0}
  .mobile-gallery .museum-doorlist{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;overflow:visible;padding:18px 0 6px}
  .mobile-gallery .museum-doorlist button{height:auto;min-height:52px;padding:10px 3px;font-size:16px;white-space:normal}
  .mobile-gallery .museum-legend{font-size:14px;padding:0}
  .mobile-gallery .top{padding:14px 112px 12px 16px;background:#372b29;color:#fff7ed;min-height:52px;align-items:center}
  .mobile-gallery .top .brand{font-size:30px}
  .mobile-gallery .top a{font-size:12px;letter-spacing:.02em;min-height:40px;display:flex;align-items:center}
  .mobile-gallery #gallery{overflow-y:auto;background:#e8d3c0;padding:92px 0 calc(115px + env(safe-area-inset-bottom));color:#362c27}
  .mobile-gallery #space{display:none}
  .mobile-works{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;padding:10px max(16px,5vw) 25px;scroll-padding-inline:5vw;align-items:start}
  .mobile-works button{flex:0 0 90vw;max-width:560px;scroll-snap-align:center;border:0;background:none;padding:0;color:inherit;font:inherit;text-align:center;cursor:zoom-in}
  .mobile-works img{display:block;width:100%;height:52dvh;max-height:540px;object-fit:contain;background:#231c19}
  .mobile-works small{display:block;padding:12px 6px;font-size:16px;line-height:1.5}
  .mobile-gallery .bottom{display:block;padding:8px 12px calc(10px + env(safe-area-inset-bottom));background:#372b29;color:#fff7ed}
  .mobile-gallery .bottom>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px}
  .mobile-gallery .bottom h2{font-size:24px;margin:0;order:-1}
  .mobile-gallery .buttons{display:flex;flex-wrap:nowrap;gap:6px;margin-top:8px}
  .mobile-gallery .buttons .button{flex:1;min-height:48px;font-size:12px;letter-spacing:0;padding:8px 4px}
  .mobile-gallery #prev{order:0}.mobile-gallery #plazaButton{order:1}.mobile-gallery #next{order:2}
  .mobile-gallery .buttons [hidden]{display:none!important}
  .mobile-gallery .zoom{padding:0;align-items:start;overflow-y:auto;z-index:100;background:#eee5dc}
  .mobile-gallery .zoom-card{display:flex;flex-direction:column;gap:0;box-sizing:border-box;width:100%;max-width:none;max-height:none;padding:64px 16px 30px;overflow:visible;background:#eee5dc}
  .mobile-gallery .zoom #large{height:46dvh;max-height:600px;width:100%;object-fit:contain;touch-action:pan-y pinch-zoom}
  .mobile-gallery #close{position:fixed;top:max(8px,env(safe-area-inset-top));right:12px;z-index:102;width:46px;height:46px;float:none;border-radius:50%;background:#372b29;color:white;font:32px/1 system-ui;box-shadow:0 2px 8px #0003}
  .mobile-gallery .zoom h3{font-size:30px;line-height:1.2;margin:14px 0}
  .mobile-gallery .zoom p{font-size:17px;line-height:1.7;color:#40382f;margin:14px 0}
  .mobile-gallery .zoom button.lees-meer,.mobile-gallery .zoom button.alleen-foto-knop{float:none;min-height:46px;font:16px system-ui;padding:8px 12px;margin:6px 8px 6px 0;border:1px solid #72594c;border-radius:4px}
  .mobile-photo-nav{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 0}
  .mobile-photo-nav button{float:none!important;font:16px system-ui!important;border:1px solid currentColor!important;border-radius:4px!important;min-height:46px;padding:8px 12px!important;color:inherit}
  .mobile-photo-nav [hidden]{display:none!important}
  .mobile-photo-nav span{font:14px system-ui;min-width:45px;text-align:center}
  body:has(#zoom.open),body:has(.alleen-foto-scherm.open){overflow:hidden}
  .mobile-gallery .alleen-foto-scherm{z-index:110}
  .mobile-gallery .alleen-foto-scherm button{min-width:46px;min-height:46px}
  .mobile-experimental header,.mobile-video header{padding:18px 92px 15px 16px!important;gap:12px;flex-wrap:wrap}
  .mobile-experimental .brand,.mobile-video .brand{font-size:32px}
  .mobile-experimental header a,.mobile-video header .back{font-size:13px;min-height:44px;display:flex;align-items:center}
  .mobile-experimental main,.mobile-video main{padding:24px 14px 36px}
  .mobile-experimental .intro,.mobile-video .intro{font-size:17px;line-height:1.6}
  .mobile-experimental h1{font-size:32px}
  .mobile-room-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}
  .mobile-room-list button{min-height:52px;background:#f3c5d6;border:1px solid #bc7f96;border-radius:4px;color:#392831;font:16px system-ui;padding:8px}
  .mobile-experimental .panel.active{padding:75px 0 calc(100px + env(safe-area-inset-bottom));overflow-y:auto;background:#e5d3be;z-index:70;color:#372c24}
  .mobile-experimental .panel.active::before{display:none}
  .mobile-experimental .panel.active>.eyebrow{color:#685246;padding:0 16px;text-shadow:none}
  .mobile-experimental .panel.active h2{font-size:32px;color:#372c24;text-shadow:none;padding:0 16px}
  .mobile-experimental .panel.active .room-plaque{position:static;transform:none;max-width:none;width:auto;margin:12px 16px;padding:8px}
  .mobile-experimental .panel.active #roomInfo{color:#493d32;text-shadow:none;font-size:16px;line-height:1.65;padding:0 16px}
  .mobile-experimental .panel.active[data-room] .gallery-wall{position:relative;display:flex;top:auto;left:auto;right:auto;height:auto;max-width:none;width:auto;min-height:0;margin:16px 0;padding:10px 5vw 25px;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:5vw;overscroll-behavior-x:contain;background:transparent;align-items:start}
  .mobile-experimental .panel.active[data-room] .artwork{flex:0 0 90vw;width:90vw;min-width:0;scroll-snap-align:center;margin:0;display:flex;flex-direction:column;gap:8px}
  .mobile-experimental .panel.active[data-room] .artwork img{width:100%;max-width:100%;height:48dvh;max-height:550px;object-fit:contain;border:0;outline:0;box-shadow:none;background:#231c19}
  .mobile-experimental .panel.active[data-room] .artwork img:hover{transform:none}
  .mobile-experimental .panel.active[data-room] .artwork figcaption{box-sizing:border-box;font-size:16px;line-height:1.5;padding:8px;min-height:0;background:transparent}
  .mobile-experimental .poster-frame{width:100%}
  .mobile-experimental .panel.active .actions{position:fixed;inset:auto 0 0;display:flex;gap:6px;flex-wrap:nowrap;padding:12px 10px calc(12px + env(safe-area-inset-bottom));margin:0;background:#372b29;z-index:80}
  .mobile-experimental .actions button{flex:1;min-height:48px;margin:0;font-size:12px;padding:8px 4px}
  .mobile-experimental #prev{order:0}.mobile-experimental #back{order:1}.mobile-experimental #next{order:2}
  .mobile-experimental .panel.active .atelierboek-tafel{position:relative;left:auto;right:auto;bottom:auto;display:block;width:120px;margin:15px auto}
  .mobile-experimental .photo-viewer{box-sizing:border-box;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;inset:0;margin:0;padding:68px 12px 24px}
  .mobile-experimental .photo-viewer-close{position:fixed;top:8px;right:12px;min-width:46px;min-height:46px;z-index:5}
  .mobile-experimental .photo-viewer:not([data-zoomed]) .photo-viewer-inner img{width:100%;max-width:100%;height:55dvh;max-height:65dvh;object-fit:contain;touch-action:pan-y pinch-zoom}
  .mobile-experimental .photo-viewer-inner{margin:0}
  .mobile-experimental .photo-viewer-inner figcaption{font-size:17px;line-height:1.5}
  .mobile-experimental .poster-zoom{position:sticky;top:0;justify-content:center}
  .mobile-posters main{padding:24px 16px 40px}
  .mobile-posters h1{font-size:42px;margin-top:38px}
  .mobile-posters .locations{grid-template-columns:1fr;gap:28px}
  .mobile-posters .location span{font-size:18px}
  .mobile-posters dialog{width:100vw;max-width:100vw;max-height:100dvh;margin:auto 0;padding:12px}
  .mobile-posters dialog form{position:sticky;top:0;background:#211922;padding:4px 0}
  .mobile-posters dialog button{min-height:46px}
  .mobile-video .plaza{border-width:3px}
  .mobile-video .film-list{grid-template-columns:1fr}
  .mobile-video .film-list button{display:flex;align-items:center;gap:14px;text-align:left;background:#f0ddc1;color:#392d27}
  .mobile-video .film-list img{width:90px;aspect-ratio:4/3;object-fit:cover}
  .mobile-video .film-list span{font-size:16px}
  .mobile-video .viewer-card{width:100%}
  .mobile-video .viewer-header{position:sticky;top:0;background:#120908;z-index:5;padding:8px 0;align-items:start}
  .mobile-video .viewer-card h2{font-size:22px;overflow-wrap:anywhere}
  .mobile-video .cinema{background:#111;aspect-ratio:16/9}
  .mobile-video .cinema video{left:0;top:0;width:100%;height:100%}
  .mobile-video .film-intro{inset:0}
  .mobile-video .viewer-card p{font-size:16px;line-height:1.6}
  .mobile-video .video-fullscreen{display:block;min-height:46px;margin:16px auto;padding:8px 15px;font:16px system-ui;color:#ffecd4;background:#351a16;border:1px solid #aa7851;border-radius:4px}
}
@media(max-width:700px){
  .mobile-photo-nav button{flex:1;min-width:0;white-space:normal}
  .mobile-photo-nav button:disabled{opacity:.4}
  .mobile-experimental .photo-viewer .mobile-photo-nav button{background:#293a32!important;color:#fff4df!important;border-color:#aa9985!important}
  .mobile-experimental .photo-viewer .mobile-photo-nav{width:100%;max-width:420px}
  .mobile-experimental .photo-viewer-inner{height:auto;min-height:100%;justify-content:flex-start}
  .mobile-experimental .photo-viewer:not([data-zoomed]) .photo-viewer-inner img{flex:none}
  .mobile-gallery .mobile-swipe-hint{font-size:14px;margin:0 16px 8px;color:#514137}
  .mobile-gallery .zoom .mobile-photo-nav button{font-size:14px!important}
  .mobile-experimental .actions [hidden]{display:none!important}
}
.mobile-swipe-hint{display:none}
@media(max-width:700px){.mobile-swipe-hint{display:block}}

.mobile-swipe-hint[hidden]{display:none!important}
@media(max-width:850px){
  .mobile-home{overflow-x:clip}
  .mobile-home>header{box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr);gap:18px;width:100%;max-width:100%;padding:20px 16px 14px!important}
  .mobile-home>header .logo{justify-self:start;max-width:calc(100% - 100px)}
  .mobile-home>header nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;min-width:0;width:100%;max-width:100%;font-size:12px;letter-spacing:.02em;text-align:center}
  .mobile-home>header nav a,.mobile-home>header nav a:first-child{white-space:nowrap;display:flex;align-items:center;justify-content:center;min-width:0;min-height:44px;padding:4px 2px;overflow-wrap:anywhere;border-bottom:1px solid #ffffff50}
  .mobile-home .site-language{top:14px;right:12px}
  .mobile-home .story-grid,.mobile-home .intro,.mobile-home .book,.mobile-home .contact-slot{min-width:0}
  .mobile-home section>*{min-width:0}
  .mobile-home img{max-width:100%}
  .mobile-home .button{max-width:100%;overflow-wrap:anywhere}
}
@media(max-width:380px){
  .mobile-home>header nav{grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;font-size:10px;letter-spacing:0}
  .mobile-home>header nav a{overflow-wrap:normal;white-space:nowrap}
}

@media(max-width:700px){.mobile-experimental .panel.active>.mobile-swipe-hint{font-size:14px;line-height:1.5;color:#514137;padding:0 16px;margin:16px 0 0}}

/* Reserve space beside the fixed language switch. */
.mobile-gallery>header.top,.mobile-experimental>header{padding-right:max(6vw,112px)!important}

.panel.active .atelierboek-tafel span{display:block;position:static;transform:none;height:auto;line-height:1.5;text-align:center;white-space:normal}
@media(max-width:700px){
 .mobile-experimental .panel.active .atelierboek-tafel{display:flex;flex-direction:column;align-items:center;gap:8px;width:min(220px,calc(100% - 32px));height:auto;padding:0;margin:20px auto 28px}
 .mobile-experimental .panel.active .atelierboek-tafel img{width:120px;height:auto;flex:none}
 .mobile-experimental .panel.active .atelierboek-tafel span{box-sizing:border-box;width:100%;margin:0;padding:10px 12px;font:16px/1.5 Georgia,serif;letter-spacing:normal}
}
