/* 모달 검은색 배경 */
.modal{display: none; position: fixed; z-index: 100; left: 0; top: 0; bottom:0; z-index: 101;
    max-width:100%; width:100%;  height: 100%;  background-color: hsla(0,0%,0%,0.4); padding-left:16px; padding-right:16px;}
    
.modal-wrap {position: relative; width: auto; margin:auto; height: auto;top:50%; transform: translateY(-50%); background-color:#fff; z-index: 101;}
    
.modal-xl{max-width:1200px;}
.modal-md{max-width:768px;}
.modal-sm{max-width:480px;}
.modal-xs{max-width:360px;}
    
.modal-container{max-width:1024px; width: 100%; margin:auto; z-index:101;
position: relative;
/* display: -ms-flexbox; display: flex; -ms-flex-direction: column;  flex-direction: column;  pointer-events: auto; */
    border-radius: .3rem;
outline: 0; }
    
/* 2020-03-19 */
.modal-bd.bd{margin-left:0 !important; margin-right:0 !important; padding:0 !important;}

.modal ul.btn-container > li{display: inline-block; margin-right:2px;}
.modal ul.btn-container > li:last-child{margin-right:-4px;}

.modal ul.btn-container > li .btn{min-width: 128px; font-size:0.9em; height:46px;}

/* 모달 닫기 */
.modal-close{position: absolute; right:16px; top:16px; font-size: 1.35em; line-height:1; cursor: pointer; display: block; z-index: 102;}

.modal-container .modal-out-tit{padding-bottom:16px;  font-weight:700; font-size:1.25em;}

.modal-container{padding:40px 32px 32px;}
.modal-container .example .img{padding-bottom:6px;}
.modal-container .example .text{line-height: 1.5; padding-bottom:12px;}
.modal-container .example .text .content{word-break: break-all;
    white-space: normal;}

.board_content{padding-bottom:24px;}
.board_content label{display: block; padding-bottom:8px;}
.file_update{width:100%; border:1px solid #dedede; background:#fff; height:32px; vertical-align: middle;}
textarea{ border:1px solid #dedede; height:200px; }

.modal-container input[type=button]{padding-left:16px; padding-right:16px; cursor: pointer;}

.modal-container .table_btn{text-align:center; padding-top:0;}
.modal-container .table_btn ul li{text-align:center;display:inline-block; margin:0 3px;}

.guide_text{font-size:13px; padding-top:12px;}

.fileBox ul{margin:0 -8px;}
.fileBox ul li{float:left; padding:0 8px; width:65%;}
.fileBox ul li:last-child{width:35%;}
.fileBox {width:100%;}
.fileBox .fileName {width:100%; height:30px;line-height:30px; border:none; background:rgba(255,255,255,0); border-bottom:1px solid #d1d1d1; vertical-align:middle}
.fileBox .btn_file {border:1px solid #d1d1d1; border-radius: 4px; background:#fff; height:30px;font-size:0.8em;line-height:30px;text-align:center;vertical-align:middle}
.fileBox input[type="file"] {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}

.modal_table{display: table; margin:0 auto;} 

.modal_img_container{text-align: center;}
.modal_img_container img{width:100%;}
.wi_select_common {
width: 123px;
height: 45px;
padding: 0 18px;
vertical-align: middle;
background: url(https://dla7jyqf0sx2z.cloudfront.net/static/legacy-images/timing/152711839681325.png) no-repeat 87% 50%;
background-color: #fff;
-webkit-appearance: none;
}


.simple_input{ text-align: center; padding-top:12px;}
.simple_input:first-child{padding-top:0;}
.simple_input ul li{display:inline-block;}
.wi_btn_common{height: 45px; background: #888889; color: #fff; padding:0 16px;}
    
.modal_img{max-height:100vh;}

/* 메인페이지 모달 */
.modal.new_modal{position: initial; }
.main_modal{background-color:rgba(0, 0, 0, 0.1);}
.main_modal .modal-wrap{
    max-width: 430px;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    background-color: transparent;
    width: 100%;
    height: 70%;
    }
.main_modal .modal-container{padding:0;height: inherit;line-height: 0;}
.main_modal .modal-container img{-webkit-box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2); -moz-box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);}
.main_modal_img{position: relative; display: block;}
.today_btn{left:0; z-index:102; font-weight: normal; color:#626262; margin-top:20px;}


.new_modal{background-color:rgba(0, 0, 0, .1); max-width: 100%;}
.new_modal .modal-wrap{ flex-direction: row; background-color: transparent; top:64px;transform:inherit; -ms-transform:inherit; left:0; position: relative; z-index: 999}
/* 숨김 팝업의 close bar 누수 방지 */
.new_modal .modal-container[hidden],
.new_modal.agree_modal .modal-container[hidden]{
    display: none !important;
}
/* 이미지 + 닫기 바 밀착 (inline baseline gap 제거) */
.new_modal .modal-container{
    padding:0;
    top: 120px;
    margin:0 8px;
    width: 100%;
    height: auto;
    max-width: 33%;
    position: absolute;
    border-radius: 0;
    z-index: 9999;
    box-shadow: 0 0 16px rgba(0,0,0,.1);
    line-height: 0;
    overflow: hidden;
    background-color: #000;
}
.new_modal .modal-container:nth-child(1){left: 0px;}
.new_modal .modal-container:nth-child(2){left: 20.5%;}
.new_modal .modal-container:nth-child(3){left: 41%;}
.new_modal .modal-container:nth-child(4){left: 61.5%;}
.new_modal .modal-container:nth-child(5){left: 82%;}
.new_modal .modal-container > a{
    display: block;
    line-height: 0;
    font-size: 0;
}
.new_modal .modal-container img{
    display: block;
    width: 100%;
    height: auto;
    vertical-align: top;
    background-color: #fff;
}

.today_btn{position: absolute; left:0; top:calc(100% + 8px); z-index:102; font-weight: normal; color:#626262;}

.close_btn_area{
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    background-color: #000;
    border-top:1px solid #eee;
    width: 100%;
    position: relative;
    z-index: 200;
    line-height: 1.4;
    font-size: 14px;
}
/* 전역 .clf::before/::after 가 flex 아이템으로 끼어드는 것 차단 */
.close_btn_area::before,
.close_btn_area::after{
    content: none !important;
    display: none !important;
}
.close_btn_area > span{
    position: relative;
    flex: 1 1 50%;
    width: auto;
    box-sizing: border-box;
    padding:8px 12px;
    font-size: 14px;
    cursor: pointer;
    color:#fff;
}
.close_btn_area > span:nth-child(1){text-align:left;}
.close_btn_area > span:nth-child(2){text-align: right;}
.close_btn_area > span:hover{font-weight: 500;}
/* .close_btn_area > span.close_btn_bar::before{content:''; width:1px; height:40%; position: absolute; left:0; top:30%; background-color: #e1e1e1;} */


.new_modal.agree_modal .popup1{left: 50%; transform: translateX(-50%); top: 150px !important; max-width: 500px;}
.new_modal.agree_modal .popup2{left: 20%; transform: translateX(-50%); top: 150px !important; max-width: 500px;}
.new_modal.agree_modal .popup3{left: 80%; transform: translateX(-50%); top: 300px !important; max-width: 500px;}


/* 확대 모달 */
.expand_wrap .modal-body{background-color: #fff; padding:16px 24px 24px 24px;}
.expand_wrap .btn_wrap{display: flex; justify-content: flex-end;}
.expand_wrap .btn_wrap button{transition-duration: 0.3s; border-radius: 3px; padding: 4px 8px; font-size: 16px; margin-right:16px;}
.expand_wrap .btn_wrap button:last-child{margin-right: 0;}
.expand_wrap .btn_wrap button img{width: 25px; height:25px;}
.expand_wrap .btn_wrap button:hover{background-color: #f5f5f5;}

.expand_wrap .img_wrap img{position: absolute;  left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0 auto; text-align: center;}
.expand_wrap .img_wrap{position: relative; text-align: center;margin: 0 auto; overflow:hidden;  width: 768px; max-width: 100%; padding-bottom: 70%; max-height: 70vh;}


.expand_wrap .modal-container{height: 100vh;}
.expand_wrap .modal-bd{display: block;
    width: 100%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

@media (max-width:1400px){
    .new_modal .modal-container {max-width: 35%;}
    .new_modal.agree_modal .popup1{left: 50%; transform: translateX(-50%); top: 150px !important; max-width: 500px;}
    .new_modal.agree_modal .popup2{left: 50%; transform: translateX(-50%); top: 150px !important; max-width: 500px;}
    .new_modal.agree_modal .popup3{left: 50%; transform: translateX(-50%); top: 150px !important; max-width: 500px;}
}


/* ********************************************* *
* 1024px max
* ********************************************* */
@media (max-width:1024px){

    .new_modal .modal-wrap{top:32px;}
    .new_modal{width:100%; height: 0; max-width: 100%;}
    .new_modal .modal-container{position: absolute; top:80px; left:0; margin:0; max-width: 500px; padding: 12px;}
    /* 동의/메인 팝업은 이미지-닫기바 밀착 유지 (일반 모달 padding 12px 예외) */
    .new_modal.agree_modal .modal-container{padding: 0;}
    .new_modal.agree_modal .popup1{left: 50%; transform: translateX(-50%); top: 150px !important; max-width: 500px;}
    .new_modal.agree_modal .popup2{left: 50%; transform: translateX(-50%); top: 150px !important; max-width: 500px;}
    .new_modal.agree_modal .popup3{left: 50%; transform: translateX(-50%); top: 150px !important; max-width: 500px;}

}

/* ********************************************* *
* 480px max
* ********************************************* */
    @media (max-width:480px){

        .main_modal{background-color:rgba(0, 0, 0, 0.5);}
        .main_modal .modal-wrap{width: 80%;}
        .today_btn{color:#fff;}
        .modal ul.btn-container > li .btn{min-width: 96px;}
        .new_modal.agree_modal .popup1{left: 50%; transform: translateX(-50%); top: 150px !important; max-width: 500px;}
        .new_modal.agree_modal .popup2{left: 50%; transform: translateX(-50%); top: 150px !important; max-width: 500px;}
        .new_modal.agree_modal .popup3{left: 50%; transform: translateX(-50%); top: 150px !important; max-width: 500px;}
        
    }