@charset "utf-8";
/* --- [PC & 공통 스타일] 기존 코드 유지 --- */
#popup .popup_box {position: relative; z-index: 9999;}
#popup .popup_content {font-size: 0; line-height: 0; text-align: center;}
#popup .popup_content > div {display: inline-block; vertical-align: bottom; position: relative; border-radius: 16px; box-shadow: 0 0 15px rgba(0, 0, 0, .3); overflow: hidden;}
#popup .popup_content img {width: 100%;}

#popup .btn_wrap {position: absolute; top: 12px; right: 20px;}
#popup .btn_wrap .btn_close {background: url('../img/close.png') no-repeat center center; border: 0; width: 30px; height: 30px; font-size: 0; cursor: pointer;}

#popup .popup_swiper_wrap {width: 450px;}
#popup .popup_swiper {width: 100%;}

#popup .swiper-pagination {text-align: center; position: unset; background-color: #fff;}
#popup .swiper-pagination span.swiper-pagination-bullet {display: inline-block; height: 35px; line-height: 35px; background-color: #fff; margin: 0; color: #000; border-radius: 0; opacity: 1; font-size: 14px;}
#popup .swiper-pagination span.swiper-pagination-bullet-active {background-color: #007bff; color: #fff;}

#popup .pop_img {width: 450px; box-shadow: 0 4px 28px rgba(0, 0, 0, .25); overflow: hidden;}
#popup .pop_img img {width: 100%; display: block;}

/* 이미지 토글 기본 상태 (PC) */
.pop_img .is-mo { display: none !important; }
.pop_img .is-pc { display: block !important; }


/* ==========================================================================
   --- [모바일 스타일] 가로·세로 완전 정중앙 정렬 및 이미지 교체 ---
   ========================================================================== */
#popup.mobile {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;    /* 세로 정중앙 */
    justify-content: center !important;  /* 가로 정중앙 */
    z-index: 99999 !important;
}

#popup.mobile .popup_box {
    width: 100%;
}

/* 기존의 top: 150px 고정값과 크기 설정을 걷어내고 Flex 레이아웃으로 중앙 배치 */
#popup.mobile .popup_content > div {
    width: 90% !important; 
    max-width: 420px !important; /* 모바일에서 과도하게 커지는 것 방지 */
    height: auto !important; 
    position: relative !important;
    top: unset !important; 
    left: unset !important; 
    transform: none !important; 
    border: 1px solid #fff;
    display: inline-block;
}

#popup.mobile .popup_content img {width: 100%; height: auto;}
#popup.mobile .pop_img {width: 100%;}

/* 모바일 상태일 때 이미지 스위칭 기믹 */
#popup.mobile .pop_img .is-pc { display: none !important; }
#popup.mobile .pop_img .is-mo { display: block !important; }

/* 모바일 버튼 크기 비율 조정 유지 */
#popup.mobile .btn_wrap {height: 7vw;}
#popup.mobile .btn_wrap .btn_dont_show {height: 7vw; line-height: 1; font-size: 3vw; padding: 0 30px;} /* padding 오타 수정 */
#popup.mobile .btn_wrap .btn_close {right: 3vw; width: 7vw; height: 7vw;}

#popup.mobile .popup_swiper_wrap {width: 100%;}
#popup.mobile .swiper-pagination span.swiper-pagination-bullet {height: auto; line-height: 3; font-size: 3vw;}