Lightbox Mousein/Mouseout problem

Hello, I am trying to set up a lightbox with mousein/mouseout. I read many examples but seems they are not working.
mouseIn is working with below code (on masterPage) but I can’t figure out the mouseOut code properly.

$w.onReady( function () {
});
import window from ‘wix-window’ ;
export function button6_mouseIn(event, $w) {
window.openLightbox( ‘Curated_Projects’ )
}
export function button6_mouseOut(event, $w) {
window.Lightbox.close( ‘Curated_Projects’ )
}

A Lightbox is opened from the page - as you have done. However, closing a Lightbox is done from the Lightbox’s code itself. See the sample code snippets in the API .

For what you are trying to do (mouseIn/mouseOut) you should use a Box .

Thank you for your reply, I tried to add the code in the Lightbox but it didn’t work. I am trying to add menu to button on main page. I also disabled all other way to close Lightbox. I never did coding but I will try to figure it out, if you can assist further it would be great.
foxheights dot come (the button is curated projects)