.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    padding: 5px;
    margin: auto;
    width: 80%;
    top: 50%;
    left: 50%;
    max-width: 800px;
    position: fixed;
    display: flex;
    align-items: center;
    /* min-height: 100%; */
    transform: translate(-50%, -50%);
    background: transparent;
    border: none;
    z-index: 99991;
}

.modal-fade .modal-content .content{
    animation: fadeIn 0.375s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content .content{
    width: 100%;
    background: #a9d5f3;
    border: 2px solid var(--clr-border-primary);
    padding: 15px 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px 5px rgba(0,0,0, 55%);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover, .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-only-image .content{
    padding: 0;
    border: none;
    background: transparent;
    display: flex;
    box-shadow: none
}

.modal-only-image .modal-image-wrapper{
    position: relative;
    margin: auto;
}

.modal-only-image .modal-image-wrapper img{
    max-height: 95vh;
    width: 100%;
    border-radius: 5px;
    border: 1px solid var(--clr-border-primary);
    margin: auto;
    max-width: 400px;
    filter: drop-shadow( 0 0 6px black)
}

.modal-only-image .btn-close-modal{
    top: -8px;
    right: -8px;
    z-index: 2;
}

