Streaming live at 10am (PST)

Div auto resets to block and not Flex

I am using a simple bit of javascript [see below] to open/close a modal form. The modal wrapper is set to Flex to center form on the page. When I set the modal wrapper to display none and publish the site for testing, it is putting the modal wrapper back to block and not Flex…thus the form is in top left and not centered. Thoughts? suggestions?

Here is my read-only link:
https://preview.webflow.com/preview/bgucc?utm_medium=preview_link&utm_source=dashboard&utm_content=bgucc&preview=b848c08be12a12cde3e32a02c9ea21e6&mode=preview

Here is the javascript I’m using: