diff --git a/src/assets/css/bundle/gallery.css b/src/assets/css/bundle/gallery.css index 20d7a01..3f6a25d 100644 --- a/src/assets/css/bundle/gallery.css +++ b/src/assets/css/bundle/gallery.css @@ -20,6 +20,11 @@ is-land:not(:defined) .gallery dialog + button { } .gallery dialog img { + aspect-ratio: auto; max-block-size: 70vh; inline-size: auto; } + +.gallery dialog figcaption { + color: currentColor; +} diff --git a/src/assets/css/global/blocks/prose.css b/src/assets/css/global/blocks/prose.css index 8cb0df5..0fcb702 100644 --- a/src/assets/css/global/blocks/prose.css +++ b/src/assets/css/global/blocks/prose.css @@ -17,11 +17,6 @@ border-bottom: 1px solid var(--color-bg-accent); } -/* light text colour for captions shown against the dark gallery backdrop */ -.prose .gallery dialog.flow figcaption { - color: var(--color-base-light); -} - :where(.prose :is(h2, h3, h4)) { --flow-space: var(--space-xl); }