Customclass is properly removed when the lightbox is closed

Just this :point_up: 
so are you not .removeClass()'ing anywhere?