{"version":3,"file":"Lightbox.CBYpuExP.mjs","names":["useState","useRef","c","useId","useCallback","_Fragment","__esmMin","ne","init_ssg_sandbox_shims","init_npm_react_18_3_1","window","ie","ce","init_jsx_runtime","init_npm_react_dom_18_3_1","c","p","_e","de","RenderTarget","addPropertyControls","init_framer_BL70qLPA","ControlType","srcOf","image","thumbSrcSet","src","at","u","n","thumbSizes","width","dpr","altOf","item","Chevron","back","Cross","Plus","Lightbox","DEFAULT_ITEMS","DIALS","count","items","open","setOpen","firstThumbRef","thumbW","setThumbW","narrow","setNarrow","mq","on","masonryCols","columnsPhone","columns","estSizes","layout","perViewPhone","perView","first","ro","closing","setClosing","openerRef","closeRef","railRef","reach","setReach","touchRef","c$1","isOpen","current","close","was","step","i","next","delta","loop","onKey","event","previous","page","rail","whole","perPage","rows","paged","scrolls","read","max","onCanvas","size","imageSize","cells","thumb","entry","img","captionsInGrid","l","gap","thumbRatio","radius","zIndex","scrim","captionColor","buttonSize","style","showArrows","paddingY","k","portal","from","dx","showCaptions","inline","node","init_Lightbox"],"sources":["https:/framerusercontent.com/modules/yu4F7VpOoE853AAT1HEm/ofsLq4pzeTQPU5counNZ/Lightbox.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useCallback,useEffect,useId,useRef,useState}from\"react\";import{createPortal}from\"react-dom\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";/**\n * Lightbox — a grid of images that open full screen, with captions.\n *\n * ── The controls are the carousel's ──────────────────────────────────────\n * Close, previous and next are built exactly like the play mark in\n * VideoCarousel: a hairline white ring over a translucent fill with a real\n * backdrop blur, and a white glyph. They sit over a dimmed photograph, which\n * is the same ground the play mark sits on, so the same values hold.\n *\n * On a phone they halve, and the close mark leaves the corner to sit centred\n * above the image: at that width the full-size circle covers a quarter of the\n * photograph, and a corner is the hardest place on a phone to reach.\n *\n * ── How many are shown ───────────────────────────────────────────────────\n * Two shapes, and one rule between them: what is not on screen is behind the\n * arrows, never below the fold.\n *\n *   Grid, rows 0   every thumbnail, wrapping for as many rows as it takes.\n *                  Nothing is hidden, so the arrows have nothing to do.\n *   Grid, rows n   columns × rows on screen, scrolled sideways for the rest.\n *   Rail           one line, so many per view — fractions leave a sliver.\n *\n * Both scrolling shapes are native scrollers, which is what makes swipe,\n * trackpad and keyboard work without reimplementing any of them — and what\n * rules out wrapping around the ends, so the arrows dim there instead.\n *\n * ── The overlay is a portal, except on the canvas ────────────────────────\n * Left inside the component's own tree, the overlay is at the mercy of its\n * ancestors: any transform, filter or opacity above it — which Framer adds\n * freely for scroll and appear effects — becomes the containing block for\n * position: fixed and traps it in that stacking context. The backdrop stops\n * being full screen and sits behind the navbar, and z-index cannot save it.\n *\n * A portal to document.body escapes both. The exception is Framer's canvas,\n * which renders code components in one static pass and isolates them: a\n * portal there lands outside the subtree the canvas draws. So: portal in\n * Preview and published, inline on the canvas.\n *\n * ── What it takes over while open ────────────────────────────────────────\n * The page cannot scroll behind an open lightbox: the visitor thinks they are\n * moving the image and instead lose their place. Escape closes, the arrow\n * keys move, and focus returns to the thumbnail that was opened — without\n * that last part, closing leaves a keyboard user at the top of the document.\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 1200\n * @framerIntrinsicHeight 600\n *//* ───────────────────────────── Dials ──────────────────────────────────── *//** The look, in one place. Everything below derives from these. */const DIALS={columns:3,gap:16,radius:12,/** Thumbnail shape. 1 is a square, 1.5 a landscape card. */thumbRatio:1.5,/** Rail only: thumbnails on screen at once. Fractions show a sliver. */perView:4,/** The controls, lifted from the carousel's play mark. */buttonSize:54,buttonBlur:12,fill:\"rgba(255, 255, 255, 0.18)\",fillHover:\"rgba(255, 255, 255, 0.32)\",ring:\"rgba(255, 255, 255, 0.9)\",ringHover:\"rgb(255, 255, 255)\",ink:\"rgb(255, 255, 255)\",shadow:\"0 8px 24px rgba(0, 0, 0, 0.35)\",/** The ground the image is shown against. */scrim:\"rgba(0, 12, 36, 0.92)\",/** How far the controls sit in from the edges of the screen. */inset:24,/** Room kept clear at the sides so a wide image never runs under them. */stageInset:96,ease:\"0.28s cubic-bezier(0.32, 0.72, 0, 1)\",/**\n     * How long the overlay takes to arrive and to leave. The close is held\n     * open for exactly this long before unmounting — otherwise React removes\n     * the element and there is nothing left to animate.\n     */openMs:260,/**\n     * One above the navbar's 6. Portalled to the end of the body, the overlay\n     * only has to beat the page's own chrome — a number in the millions would\n     * just be noise, and noise that hides which layer really matters.\n     */zIndex:7};const DEFAULT_ITEMS=[{},{},{}];function srcOf(image){return typeof image===\"string\"?image:image?.src;}/**\n * Thumbnails are small (about 280px wide on desktop, 170px on phones) but the\n * images are uploaded at 1000-2000px. Framer's image CDN serves scaled copies\n * with ?scale-down-to=, so the grid offers 512 and 1024 next to the original\n * and lets the browser take the smallest that stays sharp at the thumb's real\n * width. The open image still loads the original, only when it is opened.\n */function thumbSrcSet(src){if(!src||!/framerusercontent\\.com\\/images\\//.test(src))return undefined;try{const at=n=>{const u=new URL(src);u.searchParams.delete(\"width\");u.searchParams.delete(\"height\");u.searchParams.set(\"scale-down-to\",String(n));return`${u.toString()} ${n}w`;};return[at(512),at(1024)].join(\", \");}catch{return undefined;}}/**\n * The size the browser should pick for a thumbnail: its rendered width, but at\n * no more than 2x density. A 3x phone would otherwise skip the 512 copy for a\n * 171px thumb (513px needed) and load the 1024 one, five times the weight, for\n * a difference nobody can see at that size.\n */function thumbSizes(width){if(!width)return\"(max-width: 809px) 80vw, 25vw\";const dpr=typeof window===\"undefined\"?1:window.devicePixelRatio||1;return`${Math.ceil(width*Math.min(dpr,2)/dpr)}px`;}function altOf(item){if(item.alt)return item.alt;if(typeof item.image===\"string\")return\"\";return item.image?.alt??\"\";}/** The arrow, mirrored for the back button. */function Chevron({back}){return /*#__PURE__*/_jsx(\"svg\",{width:24,height:24,viewBox:\"0 0 24 24\",fill:\"none\",\"aria-hidden\":\"true\",style:{display:\"block\",transform:back?\"scaleX(-1)\":undefined},children:/*#__PURE__*/_jsx(\"path\",{d:\"M4 12h15M13 6l6 6-6 6\",stroke:\"currentColor\",strokeWidth:1.6,strokeLinecap:\"round\",strokeLinejoin:\"round\"})});}/** The close mark, drawn on the same 24 grid as the arrow. */function Cross(){return /*#__PURE__*/_jsx(\"svg\",{width:24,height:24,viewBox:\"0 0 24 24\",fill:\"none\",\"aria-hidden\":\"true\",style:{display:\"block\"},children:/*#__PURE__*/_jsx(\"path\",{d:\"M6 6l12 12M18 6L6 18\",stroke:\"currentColor\",strokeWidth:1.6,strokeLinecap:\"round\"})});}/** The plus shown on a thumbnail, so it reads as openable. */function Plus(){return /*#__PURE__*/_jsx(\"svg\",{width:24,height:24,viewBox:\"0 0 24 24\",fill:\"none\",\"aria-hidden\":\"true\",style:{display:\"block\"},children:/*#__PURE__*/_jsx(\"path\",{d:\"M12 5v14M5 12h14\",stroke:\"currentColor\",strokeWidth:1.6,strokeLinecap:\"round\"})});}/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function Lightbox({items=DEFAULT_ITEMS,layout=\"grid\",columns=DIALS.columns,columnsPhone=1,rows=0,perView=DIALS.perView,perViewPhone=1.2,gap=DIALS.gap,radius=DIALS.radius,thumbRatio=DIALS.thumbRatio,showCaptions=true,captionsInGrid=false,showArrows=true,loop=true,imageSize=100,zIndex=DIALS.zIndex,buttonSize=DIALS.buttonSize,scrim=DIALS.scrim,captionColor=\"rgba(255, 255, 255, 0.82)\",paddingY=0,style}){const count=items.length;/** null is closed. The index is into `items`, so it doubles as \"which\". */const[open,setOpen]=useState(null);// the thumbnail's rendered width, so srcSet picks the right size (see thumbSrcSet)\nconst firstThumbRef=useRef(null);const[thumbW,setThumbW]=useState(0);// masonry deals items across its columns, so it needs the column count for this width (810 = phone)\nconst[narrow,setNarrow]=useState(false);useEffect(()=>{if(typeof window===\"undefined\"||!window.matchMedia)return;const mq=window.matchMedia(\"(max-width: 809px)\");const on=()=>setNarrow(mq.matches);on();mq.addEventListener?.(\"change\",on);return()=>mq.removeEventListener?.(\"change\",on);},[]);const masonryCols=Math.max(1,Math.round(narrow?columnsPhone:columns));// before the thumb is measured: its width from the column count (page content is at most 1300px wide)\nconst estSizes=layout===\"rail\"?`(max-width: 809px) calc(100vw / ${Math.max(1,perViewPhone)}), calc(min(100vw, 1300px) / ${Math.max(1,perView)})`:`(max-width: 809px) calc((100vw - 32px) / ${Math.max(1,Math.round(columnsPhone))}), calc((min(100vw, 1300px) - 160px) / ${Math.max(1,Math.round(columns))})`;useEffect(()=>{const first=firstThumbRef.current;if(!first||typeof ResizeObserver===\"undefined\")return;const ro=new ResizeObserver(([e])=>setThumbW(Math.round(e.contentRect.width)));ro.observe(first);return()=>ro.disconnect();},[]);/**\n     * True while the overlay is on its way out. It stays mounted through the\n     * fade and is removed at the end, which is the only way a conditionally\n     * rendered element can animate away at all.\n     */const[closing,setClosing]=useState(false);/** The thumbnail that opened it, so focus has somewhere to go back to. */const openerRef=useRef(null);const closeRef=useRef(null);const railRef=useRef(null);/**\n     * Whether there is anywhere left to scroll, either way. Read from the\n     * element rather than tracked by index: this is a native scroller, so a\n     * swipe or a trackpad moves it without ever telling this component.\n     */const[reach,setReach]=useState({start:false,end:true});const touchRef=useRef(null);// Scoped so two galleries on a page cannot share each other's rules.\nconst c=`lb-${useId().replace(/:/g,\"\")}`;const isOpen=open!==null;const current=isOpen?Math.min(open,count-1):0;const close=useCallback(()=>{// Already on its way out: a second Escape must not queue a second\n// timeout, or the overlay can be torn down mid-fade.\nsetClosing(was=>{if(was)return was;window.setTimeout(()=>{setOpen(null);setClosing(false);},DIALS.openMs);return true;});// Back to where the visitor was, not to the top of the document —\n// and immediately, so the keyboard never waits on an animation.\nopenerRef.current?.focus();},[]);const step=useCallback(delta=>{setOpen(i=>{if(i===null)return i;const next=i+delta;if(loop)return(next+count)%count;return Math.min(count-1,Math.max(0,next));});},[count,loop]);/**\n     * Keys and scroll, both only while it is open.\n     *\n     * The page must not scroll behind the overlay: the visitor thinks they\n     * are moving the image, and instead they lose their place on the page.\n     */useEffect(()=>{if(!isOpen)return;const onKey=event=>{if(event.key===\"Escape\")close();if(event.key===\"ArrowRight\")step(1);if(event.key===\"ArrowLeft\")step(-1);};const previous=document.body.style.overflow;document.body.style.overflow=\"hidden\";window.addEventListener(\"keydown\",onKey);// The close button is the safe landing: it is the one control that\n// gets the visitor out, and it is where a screen reader should start.\ncloseRef.current?.focus();return()=>{document.body.style.overflow=previous;window.removeEventListener(\"keydown\",onKey);};},[isOpen,close,step]);const page=useCallback((delta,whole=false)=>{const rail=railRef.current;if(!rail)return;/**\n         * A screenful at a time, and the browser clamps at the end — which is\n         * the point: the track is one continuous grid, so the last screen is\n         * as full as any other rather than a page holding two thumbnails and\n         * a hole where the other six would be.\n         */rail.scrollBy({left:rail.clientWidth*(whole?1:.9)*delta,behavior:\"smooth\"});},[]);/** columns × rows on screen, and the rest to the right of them. */const perPage=Math.max(1,Math.round(columns))*Math.max(0,Math.round(rows));const paged=layout===\"grid\"&&perPage>0&&count>perPage;const scrolls=layout===\"rail\"||paged;useEffect(()=>{const rail=railRef.current;if(!rail||!scrolls)return;const read=()=>{// A pixel of slack: sub-pixel widths mean scrollLeft rarely lands\n// exactly on the end, and an arrow that never enables is worse\n// than one that enables a pixel early.\nconst max=rail.scrollWidth-rail.clientWidth;setReach({start:rail.scrollLeft>1,end:rail.scrollLeft<max-1});};read();rail.addEventListener(\"scroll\",read,{passive:true});const ro=new ResizeObserver(read);ro.observe(rail);return()=>{rail.removeEventListener(\"scroll\",read);ro.disconnect();};},[scrolls,items.length,perPage]);/**\n     * The canvas draws each component in isolation, so a portal would put the\n     * overlay somewhere it cannot see. Everywhere else it has to leave.\n     */const onCanvas=RenderTarget.current()===RenderTarget.canvas;const item=items[current]??{};const src=srcOf(item.image);// A share, not a percentage string: it multiplies inside calc().\nconst size=Math.min(1,Math.max(.2,imageSize/100));const cells=items.map((entry,i)=>{const thumb=srcOf(entry.image);return /*#__PURE__*/_jsxs(\"div\",{className:`${c}__cell`,children:[/*#__PURE__*/_jsxs(\"button\",{type:\"button\",ref:i===0?firstThumbRef:undefined,className:`${c}__thumb`,\"aria-label\":entry.caption?`Open image: ${entry.caption}`:`Open image ${i+1} of ${count}`,onClick:event=>{openerRef.current=event.currentTarget;setOpen(i);},children:[thumb&&/*#__PURE__*/_jsx(\"img\",{// the 512 copy as the fallback, never the original: one download per thumb\nsrc:thumbSrcSet(thumb)?thumbSrcSet(thumb).split(\" \")[0]:thumb,srcSet:thumbSrcSet(thumb),sizes:thumbW?thumbSizes(thumbW):estSizes,loading:\"lazy\",decoding:\"async\",onLoad:event=>{if(layout!==\"masonry\")return;const img=event.currentTarget;if(img.naturalWidth&&img.parentElement)img.parentElement.style.aspectRatio=`${img.naturalWidth} / ${img.naturalHeight}`;},alt:altOf(entry)}),/*#__PURE__*/_jsx(\"span\",{className:`${c}__zoom`,children:/*#__PURE__*/_jsx(Plus,{})})]}),captionsInGrid&&entry.caption&&/*#__PURE__*/_jsx(\"p\",{className:`${c}__gridcap`,children:entry.caption})]},i);});return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                .${c} {\n                    box-sizing: border-box;\n                    width: 100%;\n                    display: grid;\n                    grid-template-columns: repeat(${Math.max(1,Math.round(columns))}, 1fr);\n                    gap: ${gap}px;\n                }\n                .${c}__cell {\n                    display: flex;\n                    flex-direction: column;\n                    gap: 10px;\n                    min-width: 0;\n                }\n                /* Masonry: one stack per column, items dealt across them in\n                 * order (1st to column 1, 2nd to column 2, ...), so the reading\n                 * order runs left to right like a grid and each photo keeps its\n                 * own height. Until an image has loaded its box holds the thumb\n                 * ratio, then takes the photo's own (set on load). */\n                .${c}[data-masonry] {\n                    display: flex;\n                    align-items: flex-start;\n                    gap: ${gap}px;\n                }\n                .${c}__col {\n                    flex: 1 1 0;\n                    min-width: 0;\n                    display: flex;\n                    flex-direction: column;\n                    gap: ${gap}px;\n                }\n                .${c}[data-masonry] .${c}__thumb img { object-fit: contain; }\n                .${c}[data-masonry] .${c}__thumb:hover img { transform: scale(1.05); }\n\n                /* Scrolled natively: swipe, trackpad and keyboard all work\n                 * without being reimplemented — and the ends are real, so the\n                 * arrows dim there rather than wrapping. */\n                .${c}__railwrap { position: relative; }\n                .${c}__rail {\n                    display: flex;\n                    gap: ${gap}px;\n                    overflow-x: auto;\n                    overscroll-behavior-x: contain;\n                    scroll-snap-type: x mandatory;\n                    /* The bar is noise under a row of photographs, and the\n                     * arrows already say the row continues. */\n                    scrollbar-width: none;\n                    -ms-overflow-style: none;\n                }\n                .${c}__rail::-webkit-scrollbar { display: none; }\n                /*\n                 * One continuous grid rather than a run of fixed pages.\n                 *\n                 * Pages of a whole screen each are tidy until the set does\n                 * not divide by them: the last page then holds two thumbnails\n                 * and a hole. Flowing the items down and then across lets the\n                 * track end exactly at the last one, so the final screenful\n                 * is as full as every other.\n                 *\n                 * The cost is the reading order: items run top to bottom and\n                 * then right, not left to right. For a gallery that is the\n                 * usual arrangement; for a numbered sequence it would not be.\n                 */\n                .${c}__rail[data-paged=\"true\"] {\n                    display: grid;\n                    grid-auto-flow: column;\n                    grid-template-rows: repeat(${Math.max(1,Math.round(rows))}, auto);\n                    /* Per cent of the scroller's own visible width, which is\n                     * what makes exactly \\`columns\\` of them fit on screen. */\n                    grid-auto-columns: calc((100% - ${gap}px * ${Math.max(1,Math.round(columns))-1}) / ${Math.max(1,Math.round(columns))});\n                }\n                .${c}__rail[data-paged=\"true\"] > .${c}__cell {\n                    scroll-snap-align: start;\n                }\n                .${c}__rail[data-paged=\"false\"] > .${c}__cell {\n                    flex: 0 0 calc((100% - ${gap}px * ${Math.max(1,perView)-1}) / ${Math.max(1,perView)});\n                    scroll-snap-align: start;\n                }\n                .${c}__page {\n                    position: absolute;\n                    /* Level with the first row of thumbnails rather than with\n                     * the block: with two or more rows the middle of the block\n                     * is a gap between them, which is nowhere for a control. */\n                    top: calc(${100/(Math.max(1,Math.round(rows))*2)}% - 5px);\n                    transform: translateY(-50%);\n                    z-index: 2;\n                }\n                .${c}__page[data-side=\"prev\"] { left: 12px; }\n                .${c}__page[data-side=\"next\"] { right: 12px; }\n                .${c}__thumb {\n                    position: relative;\n                    width: 100%;\n                    aspect-ratio: ${thumbRatio};\n                    padding: 0;\n                    border: none;\n                    border-radius: ${radius}px;\n                    overflow: hidden;\n                    background: rgba(0, 28, 84, 0.06);\n                    cursor: zoom-in;\n                    appearance: none;\n                }\n                .${c}__thumb img {\n                    width: 100%;\n                    height: 100%;\n                    object-fit: cover;\n                    display: block;\n                    transition: transform ${DIALS.ease};\n                }\n                .${c}__thumb:hover img { transform: scale(1.03); }\n                .${c}__zoom {\n                    position: absolute;\n                    /* Centred on the image: the mark is the invitation, and a\n                     * corner badge reads as a label on the picture instead. */\n                    top: 50%;\n                    left: 50%;\n                    transform: translate(-50%, -50%) scale(0.9);\n                    display: inline-flex;\n                    align-items: center;\n                    justify-content: center;\n                    width: 40px;\n                    height: 40px;\n                    box-sizing: border-box;\n                    border: 1.5px solid ${DIALS.ring};\n                    border-radius: 999px;\n                    background: ${DIALS.fill};\n                    backdrop-filter: blur(${DIALS.buttonBlur}px) saturate(180%);\n                    -webkit-backdrop-filter: blur(${DIALS.buttonBlur}px) saturate(180%);\n                    color: ${DIALS.ink};\n                    opacity: 0;\n                    transition: opacity ${DIALS.ease}, transform ${DIALS.ease};\n                    pointer-events: none;\n                }\n                .${c}__thumb:hover .${c}__zoom,\n                .${c}__thumb:focus-visible .${c}__zoom {\n                    opacity: 1;\n                    transform: translate(-50%, -50%) scale(1);\n                }\n                .${c}__gridcap {\n                    margin: 0;\n                    font-family: inherit;\n                    font-size: 14px;\n                    line-height: 1.5em;\n                    color: inherit;\n                }\n\n                @keyframes ${c}-in {\n                    from { opacity: 0; }\n                    to   { opacity: 1; }\n                }\n                @keyframes ${c}-out {\n                    from { opacity: 1; }\n                    to   { opacity: 0; }\n                }\n                @keyframes ${c}-rise {\n                    from { opacity: 0; transform: scale(0.97); }\n                    to   { opacity: 1; transform: scale(1); }\n                }\n                @keyframes ${c}-sink {\n                    from { opacity: 1; transform: scale(1); }\n                    to   { opacity: 0; transform: scale(0.97); }\n                }\n\n                .${c}__overlay {\n                    position: fixed;\n                    inset: 0;\n                    z-index: ${Math.round(zIndex)};\n                    display: flex;\n                    flex-direction: column;\n                    align-items: center;\n                    justify-content: center;\n                    /* Also the distance from the close mark to the image on a\n                     * phone, where that button joins this column. */\n                    gap: 20px;\n                    padding: ${DIALS.inset}px;\n                    box-sizing: border-box;\n                    background: ${scrim};\n                    /* A click on the ground closes; a click on the image does\n                     * not, which is why the figure stops it below. */\n                    cursor: zoom-out;\n                    animation: ${c}-in ${DIALS.openMs}ms ease both;\n                }\n                /* The image travels a little further than the ground it sits\n                 * on, which is what makes the opening read as the picture\n                 * coming forward rather than a panel appearing. */\n                .${c}__overlay .${c}__figure {\n                    animation: ${c}-rise ${DIALS.openMs}ms cubic-bezier(0.32, 0.72, 0, 1) both;\n                }\n                .${c}__overlay[data-closing=\"true\"] {\n                    animation: ${c}-out ${DIALS.openMs}ms ease both;\n                }\n                .${c}__overlay[data-closing=\"true\"] .${c}__figure {\n                    animation: ${c}-sink ${DIALS.openMs}ms ease both;\n                }\n                .${c}__figure {\n                    margin: 0;\n                    display: flex;\n                    flex-direction: column;\n                    align-items: center;\n                    gap: 16px;\n                    /* Image size shrinks the stage, not the image: the photo\n                     * still fits itself inside whatever room is left, so it\n                     * is never cropped and never stretched. */\n                    max-width: calc(min(1400px, calc(100vw - ${DIALS.stageInset*2}px)) * ${size});\n                    max-height: 100%;\n                    cursor: default;\n                }\n                .${c}__figure img {\n                    max-width: 100%;\n                    /* Room for the caption under it, and for the controls at\n                     * top and bottom, without the image ever being cropped. */\n                    max-height: calc(calc(100vh - ${DIALS.inset*2+120}px) * ${size});\n                    object-fit: contain;\n                    border-radius: ${radius}px;\n                    display: block;\n                }\n                .${c}__caption {\n                    margin: 0;\n                    max-width: 70ch;\n                    text-align: center;\n                    font-family: inherit;\n                    font-size: 15px;\n                    line-height: 1.6em;\n                    color: ${captionColor};\n                }\n                .${c}__count {\n                    font-family: inherit;\n                    font-size: 13px;\n                    letter-spacing: 0.06em;\n                    color: rgba(255, 255, 255, 0.55);\n                }\n\n                .${c}__btn {\n                    position: absolute;\n                    /* Size and placement live in CSS, not in the style prop:\n                     * an inline style beats a media query, and the phone\n                     * needs to say something different about both. */\n                    width: var(--btn);\n                    height: var(--btn);\n                    /* Above the figure. The image animates, and an animating\n                     * transform makes its own stacking context — without a\n                     * z-index of their own the controls can end up behind it. */\n                    z-index: 3;\n                    display: inline-flex;\n                    align-items: center;\n                    justify-content: center;\n                    padding: 0;\n                    /* The carousel's play mark, to the value: hairline ring,\n                     * translucent fill, and the blur doing the work. */\n                    box-sizing: border-box;\n                    border: 1.5px solid ${DIALS.ring};\n                    border-radius: 999px;\n                    background: ${DIALS.fill};\n                    backdrop-filter: blur(${DIALS.buttonBlur}px) saturate(180%);\n                    -webkit-backdrop-filter: blur(${DIALS.buttonBlur}px) saturate(180%);\n                    color: ${DIALS.ink};\n                    cursor: pointer;\n                    appearance: none;\n                    transition: background-color ${DIALS.ease},\n                        border-color ${DIALS.ease}, box-shadow ${DIALS.ease},\n                        opacity ${DIALS.ease};\n                }\n                .${c}__btn:not(:disabled):hover {\n                    background: ${DIALS.fillHover};\n                    border-color: ${DIALS.ringHover};\n                    box-shadow: ${DIALS.shadow};\n                }\n                .${c}__btn:disabled {\n                    opacity: 0.35;\n                    cursor: default;\n                }\n                .${c}__close {\n                    top: ${DIALS.inset}px;\n                    right: ${DIALS.inset}px;\n                }\n                .${c}__prev,\n                .${c}__next {\n                    top: 50%;\n                    transform: translateY(-50%);\n                }\n                .${c}__prev { left: ${DIALS.inset}px; }\n                .${c}__next { right: ${DIALS.inset}px; }\n\n                @media (max-width: 809px) {\n                    .${c} {\n                        grid-template-columns: repeat(${Math.max(1,Math.round(columnsPhone))}, 1fr);\n                    }\n\n                    .${c}__rail[data-paged=\"true\"] {\n                        grid-auto-columns: calc((100% - ${gap}px * ${Math.max(1,Math.round(columnsPhone))-1}) / ${Math.max(1,Math.round(columnsPhone))});\n                    }\n                    .${c}__rail[data-paged=\"false\"] > .${c}__cell {\n                        flex-basis: calc((100% - ${gap}px * ${Math.max(1,perViewPhone)-1}) / ${Math.max(1,perViewPhone)});\n                    }\n                    .${c}__figure {\n                        max-width: 100%;\n                    }\n                    /* Half size. A 54px target is right for a cursor; on a\n                     * screen this narrow the same circle covers a quarter of\n                     * the photograph. */\n                    .${c}__btn {\n                        width: calc(var(--btn) * 0.5);\n                        height: calc(var(--btn) * 0.5);\n                    }\n                    .${c}__btn svg { width: 18px; height: 18px; }\n                    /*\n                     * The close mark stops floating over the corner and joins\n                     * the column as its first item: centred, and exactly the\n                     * overlay's own gap above the image, whatever height that\n                     * image turns out to be.\n                     */\n                    .${c}__close {\n                        position: static;\n                        order: -1;\n                        top: auto;\n                        right: auto;\n                    }\n                }\n                @media (prefers-reduced-motion: reduce) {\n                    .${c}__thumb img,\n                    .${c}__zoom,\n                    .${c}__btn { transition: none; }\n                    /* Still fades, but instantly: an overlay that appears\n                     * with no transition at all is harsher than one that\n                     * does, and reduced motion asks for less travel, not\n                     * for a flash. */\n                    .${c}__overlay,\n                    .${c}__overlay .${c}__figure,\n                    .${c}__overlay[data-closing=\"true\"],\n                    .${c}__overlay[data-closing=\"true\"] .${c}__figure {\n                        animation-duration: 0.01ms;\n                    }\n                }\n            `}),scrolls?/*#__PURE__*/_jsxs(\"div\",{className:`${c}__railwrap`,style:{[\"--btn\"]:`${buttonSize}px`,...style},children:[/*#__PURE__*/_jsx(\"div\",{className:`${c}__rail`,\"data-paged\":paged,ref:railRef,children:cells}),showArrows&&count>1&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:`${c}__btn ${c}__page`,\"data-side\":\"prev\",\"aria-label\":\"Previous images\",disabled:!reach.start,onClick:()=>page(-1,paged),children:/*#__PURE__*/_jsx(Chevron,{back:true})}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:`${c}__btn ${c}__page`,\"data-side\":\"next\",\"aria-label\":\"More images\",disabled:!reach.end,onClick:()=>page(1,paged),children:/*#__PURE__*/_jsx(Chevron,{})})]})]}):/*#__PURE__*/_jsx(\"div\",{className:c,style:paddingY?{...style,paddingBlock:paddingY}:style,\"data-masonry\":layout===\"masonry\"||undefined,children:layout===\"masonry\"?Array.from({length:masonryCols},(_,k)=>/*#__PURE__*/_jsx(\"div\",{className:`${c}__col`,children:cells.filter((_,i)=>i%masonryCols===k)},k)):cells}),isOpen&&portal(/*#__PURE__*/_jsxs(\"div\",{className:`${c}__overlay`,\"data-closing\":closing,style:{[\"--btn\"]:`${buttonSize}px`},role:\"dialog\",\"aria-modal\":\"true\",\"aria-label\":item.caption||\"Image viewer\",onClick:close,onPointerDown:event=>{touchRef.current=event.clientX;},onPointerUp:event=>{// A swipe, not a stray drag: 60px is past the slop\n// of a tap but short of a deliberate scroll.\nconst from=touchRef.current;touchRef.current=null;if(from===null)return;const dx=event.clientX-from;if(Math.abs(dx)>60)step(dx<0?1:-1);},children:[/*#__PURE__*/_jsxs(\"figure\",{className:`${c}__figure`,onClick:event=>event.stopPropagation(),children:[src&&/*#__PURE__*/_jsx(\"img\",{src:src,alt:altOf(item)}),showCaptions&&item.caption&&/*#__PURE__*/_jsx(\"figcaption\",{className:`${c}__caption`,children:item.caption}),count>1&&/*#__PURE__*/_jsxs(\"span\",{className:`${c}__count`,children:[current+1,\" / \",count]})]}),/*#__PURE__*/_jsx(\"button\",{ref:closeRef,type:\"button\",className:`${c}__btn ${c}__close`,\"aria-label\":\"Close\",onClick:event=>{event.stopPropagation();close();},children:/*#__PURE__*/_jsx(Cross,{})}),showArrows&&count>1&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:`${c}__btn ${c}__prev`,\"aria-label\":\"Previous image\",disabled:!loop&&current===0,onClick:event=>{event.stopPropagation();step(-1);},children:/*#__PURE__*/_jsx(Chevron,{back:true})}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:`${c}__btn ${c}__next`,\"aria-label\":\"Next image\",disabled:!loop&&current===count-1,onClick:event=>{event.stopPropagation();step(1);},children:/*#__PURE__*/_jsx(Chevron,{})})]})]}),onCanvas)]});}/**\n * Sends the overlay to document.body — unless it is being drawn on the\n * canvas, or there is no document yet, as during server rendering.\n */function portal(node,inline){if(inline||typeof document===\"undefined\")return node;return /*#__PURE__*/createPortal(node,document.body);}addPropertyControls(Lightbox,{items:{type:ControlType.Array,title:\"Images\",control:{type:ControlType.Object,controls:{image:{type:ControlType.ResponsiveImage,title:\"Image\"},caption:{type:ControlType.String,title:\"Caption\",displayTextArea:true},alt:{type:ControlType.String,title:\"Alt\",placeholder:\"What the image shows\",description:\"Kept here rather than on the asset, so it survives edits to the image.\"}}},defaultValue:DEFAULT_ITEMS},paddingY:{type:ControlType.Number,title:\"Padding Y\",defaultValue:0,min:0,max:120,step:1,unit:\"px\"},layout:{type:ControlType.Enum,title:\"Layout\",defaultValue:\"grid\",options:[\"grid\",\"rail\",\"masonry\"],optionTitles:[\"Grid\",\"Rail\",\"Masonry\"],displaySegmentedControl:true,description:\"A rail keeps every thumbnail on one line. Both shapes scroll natively, so swipe works — and both stop at the ends, where the arrows dim.\"},columns:{type:ControlType.Number,title:\"Columns\",defaultValue:DIALS.columns,min:1,max:8,step:1,displayStepper:true,hidden:p=>p.layout===\"rail\"},rows:{type:ControlType.Number,title:\"Rows\",defaultValue:0,min:0,max:6,step:1,displayStepper:true,description:\"0 wraps for as many rows as the set needs, with nothing hidden. Any other number keeps columns \\xd7 rows on screen and scrolls sideways for the rest — filling down each column first, so the last screen is never half empty.\",hidden:p=>p.layout===\"rail\"},columnsPhone:{type:ControlType.Number,title:\"Columns <810\",defaultValue:1,min:1,max:4,step:1,displayStepper:true,hidden:p=>p.layout===\"rail\"},perView:{type:ControlType.Number,title:\"Per view\",defaultValue:DIALS.perView,min:1,max:8,step:.1,description:\"Rail only. A fraction — 3.5 — leaves the next one half shown, which is what says the row continues.\",hidden:p=>p.layout!==\"rail\"},perViewPhone:{type:ControlType.Number,title:\"Per view <810\",defaultValue:1.2,min:1,max:4,step:.1,hidden:p=>p.layout!==\"rail\"},gap:{type:ControlType.Number,title:\"Gap\",defaultValue:DIALS.gap,min:0,max:80,step:2,unit:\"px\"},thumbRatio:{type:ControlType.Number,title:\"Thumb ratio\",defaultValue:DIALS.thumbRatio,min:.4,max:3,step:.05,description:\"1 is a square. Thumbnails crop; the open image never does.\"},radius:{type:ControlType.Number,title:\"Radius\",defaultValue:DIALS.radius,min:0,max:48,step:1,unit:\"px\"},showCaptions:{type:ControlType.Boolean,title:\"Caption\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\",description:\"Under the image, once it is open.\"},captionsInGrid:{type:ControlType.Boolean,title:\"In the grid\",defaultValue:false,enabledTitle:\"Show\",disabledTitle:\"Hide\",description:\"The same caption under the thumbnail.\"},showArrows:{type:ControlType.Boolean,title:\"Arrows\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},loop:{type:ControlType.Boolean,title:\"At the ends\",defaultValue:true,enabledTitle:\"Wrap\",disabledTitle:\"Stop\",description:\"The open image only. The gallery is a real scroller: it stops at the end, with the last screenful as full as any other.\",hidden:p=>p.showArrows===false},imageSize:{type:ControlType.Number,title:\"Image size\",defaultValue:100,min:20,max:100,step:5,unit:\"%\",description:\"Of the room available once the padding is taken off. The image is never cropped — this only shrinks what it may fill.\"},zIndex:{type:ControlType.Number,title:\"Z-index\",defaultValue:DIALS.zIndex,min:0,max:9999,step:1,displayStepper:true,description:\"The navbar sits at 6, so 7 clears it. Raise it only if something else on the page still covers the lightbox.\"},buttonSize:{type:ControlType.Number,title:\"Button size\",defaultValue:DIALS.buttonSize,min:32,max:96,step:2,unit:\"px\",description:\"Below 810 the controls render at half this.\"},scrim:{type:ControlType.Color,title:\"Backdrop\",defaultValue:DIALS.scrim},captionColor:{type:ControlType.Color,title:\"Caption color\",defaultValue:\"rgba(255, 255, 255, 0.82)\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"LightboxProps\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"Lightbox\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Lightbox.map"],"mappings":"A,oPAwDgD,SAASuB,EAAM,EAAM,CAAC,OAAO,OAAOC,GAAQ,SAASA,EAAMA,GAAO,GAAI,CAMnH,SAASC,EAAY,EAAI,CAAC,GAAIC,GAAM,mCAAmC,KAAKA,CAAG,EAAmB,GAAG,CAAC,IAAMC,EAAG,GAAG,CAAC,IAAMC,EAAE,IAAI,IAAIF,CAAG,EAA+G,OAA7GE,EAAE,aAAa,OAAO,OAAO,EAAEA,EAAE,aAAa,OAAO,QAAQ,EAAEA,EAAE,aAAa,IAAI,gBAAgB,OAAOC,CAAC,CAAC,EAAQ,GAAGD,EAAE,SAAS,EAAE,GAAGC,EAAE,EAAG,EAAE,MAAM,CAACF,EAAG,GAAG,EAAEA,EAAG,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAE,MAAM,CAAC,MAAiB,CAAC,CAKlV,SAASG,GAAW,EAAM,CAAC,GAAG,CAACC,EAAM,MAAM,gCAAgC,IAAMC,EAAWtB,IAAS,OAAY,EAAEA,EAAO,kBAAkB,EAAE,MAAM,GAAG,KAAK,KAAKqB,EAAM,KAAK,IAAIC,EAAI,CAAC,EAAEA,CAAG,EAAE,GAAI,CAAC,SAASC,EAAM,EAAK,CAAsE,OAAlEC,EAAK,IAAWA,EAAK,IAAO,OAAOA,EAAK,OAAQ,SAAe,GAAUA,EAAK,OAAO,KAAK,EAAG,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