/* popup_swiper.css (optimized) */
.layerPopOverlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .65);
    padding: 16px;
}

.layerPopStage {
    position: relative;
    width: min(600px, 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal */
.layerPopModal {
    width: min(500px, 100%);
    background: transparent;
    overflow: visible;
}

/* Swiper */
.layerPopSwiper {
    background: transparent;
    overflow: hidden;
}

/* 슬라이드 이미지 */
.layerPopSwiper .swiper-wrapper,
.layerPopSwiper .swiper-slide {
    background: transparent;
}

.layerPopSwiper .swiper-slide {
    display: flex;
    justify-content: center;
}

.layerPopImgFrame {
    border-radius: 18px;
    overflow: hidden;
    background: transparent;
}

.layerPopLink {
    display: block;
    width: 100%;
}

.layerPopImg {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(78svh, 760px);
    object-fit: contain;
    background: transparent;
}

/* Pagination */
.layerPopModal .swiper-pagination {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 68px;
    z-index: 5;
}

.layerPopModal .swiper-pagination-bullet-active {
    background: #fff;
}

/* 하단 바 */
.layerPopFooter {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    background: transparent;
}

.layerPopFooterBtn {
    width: 100%;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 6px;
    padding: 12px 6px;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .55);
}

.layerPopFooterBtn:active {
    opacity: .85;
}

/* 화살표: 모달 “바깥”에 위치 */
.layerPopNav {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background-color: rgba(0, 0, 0, .45);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;

    background-image: url(/images/common/ic-next.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
}

.layerPopNavPrev {
    left: -25px; /* 모달 밖 */
    transform: translateY(-50%) rotate(180deg);
}

.layerPopNavNext {
    right: -25px; /* 모달 밖 */
}

.layerPopNav:disabled,
.layerPopNav.swiper-button-disabled {
    opacity: .25;
    pointer-events: none;
    filter: grayscale(100%);
}

/* Tablet/Mobile: 화살표 숨김 */
@media (max-width: 1024px) {
    .layerPopNav {
        display: none;
    }

    .layerPopModal {
        width: min(78vw, 500px);
    }
}

/* Mobile: 화살표 숨김 + 높이 과대 방지 */
@media (max-width: 767px) {
    .layerPopOverlay {
        padding: 20px;
    }

    .layerPopStage {
        width: 100%;
    }

    .layerPopModal {
        width: 100%;
    }

    .layerPopImgFrame {
        border-radius: 14px;
    }

    .layerPopImg {
        max-height: min(72svh, 680px);
    }
}
