hacking gallery links css to look good at all screen sizes