From 7d9a1ed70411b66a7cbdb11fb99aa427e972572a Mon Sep 17 00:00:00 2001 From: Alexander Wainwright Date: Sun, 13 Apr 2025 17:14:42 +1000 Subject: [PATCH] Fix images too big for portrait --- src/stills/templates/style.css | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/stills/templates/style.css b/src/stills/templates/style.css index 4354f3a..84663d8 100644 --- a/src/stills/templates/style.css +++ b/src/stills/templates/style.css @@ -54,6 +54,18 @@ body { animation: fadeInScale 1s ease forwards; } +.content img { + max-width: 90vw; + max-height: 90vh; + object-fit: contain; + height: auto; + width: auto; +} + +.gallery img:hover { + transform: scale(1.2); +} + .gallery img[src], .content img[src] { opacity: 1;