Fixed a bug with the centering of the progress circle while the lightbox was opening. Added code to cancel incomplete grid collection animations when needed. Fixed a bug relating to grid opening and closing and the collection collapsing. Reformatted all of my code using PHPStorm's auto-formatting tools.