Gallery: Firefox compliant stylesheet usage

*fix #488