.modal_remove {
    position: fixed;
    display: none;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8); 
    z-index: 995; 
}

.show {
    display: flex;
    transition: 0.4s all ease-in-out;
}

.close_button_wrapper {
    display: none;
    position: relative;
    z-index: 20;
    padding-left: 15px;
    padding-bottom: 15px;
    width: max-content;
    margin-left: auto;
}

.close_button {
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    color: var(--white);
}

.close_button i {
    position: absolute;
    font-size: 20px;
    top: 40px;
    right: 40px;
    height: 52px;
    width: 52px;
    border-radius: 26px;
    color: var(--white);
    -webkit-text-stroke: 1px black;
    -webkit-font-smoothing: antialiased;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--orange);
    cursor: pointer;
    opacity: 1;
    border: 2px solid var(--black);
    box-shadow: 0px 5px 0px #00000026;
    box-sizing: border-box;
    z-index: 999;
}

.mobile_close_button {
    display: none;
}

.map_modal {
    position: relative;
    background-color: var(--white);
    border: 2px solid var(--border-grey);
    box-sizing: border-box;
    z-index: 995;
    padding: 40px 20px 40px 40px;
    width: 830px;
    border-radius: 40px;
    height: max-content;
    max-height: 555px;
    animation-name: animateup;
    animation-duration: 0.4s;
}

.modal_wrapper {
    position: relative;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal_wrapper h3 {
    margin-top: -10px;
    margin-bottom: 0;
    color: var(--melon);
    font-size: 42px;
}

.modal_wrapper p {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.modal_wrapper p span {
    font-weight: 700;
}

.modal_wrapper p span i {
    width: 30px;
}

.modal_wrapper .separator {
    height: 2px;
    background-color: var(--grey);
    width: 100%;
    margin: 5px 0;
}

.modal_wrapper .team_details {
    border-radius: 0;
    padding: 0;
    margin-left: 0;
    margin-top: 0;
    border: none;
    box-shadow: none;
    width: calc(100% - 350px);
}

.modal_wrapper .team_details .team_bio {
    margin-bottom: 0;
    max-height: 350px;
    overflow-y: scroll;
    padding: 0 20px 0 0;
    box-sizing: border-box;
}

/* width */
.modal_wrapper .team_details .team_bio::-webkit-scrollbar {
    width: 4px;
}
  
/* Track */
.modal_wrapper .team_details .team_bio::-webkit-scrollbar-track {
    background: #E8E7E3;
}
  
/* Handle */
.modal_wrapper .team_details .team_bio::-webkit-scrollbar-thumb {
    background: var(--yellow);
}

.team_bio_member {
    width: 300px;
    margin-right: 40px;
    margin-top: 0;
    transform: rotate(2deg);
}

.team_bio_member .team_thumbnail {
    aspect-ratio: 0.75;
}

.modal_wrapper .team_role {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--blue);
    border: 2px solid var(--black);
    border-radius: 30px;
    height: 46px;
    width: max-content;
    padding: 0 15px;
    font-weight: 600;
    margin-top: 5px;
    margin-bottom: 20px;
    box-shadow: 0px 5px 0px #00000026;
}

@keyframes animateup {
    from {bottom: -500px; opacity: 0}
    to {bottom: 0; opacity: 1}
}

@media (max-width: 1250px) {
    .close_button i {
        position: absolute;
        font-size: 20px;
        top: 20px;
        right: 20px;
    }
}

@media (max-width: 1100px) {
    .map_modal {
        width: calc(100% - 40px);
        margin: 0 auto;
    }
}

@media (max-width: 800px) {
    .modal_wrapper {
        align-items: flex-start;
    }

    .team_bio_member {
        width: 160px;
        margin-right: 40px;
    }

    .modal_wrapper .team_details {
        width: calc(100% - 200px);
    }
}

@media (max-width: 700px) {
    .modal_remove {
        height: 100vh;
    }

    .modal_wrapper {
        flex-direction: column;
        align-items: center;
        margin-top: -170px;
    }

    .modal_wrapper .team_details {
        width: 100%;
    }

    .modal_wrapper .team_name {
        text-align: center;
        margin-top: 40px;
    }

    .modal_wrapper .team_role {
        margin: 5px auto 20px;
    }

    .map_modal {
        height: max-content;
        max-height: 700px;
        margin-top: 85px;
    }

    .team_bio_member {
        margin-right: 0;
    }
}