Jump to content

Simple gallery captions in bold font too large on mobile

Recommended Posts

Posted

Site URL: https://www.elizabundledee.com/bitch-medicine-copy

Hi! 

I have a Simple gallery section with captions set to appear on hover. In order for them to be visible I made the captions bold font. All appears just exactly how we want it on the desktop view but the caption is too large on the mobile view and gets cut off. I am open to style suggestions how to resolve this.  Here is the code I have in place now: 

.gallery-caption p {text-align:center}
.gallery-caption p {color: white; font-size: 1rem; font-weight:bold !important;} 


.gallery-caption {
position: absolute;
top: 0;

left: 0;
background: rgba(0,0,0,0.4); /* overlay color */
height: 100%;
max-width: unset;
padding: 0;
opacity: 0;
}
.gallery-caption-wrapper {

display: flex;
align-items: center; /* center vertically */
justify-content: center !important;/* center horizontally */
}
.gallery-caption-content {
font-size: 2rem !important; /* caption font size */
color: white; /*caption font color */
}
.gallery-grid-item {
position: relative;
}

.gallery-grid-item:hover .gallery-caption {
opacity: 1;
}
.gallery-caption-grid-simple {
transition-delay: 0ms;
}

 Any suggestions welcome. Thank you! 

IMG_42A6CC6AC065-1.jpeg

  • Replies 2
  • Views 764
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.