From a074498d0295c43482b6c65fc862aafa92d22170 Mon Sep 17 00:00:00 2001 From: gribse Date: Sun, 1 Jun 2025 11:01:00 +0200 Subject: [PATCH] Enhance figure styles in gallery for better alignment and centering --- static/css/hugo-easy-gallery.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/static/css/hugo-easy-gallery.css b/static/css/hugo-easy-gallery.css index 0931b64..54338df 100644 --- a/static/css/hugo-easy-gallery.css +++ b/static/css/hugo-easy-gallery.css @@ -59,6 +59,10 @@ figure styles figure { position:relative; /* purely to allow absolution positioning of figcaption */ overflow: hidden; + display: flex; + justify-content: center; + align-items: center; + flex-direction: column; } .gallery figure { position: absolute;