/* 메인 팝업 창 스타일 */
.main-popup-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    max-width: 90vw;
    max-height: 80vh;
    z-index: 9999;
    animation: slideInDown 0.3s ease-out;
    cursor: move;
}

.popup-content {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.popup-body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.popup-image-container {
    flex: 1;
    width: 100%;
    height: 100%;
}

/* 팝업 슬라이더 스타일 */
.popup-swiper {
    width: 100%;
    height: 100%;
}

.popup-slide-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.popup-text-content {
    padding: 16px;
    text-align: center;
}

/* Swiper 버튼 커스터마이징 */
.popup-swiper .swiper-button-next,
.popup-swiper .swiper-button-prev {
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    margin-top: -20px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-swiper .swiper-button-next {
    right: 10px;
}

.popup-swiper .swiper-button-prev {
    left: 10px;
}

.popup-swiper .swiper-button-next svg,
.popup-swiper .swiper-button-prev svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.popup-swiper .swiper-button-next svg path,
.popup-swiper .swiper-button-prev svg path {
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.popup-swiper .swiper-pagination {
    bottom: 10px;
}

.popup-swiper .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.7);
}

.popup-swiper .swiper-pagination-bullet-active {
    background: #fff;
}

.popup-footer {
    padding: 1px 2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e5e5e5;
    background-color: #f8f9fa;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* 반응형 */
@media (max-width: 768px) {
    .main-popup-window {
        width: 90vw;
        max-height: 70vh;
    }
}
