Adding viewport in gallery template + fix in default css