.team-member-wrapper {
    background-color: white;
    position: relative;
    margin-top: 1em;
    display: grid;
    grid-template-row: 1fr 1fr;
}

.team-member-photo img {
    max-width: 100%;
    display: block;
    vertical-align: bottom;
}

.team-member-wrapper:hover .team-member-panel-hover {
    opacity: 1;
}

.team-member-panel {
    position: relative;
    text-align: center;
    background: #58636e;
    color: white;
}


.team-member-panel h4 {
    margin-bottom: 0;
    padding-bottom: 1em;
}

.team-member-panel-info {
    padding: 0em 1em 0.5em 1em;
}

.team-member-panel-info p {
    margin-top: 0;
}

.close-modal-container {
    position: fixed;
    background: white;
    width: 100%;
    z-index: 9999;
}

.close-modal {
    padding: 0em 1em;
    margin: 1em 1em;
    width: fit-content;
    border: 1px solid;
    height: 25px;
    line-height: 25px;
    cursor: pointer;
    display: table;
}

.close-modal:hover {
    background-color: rgb(249, 249, 249);
}

.modal-content {
    padding: 0em 1em;
    margin-top: 60px;
}

.team-member-panel-modal .rich-text {
    line-height: 1.2em;
    font-size: 1.1em;
}

.team-member-info-container-modal h1::after {
    content: ' ';
    display: block;
    margin: 16px 0;
    width: 60px;
    height: 8px;
    background: #f2e400;
}

.richtext-image {
    display: block;
    margin: auto;
}

.team-member-panel-info-modal {
    padding-bottom: 1em;
}


@media only screen and (min-width: 870px) {
    .team-member-wrapper {
        margin-top: 0;
    }

    .team-member-wrapper {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: unset;
    }

    .team-member-info-container {
        position: absolute;
        top: 50%;
        transform: translate(0, -50%);
    }

    .opposite-img {
        grid-column: 2/2;
    }

    .opposite-panel {
        grid-column: 1/1;
        grid-row: 1/1;
    }

    .close-modal {
        margin: 1em 10em;
    }

    .modal-content {
        padding: 0em 10em;
    }
}

/*.team-member-panel-info {
    position: absolute;
    height: 90%;
    width: 90%;
    top: 50%;
    right: 50%;
    border-radius: 10px;
    background-color: white;
    transform: translate(50%, -50%);
    opacity: 0;
    transition: opacity .15s ease-in-out;
}*/