Added overlay behavior for opening and closing of lightbox.