/* Act 04 · Sponges, cnidarians and comb jellies */

/* footage with tracked labels, in a pinned stage (also used by acts 05–07) */
.b4-filmscene .b4-film { position: absolute; z-index: 2; left: var(--xp-g); right: var(--xp-g); top: calc(var(--xp-bar) + 176px); }
.b4-filmscene .b4-film video { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.b4-filmscene .b4-film .xa-box > img.xp-film-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
@media (min-width: 900px) {
  .b4-filmscene .b4-film { left: 42%; right: var(--xp-g); top: 16svh; }
  .b4-filmscene .b4-film .xa-box { width: min(100%, calc(66svh * 1.778)); }
  .b4-filmscene .xp-cap { max-width: 26rem; }
}
html.xp-reduced .b4-filmscene .b4-film, html:not(.xp-js) .b4-filmscene .b4-film { position: relative; top: auto; left: auto; right: auto; margin: 150px var(--xp-g) 0; }

/* loops and photos in sections */
.b4-loop { display: block; width: 100%; height: auto; border-radius: 4px; background: var(--raised); }
.xs-hero .xs-vis .b4-loop { height: 100%; object-fit: cover; opacity: .8; border-radius: 0; }
.b4-photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.xs-split .xs-vis .b4-photo { max-height: none; width: min(100%, calc(46svh * 1.026)); }
@media (min-width: 900px) { .xs-split .xs-vis .b4-photo { width: min(100%, calc(70svh * 1.026)); } }

/* cnidarian sketches */
.b4-body { fill: color-mix(in srgb, var(--xp-sea) 14%, transparent); stroke: var(--xp-sea); stroke-width: 1.6; stroke-linejoin: round; }
.b4-tent { fill: none; stroke: var(--xp-sea); stroke-opacity: .75; stroke-width: 1.4; stroke-linecap: round; }
.b4-mouth { fill: none; stroke: var(--bone); stroke-width: 1.6; stroke-linecap: round; }
.b4-arrow { fill: none; stroke: var(--bone); stroke-opacity: .7; stroke-width: 1.4; stroke-dasharray: 4 6; }
.b4-cycle { width: 100%; max-width: 480px; }
.b4-cycle svg { width: 100%; height: auto; display: block; }

/* Work-around for a kit rule (xp.css "html.xp .xs { grid-template-columns: minmax(0, 1fr) }", unscoped) that
   flattens every split, spread, stat and panel to one column on desktop too. Kit change wanted: scope it to phones. */
@media (min-width: 900px) {
  html.xp .xs.xs-split, html.xp .xs.xs-spread { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 56px; align-items: center; }
  html.xp .xs.xs-stat { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); column-gap: 48px; align-items: end; }
}
@media (min-width: 1000px) { html.xp .xs.xs-panel { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); column-gap: 56px; align-items: center; } }
