/* =========================================================
   layout.css
   .scene is the fullscreen-centering container on desktop:
   it fills the remaining viewport height below the header and
   vertically centers .scene__frame within it. .scene__frame is
   the actual positioning context for the TV/tapes — sized
   exactly to the image itself (not the taller centering box),
   so their % coordinates stay correctly anchored to the photo
   regardless of how much empty space surrounds it.
   ========================================================= */

.page {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.site-header__inner {
  width: 100%;
  padding: var(--space-xs) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  background: var(--color-bg);
}

.scene {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0; /* allow flex-basis to shrink below content size if needed */
}

.scene__frame {
  position: relative;
  width: 100%;
  line-height: 0; /* kill the inline-image whitespace gap */
}

.scene__bg {
  display: block;
  width: 100%;
  height: auto;
}

/* Shared coordinate system, measured directly from the photo.
   Every positioned element below reads from these instead of
   repeating raw percentages. */
.scene__frame {
  --shelf-y: 89.6%;      /* measured front edge of the shelf */
  --shelf-setback: 1.6%; /* tapes sit this far back from the edge, not flush on it */
}
