Made lightbox adapt to mobile. Cleaned up code.