/* Landscape phones (19 Nov 2026).
   Trigger: a short, wide viewport. Height is the reliable signal for "phone on its side" (every phone on its side is under 470px tall,
   no tablet or laptop is). Portrait and desktop are not affected: nothing here applies unless the viewport is under 500px tall.
   Ideas applied: photo fills the free height (object-fit: contain, never cropped), sticky header scrolls away so it cannot cover the photo,
   safe-area insets keep controls clear of the notch and rounded corners (pages already use viewport-fit=cover),
   100dvh for the lightbox so browser bars do not clip it, and the menu becomes a two column list that fits. */
@media (orientation:landscape) and (max-height:500px){
:root{
 --sl:env(safe-area-inset-left,0px);--sr:env(safe-area-inset-right,0px);--sb:env(safe-area-inset-bottom,0px);
 --gut:max(22px,var(--sl),var(--sr));
}

/* ---- header: smaller, and it scrolls away instead of sitting on top of the photo ---- */
.hd,.hd.solid{position:absolute;padding:10px max(22px,var(--sr)) 10px max(22px,var(--sl));background:none;backdrop-filter:none;-webkit-backdrop-filter:none}
.hd:before{inset:0 0 -20px}
html[lang=en] .hd .logo{font-size:15px}
.hd .logo{font-size:17px}
body.menu-open .hd{position:fixed}

/* ---- menu overlay (phones, up to 900px wide): two columns that fit a short screen, scrollable if ever needed ---- */
@media (max-width:900px){
#nav{flex-direction:row;align-items:center;justify-content:safe center;flex-wrap:wrap;gap:8px 48px;padding:56px max(24px,var(--sr)) 18px max(24px,var(--sl));overflow-y:auto;overscroll-behavior:contain}
#nav ul{display:grid;grid-template-columns:repeat(2,auto);gap:0 44px;font-size:clamp(24px,7.5vh,34px)}
#nav a{padding-block:3px}
.nav-tag{font-size:16px;max-width:26ch}
}

/* ---- accessibility button: smaller, in the corner, clear of the notch and home bar ---- */
.a11y-fab{width:40px;height:40px;inset-block-end:max(10px,var(--sb));inset-inline-start:max(10px,var(--sl))}
.a11y-fab svg{width:22px;height:22px}

/* ---- photo viewer: the photo gets the whole screen height ---- */
.lb{height:100vh;height:100dvh;grid-template-columns:calc(58px + var(--sl)) minmax(0,1fr) calc(58px + var(--sr));grid-template-rows:minmax(0,1fr) auto}
.lb-top{position:absolute;inset:0 0 auto 0;z-index:3;padding:max(8px,env(safe-area-inset-top,0px)) max(10px,var(--sr)) 0 max(14px,var(--sl));pointer-events:none}
.lb-top>*{pointer-events:auto}
.lb-count{font-size:11px}
.lb .lb-close{width:44px;height:44px}
.lb .lb-nav{position:static;width:44px;height:44px;grid-row:1;align-self:center}
.lb .lb-prev{grid-column:1;justify-self:end;margin-inline-end:6px}.lb .lb-next{grid-column:3;justify-self:start;margin-inline-start:6px}
.lb .lb-stage{grid-column:2;grid-row:1;padding:8px 0 4px;height:100%;min-height:0}
.lb-stage img{max-width:100%;max-height:100%;box-shadow:none}
.lb .lb-meta{grid-column:1/-1;grid-row:2;display:flex;flex-wrap:nowrap;align-items:baseline;justify-content:center;gap:4px 16px;max-width:none;width:100%;box-sizing:border-box;padding:2px max(16px,var(--sr)) max(8px,var(--sb)) max(16px,var(--sl));text-align:start;min-width:0}
.lb-title{font-size:18px;white-space:nowrap;flex:none}
.lb-cap{margin:0;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;flex:0 1 auto}
.lb-links{margin:0;gap:16px;font-size:13px;flex:none}

/* ---- home: photo beside the words, whole photo visible (no crop) ---- */
.hero.split{height:100vh;height:100dvh;min-height:0;max-height:none}
.hero .sl img{object-fit:contain;transform:none}
.hero .sl,.hero .pics{background:#000}
.hero .pics .stage{inset:46px 0 52px 0}
.hero .side .foot{display:none}
.hero .side{padding-top:54px;padding-bottom:18px;justify-content:center;gap:12px}
@media (max-width:900px){
 .hero.split{grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);grid-template-rows:none}
 .hero .side{padding:54px 20px 18px max(22px,var(--sl))}
 .hero .side h1{font-size:clamp(34px,10vh,52px)}
 .hero .side .tl{font-size:clamp(18px,5vh,22px);max-width:26ch}
 .hero .side .btns{gap:8px}
 .hero .pics{min-height:0;height:100%;padding-top:46px}
 .hero .pics .stage{position:relative;inset:auto;flex:1 1 0;min-height:0}
 .hud{padding:6px max(14px,var(--sr)) max(8px,var(--sb)) 14px;color:var(--ink)}
}

/* ---- single photo page: the photo fills the first screen, details follow ---- */
.single{padding-top:0;min-height:100vh;min-height:100dvh}
.single figure{padding:8px max(12px,var(--sr)) 8px max(12px,var(--sl))}
.single figure img{width:min(100%,calc((100dvh - 24px) * var(--ar,1.5)))}
.single .info{grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding-inline:var(--gut)}
.single .info .acts{grid-column:1/-1}

/* ---- series and collection pages: photos sooner, whole photo in each tile ---- */
.page-h{padding-top:64px}
.page-h h1{font-size:clamp(44px,13vh,72px);margin:10px 0 12px}
.page-h p{font-size:17px}
.cit .mat img{object-fit:contain}
.cit .mat img{width:100%}

/* ---- shop, print page, cart: same page rhythm as desktop, tighter top space ---- */
.prod{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:28px;padding-top:56px}
.pv-col{position:sticky;top:12px}
.room{width:min(100%,calc((100dvh - 28px) * 1.25));margin-inline:auto}
.cart{grid-template-columns:minmax(0,1fr) 340px;gap:28px;padding-top:56px}
.summary{position:sticky;top:12px;padding:20px}

/* ---- sunrises strip: photos sized to the screen, never taller than it ---- */
.sr-reel-wrap .cit img{height:min(200px,60dvh)}
.ft{padding-bottom:max(40px,var(--sb))}
}
