/* Content owns its space; short viewports scroll instead of overlaying the footer. */
.gallery-page{overflow:auto}
.gallery-page .exhibition-room{height:auto;min-height:100svh;display:grid;grid-template-columns:minmax(280px,360px) minmax(0,1fr);grid-template-rows:auto minmax(530px,1fr) auto;gap:28px 36px;padding:0 3.4%;overflow:hidden}
.gallery-page .site-header{position:relative;inset:auto;margin:0;grid-column:1/-1;padding-bottom:28px}
.gallery-page .research-lens,.gallery-page[data-mode=neural] .research-lens{position:relative;inset:auto!important;grid-column:1;grid-row:2;width:auto!important;max-width:none;max-height:none;overflow:visible;padding:5px 0 20px;margin:0;align-self:start}
.gallery-page .home-fiber-layers,body[data-mode=architecture] .home-fiber-layers{position:relative;inset:auto;grid-column:2;grid-row:2;width:100%;height:100%;min-height:530px;margin:0;align-self:stretch}
.gallery-page .atlas-entry{position:relative;inset:auto;grid-column:2;grid-row:2;align-self:start;justify-self:end;max-width:100%;margin:0;z-index:8;font-size:14px}
.gallery-page .room-navigation{position:relative;inset:auto;grid-column:1/-1;grid-row:3;align-self:end;min-height:100px;padding:22px 85px 22px 0;gap:24px;margin:0}
.gallery-page .stream-selector{flex-wrap:wrap;gap:10px 30px}
.gallery-page .stream-switch{padding:8px 0;line-height:1.3}
.gallery-page .room-tools{margin:0;flex:none}
.gallery-page .lab-signature{right:3.4%;bottom:20px}
.gallery-page #network-caption,.gallery-page #activation-readout,.gallery-page #network-map,.gallery-page #signal-bridge{display:none}
@media(min-width:1500px) and (min-height:900px){.gallery-page .exhibition-room{grid-template-columns:minmax(320px,410px) minmax(0,1fr);grid-template-rows:auto minmax(620px,1fr) auto}.gallery-page .home-fiber-layers{min-height:620px}}
@media(max-width:1050px){.gallery-page .exhibition-room{grid-template-columns:minmax(260px,310px) minmax(0,1fr);column-gap:24px}.gallery-page .research-lens h2{font-size:27px}.gallery-page .room-navigation{flex-wrap:wrap;gap:14px}.gallery-page .stream-selector{gap:10px 22px}.site-subtitle{max-width:min(430px,58vw)}}
@media(max-width:760px){
 .gallery-page .exhibition-room{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(340px,55vw) auto auto;gap:24px;padding:0 22px;min-height:100svh}
 .gallery-page .site-header{grid-row:1;padding-bottom:22px}
 .gallery-page .home-fiber-layers,body[data-mode=architecture] .home-fiber-layers{grid-row:2;grid-column:1;height:100%;min-height:340px}
 .gallery-page .atlas-entry{grid-row:2;grid-column:1;justify-self:start;text-align:left;font-size:13px;max-width:100%}
 .gallery-page .research-lens,.gallery-page[data-mode=neural] .research-lens{grid-row:3;grid-column:1;padding-bottom:8px}
 .gallery-page .research-lens h2{max-width:500px;font-size:30px}
 .gallery-page .research-lens>p{max-width:560px;font-size:13px;line-height:1.65}
 .gallery-page .research-explanation p{font-size:13px;min-height:0}
 .gallery-page .room-navigation{grid-row:4;grid-column:1;flex-direction:column;align-items:flex-start;padding:24px 65px 24px 0;gap:20px}
 .gallery-page .stream-selector{flex-direction:column;align-items:flex-start;gap:8px}
 .gallery-page .stream-switch{font-size:17px}
 .gallery-page .lab-signature{right:22px;bottom:25px}
 .site-header{flex-wrap:wrap}.site-identity{max-width:100%;min-width:0}.site-name{font-size:clamp(29px,6.7vw,43px)}.site-subtitle{width:430px;max-width:100%;height:15px}.site-header nav{padding-top:0}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.gallery-page[data-mode=architecture] .research-lens,.gallery-page[data-mode=neural] .research-lens{top:auto!important;bottom:auto!important;left:auto!important;right:auto!important}
.gallery-page .home-fiber-layers,body[data-mode=architecture] .home-fiber-layers{height:clamp(530px,calc(100svh - 320px),760px);min-width:0;contain:size}
@media(max-width:760px){.gallery-page .home-fiber-layers,body[data-mode=architecture] .home-fiber-layers{height:max(340px,55vw)}}
