Implemented front page gallery functionality and styled for different screen sizes. Refactored script loading in functions.