@charset "utf-8";

/* 팝업 전체 배경 (오버레이) */
.popup-overlay {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .6);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* 두 팝업 사이 간격 */
    overflow: auto; /* 화면이 작아질 경우 전체 스크롤 생성 */
}

/* 팝업1 기본 크기 */
.popup-wrap {
    width: 1200px;
    height: 800px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, .3);
}

/* 팝업2 크기 override */
.popup-wrap2 {
    width: 800px;
    height: 885px;
}

#pwrap {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #fff;
}

/* 이미지 컨테이너 (스크롤 생성 및 중앙 정렬) */
.image-container {
    flex: 1;
    overflow: auto; /* 이미지가 영역보다 크면 가로/세로 스크롤 생성 */
    position: relative;
    
    /* 이미지 중앙 정렬 추가 */
    display: flex;
    justify-content: center; /* 가로 중앙 정렬 */
    align-items: center;     /* 세로 중앙 정렬 */
}

.image-container img {
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: none;
    display: block;
    margin: auto; /* 스크롤 생길 시 중앙 위치 유지 보완 */
}

/* 이미지 영역 커스텀 스크롤바 디자인 */
.image-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
.image-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.image-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
.image-container::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* 하단 버튼/체크박스 영역 */
#oneBox {
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    border-top: 1px solid #ddd;
    background-color: #f9f9f9;
    box-sizing: border-box;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.checkbox-label input {
    margin-right: 8px;
    cursor: pointer;
}

.checkbox-label:hover {
    color: #000;
}

.checkbox-label span {
    transition: color 0.3s ease;
}

#oneBox button {
    background-color: transparent;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #333;
    font-size: 14px;
    font-weight: bold;
    padding: 8px 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

#oneBox button:hover {
    background-color: #555;
    color: #fff;
    border-color: #555;
}

