/* ==========================================================================
   Remodal's necessary styles
   ========================================================================== */


/* Hide scroll bar */

html.remodal-is-locked {
    overflow: hidden;
    touch-action: none;
}


/* Anti FOUC */

.remodal,
[data-remodal-id] {
    display: none;
}

/* Necessary styles of the overlay */

.remodal-overlay {
    background: #f9f8f3 !important;
    opacity: 0.8;
    position: fixed;
    z-index: 9999;
    top: -5000px;
    right: -5000px;
    bottom: -5000px;
    left: -5000px;
    display: none;
}


/* Necessary styles of the wrapper */

.remodal-wrapper {
    position: fixed;
    z-index: 10000;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    overflow: auto;
    text-align: center;
    -webkit-overflow-scrolling: touch;
}

.remodal-wrapper:after {
    display: inline-block;
    height: 100%;
    margin-left: -0.05em;
    content: "";
}


/* Fix iPad, iPhone glitches */

.remodal-overlay,
.remodal-wrapper {
    backface-visibility: hidden;
}


/* Necessary styles of the modal dialog */

.remodal {
    position: relative;
    outline: none;
    text-size-adjust: 100%;
}

.remodal-is-initialized {
    /* Disable Anti-FOUC */
    display: inline-block;
}

.remodal .flex_wrap {
    display: flex;
    justify-content: space-between;
    background-color: #26c5cf;
}

.remodal .flex_wrap_inner {
    display: flex;
    align-items: center;
    width: calc(100% - 240px);
}

.remodal .flex_wrap .teacher_name,
.remodal .flex_wrap .teacher_profile {
    padding: 30px;
    color: #FFF;
    font-size: 1.2em;
    font-weight: bold;
    box-sizing: border-box;
}

.remodal {
    max-width: 1200px !important;
    border-radius: 20px;
    box-shadow: 0px 0px 11px 0px rgba(158, 158, 158, 0.35);
}

.remodal .flex_wrap .teacher_name {
    width: 100%;
}

.remodal .flex_wrap .teacher_name p {
    text-align: center;
    font-size: 1.5em;
    letter-spacing: 0.1em;
}

.remodal .flex_wrap .teacher_pic {
    width: 240px;
    height: 300px;
}

.remodal .flex_wrap .teacher_pic img {
    width: 240px;
    height: 300px;
    object-fit: cover;
}

.remodal h2 {
    font-size: 1.1em;
    border: 1px solid #000;
    text-align: left;
    padding: 8px;
    margin-top: 25px;
}

.remodal p {
    text-align: left;
    font-size: 0.9em;
    line-height: 170%;
}

@media screen and (max-width: 739px) {
    .remodal {
        padding: 30px 15px !important;
    }

    .remodal p {
        font-size: 0.8em;
    }

    .remodal h2 {
        font-size: 0.9em;
        padding: 6px 8px;
        margin-top: 17px;
    }

    .remodal .flex_wrap {
        align-items: center;
    }

    .remodal .flex_wrap_inner {
        display: block;
        width: 60%;
    }

    .remodal .flex_wrap .teacher_name {
        width: 100%;
        border-right: none;
    }

    .remodal .flex_wrap .teacher_name p {
        text-align: center;
        font-size: 1em;
    }

    .remodal .flex_wrap .teacher_name,
    .remodal .flex_wrap .teacher_profile {
        padding: 0;
    }

    .remodal .flex_wrap .teacher_pic {
        width: 40%;
        height: auto;
    }

    .remodal .flex_wrap .teacher_pic img {
        width: 100%;
        height: auto;
    }
}

@media screen and (min-width:740px) and (max-width: 959px) {
    .remodal .flex_wrap {
        align-items: center;
    }

    .remodal .flex_wrap .teacher_name {
        width: 100%;
    }

    .remodal .flex_wrap .teacher_name p {
        text-align: center;
        font-size: 1.3em;
    }

    .remodal .flex_wrap .teacher_profile p {
        font-size: 0.9em;
    }
}

@media screen and (min-width:450px) and (max-width: 739px) {
    .remodal .flex_wrap .teacher_name p {
        text-align: center;
        font-size: 1.3em;
    }

    .remodal .flex_wrap .teacher_profile p {
        font-size: 0.9em;
    }
}