{"version":3,"file":"customStyling.t2fGnFIO.mjs","names":[],"sources":["https:/framerusercontent.com/modules/r9GWstuWH3LNuSXnE4xw/iZcloFWjKAb3OvZDxpvG/customStyling.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";let workHeight,workListHeight;function calcWorkHeight(workSelector,workListSelector){workHeight=workSelector.offsetHeight-160;workListHeight=workListSelector.offsetHeight-workHeight;}function addCustomStyles(){useEffect(()=>{const styleElement=document.createElement(\"style\");const workSelector=document.querySelector('[data-framer-name=\"Sticky Title\"]');const workListSelector=document.querySelector('[data-framer-name=\"Brand Design Work\"]');calcWorkHeight(workSelector,workListSelector);window.addEventListener(\"resize\",()=>{calcWorkHeight(workSelector,workListSelector);});styleElement.innerHTML=`\n        [data-framer-name=\"Projects\"] {\n            transform: translateY(-${workHeight}px) !important;\n        }\n\n        [data-framer-name=\"Brand Design Work\"] {\n            height: ${workListHeight}px !important;\n        }\n\n        [data-framer-name=\"Photography Work\"] {\n            overflow-x: hidden !important;\n        }\n        `;document.head.appendChild(styleElement);return()=>document.head.removeChild(styleElement);},[]);}export function withCustomStyling(Component){return props=>{addCustomStyles();return /*#__PURE__*/_jsx(Component,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withCustomStyling\":{\"type\":\"reactHoc\",\"name\":\"withCustomStyling\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./customStyling.map"],"mappings":"2HAAsG,SAAS,EAAe,EAAa,EAAiB,CAAC,EAAW,EAAa,aAAa,IAAI,EAAe,EAAiB,aAAa,EAAY,SAAS,GAAiB,CAAC,MAAc,CAAC,IAAM,EAAa,SAAS,cAAc,QAAQ,CAAO,EAAa,SAAS,cAAc,oCAAoC,CAAO,EAAiB,SAAS,cAAc,yCAAyC,CAYhd,OAZid,EAAe,EAAa,EAAiB,CAAC,EAAO,iBAAiB,aAAa,CAAC,EAAe,EAAa,EAAiB,EAAG,CAAC,EAAa,UAAU;;qCAE1nB,EAAW;;;;sBAI1B,EAAe;;;;;;UAM3B,SAAS,KAAK,YAAY,EAAa,KAAW,SAAS,KAAK,YAAY,EAAa,EAAG,EAAE,CAAC,CAAE,SAAgB,EAAkB,EAAU,CAAC,MAAO,KAAQ,GAAiB,CAAqB,EAAK,EAAU,CAAC,GAAG,EAAM,CAAC,2BAZ5L,IAA6B"}