/* 어두운 배경 + 중앙 정렬 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);  /* 어두운 반투명 배경 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* 팝업 박스 */
.popup-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    max-height: 80vh;
    overflow-y: auto;  /* 스크롤 활성화 */
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
}

/* 팝업 열릴 때 효과 */
.popup-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.popup-overlay.active .popup-content {
    transform: translateY(0);
    opacity: 1;
}

/* 팝업 내용 */
.popup-title {
    margin-bottom: 30px;
    text-align: center;
}

.popup-detail > img {
    width: 100%;
    display: block;
}

/* 닫기 버튼 */
.close-btn {
    margin: auto;
    margin-top: 20px;
    padding: 8px 16px;
    background: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* 각각의 팝업 내용은 기본 숨김 */
.popup-inner {
    display: none;
}
