Customize CSS for "Swipebox " lightbox

I'm using Awesome Flickr Gallery, a plugin to show Flickr galleries on a website; it uses "Swipebox" to display single pictures on a lightbox.

The lightbox display two bars, on to and bottom of the screen, di display information and provide navigation controls. I'm trying to customize those bars to match the site fonts and colors, but without success.

By inspecting the relevant items with Chrome, I get that these elements are div id="swipebox-top-bar" class="visible-bars" and div id="swipebox-bottom-bar" class="visible-bars"

This is my custom code:

#swipebox-top-bar, #swipebox-bottom-bar {
    font-family: Montserrat,Helvetica,Arial,sans-serif !important;
    text-transform: uppercase !important;
    font-weight: bold !important;
    text-shadow: 1px 1px 1px #000 !important;
    background: #A01921 !important;
    opacity: .80 !important;
}

I've tried various combinations, not only the shown #swipebox-bottom-bar, #swipebox-top-bar, but also div#swipebox-bottom-bar, div#swipebox-top-bar, div#swipebox-bottom-bar.visible-bars, div#swipebox-top-bar.visible-bars, visible-bars, but nothing seem to work.

How can I successfully customize these elements?

Topic lightbox flickr css plugins Wordpress

Category Web


I wish I could ask these questions via a comment but I need 50 reputation to do so...

But anyhow, have you inspected the elements after applying the CSS to see if it's actually being loaded in and applied? Secondly, have you checked whether they are being overwritten by existing CSS if it is indeed applied?

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.