updated `ModalOverlay` component by changing `background-color` of overlay to hex value because hex values are more frequently used in the codebase, and changed `useEffect` to `useLayoutEffect`. [[ Linear Task: [[ https://linear.app/comm/issue/ENG-2038/refactor-modal-into-lib | ENG-2038 ]] | Reasoning for that here ]]