So I have been using the advice in this thread to customize the lightbox gallery image captions that comes with Webflow Designer:
I used that CSS and modified it further
<style>
.w-lightbox-caption {
position: absolute;
right: 0;
bottom: 0;
left: 0;
padding: 1em 1em;
/* background color */
background: white;
font: bold 0.75em "Montserrat", sans-serif;
text-align: center;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
/* text color */
color: black;
opacity: 95%
}
</style>
I put this code in an HTML Embed tag so that I could preview the changes without having to publish my site. It appeared to work at first but when I chose a higher breakpoint (1280px) the caption would cut off. This would carry over to the default breakpoint (992px) until I left preview mode and returned to it.
I’m thinking that I need to look at the media queries and tweak them but it’s hard to find them when I check the code in Webflow and due to my subscription I can not export the code to look at it closer.
What’s also strange is if I start with the bigger breakpoint (1280px) the caption does not cut off.
But if I switch to the smaller breakpoint (992px) then the text cuts off
Here is my site Read-Only: [LINK]1
(how to share your site Read-Only link)