/* Keep text at its authored size until the complete 4000 × 2250 board is
   scaled. Tiny CSS font sizes can be enlarged independently by Android
   WebViews; a transform preserves the relationship between text and artwork. */
html[data-layout="fixed"] {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  overflow-x: hidden;
}

html[data-layout="fixed"] #portfolio > .chapter {
  --u: 1px;
  --canvas-scale: var(--initial-canvas-scale, .34);
  --screen-pixel: var(--initial-screen-pixel, 2.9411764706px);
  position: relative;
  container-type: normal;
  aspect-ratio: 16 / 9;
  height: var(--canvas-height, auto);
  overflow: hidden;
}

html[data-layout="fixed"] #portfolio > .chapter > .board {
  --u: 1px;
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 4000px;
  height: 2250px;
  container-type: normal;
  transform: scale(var(--canvas-scale));
  transform-origin: 0 0;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

html[data-layout="fixed"] #portfolio > .chapter > .mobile-content {
  display: none !important;
}

/* The cover is the only visible board with direct container-unit type.
   Use its exact authored equivalents so older WebViews need no cqw support. */
html[data-layout="fixed"] #s0 .cover-title {
  font-size: 172px;
}
html[data-layout="fixed"] #s0 .cover-subtitle {
  margin-top: 50px;
  font-size: 60px;
}

/* These approved details were specified in screen pixels rather than board
   units. Keep their existing weight when the parent starts scaling. */
html[data-layout="fixed"] #s2 .board [data-node-id="8:141"],
html[data-layout="fixed"] #s3 .board .brand-compare-old .brand-compare-icon {
  box-shadow: 0 calc(2 * var(--screen-pixel)) calc(8 * var(--screen-pixel)) rgba(52,61,74,.035);
}
html[data-layout="fixed"] #s2 .board [data-node-id="8:141"]::after,
html[data-layout="fixed"] #s3 .board .brand-compare-old .brand-compare-icon::after {
  border-width: var(--screen-pixel);
}
html[data-layout="fixed"] #s4 .board .spirit-feature + .spirit-feature {
  border-top-width: var(--screen-pixel);
}

/* Preserve the optional page review mode as well as the default long page. */
html[data-layout="fixed"].presentation body {
  height: 100vh;
  height: 100dvh;
}
