Revert "Fix #795: Close lightbox only if buttons, ESC key or the X icon is pressed"

This reverts commit 54cbfd9c921f5397b228bdb0195dba4707de2902.