/* R4-5 · "Small things" (#details): flexible rows, every tile at its natural aspect.
   Each tile carries --ar (w/h of its media). Tiles in a row grow by --ar, so their panes
   share one height and every picture shows whole (no cover crops). Overrides b.css. */
#details .sm-grid{display:flex;flex-direction:column;gap:48px}
#details .sm-row{display:flex;gap:16px;align-items:flex-start}
#details .sm-item,#details .sm-item--copy,#details .sm-item--guard{flex:var(--ar,1.5) 1 0;min-width:0;grid-column:auto}
#details .sm-pane,#details .sm-item--copy .sm-pane,#details .sm-item--guard .sm-pane{aspect-ratio:var(--ar,1.5)}

/* single-media panes: the media is the pane */
#details .sm-shader,#details .sm-trim,#details .sm-motion{background:none}
#details .sm-shader video,#details .sm-motion video,#details .sm-trim img,#details .sm-bill{display:block;width:100%;height:100%;object-fit:contain}
#details .sm-shader{background:#262626}

/* Guard: both posters sized by the pane's height, so they always show whole */
#details .sm-guard{display:flex;justify-content:center;align-items:center;gap:4%;padding:6% 5%}
#details .sm-guard figure{height:100%;flex:0 1 auto;min-width:0}
#details .sm-guard img{height:100%;width:auto;max-width:100%;object-fit:contain;display:block}

@media (max-width:600px){
  #details .sm-grid{gap:40px}
  #details .sm-row{flex-direction:column;gap:40px;align-items:stretch}
  #details .sm-item,#details .sm-item--copy,#details .sm-item--guard{flex:none;width:100%}
}
