/* Toggle inbetween display none and flex */
.member-modal-backdrop {
    position: fixed;
    min-height: 100vh;
    min-width: 100vw;
    background-color: rgba(112,112,112,0.5);
    top: 0;
    left: 0;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
.member-modal-container {
    position: relative;
    background: #F0EDF4;
    padding: 50px;
    width: 900px;
    max-height: 100vh;
    min-height: 600px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 30px 0;
    color: #707070;
    font-size: 18px;
    animation: fadeIn 1s forwards;
}
@media only screen and (max-width: 899.98px) {
    .member-modal-container {
        width: 100%;
    }
}
.member-modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    cursor: pointer;
}
.member-modal-main {
    display: flex;
}
.member-modal-image {
    flex: 0 0 30%;
}
.member-modal-image img {
    border-radius: 0.5em;
    width: 100%;
    max-width: 300px;
    height: auto;
}
.member-modal-details {
    flex: 0 0 70%;
    display: flex;
    flex-direction: column;
    margin: 50px;
    justify-content: center;
    align-items: flex-start;
    gap: 10px 0;
}
.member-info {
    line-height: 1.2;
}
.member-modal-name {
    color: #553C80;
    font-size: 2em;
    font-weight: bold;
}
.member-modal-title {
    font-size: 1em;
    color: #707070;
}
.member-contact-label {
    font-weight: bold;
}

@media only screen and (max-width: 899.98px) {
    .member-modal-main {
        flex-direction: column;
        align-items: center;
    }
    .member-modal-details {
        margin: 30px 50px;
    }
    .member-modal-container {
        gap: 0;
    }
}

@media only screen and (max-width: 767.98px) {
    .member-modal-main {
        display: block;
        text-align: center;
    }
}