I'm looking for some help to change the font of my customised photo grid captions. I currently have the following code for my homepage photo grid gallery which uses an overlayed caption that fades in and out on mouse hover. Please feel free to visit my site to see it in action. I'm looking to set a different font for the captions on this grid. My sit paragraph 2 front is currently set to "Bebas Neue" which is also my paragraph 1 and site title. However, I want my paragraph 2 font to be a simple Adobe font such as Adobe Calson Pro or a similar easy-to-read font. But I wish for my paragraph 2 text on my caption overlay on the homepage to remain as Bebas Neue to stay consistent with my brand. I'm unsure how to make this work as I'm still quite new to learning CSS code. Any help would be appreciated, this is my current code for this section:
@media screen and (max-width:767px) {
div.gallery-grid-wrapper {
grid-template-columns: repeat(1,1fr) !important;
}}
.gallery-grid .gallery-caption {
position: absolute;
top: 0;
left: 0;
background: rgba(0,0,0,0); // overlay color
height: 100%;
padding: 0;
opacity: 0;
pointer-events: none;
}
.gallery-grid .gallery-caption-wrapper {
display: flex;
align-items: center; // center caption box vertically
justify-content: center; // center caption box horizontally
}
.gallery-grid .gallery-caption-content {
font-size: 1rem !important; // caption font size
color: white; //caption font color
padding: 1vw; // padding around the caption
text-align: center; // center text within caption box
}
.gallery-grid-item {
position: relative;
}
.gallery-grid-item:hover .gallery-caption {
opacity: 1;
}
.gallery-caption-grid-simple {
transition-delay: 0ms;
max-width: unset;
}