{"version":3,"file":"useFullWidthImages.CVfEfcXc.mjs","names":["__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/KacM9qng7ZOc3fcxmCMD/G0by0dUDcILdOnQ9IXwH/useFullWidthImages.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";let styleInjected=false;let imagesProcessed=new WeakSet;export function useFullWidthImages(){useEffect(()=>{if(typeof window===\"undefined\")return;// Inject once\nif(!styleInjected){const style=document.createElement(\"style\");style.innerHTML=`\n/* General full-width safety (works even when we don't wrap) */\n[data-framer-component-type=\"RichTextContainer\"] img,\n.framer-image img,\n.framer-image {\n  max-width: 100% !important;\n  width: 100% !important;\n  height: auto !important;\n  display: block !important;\n}\n\n/* Lightbox-only styling */\n.image-hover-wrapper {\n  position: relative;\n  display: inline-block;\n  margin-top: 12px;\n  margin-bottom: 4px;\n}\n\n.image-hover-wrapper img {\n  width: 100% !important;\n  height: auto !important;\n  display: block !important;\n  max-width: 100% !important;\n  border-radius: 8px;\n  cursor: pointer;\n}\n\n.image-hover-overlay {\n  position: absolute;\n  inset: 0;\n  background-color: rgba(0, 0, 0, 0.25);\n  border-radius: 8px;\n  opacity: 0;\n  transition: opacity 0.25s ease;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  pointer-events: none;\n}\n\n.image-hover-wrapper:hover .image-hover-overlay {\n  opacity: 1;\n}\n\n.image-hover-icon {\n  width: 48px;\n  height: 48px;\n  background-color: rgba(255, 255, 255, 0.9);\n  border-radius: 9999px;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  transition: all 0.2s ease;\n  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);\n  pointer-events: none;\n}\n\n.image-hover-icon::before {\n  content: \"\";\n  display: block;\n  width: 20px;\n  height: 20px;\n  background-color: black;\n  mask: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"black\" viewBox=\"0 0 24 24\"><path fill-rule=\"evenodd\" d=\"M10.5 3.75a6.75 6.75 0 1 0 0 13.5 6.75 6.75 0 0 0 0-13.5ZM2.25 10.5a8.25 8.25 0 1 1 14.59 5.28l4.69 4.69a.75.75 0 1 1-1.06 1.06l-4.69-4.69A8.25 8.25 0 0 1 2.25 10.5Z\" clip-rule=\"evenodd\"/></svg>') no-repeat center;\n  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"black\" viewBox=\"0 0 24 24\"><path fill-rule=\"evenodd\" d=\"M10.5 3.75a6.75 6.75 0 1 0 0 13.5 6.75 6.75 0 0 0 0-13.5ZM2.25 10.5a8.25 8.25 0 1 1 14.59 5.28l-4.69 4.69a.75.75 0 1 1-1.06 1.06l-4.69-4.69A8.25 8.25 0 0 1 2.25 10.5Z\" clip-rule=\"evenodd\"/></svg>') no-repeat center;\n  mask-size: contain;\n  -webkit-mask-size: contain;\n}\n`;document.head.appendChild(style);styleInjected=true;}const images=document.querySelectorAll('[data-framer-component-type=\"RichTextContainer\"] img, .framer-image');images.forEach(img=>{if(imagesProcessed.has(img))return;imagesProcessed.add(img);// If it's already inside a wrapper we created earlier, skip.\nif(img.closest(\".image-hover-wrapper\"))return;// If the image is inside a link, DO NOT apply lightbox.\nconst anchor=img.closest(\"a[href]\");if(anchor){// Still enforce safe full-width display for linked images.\nimg.style.maxWidth=\"100%\";img.style.width=\"100%\";img.style.height=\"auto\";img.style.display=\"block\";return;}// Non-linked image → wrap with lightbox affordance.\nconst wrapper=document.createElement(\"span\");wrapper.className=\"image-hover-wrapper\";const overlay=document.createElement(\"div\");overlay.className=\"image-hover-overlay\";const icon=document.createElement(\"div\");icon.className=\"image-hover-icon\";overlay.appendChild(icon);img.parentNode?.insertBefore(wrapper,img);wrapper.appendChild(img);wrapper.appendChild(overlay);img.addEventListener(\"click\",()=>{const event=new CustomEvent(\"open-lightbox\",{detail:img.src});window.dispatchEvent(event);});});},[]);return{};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withuseFullWidthImages(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...useFullWidthImages(props)});};}withuseFullWidthImages.displayName=\"useFullWidthImages\";\nexport const __FramerMetadata__ = {\"exports\":{\"withuseFullWidthImages\":{\"type\":\"reactHoc\",\"name\":\"withuseFullWidthImages\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useFullWidthImages\":{\"type\":\"override\",\"name\":\"useFullWidthImages\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./useFullWidthImages.map"],"mappings":"iSAAgI,SAAgB,GAAoB,CA0EkV,OA1EjV,MAAc,CAAI,GAAO,IAAS,OACvM,IAAG,CAAC,EAAc,CAAC,IAAM,EAAM,SAAS,cAAc,QAAQ,CAAC,EAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqE7E,SAAS,KAAK,YAAY,EAAM,CAAC,EAAc,GAAmB,SAAS,iBAAiB,sEAAsE,CAAQ,QAAQ,GAAK,CACzL,GAD6L,EAAgB,IAAI,EAAI,GAAQ,EAAgB,IAAI,EAAI,CAClP,EAAI,QAAQ,uBAAuB,EAAC,OACH,GAAvB,EAAI,QAAQ,UAAU,CAAW,CAC9C,EAAI,MAAM,SAAS,OAAO,EAAI,MAAM,MAAM,OAAO,EAAI,MAAM,OAAO,OAAO,EAAI,MAAM,QAAQ,QAAQ,OACnG,IAAM,EAAQ,SAAS,cAAc,OAAO,CAAC,EAAQ,UAAU,sBAAsB,IAAM,EAAQ,SAAS,cAAc,MAAM,CAAC,EAAQ,UAAU,sBAAsB,IAAM,EAAK,SAAS,cAAc,MAAM,CAAC,EAAK,UAAU,mBAAmB,EAAQ,YAAY,EAAK,CAAC,EAAI,YAAY,a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