.modal-overlay {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,.5);
    margin: 0 !important;
}

.modal {
    overflow: hidden;
    position: relative;
    /*max-width: 90%;*/
    width: 50%;
    max-height: 90%;
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-between;
    background-color: #FFFFFF;
    padding: 2rem;
}

.modal-get-article {
    width: 40%;
}

.modal-content {
    overflow: auto;
    height: 100%;
}

.modal-footer {
    flex-shrink: 0;
    flex-grow: 0;
    width: 100%;
    background-color: #f5f5f5;
    margin-top: 1rem;
}

.modal-article-figures {
    width: 90%;
    max-width: 1100px;
    max-height: min(550px, 90%);
    padding: 50px 40px 80px;
    overflow-y: auto;
}
.modal-article-figures .breadcrumbs {
    max-width: 100%;
    margin-bottom: 3rem;
}

.modal-close {
    position: absolute;
    width: 30px;
    height: 30px;
    top: 14px;
    right: 14px;
    background: url('/i/icon-close.svg') no-repeat center;
    cursor: pointer;
}

.special-panel-buttons {
    margin-top: 1rem;
}

.modal-qrcode {
    width: 300px;
}

.modal-qrcode-code {
    padding: 5px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-qrcode-title {
    text-align: center;
    padding: 10px 10px 5px;
}

@media (max-width: 1023px) {
    .modal, .modal-get-article {
        width: 50%;
    }
    .modal-article-figures {
        width: 90%;
        padding-bottom: 60px;
    }
    .modal-article-figures .breadcrumbs > a:last-of-type { padding: 0; }
}

@media (max-width: 767px) {
    .modal, .modal-get-article {
        width: 90%;
    }
    .modal-article-figures { padding: 40px 20px 20px; }
    .modal-article-figures .breadcrumbs { margin-bottom: 1rem; }
}