/* Preserve the desktop photograph and transition when using a picture source. */
#booth > .booth-media { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
#booth .booth-media > .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.solution-stage #booth.story-booth > .booth-media { inset: -12px; width: calc(100% + 24px); height: calc(100% + 24px); }

@media (max-width: 899px) {
  #solution .solution-stage { min-height: 0; }
  /* Full product photograph above its copy; no zoom may crop its edges. */
  #booth,
  .solution-stage #booth.story-booth {
    display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 16px;
    height: 100svh; min-height: 0;
    padding: calc(var(--site-header-height) + 72px) 20px 24px;
    background: var(--b-paper); color: var(--b-ink);
  }
  .solution-stage #booth.story-booth { height: 100%; }
  #booth > .booth-media,
  .solution-stage #booth.story-booth > .booth-media {
    position: relative; inset: auto; width: 100%; height: 100%; min-height: 0;
  }
  #booth .booth-media > .bg {
    object-fit: contain; object-position: center; transform: none !important; filter: none !important;
  }
  #booth.shade::after { display: none; }
  #booth .over,
  .solution-stage #booth .over { min-height: 0; height: auto; width: 100%; margin: 0; padding: 0; }
  #booth .booth-name { font-size: 48px; }
  #booth .booth-kind { font-size: 14px; line-height: 1.6; margin-top: 12px; }
  #booth .body-xl { font-size: 15px; line-height: 1.8; margin-top: 12px; }

  /* Heading, photograph and steps each have their own row. */
  #assembly .pin-panel {
    display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px;
    height: calc(100svh - var(--site-header-height) - 56px); min-height: 0;
    padding: 16px 20px 24px;
  }
  #assembly.is-seq .pin-panel { top: calc(var(--site-header-height) + 56px); }
  #assembly .asm-in { display: contents; }
  #assembly .asm-in > .rv { opacity: 1; animation: none; translate: none; }
  #assembly .asm-in > div { grid-row: 1; position: relative; z-index: 2; }
  #assembly .label { font-size: 12px; line-height: 1.5; }
  #assembly .h2 { font-size: 24px; line-height: 1.4; margin-top: 8px; }
  #assembly #asm-image {
    grid-row: 2; position: relative; inset: auto; width: 100%; height: 100%; min-height: 0;
    object-fit: contain; object-position: center; transform: none;
  }
  #assembly .steps { grid-row: 3; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; position: relative; z-index: 2; }
  #assembly .steps li { height: auto; min-height: 36px; gap: 8px; font-size: 12px; line-height: 1.5; letter-spacing: 0; }
  #assembly .steps .sn { width: 28px; font-size: 15px; }
  #assembly .steps .is-now .sn::before { width: 28px; height: 28px; }
  #assembly .shade::after,
  #assembly .scroll-cue { display: none; }
}

/* In short landscape screens use the width for image and copy side by side. */
@media (max-width: 899px) and (max-height: 539px) {
  #booth { height: auto; min-height: calc(100svh - var(--site-header-height) - 56px); grid-template-columns: 1fr 1fr; grid-template-rows: auto; align-items: center; padding: 16px 20px; scroll-margin-top: calc(var(--site-header-height) + 56px); }
  #booth > .booth-media { height: calc(100svh - var(--site-header-height) - 88px); }
  #booth .booth-name { font-size: 40px; }
  #assembly .pin-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 12px 20px; padding: 16px 20px; }
  #assembly #asm-image { grid-column: 1; grid-row: 1 / 3; }
  #assembly .asm-in > div { grid-column: 2; grid-row: 1; }
  #assembly .h2 { font-size: 20px; line-height: 1.4; margin-top: 4px; }
  #assembly .h2 br { display: none; }
  #assembly .steps { grid-column: 2; grid-row: 2; align-self: start; }
}

/* Keep the assembly headline on one line, including narrow phones. */
#assembly #asm-title{white-space:nowrap}
@media(max-width:359px){#assembly #asm-title{font-size:20px}}
