body.imodal-on{
    pointer-events: none;
    overflow: hidden;
}

.imodal{
    pointer-events: all;
    position: fixed;
    /* height:100vh; */
    overflow-y: auto;
    left:0;right:0;top:0;bottom:0;
    z-index: 12000;
    display: none;
}

.imodal.on{
    display: block;
}
.imodal-bg{
    position: fixed;
    background-color: rgba(0, 0, 0, 0.4);
    left:0;right:0;top:0;bottom:0;
    z-index: 10;
}

.imodal-box{
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
    height: 100%;
    /* height: 100vh; */
    overflow: hidden;
    max-height:100vh;

    margin:0 auto;
    position: relative;
    z-index: 21;

}
.imodal-content{
    width:640px;
    max-width: 100vw;
    max-height: 100%;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: stretch;
}
.imodal-head{
    padding:0.5em;
}
.imodal-body{
    min-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    padding:0.5em;
}
.imodal-close{
    display: inline-block;
    height:2.8em; width: 2.8em;
    margin:0.2em;
    background-image: url("/views/asset/curry2022/img/close.png");
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    cursor: pointer;
}

/* for ios */
/* @supports (-webkit-touch-callout: none) {
    .imodal{
        height: -webkit-fill-available;
    }
    .imodal-box{
        height: -webkit-fill-available;
    }
} */



.imodal-content img{
    max-width: 100%;
}