Jump to content

Looking to Shrink Summary Block Lightbox Gallery

Go to solution Solved by Beyondspace,

Recommended Posts

Site URL: http://www.ericorr.squarespace.com/news

I'm looking to shrink down the lightbox on this page when you click the image next to "Copenhagen Contemporary Light and Space Exhibition" so that it doesn't pop up full screen and having trouble getting the code to work for me. Simply adding padding or manipulating the width distorts the image or leaves it not centered. Is there a simple solution to this I'm overlooking

Password is sitedraft

Link to comment
3 hours ago, SarahBoess said:

Site URL: http://www.ericorr.squarespace.com/news

I'm looking to shrink down the lightbox on this page when you click the image next to "Copenhagen Contemporary Light and Space Exhibition" so that it doesn't pop up full screen and having trouble getting the code to work for me. Simply adding padding or manipulating the width distorts the image or leaves it not centered. Is there a simple solution to this I'm overlooking

Password is sitedraft

You want to make the image smaller or the whole lightbox with black background smaller?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date format)
💫 Animated Buttons (Referral URL)
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
  • Solution
2 hours ago, SarahBoess said:

@bangank36 The whole lightbox, ideally.

Try

#collection-619d2a8d23577313a95734b3 .sqs-lightbox-padder {
  height: 80vh !important;
  width: 80vw !important;
  position: relative !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%)
 
}

#collection-619d2a8d23577313a95734b3 .sqs-lightbox-padder img  {
  position: absolute;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%);
}

Let me know how it works on your site

Support me by pressing 👍 if this useful for you

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date format)
💫 Animated Buttons (Referral URL)
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

My testing result

image.thumb.png.df0f07d61ee48453b81b94e4f39a5532.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date format)
💫 Animated Buttons (Referral URL)
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. 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.