{"version":3,"file":"FlexibleGallery.BKzono7H.mjs","names":[],"sources":["https:/framerusercontent.com/modules/kSl6bDK016WofnlDCtgY/a5xOil5BXKbVO6sWhNlO/FlexibleGallery.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Flexible Gallery\n *\n * A grid-based gallery that supports up to 3 images per row,\n * with each image configurable to span 1-3 columns.\n *\n * @framerIntrinsicWidth 600\n * @framerIntrinsicHeight 400\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function FlexibleGallery(props){const{images=[{image:{src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Image 1\"},colSpan:3,aspectRatio:\"16/9\"},{image:{src:\"https://framerusercontent.com/images/aNsAT3jCvt4zglbWCUoFe33Q.jpg\",alt:\"Image 2\"},colSpan:1.5,aspectRatio:\"1/1\"},{image:{src:\"https://framerusercontent.com/images/BYnxEV1zjYb9bhWh1IwBZ1ZoS60.jpg\",alt:\"Image 3\"},colSpan:1.5,aspectRatio:\"1/1\"}],gap=16,borderRadius=8,alignment=\"center\"}=props;const isSingleImage=images.length===1;const gridColumnCount=6;const gridTemplateColumns=`repeat(${gridColumnCount}, 1fr)`;return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",display:\"grid\",gridTemplateColumns,gap:`${gap}px`,alignItems:isSingleImage?\"center\":alignment,alignContent:isSingleImage?\"center\":\"start\",...props.style},children:images.map((item,index)=>{const imageSrc=item?.image?.src||\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\";const imageAlt=item?.image?.alt||`Gallery image ${index+1}`;const colSpan=item?.colSpan||1;const itemAspectRatio=item?.aspectRatio||\"1/1\";const gridSpan=Math.min(Math.round(colSpan*2),gridColumnCount);return /*#__PURE__*/_jsx(\"div\",{style:{gridColumn:`span ${gridSpan}`,borderRadius:`${borderRadius}px`,overflow:\"hidden\",position:\"relative\"},children:/*#__PURE__*/_jsx(\"img\",{src:imageSrc,alt:imageAlt,style:{width:\"100%\",height:\"100%\",objectFit:\"cover\",aspectRatio:itemAspectRatio,display:\"block\"}})},index);})});}addPropertyControls(FlexibleGallery,{images:{type:ControlType.Array,title:\"Images\",maxCount:10,defaultValue:[{image:{src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Image 1\"},colSpan:3,aspectRatio:\"16/9\"},{image:{src:\"https://framerusercontent.com/images/aNsAT3jCvt4zglbWCUoFe33Q.jpg\",alt:\"Image 2\"},colSpan:1.5,aspectRatio:\"1/1\"},{image:{src:\"https://framerusercontent.com/images/BYnxEV1zjYb9bhWh1IwBZ1ZoS60.jpg\",alt:\"Image 3\"},colSpan:1.5,aspectRatio:\"1/1\"}],control:{type:ControlType.Object,controls:{image:{type:ControlType.ResponsiveImage,title:\"Image\"},colSpan:{type:ControlType.Number,title:\"Column Span\",defaultValue:1,min:.5,max:3,step:.5},aspectRatio:{type:ControlType.Enum,title:\"Aspect Ratio\",defaultValue:\"1/1\",options:[\"1/1\",\"4/3\",\"16/9\",\"3/4\",\"auto\"],optionTitles:[\"Square (1:1)\",\"Landscape (4:3)\",\"Wide (16:9)\",\"Portrait (3:4)\",\"Auto\"]}}}},gap:{type:ControlType.Number,title:\"Gap\",defaultValue:16,min:0,max:64,step:4,unit:\"px\"},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:8,min:0,max:32,step:1,unit:\"px\"},alignment:{type:ControlType.Enum,title:\"Alignment\",defaultValue:\"center\",options:[\"start\",\"center\",\"end\",\"stretch\"],optionTitles:[\"Top\",\"Center\",\"Bottom\",\"Stretch\"],displaySegmentedControl:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FlexibleGallery\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSup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