/* GitHub Pages / browser viewport fit */
html, body { width:100%; min-height:100%; overflow-x:hidden; }
.scene { width:100%; max-width:100vw; min-width:0; overflow-x:hidden; }
.device-wrap { min-width:0; }
@media (min-width:701px) and (max-width:1100px) {
  .scene { gap:clamp(24px,4vw,65px); padding-left:20px!important; padding-right:20px!important; }
  .intro { width:200px; flex:0 1 200px; }
}
@media (max-width:700px) {
  .scene { width:100%; max-width:100vw; padding:12px 0 0!important; overflow-x:hidden; }
  .device-wrap { width:100%; display:flex; justify-content:center; padding:0!important; }
  .device { width:calc(var(--display-h,770px)*var(--display-ratio,.428571) + 16px)!important; min-width:0!important; max-width:calc(100vw - 24px); }
  .device.folded-open { width:calc(var(--display-h,770px)*var(--display-ratio,.901099) + 16px)!important; }
}
/* Album navigation retains its title rather than the photo feed's hidden heading. */
.gallery-view:has(.album-actions-v9) .app-header {height:50px;min-height:50px;}
.gallery-view:has(.album-actions-v9) .app-header h2 {display:block;font-size:18px;}
.gallery-view .app-header [aria-label="앨범 목록으로"] {order:-1;}
