.modal {
    background-color: rgba(0, 0, 0, 0.4);
    position: fixed;
    top: 0px;
    left: 0px;
    bottom:0px;
    right:0px;
    width: 100%;
    height: 100%;
    overflow: auto;
    display: none;
    padding: 0px;
    z-index: 9999;
}
    
.modal-inner {
    background-color: #fff;
    width: 96%;
    max-width:940px;
    box-sizing: border-box;
    margin: 2% auto 2% auto !important;
    height: 100%;
}

@media (max-width:990px){
    .modal-inner {
        width:100%;
        margin:0% !important;
    }
}

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

.modal-text-inner {
    background-color: #fff;
    width: 60%;
    box-sizing: border-box;
    margin:3% 20% !important;
    height:60%;
}

@media (max-width:990px){
    .modal-text-inner {
        width: 100%;
        margin:0% !important;
    }
}

.modal .close-button{
    position:relative; 
    text-align:right;
    cursor:pointer; 
    font-size:28px; 
    font-weight:500;
    color:#fff;
    background-color: var(--color2);
    line-height: 0.7em;
    padding:15px 18px;
}

.modal-text-inner .close-button{
    position:relative;
    right:0;
}

.academy-block-modal{
    position:relative; 
    margin:auto;
    padding:0;
    color:#333;
    overflow: hidden;
}

.academy-block-modal__content{
    padding-top:30px;
    max-width:900px;
    margin:auto;
}

@media (max-width:990px){
    .academy-block-modal__content{
        padding:15px;
    }
}

.academy-block-modal iframe{
    width:100% !important;
    max-height:280px !important;
}

/* VIDEO IFRAME FOR bigmobile */
@media (min-width:690px){
    .academy-block-modal iframe{
        max-height:400px !important;
    }
}

/* VIDEO IFRAME FOR PC */
@media (min-width:990px){
    .academy-block-modal iframe{
        min-height:510px !important;
    }
}