Template:Gallery/styles.css

.gallery-bgblack img { background: black; }