/*--------------------------------------------------------------------
||Common
--------------------------------------------------------------------*/
#popup {position:absolute !important;top:0;left:0;z-index:100000 !important;}
#popup .item {position:absolute !important;z-index:1000000 !important;}
#popup .bottom {
    background:#0000009a !important;        
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 0;
}
#popup .bottom .left {display:inline-block !important;width:47%;vertical-align:middle;padding:0 0 0 1%;}
#popup .bottom .right {display:inline-block !important;width:47%;vertical-align:middle;padding:0 1% 0 0;}

/* 기존 팝업 스타일 개선 */
#popup:not(.slide-mode) {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 100000 !important;
}

#popup:not(.slide-mode) .item {
    position: relative !important;
    background: white !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
    overflow: hidden !important;
    width: 500px !important;
}

#popup:not(.slide-mode) .item .body {
    width: 500px !important;
    max-width: 500px !important;
    padding: 0 !important;
}

#popup:not(.slide-mode) .item .body img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
}

/* 슬라이드 팝업 스타일 */
#popup.slide-mode {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 500px !important;
    height: 80vh !important;
    max-height: 600px !important;
    background: white !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
    overflow: hidden !important;
    z-index: 100000 !important;
}

#popup.slide-mode .slide-container {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
}

#popup.slide-mode .slide-wrapper {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    transition: transform 0.3s ease !important;
}

#popup.slide-mode .slide-item {
    min-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

#popup.slide-mode .item {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    background: white !important;
    border-radius: 10px !important;
    overflow: hidden !important;
}

#popup.slide-mode .item .top {
    display: none !important;
}

#popup.slide-mode .item .body {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

#popup.slide-mode .item .body img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    width: 100% !important;
    height: auto !important;
}

#popup.slide-mode .item .bottom {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: rgba(0,0,0,0.8) !important;
    padding: 8px 12px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

#popup.slide-mode .item .bottom .left {
    flex: 0 0 auto !important;
    width: auto !important;
    padding: 0 !important;
}

#popup.slide-mode .item .bottom .center {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

#popup.slide-mode .item .bottom .right {
    flex: 0 0 auto !important;
    width: auto !important;
    padding: 0 !important;
}

#popup.slide-mode .item .bottom a {
    color: #cccccc !important;
    text-decoration: none !important;
    font-size: 12px !important;
}

#popup.slide-mode .item .bottom a:hover {
    color: white !important;
}

#popup.slide-mode .slide-nav {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 40px !important;
    height: 40px !important;
    background: rgba(0,0,0,0.5) !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    font-size: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1000001 !important;
    transition: background 0.3s ease !important;
}

#popup.slide-mode .slide-nav.prev {
    left: 10px !important;
}

#popup.slide-mode .slide-nav.next {
    right: 10px !important;
}

#popup.slide-mode .slide-nav:hover {
    background: rgba(0,0,0,0.7) !important;
}

#popup.slide-mode .slide-indicators {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    display: flex !important;
    gap: 6px !important;
    align-items: center !important;
    z-index: 1000001 !important;
    pointer-events: auto !important;
}

#popup.slide-mode .slide-indicator {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.5) !important;
    cursor: pointer !important;
    transition: background 0.3s ease !important;
}

#popup.slide-mode .slide-indicator.active {
    background: white !important;
}

#popup.slide-mode .close-all {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    width: 30px !important;
    height: 30px !important;
    background: rgba(0,0,0,0.5) !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    font-size: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1000001 !important;
    transition: background 0.3s ease !important;
}

#popup.slide-mode .close-all:hover {
    background: rgba(0,0,0,0.7) !important;
}

/*--------------------------------------------------------------------
||MO
--------------------------------------------------------------------*/
@media screen and (max-width: 768px){

	#popup {}
	#popup .bottom {height:40px !important;line-height:40px !important;}
	#popup .bottom a {color:#cccccc !important;}
	#popup .bottom .left {display:inline-block !important;color:#cccccc !important;font-size:4vw !important;text-align:left;}
	#popup .bottom .right {display:inline-block !important;color:#cccccc !important;font-size:4vw !important;text-align:right;}

	/* 모바일 슬라이드 팝업 */
	#popup.slide-mode {
		width: 95vw !important;
		height: 70vh !important;
	}

	#popup.slide-mode .item .body {
		width: 100% !important;
		padding: 15px !important;
	}

	#popup.slide-mode .slide-nav {
		width: 35px !important;
		height: 35px !important;
		font-size: 16px !important;
	}

	#popup.slide-mode .slide-indicators {
		bottom: 50px !important;
	}

	#popup.slide-mode .slide-indicator {
		width: 8px !important;
		height: 8px !important;
	}

	#popup.slide-mode .item .bottom {
		padding: 8px 12px !important;
	}

	#popup.slide-mode .item .bottom a {
		font-size: 12px !important;
	}

/*
	#popup .item1 {display:none;width:80vw;margin:30vw 0 0 10vw;}
	#popup .item1 .top {}
	#popup .item1 .body {}
	#popup .item1 .body img {width:100%;}
*/

}

/*--------------------------------------------------------------------
||PC
--------------------------------------------------------------------*/
@media screen and (min-width: 768px){

	#popup {}
	#popup .bottom {height:40px !important;line-height:40px !important;}
	#popup .bottom a {display:inline-block !important;color:#cccccc !important;font-size:14px !important;}
	#popup .bottom .left {display:inline-block !important;color:#cccccc !important;font-size:14px !important;text-align:left !important;}
	#popup .bottom .right {display:inline-block !important;color:#cccccc !important;font-size:14px !important;text-align:right !important;}

/*
	#popup .item1 {display:none;width:500px;margin:20vh 0 0 70vw;}
	#popup .item1 .top {}
	#popup .item1 .body {}
	#popup .item1 .body img {}
	#popup .item1 .bottom {}
	#popup .item1 .bottom .left {}
	#popup .item1 .bottom .right {}
*/

}

@media screen and (max-width: 480px){
    #popup.slide-mode{
        height: auto !important;
    }
    #popup.slide-mode .slide-container{
        padding-bottom: 40px;
    }
}

/*250528_추가_JY*/
.popup .item .body img{width: 100%; height: 100%;}