/* Act 10 · Amphibians and reptiles */

/* the scrubbed tadpole: a 16:9 frame under the stage head, caption at the foot */
.b4-film .b4-filmbox { position: absolute; z-index: 2; left: var(--xp-g); right: var(--xp-g); top: calc(var(--xp-bar) + 150px); width: auto; border-radius: 4px; overflow: hidden; }
@media (min-width: 900px) { .b4-film .b4-filmbox { left: 40%; top: 16svh; width: auto; max-height: 64svh; } }
html.xp-reduced .b4-film .b4-filmbox, html:not(.xp-js) .b4-film .b4-filmbox { position: relative; top: auto; left: auto; right: auto; margin: 150px var(--xp-g) 0; }

/* side-by-side rows */
.b4-dl { display: grid; margin: 4px 0 0 !important; }
.b4-dl > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 8px; padding: 6px 0; border-top: 1px solid var(--hairline); font-size: var(--text-sm); line-height: 1.35; }
.b4-dl dt { color: var(--mix-4); }
.b4-dl dd { margin: 0; color: var(--bone); }

/* ten genera as a two-column card list */
.b4-genus { display: grid; grid-template-columns: 1fr; gap: 0; max-width: 820px; }
.b4-genus > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--hairline); font-size: var(--text-md); line-height: 1.35; }
.b4-genus dt { color: var(--bone); }
.b4-genus dd { margin: 0; color: var(--mix-3); }
@media (min-width: 760px) { .b4-genus { grid-template-columns: 1fr 1fr; column-gap: 40px; } }

/* desktop splits (kit workaround: xp.css "html.xp .xs { grid-template-columns: minmax(0, 1fr) }" beats the kit's own
   two-column split at ≥ 900 px); a photo box in a split keeps its aspect within the screen height */
@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; }
  html.xp .xs.xs-panel { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); column-gap: 56px; align-items: center; }
  .xs-split .xs-vis > .xa-box[style*="--r"] { width: min(100%, calc(70svh * var(--r))); justify-self: center; }
}
