BUGFIX: Missing semicolons on main.css file
Centers gallery images and refactors JavaScript