You can add the following custom CSS rule to make the top bar transparent:
.pswp__top-bar {
background-color: rgba(0, 0, 0, 0);
}
However, keep in mind that the white symbols for zoom, fullscreen display etc. may be hard to see the the picture itself is very bright, that’s the reason why there is a background at all. The same applies to the caption on the bottom, if there is one, so you still can read the text, even if a picture is very bright in this area (the CSS class for the bottom bar is .pswp__caption).
If you want to have a darker background for those buttons only after you made the top bar transparent you may also add the following rule:
.pswp__button--close,
.pswp__button--zoom,
.pswp__button--fs,
.pswp__button--share {
background-color: rgba(0, 0, 0, 0.5) !important;
}
The last number (0.5) is the opacity of the background from 0 (tansparent) to 1 (opaque).
(My other reply got “hold for moderation” since I edited a typo too fast. To make sure you get my reply, here again)
You can add the following custom CSS rule to make the top bar transparent:
.pswp__top-bar {
background-color: rgba(0, 0, 0, 0);
}
However, keep in mind that the white symbols for zoom, fullscreen display etc. may be hard to see the the picture itself is very bright, that’s the reason why there is a background at all. The same applies to the caption on the bottom, if there is one, so you still can read the text, even if a picture is very bright in this area (the CSS class for the bottom bar is .pswp__caption).
If you want to have a darker background for those buttons only after you made the top bar transparent you may also add the following rule:
.pswp__button--close,
.pswp__button--zoom,
.pswp__button--fs,
.pswp__button--share {
background-color: rgba(0, 0, 0, 0.5) !important;
}
The last number (0.5) is the opacity of the background from 0 (tansparent) to 1 (opaque).