{"version":3,"file":"ProjectPhotoHover.Cc7pIG9a.mjs","names":["useRef","__esmMin","init_npm_react_18_3_1","c","J","init_jsx_runtime","ce","de","init_framer_BkYB2Gqq","useIsStaticRenderer","withProjectPhotoHover","elementRef","isStatic","style","css","element","Component","props","node","ref","target","init_ProjectPhotoHover"],"sources":["https:/framerusercontent.com/modules/kZUukHW5rJ0U8vIfp65L/O9P1cAgPK9PF1LUTi7MY/ProjectPhotoHover.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useEffect,useRef}from\"react\";import{useIsStaticRenderer}from\"framer\";const target=\":is([data-kwame-photo-hover='true'][data-framer-name='Project Photograph'], [data-kwame-photo-hover='true'] [data-framer-name='Project Photograph'])\";const css=[\"@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {\",target+\" { position: relative; isolation: isolate; overflow: hidden; }\",target+\"::before, \"+target+\"::after { content: ''; position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity 220ms ease; }\",target+\"::before { z-index: 10; background: rgba(20,20,20,.18); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }\",target+\"::after { content: 'KWAME BLUE'; z-index: 11; display: flex; align-items: center; justify-content: center; color: #f2eee7; font-family: Arimo, Arial, sans-serif; font-size: clamp(19px, 2vw, 30px); font-weight: 500; letter-spacing: .08em; text-align: center; text-shadow: 0 1px 10px rgba(0,0,0,.28); }\",target+\":hover::before, \"+target+\":hover::after { opacity: 1; }\",target+\":has([data-framer-name='Project Logo'])::after { content: none; }\",target+\" [data-framer-name='Project Logo'] { position: relative; z-index: 12; transition: opacity 220ms ease; }\",target+\":hover [data-framer-name='Project Logo'] { opacity: 1 !important; }\",\"}\"].join(\"\\n\");export function withProjectPhotoHover(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const elementRef=useRef(null);const isStatic=useIsStaticRenderer();useEffect(()=>{if(isStatic||typeof document===\"undefined\")return;if(!document.getElementById(\"kwame-project-photo-hover\")){const style=document.createElement(\"style\");style.id=\"kwame-project-photo-hover\";style.textContent=css;document.head.appendChild(style);}const element=elementRef.current;if(!element)return;element.dataset.kwamePhotoHover=\"true\";return()=>{delete element.dataset.kwamePhotoHover;};},[isStatic]);return /*#__PURE__*/_jsx(Component,{...props,ref:node=>{elementRef.current=node;if(typeof ref===\"function\")ref(node);else if(ref)ref.current=node;}});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withProjectPhotoHover\":{\"type\":\"reactHoc\",\"name\":\"withProjectPhotoHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ProjectPhotoHover.map"],"mappings":"A,kLAA43C,SAAgBU,EAAsB,EAAU,CAAC,MAAoB,iBAAY,EAAM,IAAM,CAAC,IAAMC,EAAWX,EAAO,IAAI,EAAQY,EAASH,EAAoB,EAAma,OAAjaH,MAAc,CAAC,GAAGM,GAAU,OAAO,SAAW,IAAY,OAAO,GAAG,CAAC,SAAS,eAAe,2BAA2B,EAAE,CAAC,IAAMC,EAAM,SAAS,cAAc,OAAO,EAAE,EAAM,GAAG,4BAA4B,EAAM,YAAYC,EAAI,SAAS,KAAK,YAAYD,CAAK,CAAE,CAAC,IAAME,EAAQJ,EAAW,QAAQ,GAAII,EAAsD,MAAvC,GAAQ,QAAQ,gBAAgB,WAAiB,CAAC,OAAOA,EAAQ,QAAQ,eAAgB,CAAE,EAAE,CAACH,CAAQ,CAAC,EAAsB,gBAAKI,EAAU,CAAC,GAAGC,EAAM,IAAI,GAAM,CAAC,EAAW,QAAQC,EAAQ,OAAOC,GAAM,WAAWA,EAAID,CAAI,EAAUC,IAAI,EAAI,QAAQD,EAAK,CAAC,CAAC,CAAE,CAAC,CAAE,C,kDAA/8D,EAAO,uJAA6J,EAAI,CAAC,0FAA0FE,EAAO,iEAAiEA,EAAO,aAAaA,EAAO,2HAA2HA,EAAO,4HAA4HA,EAAO,+SAA+SA,EAAO,mBAAmBA,EAAO,gCAAgCA,EAAO,oEAAoEA,EAAO,0GAA0GA,EAAO,sEAAsE,GAAG,CAAC,CAAC,KAAK;CAAI,C"}