.modal {
    z-index: 1000000000000000 !important;
    position: fixed;
    width: 100%;
    height: 100%;
}
.modal-bg {
    background-color: rgba(0,0,0,.3);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal>ul {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 70px 30px 0;
    border-radius: 0;
    box-shadow: 0px 5px 10px 0 rgba(131, 140, 148, 0.15);
}

.banner-popup-wrap {
    background: none !important;
    box-shadow: none !important;
    height: auto !important;
    padding: 0 !important;
}

.banner-popup-wrap .main-popup-box {
}

.main-popup-box {
    height: 100%;
    position: relative;
    display: block;
    z-index: 9999;
}

.banner-popup-wrap img {
}

.more-detail-cancel {
    position: absolute;
    bottom: -29px;
    left: -8px;
    width: 163px;
    padding: 0;
}

.banner-popup-wrap img {
    width: 100%;
}

.more-detail-cancel img {
    display: unset !important;
    width: 20px !important;
    margin-right: 3px;
    vertical-align: unset;
}



img {
    border: 0;
}

button {
    border: 0;
    margin: 0;
    background: none;
}

.more-detail-cancel span {
    vertical-align: super;
    font-size: 13px;
    color: #fff;
}

.modal-close-btn {
    position: absolute;
    top: 5px;
    right: -40px;
}

.modal-close-btn img {
    width: 19px !important;
}

button {
    color: #121212;
    cursor: pointer;
    font-family: 'Noto Sans KR', 'AppleSDGothicNeo', sans-serif;
}

@media (max-width: 960px) and (min-width: 641px) {
    .main-popup-box {
        height: 100%;
        position: relative;
        display: block;
        z-index: 9999;
    }
}

@media (max-width: 640px) and (min-width: 401px) {
    .modal > ul.banner-popup-wrap {
        width: 90% !important;
        padding: 0 !important;
        padding-bottom: 0 !important;
        height: auto !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }

    .banner-popup-wrap .main-popup-box {
        width: 100% !important;
        text-align: center;
    }

    .main-popup-box {
        height: 100%;
        position: relative;
        width: 100%;
        display: block;
        z-index: 9999;
    }

    .banner-popup-wrap .main-popup-box>img {
        width: 100% !important;
    }


    .banner-popup-wrap .modal-close-btn {
        font-weight: 500;
        font-size: 13px;
        float: right;
        text-align: right;
    }

    .modal-close-btn {
        top: -30px;
        right: 0px;
    }
}


@media screen and (max-width: 400px) {
    .modal > ul.banner-popup-wrap {
        width: 90% !important;
        padding: 0 !important;
        padding-bottom: 0 !important;
        height: auto !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }

    .banner-popup-wrap .main-popup-box {
        width: 100% !important;
        text-align: center;
    }

    .main-popup-box {
        height: 100%;
        position: relative;
        width: 100%;
        display: block;
        z-index: 9999;
    }

    .banner-popup-wrap .main-popup-box>img {
        width: 100% !important;
    }

    .banner-popup-wrap .more-detail-cancel {
        font-weight: 500;
        font-size: 13px;
        letter-spacing: -.3px;
        float: left;
        bottom: -29px;
    }

    .banner-popup-wrap .modal-close-btn {
        font-weight: 500;
        font-size: 13px;
        float: right;
        text-align: right;
    }

    .modal-close-btn {
        top: -30px;
        right: 0px;
    }

}

@media screen and (max-width: 640px) {
    .modal > ul {
        position: fixed;
        width: 95% !important;
    }
}