Section link takes me to top of page (wrong place!)

Hi all,

I have a pop up modal that appears when any of the ‘Learn more’ buttons are clicked. The modal appears at the center of the page, and I’d like to scroll the page automatically so that the modal becomes the center of the screen.

I’ve created an ID for the modal wrapper and section-linked to it on the buttons’ click, but it scrolls me to the top of the page, instead of to the modal. Any ideas on how to scroll correctly to the modal (or even make the modal appear fixed at the center of my screen on button click) would be greatly appreciated.

Here is my public share link: LINK

If it’s helpful, here is my published site as well: LINK

Hey there, did you find the fix? I’m having the same issues