/* SITE-07 r3 About: the same three scenes in a shorter factory walk. */
/* The first two photographs stay in order. Give the conveyor a separate wide, low
   frame in which the photographed vanishing point can do the work. */
@media (min-width:781px) {
  .tour .scene-belt .scene-stage {
    grid-template-columns: minmax(0,1fr) auto;
    grid-template-rows: auto minmax(0,1fr);
    min-block-size: min(74svh, 760px);
    padding-block: clamp(23px,4.6svh,44px);
    align-content: start;
    column-gap: 22px;
  }
  .tour .scene-belt .eyeline { grid-area: 1 / 1; align-self: start; }
  .tour .scene-belt .scene-copy { display: contents; }
  .tour .scene-belt .scene-copy h2 {
    grid-area: 1 / 1;
    align-self: end;
    justify-self: start;
    max-width: none;
    margin-block-start: 27px;
    font-size: clamp(37px,4.5vw,67px);
  }
  .tour .scene-belt .scene-copy > a { grid-area: 1 / 2; align-self: end; justify-self: end; }
  .tour .scene-belt .film {
    grid-area: 2 / 1 / 3 / -1;
    aspect-ratio: 2.27;
    min-block-size: min(295px,48svh);
    max-block-size: 63svh;
  }
  .tour .scene-belt .film img { object-fit: cover; object-position: center 49%; }
  .tour .scene-line .scene-stage { min-block-size: min(90svh,870px); }
}
@media (max-width:780px) {
  .tour :is(.scene-line,.scene-belt) .scene-stage {
    grid-template-rows: auto auto auto;
    min-block-size: 0;
    padding-block: clamp(21px,4svh,34px) clamp(51px,8svh,70px);
    gap: clamp(12px,2.05svh,20px);
  }
  .tour :is(.scene-line,.scene-belt) .film { grid-area: 2 / 1; }
  .tour :is(.scene-line,.scene-belt) .scene-copy { grid-area: 3 / 1; }
  .tour .scene-belt .film img { object-fit: cover; object-position: center 48%; }
}
@media (min-height:540px) and (prefers-reduced-motion:no-preference) {
  .tour.flow :is(.scene-line,.scene-belt) .scene-stage {
    --r3-exit: clamp(0, calc((var(--scene-exit,0) - .4) / .6), 1);
    transform: translateY(calc(var(--r3-exit) * var(--scene-window)));
  }
  .tour.flow :is(.scene-line,.scene-belt) .scene-copy:not(:focus-within) {
    opacity: clamp(0,calc(1 - var(--r3-exit) * 2.2),1);
    transform: translateY(calc(var(--r3-exit) * -44px));
  }
  /* The conveyor header is a grid child on wide screens. Give its individual
     children the exit state because display:contents has no painted box. */
  .tour.flow .scene-belt .scene-copy:not(:focus-within) > :is(h2,a) {
    opacity: clamp(0,calc(1 - var(--r3-exit) * 2.2),1);
  }
}
@media (max-width:780px) and (min-height:540px) and (prefers-reduced-motion:no-preference) {
  /* In a compact walk, an old photograph must not spill under a later cut. */
  .tour.flow .scene-belt { background: #f1efe7; }
  .tour.flow .scene-workshop { background: #243fba; }
  .tour.flow :is(.scene-line,.scene-belt) .scene-stage,
  .tour.flow :is(.scene-line,.scene-belt) .scene-copy:not(:focus-within) {
    transform: none;
    opacity: 1;
  }
  .tour.flow .scene-belt .scene-copy:not(:focus-within) > :is(h2,a) { opacity: 1; }
  .tour.flow :is(.scene-belt,.scene-workshop) .scene-stage {
    --cut-drop: calc((1 - var(--cut-open)) * clamp(28px,7svh,55px));
  }
}
