{"version":3,"file":"MDX_BentoGrid.D2rTYGso.mjs","names":["React.useState","React.useRef","React.useCallback","p"],"sources":["https:/framerusercontent.com/modules/4XmaiZmEPmgXEsqfFSWq/fU5yAiYRkAzaE4B8U788/MDX_BentoGrid.js"],"sourcesContent":["/**\n * @license\n * MODAX Premium UI Library — Proprietary Software\n * Copyright (c) 2026 MODAX. All rights reserved.\n * Unauthorized copying, modification, or distribution is strictly prohibited.\n *\n * ─────────────────────────────────────────────────────────────────────────────\n * @component   MDX_BentoGrid\n * @version     1.3.0\n * @author      MODAX Design Team\n * @see         https://modax.framer.website/mdx-components/mdx-bento-grid\n * ─────────────────────────────────────────────────────────────────────────────\n *\n * OVERVIEW\n * --------\n * MDX BentoGrid is a premium media grid for showcasing AI-generated images and\n * videos in an intentional, editorial bento layout. Every tile is precisely\n * placed using column and row spans — and that designer intent is preserved\n * identically across all screen sizes, from widescreen desktop to mobile.\n *\n * DESIGN PHILOSOPHY — Cross-Device Consistency\n * ---------------------------------------------\n * Most responsive grids collapse into single-column stacks on mobile, which\n * destroys the spatial composition the designer intended. MDX BentoGrid takes\n * a deliberate different stance: the bento layout is the design. Collapsing it\n * is not \"responsive\" — it is a loss of the work.\n *\n * Instead, the grid renders the exact same column structure on every device.\n * On mobile, users scroll and pan across the full bento naturally — the same\n * way they interact with maps, large images, and editorial layouts. Any tile\n * can be tapped to open in a fullscreen modal that fills the entire viewport,\n * giving mobile users an immersive close-up view without sacrificing the grid\n * composition on the outside.\n *\n * This is the correct pattern for AI-generated media showcases, design\n * portfolios, and any content where spatial hierarchy and visual composition\n * carry meaning that a column-stack would erase.\n *\n * FEATURES\n * --------\n * Grid Layout\n *   • Identical column layout on desktop, tablet, and mobile — no breakpoints,\n *     no collapsing, no reflow. The bento composition is always preserved.\n *   • Fully configurable columns (1–24), row height, gap, and corner radius\n *   • Each tile independently controls its column span and row span\n *   • Users scroll horizontally/vertically on smaller screens to explore\n *     the full grid — tap any tile to fullscreen it instantly\n *   • On hover: cell elevates via box-shadow lift + glassmorphic caption pill\n *     fades in at the bottom showing the title and an expand icon\n *\n * Smart Pulse Director\n *   • Automatically plays one video at a time among viewport-visible tiles\n *   • Fair shuffle queue — every visible video plays exactly once before\n *     any tile repeats, like a curated rotating spotlight\n *   • Queue rebuilds dynamically as the user scrolls new tiles into view\n *   • Active tile shows a hue-rotating rainbow gradient border — visible\n *     on any background colour, dark or light\n *   • Inactive video tiles dim slightly behind a rounded scrim to spotlight\n *     the active one\n *   • Pulse pauses automatically when the modal is open\n *\n * Fullscreen Modal\n *   • Opens via ReactDOM.createPortal — escapes Framer iframe transforms,\n *     guaranteeing correct full-viewport coverage on all devices\n *   • Glassmorphism overlay: blur(60px) saturate(210%) backdrop\n *   • Drag-to-dismiss with spring physics (threshold: 100px)\n *   • Escape key closes the modal on desktop\n *   • Scroll lock on document.body while modal is open\n *   • dragY and isMuted reset on every open for a consistent experience\n *\n * Modal Controls\n *   • Copy button — copies the tile's Prompt / Description to clipboard\n *     (glassmorphic hover tooltip: \"Copy Prompt / Description\")\n *   • Download button — opens media in a new tab for native browser download,\n *     works for any file size without CORS or memory constraints\n *   • Mute / Unmute toggle for video tiles (defaults to muted on every open)\n *   • Close button and Escape key dismissal\n *\n * Media Handling\n *   • Supports both image and video tiles in the same grid\n *   • Source modes: URL (CDN, R2, S3, any public URL) or direct file upload\n *   • Shimmer skeleton shown while media loads, fades in on ready\n *   • Configurable focus point (object-position) per tile for smart cropping\n *   • Video: mp4, webm, ogg, mov, m4v — loops silently in grid, audio\n *     toggle available in the fullscreen modal\n *\n * Performance\n *   • IntersectionObserver per tile with stable useCallback reference —\n *     observer never recreates unnecessarily on re-renders\n *   • Styles injected once into document.head with an ID guard — safe for\n *     multiple BentoGrid instances on the same Framer page\n *   • Pulse Director runs on a single shared setInterval, pausing cleanly\n *     when no videos are visible or a modal is open\n *\n * PROPS\n * -----\n * @prop {number}  columns      — Grid column count (1–24, default: 24)\n * @prop {number}  rowHeight    — Row height in px (50–800, default: 108)\n * @prop {number}  gap          — Tile gap in px (0–80, default: 12)\n * @prop {number}  borderRadius — Corner radius in px (0–100, default: 20)\n * @prop {Array}   tiles        — Array of tile objects. Each tile:\n *   @prop {string}  tiles[].type          — \"image\" | \"video\"\n *   @prop {string}  tiles[].dataSource    — \"url\" | \"upload\"\n *   @prop {string}  tiles[].mediaUrl      — Direct URL to media (if url mode)\n *   @prop {file}    tiles[].imageFile     — Uploaded image (if upload + image)\n *   @prop {file}    tiles[].videoFile     — Uploaded video (if upload + video)\n *   @prop {string}  tiles[].objectAnchor  — Focus point: \"center\" | \"top\" |\n *                                           \"bottom\" | \"left\" | \"right\" |\n *                                           \"top left\" | \"top right\" |\n *                                           \"bottom left\" | \"bottom right\"\n *   @prop {string}  tiles[].caption       — Tile title shown on hover + modal\n *   @prop {string}  tiles[].description   — Hidden prompt/description; copied\n *                                           via the modal Copy button. Ideal\n *                                           for storing AI generation prompts.\n *   @prop {number}  tiles[].colSpan       — Column span (1–24, default: 8)\n *   @prop {number}  tiles[].rowSpan       — Row span (1–24, default: 2)\n *\n * FRAMER CANVAS ANNOTATIONS\n * -------------------------\n * @framerDisableUnlink         — Prevents users from detaching this component,\n *                                protecting the component structure and logic.\n * @framerSupportedLayoutWidth  any-prefer-fixed\n *                              — Defaults to fixed width for a predictable\n *                                bento grid. Auto width is also supported.\n * @framerSupportedLayoutHeight auto\n *                              — Height is always driven by grid content and\n *                                tile spans. Do not constrain height externally.\n * @framerIntrinsicWidth  1200  — Default insertion width on the Framer canvas.\n *                              Height is intentionally not constrained — the grid\n *                              drives its own height from tile spans and rowHeight.\n */import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import ReactDOM from\"react-dom\";import{motion,AnimatePresence,useMotionValue,useTransform}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerDisableUnlink\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 1200\n */export default function BentoGrid(props){const{tiles=[],borderRadius=20,columns=24,gap=12,rowHeight=108,captionColor=\"#ffffff\",captionFont=\"inherit\"}=props;const[selectedTile,setSelectedTile]=React.useState(null);const[isMuted,setIsMuted]=React.useState(true);const[copied,setCopied]=React.useState(false);const[visibleIndices,setVisibleIndices]=React.useState([]);const[activePulseIndices,setActivePulseIndices]=React.useState([]);// ── Container width tracking — scales rowHeight proportionally as the\n// container resizes. rowHeight prop is defined at a 1200px reference width.\n// When the container is wider or narrower, scaledRowHeight adjusts so the\n// grid's visual proportions stay consistent at any container width.\nconst containerRef=React.useRef(null);const[containerWidth,setContainerWidth]=React.useState(1200);React.useEffect(()=>{if(!containerRef.current)return;const ro=new ResizeObserver(([entry])=>{setContainerWidth(entry.contentRect.width);});ro.observe(containerRef.current);return()=>ro.disconnect();},[]);const scaledRowHeight=Math.round(rowHeight*(containerWidth/1200));// Shuffle queue for the pulse director — holds remaining videos that\n// haven't played yet in the current cycle. A ref so queue state persists\n// between interval ticks without triggering re-renders.\nconst pulseQueueRef=React.useRef([]);const dragY=useMotionValue(0);const modalOpacity=useTransform(dragY,[-200,0,200],[0,1,0]);// ── Inject component styles once — guards against duplicate style tags\n// when multiple BentoGrid instances exist on the same Framer page.\nReact.useEffect(()=>{if(document.getElementById(\"mdx-bento-styles\"))return;const tag=document.createElement(\"style\");tag.id=\"mdx-bento-styles\";tag.textContent=shimmerCSS;document.head.appendChild(tag);},[]);// ── Keyboard: Escape closes modal ────────────────────────────────────────\nReact.useEffect(()=>{const handleKeyDown=e=>{if(e.key===\"Escape\")setSelectedTile(null);};window.addEventListener(\"keydown\",handleKeyDown);return()=>window.removeEventListener(\"keydown\",handleKeyDown);},[]);// ── Scroll lock — prevent page scroll while modal is open ─────────────────\n// Locks document.body scroll when a tile is open. Restores on close or\n// unmount so the page is never left in a locked state.\nReact.useEffect(()=>{if(selectedTile){document.body.style.overflow=\"hidden\";}else{document.body.style.overflow=\"\";}return()=>{document.body.style.overflow=\"\";};},[selectedTile]);// ── Pulse director — fair shuffle queue ──────────────────────────────────\n// Every visible video plays exactly once before any repeats — like a\n// shuffled playlist. When the queue empties it refills and reshuffles\n// from the current visible set. If visibility changes (user scrolls),\n// the queue is rebuilt from scratch on the next tick to stay accurate.\nReact.useEffect(()=>{if(selectedTile){setActivePulseIndices([]);pulseQueueRef.current=[];return;}const rotatePulse=()=>{const currentVisibleVideos=visibleIndices.filter(i=>tiles[i]?.type===\"video\");if(currentVisibleVideos.length===0){setActivePulseIndices([]);pulseQueueRef.current=[];return;}// Filter queue to only indices still visible — handles scrolling\n// mid-cycle where a queued tile has left the viewport.\npulseQueueRef.current=pulseQueueRef.current.filter(i=>currentVisibleVideos.includes(i));// Queue exhausted — reshuffle all visible videos for the next cycle.\nif(pulseQueueRef.current.length===0){pulseQueueRef.current=[...currentVisibleVideos].sort(()=>.5-Math.random());}// Shift the next video off the front of the queue and play it.\nconst next=pulseQueueRef.current.shift();setActivePulseIndices([next]);};rotatePulse();const interval=setInterval(rotatePulse,8e3);return()=>clearInterval(interval);},[visibleIndices,selectedTile,tiles]);const openModal=(tile,index)=>{// FIX #3: Reset dragY before opening so every modal entry starts\n// centered. If a user previously dragged without dismissing and closed\n// via Escape or the close button, the residual dragY offset would carry\n// into the next open and displace the modal on entry. Resetting here\n// (before the entry animation begins) means the snap is never visible.\ndragY.set(0);// FIX #4: Reset mute state to true on every open so each tile always\n// starts muted regardless of what the user did in a previous session.\n// The mute toggle is a per-view choice — it should not persist across\n// different tiles.\nsetIsMuted(true);// Reset copied so the check icon from a previous tile's copy action\n// never carries into the newly opened tile's modal.\nsetCopied(false);setSelectedTile({...tile,mediaUrl:getMediaUrl(tile),id:index});};// FIX #5: Stable onVisible reference via useCallback. The inline arrow\n// function that was passed as onVisible previously created a new reference\n// on every render, causing GridCell's useEffect (which depends on onVisible)\n// to tear down and recreate its IntersectionObserver for every cell on every\n// state change — including every pulse tick. useCallback with an empty\n// dependency array gives a single stable reference for the component lifetime\n// since setVisibleIndices is a stable React setter that never changes.\nconst handleVisible=React.useCallback((idx,visible)=>{setVisibleIndices(prev=>{const exists=prev.includes(idx);if(visible&&!exists)return[...prev,idx];if(!visible&&exists)return prev.filter(v=>v!==idx);return prev;});},[]);const handleCopy=(e,text)=>{e.stopPropagation();if(!text)return;navigator.clipboard.writeText(text).then(()=>{setCopied(true);setTimeout(()=>setCopied(false),2e3);});};const triggerDownload=(e,url,name)=>{e.stopPropagation();// Open the media URL in a new tab and let the browser handle the\n// download natively. This avoids blob fetch CORS restrictions, memory\n// management concerns, and works for any file size.\nwindow.open(url,\"_blank\");};if(tiles.length===0)return /*#__PURE__*/_jsx(Placeholder,{borderRadius:borderRadius});// ── Modal portal ──────────────────────────────────────────────────────────\n// ReactDOM.createPortal renders the overlay as a direct child of\n// document.body, fully escaping Framer's nested containers and any ancestor\n// elements with CSS transforms. Combined with position: fixed on the overlay,\n// this guarantees the glassmorphism backdrop always covers the full viewport\n// regardless of where BentoGrid lives in the Framer page structure.\nconst modalPortal=/*#__PURE__*/ReactDOM.createPortal(/*#__PURE__*/_jsx(AnimatePresence,{children:selectedTile&&/*#__PURE__*/_jsx(motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},style:globalOverlayStyle,onClick:()=>setSelectedTile(null),children:/*#__PURE__*/_jsxs(motion.div,{layoutId:`tile-${selectedTile.id}`,drag:\"y\",dragConstraints:{top:0,bottom:0},onDragEnd:(_,info)=>{if(Math.abs(info.offset.y)>100)setSelectedTile(null);},style:{...modalMediaContainer(borderRadius),y:dragY,opacity:modalOpacity},onClick:e=>e.stopPropagation(),children:[/*#__PURE__*/_jsxs(\"div\",{style:verticalControlStack,children:[/*#__PURE__*/_jsx(\"button\",{style:iconBtnStyle,onClick:()=>setSelectedTile(null),children:/*#__PURE__*/_jsx(CloseIcon,{})}),selectedTile.description&&// UX #7: Tooltip wrapper — shows \"Copy Prompt / Description\"\n// on hover so users know what the copy button does without\n// rendering the full description text in the modal.\n/*#__PURE__*/_jsx(\"div\",{className:\"mdx-tooltip\",\"data-tip\":\"Copy Prompt / Description\",children:/*#__PURE__*/_jsx(\"button\",{style:iconBtnStyle,onClick:e=>handleCopy(e,selectedTile.description),children:copied?/*#__PURE__*/_jsx(CheckIcon,{}):/*#__PURE__*/_jsx(CopyIcon,{})})}),/*#__PURE__*/_jsx(\"button\",{style:iconBtnStyle,onClick:e=>triggerDownload(e,selectedTile.mediaUrl,selectedTile.caption),children:/*#__PURE__*/_jsx(DownloadIcon,{})}),selectedTile.type===\"video\"&&/*#__PURE__*/_jsx(\"button\",{style:iconBtnStyle,onClick:()=>setIsMuted(!isMuted),children:isMuted?/*#__PURE__*/_jsx(MuteIcon,{}):/*#__PURE__*/_jsx(UnmuteIcon,{})})]}),/*#__PURE__*/_jsx(MediaGuard,{url:selectedTile.mediaUrl,type:selectedTile.type,poster:selectedTile.imageFile,isFullView:true,muted:isMuted,borderRadius:borderRadius,isPlaying:true}),/*#__PURE__*/_jsx(\"div\",{style:modalCaptionStyle,children:/*#__PURE__*/_jsx(\"h3\",{style:{margin:0,fontSize:\"18px\",fontWeight:600,color:captionColor,fontFamily:captionFont},children:selectedTile.caption||\"Untitled\"})})]})})}),document.body);return(// The grid div is the direct root — no wrapper. Framer measures this\n// element directly so height is always grid-driven, never clipped.\n/*#__PURE__*/_jsxs(\"div\",{ref:containerRef,style:{display:\"grid\",position:\"relative\",width:\"100%\",gridTemplateColumns:`repeat(${columns}, 1fr)`,// scaledRowHeight keeps tile proportions consistent at any\n// container width. Reference width is 1200px (the intrinsic width).\ngridAutoRows:`${scaledRowHeight}px`,gap:`${gap}px`,padding:`${gap}px`,overflow:\"visible\"},children:[tiles.map((tile,i)=>/*#__PURE__*/_jsx(GridCell,{index:i,tile:tile,borderRadius:borderRadius,captionColor:captionColor,captionFont:captionFont,isPulseActive:activePulseIndices.includes(i),onVisible:handleVisible,onClick:()=>openModal(tile,i)},i)),modalPortal]}));}function GridCell({index,tile,borderRadius,captionColor,captionFont,isPulseActive,onVisible,onClick}){const ref=React.useRef(null);const[tileWidth,setTileWidth]=React.useState(200);// IntersectionObserver — tracks viewport visibility for Pulse Director\nReact.useEffect(()=>{const observer=new IntersectionObserver(([entry])=>{onVisible(index,entry.isIntersecting);},{threshold:.1});if(ref.current)observer.observe(ref.current);return()=>observer.disconnect();},[index,onVisible]);// ResizeObserver — measures tile width to scale caption pill responsively.\n// Reuses the same ref as IntersectionObserver, zero extra DOM nodes.\nReact.useEffect(()=>{if(!ref.current)return;const ro=new ResizeObserver(([entry])=>{setTileWidth(entry.contentRect.width);});ro.observe(ref.current);return()=>ro.disconnect();},[]);// Caption scale — derived from tile width. Reference tile width is 300px.\n// Clamps between 0.65 (very small tile) and 1 (full size) so the pill\n// never disappears entirely but never overpowers small tiles.\nconst captionScale=Math.min(1,Math.max(.65,tileWidth/300));return /*#__PURE__*/_jsxs(motion.div,{ref:ref,layoutId:`tile-${index}`,onClick:onClick,// variants drives both the elevated box-shadow and the caption pill\n// opacity from a single \"hover\" variant — one whileHover, two effects.\nvariants:{hover:{boxShadow:[\"rgba(0, 20, 43, 0.2) 2px 2px 6px -4px inset\",\"rgba(0, 20, 43, 0.2) -2px -2px 6px -4px inset\",\"rgba(20, 23, 26, 0.10) 0px 0.602187px 1.32481px -0.666667px\",\"rgba(20, 23, 26, 0.14) 0px 6px 14px -1.33333px\",\"rgba(20, 23, 26, 0.18) 0px 22px 48px -2px\"].join(\", \")}},whileHover:\"hover\",style:{...cellStyle(borderRadius),gridColumn:`span ${tile.colSpan||8}`,gridRow:`span ${tile.rowSpan||1}`,cursor:\"zoom-in\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",inset:0,// Match the cell's borderRadius so the gradient border follows the corner curve.\nborderRadius:`${borderRadius}px`,background:\"linear-gradient(135deg, #ff6ec4, #7873f5, #4adede, #ffcc70, #ff6ec4)\",backgroundSize:\"300% 300%\",opacity:isPulseActive&&tile.type===\"video\"?1:0,// hue-rotate cycles all colors through the full spectrum continuously.\n// -webkit-filter prefix covers Safari 9.1+. Chrome, Firefox, Edge\n// all support unprefixed filter. GPU-composited, zero layout cost.\nWebkitFilter:isPulseActive&&tile.type===\"video\"?undefined:\"none\",animation:isPulseActive&&tile.type===\"video\"?\"mdx-hue-rotate 2s linear infinite, mdx-pulse-opacity 2s ease infinite\":\"none\",transition:\"opacity 0.6s ease\",pointerEvents:\"none\",zIndex:0}}),/*#__PURE__*/_jsx(MediaGuard,{url:getMediaUrl(tile),type:tile.type,poster:tile.imageFile,anchor:tile.objectAnchor,borderRadius:borderRadius,isPlaying:isPulseActive}),tile.type===\"video\"&&!isPulseActive&&/*#__PURE__*/_jsx(\"div\",{style:videoIndicatorStyle,children:/*#__PURE__*/_jsx(PlayIconSmall,{})}),tile.type===\"video\"&&/*#__PURE__*/_jsx(\"div\",{style:{...inactiveVideoScrimStyle,// Concentric inner radius: outer borderRadius - 5px MediaGuard padding.\nborderRadius:`${Math.max(0,borderRadius-5)}px`,opacity:isPulseActive?0:1}}),tile.caption&&/*#__PURE__*/_jsxs(motion.div,{initial:{opacity:0},variants:{hover:{opacity:1}},transition:{duration:.2},style:{...glassCaptionStyle,// Scale all spatial values proportionally with tile width.\nbottom:`${Math.round(10*captionScale)}px`,padding:`${Math.round(5*captionScale)}px ${Math.round(12*captionScale)}px`,borderRadius:`${Math.round(20*captionScale)}px`,gap:`${Math.round(6*captionScale)}px`,maxWidth:`calc(100% - ${Math.round(16*captionScale)}px)`,// Set on the container so both the span text and the\n// ExpandIcon SVG (stroke=\"currentColor\") inherit it.\ncolor:captionColor,fontFamily:captionFont},children:[/*#__PURE__*/_jsx(\"span\",{style:{...captionTextStyle,fontSize:`${Math.round(12*captionScale)}px`},children:tile.caption}),/*#__PURE__*/_jsx(ExpandIcon,{size:Math.round(11*captionScale)})]})]});}function MediaGuard({url,type,poster,isFullView=false,muted=true,borderRadius=20,anchor=\"center\",isPlaying=false}){const videoRef=React.useRef(null);const[isLoaded,setIsLoaded]=React.useState(false);React.useEffect(()=>{if(type!==\"video\"||!videoRef.current)return;if(isPlaying){videoRef.current.play().catch(()=>{});}else{videoRef.current.pause();}},[isPlaying,type]);const sharedStyle={width:\"100%\",height:\"100%\",objectFit:isFullView?\"contain\":\"cover\",objectPosition:isFullView?\"center\":anchor,// Concentric rounding: inner radius = outer borderRadius - 5px padding,\n// minimum 0. Keeps the visual gap perfectly even at every corner.\nborderRadius:isFullView?`${borderRadius}px`:`${Math.max(0,borderRadius-5)}px`,background:\"transparent\",opacity:isLoaded?1:0,transition:\"opacity 0.6s ease\"};return /*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",height:\"100%\",position:\"relative\",// No flex alignment — object-position on the media element\n// controls the focal point. Flex centering would reposition\n// the element itself and fight object-position cropping.\noverflow:\"hidden\",// When rendered inside a grid cell (not fullscreen), 5px\n// padding and borderRadius matching the cell gives the media a\n// breathing gap from the cell's shadow edge.\npadding:isFullView?0:\"5px\",borderRadius:`${borderRadius}px`},children:[!isLoaded&&/*#__PURE__*/_jsx(\"div\",{className:\"mdx-shimmer-bg\",style:{position:\"absolute\",// Match parent padding so shimmer respects the 5px\n// breathing gap in grid view and fills edge-to-edge\n// in fullscreen modal.\ninset:isFullView?0:\"5px\",zIndex:1,borderRadius:isFullView?`${borderRadius}px`:`${Math.max(0,borderRadius-5)}px`}}),type===\"video\"?/*#__PURE__*/_jsx(\"video\",{ref:videoRef,src:url,poster:poster,preload:\"metadata\",loop:true,muted:muted,playsInline:true,onLoadedData:()=>setIsLoaded(true),style:sharedStyle},url):/*#__PURE__*/_jsx(\"img\",{src:url,alt:anchor||\"\",onLoad:()=>setIsLoaded(true),style:sharedStyle})]});}const cellStyle=r=>({position:\"relative\",// overflow kept off the parent so outer drop shadows are never clipped.\n    // The inner MediaGuard div handles its own overflow:hidden with padding.\n    background:\"transparent\",borderRadius:`${r}px`,boxShadow:[\"rgba(0, 20, 43, 0.2) 2px 2px 6px -4px inset\",\"rgba(0, 20, 43, 0.2) -2px -2px 6px -4px inset\",\"rgba(20, 23, 26, 0.06) 0px 0.602187px 1.32481px -0.666667px\",\"rgba(20, 23, 26, 0.07) 0px 2.28853px 5.03477px -1.33333px\",\"rgba(20, 23, 26, 0.09) 0px 10px 22px -2px\"].join(\", \")});const globalOverlayStyle={position:\"fixed\",inset:0,width:\"100%\",height:\"100%\",zIndex:999999,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",background:\"rgba(0, 0, 0, 0.45)\",backdropFilter:\"blur(60px) saturate(210%)\",WebkitBackdropFilter:\"blur(60px) saturate(210%)\",cursor:\"zoom-out\"};const modalMediaContainer=r=>({position:\"relative\",width:\"92vw\",height:\"88vh\",display:\"flex\",flexDirection:\"column\",alignItems:\"center\",justifyContent:\"center\",borderRadius:`${r}px`,touchAction:\"none\",cursor:\"grab\",background:\"transparent\"});const verticalControlStack={position:\"absolute\",top:\"24px\",right:\"24px\",display:\"flex\",flexDirection:\"column\",gap:\"12px\",zIndex:100};const iconBtnStyle={background:\"rgba(255, 255, 255, 0.12)\",border:\"1px solid rgba(255, 255, 255, 0.1)\",color:\"white\",width:\"44px\",height:\"44px\",borderRadius:\"14px\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",cursor:\"pointer\",backdropFilter:\"blur(20px)\",WebkitBackdropFilter:\"blur(20px)\"};// Compact glassmorphic caption pill — appears on hover, no full scrim.\n// Sized to content, positioned at bottom-center of the cell.\nconst glassCaptionStyle={position:\"absolute\",bottom:\"12px\",left:\"50%\",transform:\"translateX(-50%)\",maxWidth:\"calc(100% - 24px)\",background:\"rgba(255, 255, 255, 0.12)\",backdropFilter:\"blur(20px)\",WebkitBackdropFilter:\"blur(20px)\",border:\"1px solid rgba(255, 255, 255, 0.18)\",borderRadius:\"20px\",padding:\"6px 14px\",pointerEvents:\"none\",display:\"flex\",alignItems:\"center\",gap:\"6px\",overflow:\"hidden\",zIndex:10};const captionTextStyle={fontSize:\"12px\",fontWeight:600,letterSpacing:\"0.01em\",textShadow:\"0 1px 4px rgba(0,0,0,0.4)\",// Allows text to shrink within the flex pill while the expand icon\n// stays at its fixed size. Ellipsis truncates gracefully at maxWidth.\nflex:1,minWidth:0,whiteSpace:\"nowrap\",overflow:\"hidden\",textOverflow:\"ellipsis\"};const modalCaptionStyle={position:\"absolute\",bottom:\"40px\",left:\"40px\",right:\"40px\",color:\"white\",textAlign:\"left\",pointerEvents:\"none\",textShadow:\"0 2px 10px rgba(0,0,0,0.5)\"};const videoIndicatorStyle={position:\"absolute\",top:\"12px\",left:\"12px\",padding:\"6px\",background:\"rgba(0,0,0,0.4)\",backdropFilter:\"blur(10px)\",borderRadius:\"8px\",color:\"white\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",pointerEvents:\"none\"};// UX #8B: Inactive video scrim — dims non-pulsing video tiles so the active\n// pulse tile feels spotlit. Pure rgba, no filter or blend-mode, cross-browser.\nconst inactiveVideoScrimStyle={position:\"absolute\",// Inset matches the 5px MediaGuard padding. borderRadius is set\n// dynamically in GridCell using borderRadius - 5 (concentric inner radius).\ninset:\"5px\",background:\"rgba(0,0,0,0.28)\",pointerEvents:\"none\",transition:\"opacity 0.6s ease\"};const ExpandIcon=({size=14})=>/*#__PURE__*/_jsx(\"svg\",{width:size,height:size,viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2.5\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7\"})});const PlayIconSmall=()=>/*#__PURE__*/_jsx(\"svg\",{width:\"12\",height:\"12\",viewBox:\"0 0 24 24\",fill:\"currentColor\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M8 5v14l11-7z\"})});const CloseIcon=()=>/*#__PURE__*/_jsx(\"svg\",{width:\"20\",height:\"20\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2.5\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M18 6L6 18M6 6l12 12\"})});const CopyIcon=({size=16})=>/*#__PURE__*/_jsxs(\"svg\",{width:size,height:size,viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2.5\",children:[/*#__PURE__*/_jsx(\"rect\",{x:\"9\",y:\"9\",width:\"13\",height:\"13\",rx:\"2\",ry:\"2\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1\"})]});const CheckIcon=({size=16})=>/*#__PURE__*/_jsx(\"svg\",{width:size,height:size,viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"3\",children:/*#__PURE__*/_jsx(\"polyline\",{points:\"20 6 9 17 4 12\"})});const DownloadIcon=()=>/*#__PURE__*/_jsx(\"svg\",{width:\"20\",height:\"20\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2.5\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M7 10l5 5 5-5M12 15V3\"})});const MuteIcon=()=>/*#__PURE__*/_jsx(\"svg\",{width:\"18\",height:\"18\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2.5\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M11 5L6 9H2v6h4l5 4V5zM23 9l-6 6M17 9l6 6\"})});const UnmuteIcon=()=>/*#__PURE__*/_jsx(\"svg\",{width:\"18\",height:\"18\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2.5\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M11 5L6 9H2v6h4l5 4V5zM19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07\"})});const getMediaUrl=t=>t.dataSource===\"url\"?t.mediaUrl:t.type===\"video\"?t.videoFile:t.imageFile;const Placeholder=({borderRadius})=>/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"200px\",borderRadius:`${borderRadius}px`,// Neutral colors readable on both dark and light Framer canvas\n    // backgrounds — avoids the invisible-on-white problem.\n    border:\"1px dashed rgba(128,128,128,0.35)\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",color:\"rgba(128,128,128,0.5)\",fontSize:\"10px\",letterSpacing:\"0.08em\",fontWeight:500},children:\"CONFIGURE BENTO\"});const shimmerCSS=`\n@keyframes mdx-shm { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }\n.mdx-shimmer-bg { background: linear-gradient(90deg, rgba(20,20,20,0.2) 25%, rgba(60,60,60,0.3) 50%, rgba(20,20,20,0.2) 75%); background-size: 200% 100%; animation: mdx-shm 1.5s infinite linear; backdrop-filter: blur(10px); }\n.mdx-tooltip { position: relative; }\n.mdx-tooltip::after { content: attr(data-tip); position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%); background: rgba(20,20,20,0.85); backdrop-filter: blur(10px); color: #fff; font-size: 11px; font-weight: 500; white-space: nowrap; padding: 5px 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); pointer-events: none; opacity: 0; transition: opacity 0.15s ease; }\n.mdx-tooltip:hover::after { opacity: 1; }\n@keyframes mdx-pulse-bg { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }\n@keyframes mdx-pulse-opacity { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }\n@keyframes mdx-hue-rotate { 0% { -webkit-filter: hue-rotate(0deg); filter: hue-rotate(0deg); } 100% { -webkit-filter: hue-rotate(360deg); filter: hue-rotate(360deg); } }\n`;// Sets the display name shown in the Framer component panel and property inspector.\nBentoGrid.displayName=\"MDX BentoGrid\";addPropertyControls(BentoGrid,{// ── Group 1: Grid Layout ─────────────────────────────────────────────────\ncolumns:{type:ControlType.Number,title:\"Columns\",description:\"Number of grid columns. Each tile's width is defined in column spans.\",min:1,max:24,step:1,defaultValue:24},rowHeight:{type:ControlType.Number,title:\"Row Height\",description:\"Height of each grid row in pixels. Tile height = Row Height \\xd7 Row Span.\",min:50,max:800,step:1,defaultValue:108},gap:{type:ControlType.Number,title:\"Gap\",description:\"Spacing between tiles in pixels.\",min:0,max:80,step:1,defaultValue:12},borderRadius:{type:ControlType.Number,title:\"Corner Radius\",description:\"Border radius applied to each tile and the fullscreen modal.\",min:0,max:100,step:1,defaultValue:20},// ── Group 2: Caption Style ──────────────────────────────────────────────\ncaptionColor:{type:ControlType.Color,title:\"Caption Color\",description:\"Color of the caption text in the hover pill and fullscreen modal.\",defaultValue:\"#ffffff\"},captionFont:{type:ControlType.Font,title:\"Caption Font\",description:\"Font family for caption text in the hover pill and fullscreen modal.\",defaultValue:\"inherit\"},// ── Group 3: Tiles ───────────────────────────────────────────────────────\ntiles:{type:ControlType.Array,title:\"Tiles\",defaultValue:[{type:\"video\",dataSource:\"url\",mediaUrl:\"https://pub-55ae57a6090e4d21ac39f028d878d262.r2.dev/mdx-bento-grid/mdx-bento-grid-demo-4K.mp4\",caption:\"MDX_BentoGrid Masterclass\",description:\"Deep dive into Fluid Bento Architecture. Learn to manage grid spans, media anchors, and intelligent motion directors.\",colSpan:24,rowSpan:5}],control:{type:ControlType.Object,controls:{// — Media Type & Source —\ntype:{type:ControlType.Enum,title:\"Media Type\",options:[\"image\",\"video\"],defaultValue:\"image\"},dataSource:{type:ControlType.Enum,title:\"Source\",description:\"URL for remotely hosted media. Upload for local files.\",options:[\"url\",\"upload\"],optionTitles:[\"URL\",\"Upload\"],defaultValue:\"url\"},mediaUrl:{type:ControlType.String,title:\"Media URL\",description:\"Direct link to your image or video. Supports CDN, R2, S3, and public URLs.\",placeholder:\"https://...\",hidden:p=>p.dataSource!==\"url\"},imageFile:{type:ControlType.Image,title:\"Image File\",hidden:p=>p.dataSource!==\"upload\"||p.type!==\"image\"},videoFile:{type:ControlType.File,title:\"Video File\",description:\"Supported formats: mp4, webm, ogg, mov, m4v.\",allowedFileTypes:[\"mp4\",\"webm\",\"ogg\",\"mov\",\"m4v\"],hidden:p=>p.dataSource!==\"upload\"||p.type!==\"video\"},// — Display —\nobjectAnchor:{type:ControlType.Enum,title:\"Focus Point\",description:\"Controls which part of the media stays visible when cropped by the grid cell.\",options:[\"top\",\"center\",\"bottom\",\"left\",\"right\",\"top left\",\"top right\",\"bottom left\",\"bottom right\"],optionTitles:[\"Top\",\"Center\",\"Bottom\",\"Left\",\"Right\",\"Top Left\",\"Top Right\",\"Bottom Left\",\"Bottom Right\"],defaultValue:\"center\"},caption:{type:ControlType.String,title:\"Caption\",description:\"Displayed on tile hover and as the title in the fullscreen modal.\",placeholder:\"Tile title...\"},description:{type:ControlType.String,title:\"Prompt / Description\",description:\"Hidden from view — accessible via the Copy button in the modal. Ideal for storing AI video generation prompts.\",placeholder:\"AI prompt or description...\"},// — Layout Span —\ncolSpan:{type:ControlType.Number,title:\"Width (Columns)\",description:\"How many columns this tile spans. Max matches the Columns setting.\",min:1,max:24,step:1,defaultValue:8},rowSpan:{type:ControlType.Number,title:\"Height (Rows)\",description:\"How many rows this tile spans. Pixel height = Row Height \\xd7 this value.\",min:1,max:24,step:1,defaultValue:2}}}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BentoGrid\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"1200\",\"framerDisableUnlink\":\"* @framerSupportedLayoutWidth any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./MDX_BentoGrid.map"],"mappings":"0SAuIG,SAAwB,EAAU,EAAM,CAAC,GAAK,CAAC,QAAM,EAAE,CAAC,eAAa,GAAG,UAAQ,GAAG,MAAI,GAAG,YAAU,IAAI,eAAa,UAAU,cAAY,WAAW,EAAW,CAAC,EAAa,GAAiBA,EAAe,KAAK,CAAM,CAAC,EAAQ,GAAYA,EAAe,GAAK,CAAM,CAAC,EAAO,GAAWA,EAAe,GA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