Thanks for your prompt reply! This is really cool.
I got the custom template to work, didn’t come to mind I had to change the actual css content, because I though it was generated by the gallery.php but nevermind.
As to loading the CSS — how would you solve this? wp_enqueue_style() or just always load it or something else maybe?