Improved Q/gallery tool CSS