.modal-component.modal{
    top: 80px;
    overflow: auto;
}

.modal-component .modal-content {
    border: 1px solid rgba(134, 132, 135, 0.4);
    box-shadow: 2px 4px 4px 0 rgba(134, 132, 135, 0.25);
}

.modal-component .btn-close {
    cursor: pointer;
    pointer-events: visible;
    fill: #ccd1d9;
    color: #ccd1d9;
    top: 16px;
    right: 20px;
    width: 40px;
    height: 40px;
    padding: 0;
    /*
    border: 2px solid #ccd1d9;
    border-radius: 22px;
    background-color: rgba(204,0,0,0);
    */
    border: none;
    background-color: transparent;
    overflow: hidden;
    transition: background-color .4s ease,border-color .4s ease;
    /*
    border-color: #202020;
    background: #202020;
    */
    position: absolute;
    z-index: 1030;
}

.modal-component .btn-close .btn-close-icon {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 55px;
    height: 55px;
    fill: #ccd1d9;
    color: #ccd1d9;
    max-height: none;
    z-index: 2101;
    transition: fill .4s ease;
}

.modal-component:before {
    content: "";
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100dvh;
    opacity: 0.4;
    background-color: #000;
    display: block;
}

.modal-component .modal-header{
    height: 64px;
}

.modal-component .modal-body{
    overflow: auto; 
    max-height: calc(80vh - 80px);
    padding: 0;
}

.modal-component .modal-inner{
    overflow-y: auto; 
    height: 100%;
    padding: 1rem;
}

@media only screen and (max-width: 543.98px) {
    /*weird width otherwise*/
    .modal-component .modal-dialog {
        width: 97vw;
        height: unset;
    }
    .modal-component .modal-content {
        height: 100%;
        max-height: unset;
    }
}

@media only screen and (max-height: 489px) and (max-width: 992px) {
    .modal-component.modal{
        top: 10px;
    }
}
