/* Swiper 멀티 팝업 전용 스타일 */
#popup-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    
    /* PC: 기본 화면 중앙 정렬 */
    align-items: center; 
}

#popup-area.show {
    visibility: visible;
    opacity: 1;
}

.popup-container {
    width: 100%;
    max-width: 100%;
    position: relative;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.popup-swiper {
    width: 100%;
    padding: 20px 0 !important;
}

.popup-swiper .swiper-slide {
    width: auto;
    flex-shrink: 0;
    transition: transform 0.4s ease;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    /*box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);*/
    display: flex;
    justify-content: center;
    align-items: center;
}

/* PC 자동(Y): 세로 600px 고정 */
.popup-swiper .swiper-slide[data-atmc-sz-yn="Y"] {
    height: 600px;
    max-width: none;
}

.popup-swiper .swiper-slide[data-atmc-sz-yn="Y"] img {
    height: 100%;
    width: auto;
    max-width: 90vw;
    object-fit: cover;
}

/* 수동(N): 이미지 원본 사이즈 그대로 */
.popup-swiper .swiper-slide[data-atmc-sz-yn="N"] img {
    width: auto;
    height: auto;
}

/* 비활성 슬라이드 어둡게 처리 */
.popup-swiper .swiper-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    transition: background 0.4s ease;
    pointer-events: none;
    z-index: 2;
}

/* 활성 슬라이드 강조 (밝게) */
.popup-swiper .swiper-slide-active {
    z-index: 5;
}

.popup-swiper .swiper-slide-active::after {
    background: rgba(0, 0, 0, 0);
}

.popup-swiper .swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* PC 하단 버튼 영역 (Figma 반영) */
.biko-popup-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    position: relative;
    z-index: 10;
}

.btn-popup-today, .btn-popup-close {
    background: rgba(252, 252, 252, 0.5);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: 999px;
    width: 200px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fcfcfc;
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-popup-today:hover, .btn-popup-close:hover {
    background: rgba(252, 252, 252, 0.65);
}

#popup-wrapper {
	align-items: center !important;
}

/* 모바일 대응 */
@media (max-width: 1280px) {
    #popup-area {
        align-items: flex-end;
        background: rgba(0, 0, 0, 0.8);
    }

    .popup-container {
        padding-bottom: 0;
    }

    .popup-swiper {
        padding: 0 !important;
    }

    .popup-swiper .swiper-slide {
        max-width: 100%;
        height: auto !important;
        border-radius: 8px;
    }

    /* 모바일 자동(Y) 이미지 */
    .popup-swiper .swiper-slide[data-atmc-sz-yn="Y"] {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .popup-swiper .swiper-slide[data-atmc-sz-yn="Y"] img {
        width: 100%;
        height: auto;
        max-width: 100vw !important;
    }

    /* 모바일 하단 버튼 영역 (Figma 반영) */
    .biko-popup-buttons {
        width: 100%;
        background: #fcfcfc;
        margin: 0;
        padding: 16px 16px 56px 16px;
        gap: 8px;
        box-sizing: border-box;
    }

    .btn-popup-today, .btn-popup-close {
        flex: 1;
        width: auto;
        height: 38px;
        background: transparent;
        color: #222;
        font-size: 14px;
        backdrop-filter: none;
        border: none;
    }

    .btn-popup-today:hover, .btn-popup-close:hover {
        background: rgba(0, 0, 0, 0.05);
    }
    
    #popup-wrapper {
		align-items: end !important;
	}
}
