Mobile site styling and functions

gallery fixes to both desktop and mobile, tidy up of javscript across
the site.