#adpageModal{
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 100000;
    overflow-y: auto;
    top: 0;
    justify-content:center;
    background-color: rgba(0, 0, 0, .5);
}
#adpageModal:before{
    content: '';
    display: inline-block;
    font-size: 0;
    height: 100%;
    vertical-align: middle;
    width: 0;
}
.adpageModal__overlay{
    width: 98%;
    display: inline-block;
    vertical-align: middle;
}
/*-------------adpage-----------*/

#adpage {
    width: 100%;
    z-index: 100001;
    position: relative;
    display: none;
    padding: 10px;
    margin: 0 auto;
    vertical-align: middle;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
}

#aditem {
    overflow: hidden;
}

.adimg {
    width: 100%;
}

#close {
    font-size: 30px;
    color: rgb(255, 255, 255);
    background-color: black;
    cursor: pointer;
    position: absolute;
    text-align: center;
    right: 14px;
    top: 14px;
    z-index: 101;
    border-radius: 50px;
    font-size: 20px;
    width: 36px;
    height: 36px;
    line-height: 32px;
}

.type-general #close:hover {    background:  #2a8ce8; }

.Close_btn{
    display: none;
    position:fixed;
    top: 0;
    left: 0;
    z-index: 999980;
    width: 100%;
    height: 100%;
}
.Close_btn.active{
    position: relative;
    display: block;
    transition: all .2s ease;
    z-index: 99999;
}
.Close_btn::after, .Close_btn::before{
    background-color: #FFF;
    content: '';
    display: block;
    height: 4px;
    width: 20px;
    border-radius: 20px;
    position: absolute;
    right: 8px;
    top: 16px;
}
.Close_btn::before{  transform: rotate(45deg); }
.Close_btn::after{  transform: rotate(-45deg); }

#black_bgc {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    display: none;
    background-color: rgb(0, 0, 0);
    z-index: 100001;
    position: fixed;
}

@media screen and (min-width:1200px) {
    /*-------------adpage-----------*/
    #adpage {
        max-width: 430px;
    }
}

@media screen and (max-width:1199px) {
    /*-------------adpage-----------*/
    #adpage {
        max-width: 400px;
    }
}
@media screen and (max-width:767px) {
    /*-------------adpage-----------*/
    #adpage {
        max-width: 96%;
    }
}

@media screen and (max-height:500px) {
    #adpage {
        max-width: 400px;
    }
}