Cleaned up lightbox functionality.