.modal-layout { background: $ui-base-color url('data:image/svg+xml;utf8,') repeat-x bottom fixed; display: flex; flex-direction: column; height: 100vh; padding: 0; } .modal-layout__mastodon { display: flex; flex: 1; flex-direction: column; justify-content: flex-end; > div { flex: 1; max-height: 235px; position: relative; img { max-height: 100%; max-width: 100%; height: 100%; position: absolute; bottom: 0; left: 0; } } } @media screen and (max-width: $column-breakpoint) { .account-header { margin-top: 0; } }