// Auto-scrolling sample marquee + click-to-fullscreen lightbox. function SampleStrip() { const items = [...FIGURES, ...FIGURES]; const [lightbox, setLightbox] = React.useState(null); React.useEffect(() => { if (!lightbox) return; const onKey = (e) => { if (e.key === 'Escape') setLightbox(null); }; window.addEventListener('keydown', onKey); // Prevent background scroll while lightbox is open const prev = document.body.style.overflow; document.body.style.overflow = 'hidden'; return () => { window.removeEventListener('keydown', onKey); document.body.style.overflow = prev; }; }, [lightbox]); return ( <>