Atelier product gallery¶
Atelier's product page gallery, reworked in November 2026 after trying the Ashgrove demo on a phone and a laptop.
What was wrong¶
- No zoom. Atelier drew its own stack of pictures, with none of the zoom the platform's gallery block has: no full-size view, no magnifier, no pinch zoom. A product page is where a shopper looks at the detail.
- Cropped photos. The stack repeated the listing's editorial rhythm: a 4:5 picture, then a square one, then a 3:4 one, offset left and right. Product photos are 4:5, so the second and third lost their top and bottom (an on-model shot lost the collar and the hem).
- A long way to the button on a phone. The pictures stacked down the page (one of them a small square), so Add to basket started about 960px down.
What shipped¶
- Every photo whole, in the shop's photo shape (
--product-image-ratio, 4:5 by default). From 1000px the first is large and the rest two to a row, beside a buy box that stays in view. - Phones: a swipeable strip (CSS scroll-snap, full width) with a "1 / 4" count
(
atelier.pdp.photoCount). Add to basket comes after one photo's height. - A full-screen viewer. Each photo is a link to its full size;
atelier.jsopens it in PhotoSwipe (the library Nova's gallery block uses, loaded on the product page only), with zoom and pan, arrow keys, swipe and pinch. Its wording comes fromfragment/gallery-labels, and it's on the shop's paper with ink controls rather than PhotoSwipe's black. Without the script a click opens the full-size photo. - A magnifier on desktop: the photo under a mouse pointer shows at twice its size, centred on the pointer. Not on touch screens, and not with reduced motion. The resized copy blurs at twice its size, so the first hover over a photo loads the original in the background and swaps it in once decoded.
- Resized copies on the page (
fit-in, with asrcsetfrom 600 to 1600px), the original only in the viewer and in a photo the magnifier has been used on. - Colour swaps still change the photos (
window.BadgerGalleryrebuilds the strip with the same markup).
Considered and left out¶
- Keeping the editorial sizes with zoom added. Zoom on a cropped picture still hides what the crop takes away, and the rhythm suits a listing, where a shopper is browsing, more than a product page.
- Thumbnails. On a page that shows every photo, they repeat the photos; the phone strip's count does the same job in less room.
- The platform's
productGalleryblock. It already has zoom, but it brings its own look; a site can still use it on Atelier (it replaces this gallery, as in every theme).