From 53fbbf354fc6e4f7af3cad413fbdd25f3a4ac254 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Fri, 5 Jul 2024 07:52:21 +0200 Subject: Lightbox --- src/objects/_lightbox.scss | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/objects/_lightbox.scss b/src/objects/_lightbox.scss index 48470c0..252e38a 100644 --- a/src/objects/_lightbox.scss +++ b/src/objects/_lightbox.scss @@ -117,13 +117,13 @@ $static-themes: 'black' 'white' !default; } @include iro.bem-elem('img') { - display: none; - box-sizing: border-box; - grid-area: content; - inline-size: 100%; - block-size: 100%; - padding: fn.dim(--pad); - object-fit: scale-down; + display: none; + box-sizing: border-box; + grid-area: content; + max-inline-size: 100%; + max-block-size: 100%; + place-self: center; + padding: fn.dim(--pad); @include iro.bem-sibling-elem('img') { @include iro.bem-modifier('default') { -- cgit v1.2.3-70-g09d2