diff --git a/stylesheets/components/Lightbox.scss b/stylesheets/components/Lightbox.scss index cd97e792eb37..0c766edd1690 100644 --- a/stylesheets/components/Lightbox.scss +++ b/stylesheets/components/Lightbox.scss @@ -95,6 +95,13 @@ } &__object { + height: auto; + max-height: 100%; + max-width: 100%; + object-fit: contain; + outline: none; + width: auto; + &--container { display: inline-flex; flex-grow: 1; @@ -122,15 +129,6 @@ width: calc(100% - 80px); } } - - & { - height: auto; - max-height: 100%; - max-width: 100%; - object-fit: contain; - outline: none; - width: auto; - } } &__unsupported {