.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-wrapper {
    background: white;
    max-width: 95%;
    border-radius: 12px;
    padding: 40px 32px 32px;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    max-height: 90vh;
    overflow-y: auto;
}
.modal-wrapper::-webkit-scrollbar {
    display: none;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    width: 16px;
}
.modal-close img {
    width: 100%;
}


.full_modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.full_modal-wrapper {
    background: white;
    max-width: 95%;
    border-radius: 12px;
    padding: 24px 32px 32px;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    max-height: 90vh;
    overflow-y: auto;
}
.full_modal-wrapper::-webkit-scrollbar {
    display: none;
}

.full_modal-close {
    position: absolute;
    top: 22px;
    right: 16px;
    height: 16px;
    background: none;
    border: none;
    cursor: pointer;
}
.full_modal-close img {
    height: 100%;
}

.sub-modal-overlay {
    position: fixed;
    z-index: 9999; /* 기존보다 확실히 높게 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
}

.sub-modal-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    overflow-y: auto;
}
.sub-modal-wrapper::-webkit-scrollbar {
    display: none;
}

.sub-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    width: 16px;
    cursor: pointer;
}
.sub-modal-close img {
    width: 100%;
}
@media screen and (max-width: 1032px) {
    .modal-wrapper {
        padding: 50px 20px 20px;
    }

    .full_modal-wrapper {
        padding: 20px;
        max-width: 100%;
        max-height: 100dvh;
        border-radius: 0;
        width: 100%;
        height: 100dvh;
    }
}

