From 3ac7e9c549ad81840b6cf815a3271cd82bfe3ec9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Sat, 11 Apr 2026 18:37:33 +0200 Subject: [PATCH] fix: lightbox chrome z-index and layout alignment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Root cause: media container was position:absolute inset-0 but without z-index, while buttons had no z-index either — in fill mode the image painted over the buttons making close/fill-toggle unclickable. Fixes: - Media div is now absolute inset-0 (explicit), chrome bars are z-10 - Top bar is a single flex row (h-14): left spacer | counter | FILL+✕ so counter, fill toggle and close are vertically aligned at the same height instead of scattered absolute elements - Bottom bar is a flex row (h-14) centred over dots - Both bars have a linear-gradient scrim so chrome stays legible over fill-mode images without a solid background - Prev/Next arrows get z-10 so they always sit above the media - Media padding uses pt-14 pb-14 in fit mode to clear the chrome bars Co-Authored-By: Claude Sonnet 4.6 --- layouts/posts/single.html | 74 ++++++++++++++++++++------------------- 1 file changed, 38 insertions(+), 36 deletions(-) diff --git a/layouts/posts/single.html b/layouts/posts/single.html index fe10eb6..62fd1fa 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -169,43 +169,46 @@ aria-modal="true" aria-label="Media lightbox" > - -
+ +
+ +
+ +
+ +
+ +
+ + +
+
- -
- - - - - - - - + - +
- -
- + - -
+ +
+
- - -