Lightbox, dimensional drawing
The lightbox opens every photograph, walk and story in a room. This sheet draws its architecture: where the panel sits, how the photograph and the story share it, how big each control is, and which layers stack. It leaves content out on purpose, so it stays true when the words change.
Open the sheet on its own page
What the measurements say
Section titled “What the measurements say”- The panel is inset, not full-screen, from 48rem up. 72 / 16 / 16 on an iPad, 56 / 58 / 46 on a 1440 desktop, capped at 1324 wide. On a phone it is full-bleed.
- The split is decided by the panel, not the viewport. Photograph beside story from a 64rem panel; stacked below that.
- A walk keeps one frame. 646 × 484 beside the story, 692 × 462 stacked. A single photograph keeps its own shape.
- Touch targets reach 44 without growing the drawn control. Close is 40 high, the rail node is 14 wide.
- There is no drop shadow. The panel edge is a 1 px inset hairline at 18% accent, drawn on a layer above the contents.
- The scroll fade exists. A 72 px gradient with a chevron shows while more story is below.
Re-measuring
Section titled “Re-measuring”Run npm run storybook in the museum repo and open the stories under Gallery / PhotoLightbox: story-column-beside-the-photo, story-column-stacked, photo-set and walk-from-the-middle. Read each element’s box with getBoundingClientRect() and its style with getComputedStyle(). The class names are .sk-lb-* in photo-lightbox.css. Update the sheet when a value there changes.