Jump to content

Gallery lightbox with added descriptions, images distorted

Go to solution Solved by tuanphan,

Recommended Posts

Site URL: https://www.monicaherndon.com/sportsgallery 

Hello, 

I added CSS to my site to show descriptions on each photo in the gallery lightbox. Now the images are distorted when viewed in the lightbox. How can I fix that? 

This is the CSS code I currently have on my site:

.collection-type-gallery #slideshowWrapper .image-description {
    text-align: center;
    width: 100%;
    padding: 10px 0px 0;
    background: #fff;
    display: block;
    position: relative;
    bottom: 0px;
    margin-top: 0px;
      margin-bottom: 25px;
}

.collection-type-gallery #slideshowWrapper .sqs-gallery-design-stacked-slide img {
    max-height: 90%;
    margin: 0 auto !important;
      margin-left: auto;
      margin-right: auto;
    top: 0 !important;
}

.collection-type-gallery #slideshowWrapper .sqs-gallery-design-stacked-slide .sqs-video-wrapper.video-fit { 
      position: sticky;
    max-height: 100%;
    width: 800px !important;
    margin: auto;
    top: 50%;
    left: 50%;
    transform: translate(0%, 0%);
    right: auto !important;
}

.collection-type-gallery #slideshowWrapper .sqs-gallery-design-stacked-slide .sqs-video-wrapper.video-fit .intrinsic-inner {
    text-align: center;
}

Thank you!

Link to comment
  • Solution

Try this new code

/* adjust something */
.collection-type-gallery #slideshowWrapper .sqs-gallery-design-stacked-slide img {
    width: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}
.collection-type-gallery #slideshowWrapper .image-description {
    text-align: center;
    width: 100%;
    padding: 10px 0px 0;
    background: #fff;
    display: block;
    position: relative;
    bottom: 0px;
    margin-top: 0px;
      margin-bottom: 25px;
}

.collection-type-gallery #slideshowWrapper .sqs-gallery-design-stacked-slide img {
    max-height: 90%;
    margin: 0 auto !important;
      margin-left: auto;
      margin-right: auto;
    top: 0 !important;
}

.collection-type-gallery #slideshowWrapper .sqs-gallery-design-stacked-slide .sqs-video-wrapper.video-fit { 
      position: sticky;
    max-height: 100%;
    width: 800px !important;
    margin: auto;
    top: 50%;
    left: 50%;
    transform: translate(0%, 0%);
    right: auto !important;
}

.collection-type-gallery #slideshowWrapper .sqs-gallery-design-stacked-slide .sqs-video-wrapper.video-fit .intrinsic-inner {
    text-align: center;
}

image.thumb.png.c1f4831a24ca4ec299c63c029d717eaf.png

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

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.