/* Round 5 home. Only the picture frames scale with the composition. */
#v2-main:has(> #v2-page) { padding-block-start: 0; }
#v2-page {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding-block-start: var(--r5-home-top, 41px);
}
#v2-page::before {
  content: "";
  position: fixed;
  width: 0;
  height: 0;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) 0 env(safe-area-inset-left, 0px);
  visibility: hidden;
  pointer-events: none;
}
.v2-home-viewport {
  position: fixed;
  inset: 0 auto auto 0;
  width: 0;
  height: 100vh;
  height: 100svh;
  visibility: hidden;
  pointer-events: none;
}

#v2-page .v2-row { position: relative; flex: none; width: 100%; margin-inline: 0; }
#v2-page .v2-plate {
  position: absolute;
  display: block;
  inset: 0 auto auto var(--r5-x);
  width: var(--r5-w);
  height: var(--r5-h);
  padding: 0;
  margin: 0;
}

#v2-page .v2-plate-link,
#v2-page .v2-media {
  display: block;
  width: 100%;
}
#v2-page .v2-plate-link {
  position: relative;
  isolation: isolate;
  height: 100%;
}

#v2-page .v2-plate-link:focus-visible {
  outline: 1px solid var(--ink, #212121);
  outline-offset: 3px;
  z-index: 2;
}

#v2-page .v2-media {
  position: relative;
  height: var(--r5-h);
  overflow: hidden;
  aspect-ratio: auto;
  /* Colour only: base.css's centre / cover / no-repeat must stay, or a video's held still (an inline
     background-image while its file reloads) draws at natural size from the top-left after a fast scroll. */
  background-color: #ffffff;
}
/* While a picture loads its box is one light grey, and the picture fades in over it (--fade-image, 300ms).
   Owner's pick, 2026-12-03 (?ask=placeholder, B), over the soft blur, the picture's own colour and plain
   white. Shown at once and as cheap as a fill can be. A video's held still hides it. */
#v2-page .v2-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #f2f2f2;
  pointer-events: none;
}
#v2-page .v2-media.holds-still::before { content: none; }
/* The entrance (core.js): on a full load the pictures wait under the same grey until the nav has started,
   then all fade in together over --fade-image, as one beat after the nav's wave. Captions come with them. */
html:is(.v2-hold, .v2-reveal) #v2-page .v2-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: #f2f2f2;
  pointer-events: none;
}
html.v2-reveal #v2-page .v2-media::after { opacity: 0; transition: opacity var(--fade-image) var(--ease-soft); }
html.v2-hold #v2-page .v2-picture-label { opacity: 0; }
html.v2-reveal #v2-page .v2-picture-label { transition: opacity var(--fade-image) var(--ease-soft); }
#v2-page .v2-media :is(img, video) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Captions: the plate's name under every picture, on every screen (owner, 2026-11-29); on hover with a mouse (2026-11-30). */
#v2-page .v2-plate-link { height: auto; }
#v2-page .v2-picture-label {
  display: block;
  margin-block-start: 6px;
  font: 300 12px/1.35 var(--serif);
  font-feature-settings: var(--serif-features);
  letter-spacing: .16px;
  color: #212121;
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
  text-wrap: pretty;
  pointer-events: none;
}
#v2-page .v2-picture-label:empty { display: none; }
/* A long press on a home picture does nothing, as on the nav and the strip: no iOS link preview or Save Image
   menu (owner, 2026-12-02, open question 9). */
#v2-page .v2-plate-link { -webkit-touch-callout: none; }
/* A plate that bleeds to the window edge sets its caption on the logo's line. */
#v2-page .v2-plate[data-edge] .v2-picture-label { padding-inline-start: 16px; }
/* With a mouse, a caption shows on hover only (owner, 2026-11-30): it fades in where it sits, in the room
   the row keeps for it, so nothing moves. Plain :hover with no scroll guard (7efa048's guard hid every
   caption while scrolling). Touch screens have no hover and always show captions. */
@media (hover: hover) and (pointer: fine) {
  #v2-page .v2-picture-label {
    opacity: 0;
    transition: opacity 200ms var(--ease-soft);
  }
  #v2-page .v2-plate-link:is(:hover, :focus-visible) .v2-picture-label {
    opacity: 1;
    transition-duration: 300ms;
  }
}


