Video overlay jQuery show/hide

I’m looking for the default jQuery used to show and hide a video overlay that I’ve generated with the button and lightbox shortcodes. I’m adding an ‘X’ close button to the video lightbox and would like to find the appropriate selector to hide the lightbox when the ‘X’ is clicked.

EDIT: I’m realizing I can’t just add the ‘X’ close button since the overlay content doesn’t exist on page - not without adding a watcher that will add the close button once the overlay container appears but that seems ineffecient.

With that being said, is there a recommended method to adding an ‘X’ close button to the video overlay. I’m not looking for custom development. Just a little theme knowledge to guide my approach.

EDIT-2: After some more searching it looks like the theme used to include an ‘X’ close button in the video overlay. Is that correct?

Hi There,

Yes, there’s an X button by default to close video lightbox. See this: https://screencast-o-matic.com/watch/cbQ2fzIDc3