/* Smile Burger case study (staging page 1760): page-level rules only, from the approved page design
   "RP Digital — Smile Burger case study" 1794586424-2222 (the helmet styles of Main.dc.html) and the media manifest.
   Everything else is the design system (system.css, 1794507177-8075) and the theme's WordPress glue (site.css,
   inc/case-study.php, inc/smile-burger.php). Nothing here restyles a shared component. Classes: sb-opener (the opening
   figure), sb-pair (the two packaging frames). */

/* 1 · APPROVED PAGE EXCEPTION (13 Nov 2026; Smile Burger only, not a shared rule): the opening frame shows the 4:3 poster
   whole. On 12 and 8 columns the frame keeps the system's ratio (2:1 / 16:9), the 75svh cap and its default ground
   (pf-color-surface); the poster is fitted with the Gallery fit padding instead of the cover crop. On 4 columns (section
   narrower than 600px, range syntax as the system's boundary) the frame takes the poster's own 4:3, so it fills it.
   The design writes the modifier on the frame (.pf-opener-frame.sb-opener); the theme publishes an image block's own
   classes on the figure (figure.pf-opener.sb-opener › div.pf-opener-frame), so the same rules are scoped through it. */
.sb-opener .pf-opener-frame img { object-fit: contain; padding: var(--pf-frame-pad); box-sizing: border-box; }
@container pf-section (width < 600px) {
  .sb-opener .pf-opener-frame { aspect-ratio: 4 / 3; }
  .sb-opener .pf-opener-frame img { padding: 0; }
}

/* 2 · The takeout box: two equal 4:3 frames, 6 + 6, 4 + 4, stacked on phones (Gallery spans); the mockup a cover crop at
   the centre, the dieline fitted (pf-frame--fit). The ratio is the design's, not the files' (rp-ratio-css). */
.sb-pair { --pf-ratio: 4 / 3; --pf-s8: span 4; --pf-s12: span 6; }
