.popup-wrapper {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    cursor: pointer;
}

.popup-container {
    max-width: 600px;
    width: 90%;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.popupSwiper .swiper-slide {
    width: 600px;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popupSwiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* 정사각형 박스에 꽉 채워서 표시 */
    border-radius: 10px; /* 선택 */
}

.popup-bottom {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-bottom label {
    cursor: pointer;
}

#popupCloseBtn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #000;
    box-shadow: none;
}

.sortable-placeholder {
    background: #ffe9c4;
    height: 60px;
    border: 2px dashed #ff9900;
    margin-bottom: 6px;
}

/* 팝업 관리자 썸네일 */
.popup-thumb {
    width: 200px;
    height: 200px;
    object-fit: contain;   /* 이미지가 잘리지 않도록 비율 유지 */
    border: 1px solid #ddd;
    background: #fafafa;
    padding: 5px;
    margin-right: 10px;
    cursor: move;          /* 드래그 핸들 표시 */
}

.popup-sortable-list {
    list-style: none;
    padding: 0;
}

.popup-sortable-list .popup-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: 10px;
    border: 1px solid #eee;
    margin-bottom: 8px;
}

.popBottomWrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.swiper-pagination {
    background: #fff;
    max-width: 80px;
    right: 5px;
    left: auto !important;
    border-radius: 50px;
    border: 1px solid;
}

@media (max-width: 640px) {
    .popupSwiper .swiper-slide {
        width: 90vw;
        height: 90vw; /* 정사각형 유지 */
    }
}