
#mainCanvas {
    border: 1px solid #000;
}

/* PC 결과 컨테이너 고정 폭 350px + 캔버스는 그 안에 맞춰 비율 축소 */
@media (min-width: 992px) {
    .result-fixed-width {
        width: 350px;
    }

    #mainCanvas {
        max-width: 100%;
        height: auto;
        cursor: zoom-in;
    }

    /* canvasParent는 JS의 onScroll에서 동적으로 top을 조정 */
    #mainCanvasGroup {
        overflow: visible;
    }
}

/* 모바일 캔버스도 클릭 가능한 cursor */
#mobileCanvas {
    cursor: zoom-in;
}

/* 캔버스 클릭 시 라이트박스 오버레이 */
#canvasZoomOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    cursor: zoom-out;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#canvasZoomOverlay.d-none {
    display: none !important;
}

#canvasZoomImage {
    /* 실제 크기로 표시, 화면이 작으면 스크롤되도록 max 제한 없음 */
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    cursor: zoom-out;
}

#canvasZoomCloseBtn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    z-index: 100000;
}