
#photozone {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: auto;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: white;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
}

#photozone .container{
    display: flex;
    width: 880px;
    height: 340px;
    position: relative;
    overflow: hidden;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#photozone .step {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: white;
    text-align: center;
    box-sizing: border-box;
}

#photozone .active {
    display: block;
}

/* 이미지 영역 */
#photozone .image-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 65%;
    position: relative;
    margin-top: 10px;
    overflow: hidden;
}

#photozone .image-display {
    width: 80%;
    height: 100%;
    position: relative;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    min-width: 708px;
}

/* 인물 영역 */
#photozone .person-container {
    width: 100%;
    height: 70%;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 얼굴 placeholder */
#photozone .face-placeholder {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 18vmin;
    height: 18vmin;
    border-radius: 50%;
    overflow: hidden;
}

#photozone .face-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 버튼들 공통 */
#photozone button {
    border: none;
    cursor: pointer;
    background: transparent;
    padding: 0;
}

/* 화살표 버튼 */
#photozone .arrow-btn {
    width: 50px;
    height: 50px;
    z-index: 10;
    transition: transform 0.2s;
}

#photozone .arrow-btn:hover {
    transform: scale(1.1);
}

#photozone .arrow-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#photozone .left-arrow {
    margin-right: 10px;
}

#photozone .right-arrow {
    margin-left: 10px;
}

/* 네비게이션 버튼 */
#photozone .nav-btn {
    width: 50px;
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    text-indent: -9999px;
    margin-top: 10px;
    position: relative;
    transition: transform 0.2s;
}

#photozone .zoom-in-btn {
    background-image: url('/assets/view/images/icon/zoom-in.png');
}

#photozone .zoom-out-btn {
    background-image: url('/assets/view/images/icon/zoom-out.png');
}

#photozone .next-btn {
    background-image: url('/assets/view/images/icon/check.png');
}

#photozone .prev-btn {
    background-image: url('/assets/view/images/icon/back.png');
    width: 120px;
}

#photozone .capture-btn {
    background-image: url('/assets/view/images/icon/camera.png');
}

#photozone .restart-btn {
    background-image: url('/assets/view/images/icon/x.png');
}

/* 하단 버튼 컨테이너 */
#photozone .button-container,#photozone .bottom-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    position: absolute;
    bottom: 20px;
    width: 100%;
}

/* 카운터 */
#photozone .counter {
    font-size: 16px;
    font-weight: bold;
    color: #666;
    margin: 10px 0;
}

/* 카메라 화면 */
#camera-feed {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
    border: 1px solid #ddd;
}

/* 최종 인물 컨테이너 */
#final-person-container {
    position: relative;
    z-index: 100;
}

#orientation-warning {
    display: none;
}

/*
@media screen and (orientation: portrait) , screen and (max-width: 780px) {
    #orientation-warning {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: white;
        z-index: 9999;
    }

    #orientation-warning p {
        font-size: 2rem;
        color: black;
        margin-bottom: 20px;
        text-align: center;
    }

    #photozone .rotate-icon {
        font-size: 64px;
        color: #333;
        animation: rotate-phone 2.5s infinite ease-in-out;
    }

    @keyframes rotate-phone {
        0% { transform: rotate(0deg); }
        50% { transform: rotate(90deg); }
        100% { transform: rotate(0deg); }
    }
}
*/

@media (pointer: coarse) and (aspect-ratio < 1/1) {
    #orientation-warning {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: white;
        z-index: 9999;
    }

    #orientation-warning p {
        font-size: 2rem;
        color: black;
        margin-bottom: 20px;
        text-align: center;
    }

    #orientation-warning .rotate-icon {
        font-size: 64px;
        color: #333;
        animation: rotate-phone 2.5s infinite ease-in-out;
    }

    @keyframes rotate-phone {
        0% { transform: rotate(0deg); }
        50% { transform: rotate(90deg); }
        100% { transform: rotate(0deg); }
    }
}

@media screen and (min-width: 1920px){
    /* 고정된 사이즈 */
    #photozone .container {
        width: 1920px;
        height: 880px;
        position: relative;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    #photozone .nav-btn{
        width : 100px;
        height: 100px;
    }

    #photozone .prev-btn{
        width : 300px;
        height: 100px;
    }
    #photozone .arrow-btn{
        width : 150px;
        height: 150px;
    }

    #photozone .image-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 75%;
        position: relative;
        margin-top: 10px;
        overflow: hidden;

    }

    #photozone .image-display {
        width: 80%;
        height: 100%;
        position: relative;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        min-width: 708px;

    }

}
