/* Preserve the desktop artboards; reflow content when space or input requires it. */
html,body.home-local { min-width:0; }
.home-master .home-nav a { font-size:max(14px,calc(14px / var(--home-scale,1))); line-height:max(16px,calc(16px / var(--home-scale,1))); }
.film-master .film-title,.film-master .film-type { font-size:max(16px,calc(14px / var(--home-scale,1))); }
.film-title-word { display:block; }
.home-name,.studio-home-link,.street-home-link,.graphic-design-home-link { transition:color .18s ease; }
@media (hover:hover) {
  .home-name:hover,.studio-home-link:hover,.street-home-link:hover,.graphic-design-home-link:hover { color:#4b3031; }
}
@media (max-width:1279px),(max-height:799px),(pointer:coarse) {
  .home-viewport { width:100%; height:auto; margin:0; overflow:visible; }
  .home-master { width:100%; height:auto; min-height:100svh; transform:none; overflow:visible; display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:auto auto auto; grid-template-areas:"nav" "content" "name"; align-content:space-between; gap:clamp(24px,3vw,40px); padding:24px 0 8px; }
  .home-master .home-name { position:static; inset:auto; grid-area:name; justify-self:center; width:84.6528%; height:auto; margin:0; font-size:min(17.3611vw,250px); line-height:1.2; }
  .home-master .home-nav { position:static; inset:auto; grid-area:nav; justify-self:center; width:min(90.2778%,800px); height:auto; margin:0; display:flex; flex-direction:row; flex-wrap:wrap; justify-content:center; align-items:center; gap:4px 24px; }
  .home-master .home-nav a { display:flex; justify-content:center; align-items:center; min-height:44px; min-width:44px; padding:0 8px; font-size:.875rem; line-height:20px; transform:none; }
  .home-master .home-hero { position:relative; inset:auto; grid-area:content; justify-self:center; width:90.2778%; height:auto; aspect-ratio:1296/542; margin:0; }
  .home-master .home-photo { inset:0; width:100%; height:100%; object-fit:cover; object-position:center; }
  .home-master .home-mask { display:none; }
  .biography-master .biography-content { grid-area:content; display:grid; grid-template-columns:minmax(0,455fr) minmax(0,639fr); align-items:center; justify-self:center; width:90.2778%; gap:clamp(24px,5vw,72px); }
  .biography-master .biography-portrait { position:static; inset:auto; justify-self:center; width:100%; max-width:455px; height:auto; }
  .biography-master .biography-copy { position:static; inset:auto; min-width:0; width:100%; font-size:clamp(1rem,2vw,1.5rem); line-height:1.5; letter-spacing:.06em; overflow-wrap:anywhere; }
  .biography-master .biography-copy .biography-email { margin-top:clamp(20px,4vw,48px); }
  .photography-main,.film-master { grid-template-rows:auto auto; grid-template-areas:"content" "name"; }
  .photography-main .photography-panels { position:static; inset:auto; grid-area:content; justify-self:center; width:90.2778%; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(20px,5vw,80px); }
  .photography-main .photography-panel { width:100%; height:auto; aspect-ratio:520/690; }
  .photography-main .photography-panel span { font-size:clamp(28px,5vw,48px); }
  .film-master .film-list { position:static; inset:auto; grid-area:content; justify-self:center; width:90.2778%; height:auto; margin:0; grid-template-rows:none; grid-auto-rows:auto; gap:clamp(24px,3vw,36px); }
  .film-master .film-item { display:grid; grid-template-columns:128px minmax(0,1fr) 128px; grid-template-rows:auto; gap:12px 16px; align-items:center; height:auto; }
  .film-master .film-preview { grid-column:2; grid-row:1; width:100%; height:auto; min-height:130px; aspect-ratio:1120/210; }
  .film-master .film-title,.film-master .film-type { position:static; inset:auto; transform:none; width:auto; max-width:none; margin:0; font-size:1rem; line-height:1.3; overflow-wrap:anywhere; }
  .film-master .film-title { grid-column:1; grid-row:1; text-align:right; }
  .film-master .film-type { grid-column:3; grid-row:1; text-align:left; }
}
@media (max-width:900px) {
  .film-master .film-item { grid-template-columns:minmax(0,1fr) minmax(0,120px); grid-template-rows:auto auto; align-items:start; gap:12px 16px; }
  .film-master .film-preview { grid-column:1 / -1; grid-row:1; min-height:0; }
  .film-master .film-title { grid-column:1; grid-row:2; text-align:left; }
  .film-master .film-type { grid-column:2; grid-row:2; text-align:right; }
  .film-master .film-title,.film-master .film-type { font-size:.875rem; line-height:1.4; }
}
@media (max-width:600px) {
  .home-master .home-nav { flex-direction:column; flex-wrap:nowrap; gap:0; }
  .home-master .home-hero { aspect-ratio:16/9; }
  .biography-master .biography-content { grid-template-columns:minmax(0,1fr); gap:24px; }
  .biography-master .biography-portrait { width:min(70%,455px); }
  .biography-master .biography-copy { font-size:1rem; line-height:1.55; }
  .biography-master .biography-copy .biography-email { margin-top:20px; }
  .biography-master .biography-email a { display:inline-block; padding:8px 0; }
  .photography-main .photography-panels { grid-template-columns:minmax(0,1fr); gap:24px; }
  .photography-main .photography-panel span { font-size:clamp(32px,8vw,48px); }
  .film-master .film-preview { aspect-ratio:16/9; }
  .film-master .film-preview img { inset:0; width:100%; height:100%; object-fit:cover; object-position:center; }
}
@media (max-width:600px),(pointer:coarse) {
  .studio-gallery,.street-gallery,.graphic-design-page { padding-top:52px; }
  .studio-composition .studio-home-link,.street-composition .street-home-link,.graphic-design-composition .graphic-design-home-link { top:-52px; min-height:44px; min-width:44px; padding:0 6px; display:flex; align-items:center; justify-content:center; }
  .viewer-close,.viewer-navigation button,.home-film-dialog .home-film-close { min-height:44px; min-width:44px; }
}
@media (max-height:500px) {
  #viewer { padding-top:60px; padding-bottom:58px; }
  .viewer-close { top:8px; }
  .viewer-navigation { bottom:6px; }
  .home-film-dialog { padding-top:60px; padding-bottom:12px; }
  .home-film-dialog .home-film-close { top:8px; }
}

/* Center the composition on portrait phones and tablets. */
@media (max-width:1279px) and (orientation:portrait), (pointer:coarse) and (orientation:portrait) {
  .home-master { align-content:center; padding-top:24px; padding-bottom:24px; }
  .home-master .home-name { text-align:center; }
}
