@media (max-width: 768px) {

    /* ✅ 뒤로가기 모달 */
    #modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 2000;
    }

    #modal-overlay.show {
        display: flex;
    }

    .modal-scroll {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        overflow-y: auto;
        padding: 0 0.5rem;
    }

    .modal-content {
        width: 100vw;
        max-height: 90vh;
        margin: 5vh auto;
        padding: 1.25rem 1rem;
        border-radius: 0.875rem;
        background: #fff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
    }

    .modal-left h2 {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }

    .modal-left p {
        font-size: 0.875rem;
        line-height: 1.7;
        margin-bottom: 1.25rem;
    }

    .modal-right h4 {
        font-size: 0.9375rem;
        font-weight: bold;
        margin-bottom: 0.625rem;
        padding-top: 0.625rem;
        color: #000;
    }

    .modal-right ul {
        list-style: none;
        padding-left: 0;
    }

    .modal-right li {
        font-size: 0.8125rem;
        margin-bottom: 0.5rem;
        word-break: break-word;
    }

    .modal-right a {
        text-decoration: none;
        color: #0066cc;
    }

    .modal-right a:hover {
        text-decoration: underline;
        color: #000;
    }

    .modal-left audio {
        display: block;
        width: 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }

    .close-btn {
        position: absolute;
        top: 0.5625rem;
        right: 0.4375rem;
        font-size: 1.25rem;
        background: none;
        border: none;
        cursor: pointer;
    }

}