{"version":3,"file":"Project_Nav.DRNXTMLI.mjs","names":["_Fragment"],"sources":["https:/framerusercontent.com/modules/8d5fdFlHhPLGb4olFjHa/iuXLwSiRyElo6PInDrz0/Project_Nav.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * PROJECT NAVIGATION\n *\n * Bottom-of-page navigation strip with previous / next project links\n * and an optional \"Back to top\" button centered between them.\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 1200\n * @framerIntrinsicHeight 120\n */export default function ProjectNavigation(props){const{previousLabel,previousLink,nextLabel,nextLink,showBackToTop,backgroundColor,textColor,hoverColor,backToTopBg,backToTopHoverBg,backToTopIconColor,backToTopBorderColor,showTopBorder,borderColor}=props;const handleBackToTop=()=>{if(typeof window!==\"undefined\"){window.scrollTo({top:0,behavior:\"smooth\"});}};// Unique scope keeps multiple instances from colliding\nconst scope=\"pn-\"+Math.abs(hashCode(`${previousLabel}${nextLabel}${backgroundColor}`));return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:buildStyles(scope,{backgroundColor,textColor,hoverColor,backToTopBg,backToTopHoverBg,backToTopIconColor,backToTopBorderColor,showTopBorder,borderColor})}),/*#__PURE__*/_jsxs(\"nav\",{className:`${scope} pn-root`,\"aria-label\":\"Project navigation\",children:[/*#__PURE__*/_jsxs(\"a\",{href:previousLink||\"#\",className:\"pn-link pn-link--prev\",\"aria-label\":`Previous project: ${previousLabel}`,children:[/*#__PURE__*/_jsx(\"span\",{className:\"pn-arrow pn-arrow--prev\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(ChevronDouble,{direction:\"left\"})}),/*#__PURE__*/_jsx(\"span\",{className:\"pn-label\",children:previousLabel})]}),/*#__PURE__*/_jsx(\"div\",{className:\"pn-center\",children:showBackToTop&&/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:handleBackToTop,className:\"pn-top\",\"aria-label\":\"Back to top\",title:\"Back to top\",children:/*#__PURE__*/_jsxs(\"svg\",{width:\"18\",height:\"18\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"1.75\",strokeLinecap:\"round\",strokeLinejoin:\"round\",\"aria-hidden\":\"true\",children:[/*#__PURE__*/_jsx(\"line\",{x1:\"12\",y1:\"19\",x2:\"12\",y2:\"5\"}),/*#__PURE__*/_jsx(\"polyline\",{points:\"5 12 12 5 19 12\"})]})})}),/*#__PURE__*/_jsxs(\"a\",{href:nextLink||\"#\",className:\"pn-link pn-link--next\",\"aria-label\":`Next project: ${nextLabel}`,children:[/*#__PURE__*/_jsx(\"span\",{className:\"pn-label\",children:nextLabel}),/*#__PURE__*/_jsx(\"span\",{className:\"pn-arrow pn-arrow--next\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(ChevronDouble,{direction:\"right\"})})]})]})]});}/* ---------- Chevron icon (matches « » in the reference) ---------- */function ChevronDouble({direction}){const transform=direction===\"left\"?\"rotate(180 12 12)\":undefined;return /*#__PURE__*/_jsx(\"svg\",{width:\"14\",height:\"14\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"1.75\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:/*#__PURE__*/_jsxs(\"g\",{transform:transform,children:[/*#__PURE__*/_jsx(\"polyline\",{points:\"7 6 13 12 7 18\"}),/*#__PURE__*/_jsx(\"polyline\",{points:\"13 6 19 12 13 18\"})]})});}/* ---------- Styles ---------- */function buildStyles(s,{backgroundColor,textColor,hoverColor,backToTopBg,backToTopHoverBg,backToTopIconColor,backToTopBorderColor,showTopBorder,borderColor}){return`\n        /* =========================\n           ROOT — 3-column grid guarantees:\n           [prev | center | next]  edge-to-edge\n           ========================= */\n        .${s}.pn-root {\n            box-sizing: border-box;\n            width: 100%;\n            display: grid;\n            grid-template-columns: 1fr auto 1fr;\n            align-items: center;\n            column-gap: 32px;\n            padding: 40px 80px;\n            background: ${backgroundColor};\n            font-family: \"Inter\", -apple-system, BlinkMacSystemFont,\n                \"Segoe UI\", sans-serif;\n            font-weight: 500;\n            font-size: 18px;\n            line-height: 1.4;\n            letter-spacing: -0.01em;\n            ${showTopBorder?`border-top: 1px solid ${borderColor};`:\"\"}\n        }\n\n        /* ----- Links ----- */\n        .${s} .pn-link {\n            display: inline-flex;\n            align-items: center;\n            gap: 14px;\n            color: ${textColor};\n            text-decoration: none;\n            cursor: pointer;\n            transition: color 220ms ease;\n            min-width: 0;          /* allow ellipsis inside grid track */\n            max-width: 100%;\n        }\n\n        .${s} .pn-link--prev { justify-self: start; }\n        .${s} .pn-link--next { justify-self: end; }\n\n        .${s} .pn-link:hover,\n        .${s} .pn-link:focus-visible {\n            color: ${hoverColor};\n            outline: none;\n        }\n\n        .${s} .pn-label {\n            white-space: nowrap;\n            overflow: hidden;\n            text-overflow: ellipsis;\n            min-width: 0;\n        }\n\n        .${s} .pn-arrow {\n            display: inline-flex;\n            align-items: center;\n            justify-content: center;\n            flex: 0 0 auto;\n            transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);\n        }\n\n        .${s} .pn-link--prev:hover .pn-arrow--prev {\n            transform: translateX(-5px);\n        }\n        .${s} .pn-link--next:hover .pn-arrow--next {\n            transform: translateX(5px);\n        }\n\n        /* ----- Center slot (always present, keeps grid stable) ----- */\n        .${s} .pn-center {\n            justify-self: center;\n            display: inline-flex;\n            align-items: center;\n            justify-content: center;\n            min-width: 48px;        /* reserves space even when toggled off */\n        }\n\n        /* ----- Back-to-top button ----- */\n        .${s} .pn-top {\n            width: 48px;\n            height: 48px;\n            border-radius: 999px;\n            border: 1px solid ${backToTopBorderColor};\n            background: ${backToTopBg};\n            color: ${backToTopIconColor};\n            display: inline-flex;\n            align-items: center;\n            justify-content: center;\n            cursor: pointer;\n            padding: 0;\n            transition:\n                background-color 220ms ease,\n                color 220ms ease,\n                border-color 220ms ease,\n                transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1),\n                box-shadow 220ms ease;\n        }\n\n        .${s} .pn-top:hover,\n        .${s} .pn-top:focus-visible {\n            background: ${backToTopHoverBg};\n            color: #ffffff;\n            border-color: ${backToTopHoverBg};\n            transform: translateY(-3px);\n            box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.35);\n            outline: none;\n        }\n\n        .${s} .pn-top:active { transform: translateY(-1px); }\n\n        /* =========================\n           TABLET (≤ 1199px → 810 frame)\n           ========================= */\n        @media (max-width: 1199px) {\n            .${s}.pn-root {\n                padding: 32px 48px;\n                font-size: 16px;\n                column-gap: 24px;\n            }\n            .${s} .pn-link { gap: 12px; }\n            .${s} .pn-top { width: 44px; height: 44px; }\n        }\n\n        /* =========================\n           MOBILE (≤ 809px → 390 frame)\n           ========================= */\n        @media (max-width: 809px) {\n            .${s}.pn-root {\n                padding: 20px 16px;\n                font-size: 12px;\n                column-gap: 10px;\n                grid-template-columns: 1fr auto 1fr;\n            }\n            .${s} .pn-link { gap: 6px; }\n            .${s} .pn-arrow svg { width: 10px; height: 10px; }\n            .${s} .pn-top {\n                width: 32px;\n                height: 32px;\n            }\n            .${s} .pn-top svg { width: 14px; height: 14px; }\n            .${s} .pn-center { min-width: 32px; }\n        }\n\n        /* Extra-small phones (≤ 380px): hide labels, keep just arrows + top */\n        @media (max-width: 380px) {\n            .${s}.pn-root {\n                padding: 18px 14px;\n                column-gap: 14px;\n            }\n            .${s} .pn-label {\n                position: absolute;\n                width: 1px;\n                height: 1px;\n                overflow: hidden;\n                clip: rect(0 0 0 0);\n                white-space: nowrap;\n            }\n            .${s} .pn-link { gap: 0; }\n        }\n    `;}/* Hash helper for the className scope */function hashCode(str){let hash=0;for(let i=0;i<str.length;i++){hash=(hash<<5)-hash+str.charCodeAt(i);hash|=0;}return hash;}/* ---------- Defaults ---------- */ProjectNavigation.defaultProps={previousLabel:\"Creative Thread\",previousLink:\"#\",nextLabel:\"URMC Website Redesign\",nextLink:\"#\",showBackToTop:true,backgroundColor:\"#0E0E10\",textColor:\"#C9C9CC\",hoverColor:\"#FFFFFF\",backToTopBg:\"rgba(255,255,255,0)\",backToTopHoverBg:\"#FFFFFF\",backToTopIconColor:\"#C9C9CC\",backToTopBorderColor:\"#C9C9CC\",showTopBorder:false,borderColor:\"#2A2A2E\"};/* ---------- Framer property controls ---------- */addPropertyControls(ProjectNavigation,{previousLabel:{type:ControlType.String,title:\"Prev Label\",defaultValue:\"Creative Thread\"},previousLink:{type:ControlType.Link,title:\"Prev Link\"},nextLabel:{type:ControlType.String,title:\"Next Label\",defaultValue:\"URMC Website Redesign\"},nextLink:{type:ControlType.Link,title:\"Next Link\"},showBackToTop:{type:ControlType.Boolean,title:\"Back to Top\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#0E0E10\"},textColor:{type:ControlType.Color,title:\"Text\",defaultValue:\"#C9C9CC\"},hoverColor:{type:ControlType.Color,title:\"Text Hover\",defaultValue:\"#FFFFFF\"},backToTopBg:{type:ControlType.Color,title:\"Top BG\",defaultValue:\"rgba(255,255,255,0)\"},backToTopHoverBg:{type:ControlType.Color,title:\"Top Hover BG\",defaultValue:\"#FFFFFF\"},backToTopIconColor:{type:ControlType.Color,title:\"Top Icon\",defaultValue:\"#C9C9CC\"},backToTopBorderColor:{type:ControlType.Color,title:\"Top Border\",defaultValue:\"#C9C9CC\"},showTopBorder:{type:ControlType.Boolean,title:\"Divider\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},borderColor:{type:ControlType.Color,title:\"Divider Color\",defaultValue:\"#2A2A2E\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ProjectNavigation\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"120\",\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"auto\",\"framerIntrinsicWidth\":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