{"version":3,"file":"PhotographyBreak.DJRW0o7Q.mjs","names":[],"sources":["https:/framerusercontent.com/modules/22EGrtjBUFG5B85f3D0N/O95LeYLMaf94fTwfwZ7Z/PhotographyBreak.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";function ImageSlot({src,alt,crop,label}){return /*#__PURE__*/_jsx(\"div\",{className:\"sb-photo-strip__slot\",children:src?/*#__PURE__*/_jsx(\"img\",{src:src,alt:alt,loading:\"lazy\",style:{objectPosition:crop}}):/*#__PURE__*/_jsx(\"div\",{className:\"sb-photo-strip__placeholder\",role:\"img\",\"aria-label\":`${label} photography placeholder`,children:/*#__PURE__*/_jsx(\"span\",{children:label})})});}export default function PhotographyStrip(props){const count=props.layout===\"single\"?1:props.layout===\"double\"?2:3;return /*#__PURE__*/_jsxs(\"figure\",{className:`sb-photo-strip ${props.widthMode===\"contained\"?\"sb-photo-strip--contained\":\"sb-photo-strip--full\"}`,children:[/*#__PURE__*/_jsxs(\"div\",{className:\"sb-photo-strip__grid\",style:{gap:props.gap,borderRadius:props.radius,gridTemplateColumns:count===1?\"1fr\":count===2?\"1fr 1fr\":\"1fr 1fr 1fr\"},children:[/*#__PURE__*/_jsx(ImageSlot,{src:props.image1,alt:props.image1Alt,crop:props.crop1,label:\"Field / crop\"}),count>=2&&/*#__PURE__*/_jsx(ImageSlot,{src:props.image2,alt:props.image2Alt,crop:props.crop2,label:\"Agronomist / fieldwork\"}),count>=3&&/*#__PURE__*/_jsx(ImageSlot,{src:props.image3,alt:props.image3Alt,crop:props.crop3,label:\"Hydroponics / greenhouse\"})]}),/*#__PURE__*/_jsx(\"style\",{children:`\n                .sb-photo-strip {\n                    width: 100%;\n                    margin: 0;\n                    box-sizing: border-box;\n                    background: #FFFFFF;\n                }\n\n                .sb-photo-strip--full {\n                    padding: 0;\n                }\n\n                .sb-photo-strip--contained {\n                    padding: 0 28px;\n                }\n\n                .sb-photo-strip--contained .sb-photo-strip__grid {\n                    max-width: 1200px;\n                    margin: 0 auto;\n                }\n\n                .sb-photo-strip__grid {\n                    width: 100%;\n                    height: ${props.heightDesktop}px;\n                    display: grid;\n                    overflow: hidden;\n                    background: #F2F4F7;\n                }\n\n                .sb-photo-strip__slot {\n                    min-width: 0;\n                    min-height: 0;\n                    overflow: hidden;\n                    background: #E5F2EC;\n                }\n\n                .sb-photo-strip__slot img {\n                    display: block;\n                    width: 100%;\n                    height: 100%;\n                    object-fit: cover;\n                }\n\n                .sb-photo-strip__placeholder {\n                    width: 100%;\n                    height: 100%;\n                    display: grid;\n                    place-items: center;\n                    padding: 16px;\n                    box-sizing: border-box;\n                    background:\n                        linear-gradient(\n                            115deg,\n                            #E5F2EC 0%,\n                            #F2F4F7 100%\n                        );\n                    color: #0A5958;\n                    text-align: center;\n                }\n\n                .sb-photo-strip__placeholder span {\n                    font-family: Poppins, sans-serif;\n                    font-size: 11px;\n                    line-height: 1.4;\n                    font-weight: 600;\n                    letter-spacing: .04em;\n                    text-transform: uppercase;\n                }\n\n                @media (max-width: 980px) {\n                    .sb-photo-strip__grid {\n                        height: ${props.heightTablet}px;\n                    }\n                }\n\n                @media (max-width: 680px) {\n                    .sb-photo-strip--contained {\n                        padding: 0 20px;\n                    }\n\n                    .sb-photo-strip__grid {\n                        height: ${props.heightMobile}px;\n                        grid-template-columns: 1fr !important;\n                    }\n\n                    .sb-photo-strip__slot:nth-child(n+2) {\n                        display: none;\n                    }\n                }\n            `})]});}PhotographyStrip.defaultProps={image1Alt:\"Crop field photographed at plant height\",image2Alt:\"Agronomist working with crops in the field\",image3Alt:\"Hydroponic or greenhouse crop production\",layout:\"triple\",heightDesktop:150,heightTablet:130,heightMobile:105,crop1:\"center\",crop2:\"center\",crop3:\"center\",gap:0,radius:0,widthMode:\"full\"};addPropertyControls(PhotographyStrip,{layout:{type:ControlType.Enum,title:\"Layout\",options:[\"single\",\"double\",\"triple\"],optionTitles:[\"1 Image\",\"2 Images\",\"3 Images\"]},image1:{type:ControlType.Image,title:\"Image 1\"},image1Alt:{type:ControlType.String,title:\"Image 1 Alt\",displayTextArea:true},crop1:{type:ControlType.Enum,title:\"Image 1 Crop\",options:[\"center\",\"top\",\"bottom\",\"left\",\"right\",\"center top\",\"center bottom\"],optionTitles:[\"Center\",\"Top\",\"Bottom\",\"Left\",\"Right\",\"Center Top\",\"Center Bottom\"]},image2:{type:ControlType.Image,title:\"Image 2\",hidden:props=>props.layout===\"single\"},image2Alt:{type:ControlType.String,title:\"Image 2 Alt\",displayTextArea:true,hidden:props=>props.layout===\"single\"},crop2:{type:ControlType.Enum,title:\"Image 2 Crop\",options:[\"center\",\"top\",\"bottom\",\"left\",\"right\",\"center top\",\"center bottom\"],optionTitles:[\"Center\",\"Top\",\"Bottom\",\"Left\",\"Right\",\"Center Top\",\"Center Bottom\"],hidden:props=>props.layout===\"single\"},image3:{type:ControlType.Image,title:\"Image 3\",hidden:props=>props.layout!==\"triple\"},image3Alt:{type:ControlType.String,title:\"Image 3 Alt\",displayTextArea:true,hidden:props=>props.layout!==\"triple\"},crop3:{type:ControlType.Enum,title:\"Image 3 Crop\",options:[\"center\",\"top\",\"bottom\",\"left\",\"right\",\"center top\",\"center bottom\"],optionTitles:[\"Center\",\"Top\",\"Bottom\",\"Left\",\"Right\",\"Center Top\",\"Center Bottom\"],hidden:props=>props.layout!==\"triple\"},heightDesktop:{type:ControlType.Number,title:\"Desktop H\",min:80,max:260,step:5},heightTablet:{type:ControlType.Number,title:\"Tablet H\",min:80,max:220,step:5},heightMobile:{type:ControlType.Number,title:\"Mobile H\",min:70,max:180,step:5},widthMode:{type:ControlType.Enum,title:\"Width\",options:[\"full\",\"contained\"],optionTitles:[\"Full Bleed\",\"Contained\"]},gap:{type:ControlType.Number,title:\"Gap\",min:0,max:24,step:1},radius:{type:ControlType.Number,title:\"Radius\",min:0,max:24,step:1}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Photography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