#modal-onload .modal-dialog {
    height: calc(100vh - 2rem);
    margin: 1rem auto;
}

#modal-onload .modal-content {
    max-height: 100%;
}

#modal-onload .modal-body {
    overflow-y: auto;
}

#modal-onload .modal-body picture {
    display: flex;
    justify-content: center;
}

#modal-onload .modal-body img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: calc(100vh - 7rem);
    height: auto;
    margin-right: auto;
    margin-left: auto;
    object-fit: contain;
}
