Fixed #2653 Corrected selectors for gallery CSS. Fixes rendering in some themes, such as Twenty Twelve.