From 065bd0a86aa749eeea557892665f7ba6dfd6d9da Mon Sep 17 00:00:00 2001 From: Bendik Aagaard Lynghaug Date: Tue, 1 Sep 2026 21:42:20 +0200 Subject: [PATCH] Single alt-image shows natural height Was cropped to a 14rem band via object-fit: cover; now shows the whole image at natural aspect, bounded at 32rem so a tall one can't tower. The image deck keeps its fixed-height cards. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01Y42TyF8Zu7NGRR2893vNcZ --- style/main.css | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/style/main.css b/style/main.css index 1822019..1329720 100644 --- a/style/main.css +++ b/style/main.css @@ -368,8 +368,12 @@ main.not-found { .alt-image { display: block; width: 100%; - max-height: 14rem; - object-fit: cover; + height: auto; + /* Natural aspect, not a cropped band; a very tall image is still + bounded so it can't tower. The deck below overrides for its + fixed-height cards. */ + max-height: 32rem; + object-fit: contain; border-radius: calc(var(--radius) - 0.3rem); margin-bottom: 1.1rem; }