.framing-room { min-width:0; padding:1rem; margin:1.5rem 0; border:1px solid var(--line); border-radius:12px; }
.framing-room legend { padding:0 .4rem; font-weight:700; }
.framing-room label { display:inline-block; padding:.4rem .9rem .4rem .2rem; cursor:pointer; }
.framing-room input { accent-color:var(--accent); }
.framing-room input:focus-visible + label { outline:2px solid currentColor; }
.framing-examples { --screen-shape:16/9; }
#shape-tablet:checked ~ .framing-examples { --screen-shape:4/3; }
#shape-upright:checked ~ .framing-examples { --screen-shape:9/16; }
.framing-example { margin-top:1.5rem; padding-top:1rem; border-top:1px solid var(--line); }
.framing-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(.5rem,2vw,1.5rem); }
.framing-pair figure { margin:0; }
.framing-pair figcaption { margin-bottom:.3rem; }
.framing-screen { width:100%; max-width:var(--frame-width,100%); aspect-ratio:var(--screen-shape); background:#151515; border:1px solid var(--line); }
#shape-upright:checked ~ .framing-examples { --frame-width:20rem; }
.framing-screen img { display:block; width:100%; height:100%; object-fit:contain; }
.framing-fill img { object-fit:cover; }
.framing-example .measure-wide,.framing-example .measure-tablet,.framing-example .measure-upright { display:none; }
#shape-wide:checked ~ .framing-examples .measure-wide,
#shape-tablet:checked ~ .framing-examples .measure-tablet,
#shape-upright:checked ~ .framing-examples .measure-upright { display:block; }
