{"version":3,"file":"Photos_About.DRTuf1Qk.mjs","names":["p","__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/mQynHmMBHsbY8rUWgSbv/IIjCagY3jm67gAVO29yD/Photos_About.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useScroll,useTransform}from\"framer-motion\";// =======================\n// PHOTOS DRIFT SECTION\n// =======================\n// Ref del container que sí tiene scroll\nconst photosRef={current:null};// 1) Apply to the OUTER container (set height ≈ 140vh)\nexport function CompoPhotosContainer(){return{ref:photosRef};}// 2) Apply to the INNER frame (100vh visible)\nexport function FrameStickyPhotos(){return{style:{position:\"sticky\",top:0,height:\"100vh\",overflow:\"hidden\",zIndex:10,isolation:\"isolate\"}};}// 3) Local scroll progress (0 → 1)\nfunction usePhotosProgress(){const{scrollYProgress}=useScroll({target:photosRef,offset:[\"start start\",\"end end\"]});return scrollYProgress;}// =======================\n// PHOTOS (respect base rotation)\n// =======================\n// Photo 1 — base rotation: 80°\nexport function Photo1(){const p=usePhotosProgress();const y=useTransform(p,[0,1],[\"-2vh\",\"3vh\"]);const rotate=useTransform(p,[0,1],[80,83]);return{style:{y,rotate,zIndex:20}};}// Photo 2 — base rotation: 42°\nexport function Photo2(){const p=usePhotosProgress();const y=useTransform(p,[0,1],[\"3vh\",\"-2vh\"]);const rotate=useTransform(p,[0,1],[42,39]);return{style:{y,rotate,zIndex:21}};}// Photo 3 — base rotation: -49°\nexport function Photo3(){const p=usePhotosProgress();const y=useTransform(p,[0,1],[\"-4vh\",\"1vh\"]);const rotate=useTransform(p,[0,1],[-49,-46]);return{style:{y,rotate,zIndex:22}};}// Photo 4 — base rotation: -64°\nexport function Photo4(){const p=usePhotosProgress();const y=useTransform(p,[0,1],[\"2vh\",\"-3vh\"]);const rotate=useTransform(p,[0,1],[-64,-67]);return{style:{y,rotate,zIndex:23}};}// =======================\n// CENTER TEXT (fade in once the section is fully in view)\n// =======================\n// Apply this to your centered text layer inside the sticky frame.\n// Set its initial opacity to 0 in the canvas (recommended).\nexport function PhotosCenterText(){const p=usePhotosProgress();// Appears after you \"land\" in the section\n// tweak these numbers:\n// - start later: 0.08 → 0.12\n// - faster: closer values\nconst opacity=useTransform(p,[.08,.44],[0,1]);return{style:{opacity,zIndex:50}};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withCompoPhotosContainer(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...CompoPhotosContainer(props)});};}withCompoPhotosContainer.displayName=\"CompoPhotosContainer\";export function withFrameStickyPhotos(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...FrameStickyPhotos(props)});};}withFrameStickyPhotos.displayName=\"FrameStickyPhotos\";export function withPhoto1(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...Photo1(props)});};}withPhoto1.displayName=\"Photo1\";export function withPhoto2(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...Photo2(props)});};}withPhoto2.displayName=\"Photo2\";export function withPhoto3(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...Photo3(props)});};}withPhoto3.displayName=\"Photo3\";export function withPhoto4(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...Photo4(props)});};}withPhoto4.displayName=\"Photo4\";export function withPhotosCenterText(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...PhotosCenterText(props)});};}withPhotosCenterText.displayName=\"PhotosCenterText\";\nexport const __FramerMetadata__ = {\"exports\":{\"Photo4\":{\"type\":\"override\",\"name\":\"Photo4\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"FrameStickyPhotos\":{\"type\":\"override\",\"name\":\"FrameStickyPhotos\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPhoto1\":{\"type\":\"reactHoc\",\"name\":\"withPhoto1\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"CompoPhotosContainer\":{\"type\":\"override\",\"name\":\"CompoPhotosContainer\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPhoto2\":{\"type\":\"reactHoc\",\"name\":\"withPhoto2\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Photo3\":{\"type\":\"override\",\"name\":\"Photo3\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Photo2\":{\"type\":\"override\",\"name\":\"Photo2\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPhoto4\":{\"type\":\"reactHoc\",\"name\":\"withPhoto4\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPhotosCenterText\":{\"type\":\"reactHoc\",\"name\":\"withPhotosCenterText\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCompoPhotosContainer\":{\"type\":\"reactHoc\",\"name\":\"withCompoPhotosContainer\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Photo1\":{\"type\":\"override\",\"name\":\"Photo1\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFrameStickyPhotos\":{\"type\":\"reactHoc\",\"name\":\"withFrameStickyPhotos\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPhoto3\":{\"type\":\"reactHoc\",\"name\":\"withPhoto3\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"PhotosCenterText\":{\"type\":\"override\",\"name\":\"PhotosCenterText\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Photos_About.map"],"mappings":"2NAKA,SAAgB,GAAsB,CAAC,MAAM,CAAC,IAAI,EAAU,CAC5D,SAAgB,GAAmB,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,SAAS,IAAI,EAAE,O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