.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .05);
backdrop-filter: blur(5px);
-webkit-backdrop-filter: blur(5px);
    z-index: 100;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    width: min(1000px, 100%);
    position: relative;
}

.close-modal {
    position: absolute;
    right: 0;
    top: -3rem;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--card);
    color: var(--white);
    cursor: pointer;
}

.modal-video {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: .75rem;
    border: 1px solid var(--line);
}

.modal-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* Modal alternativo */

.modal-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(8px);
    z-index: 200;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    width: min(700px, 100%);
    background: var(--card);
    border-radius: 1.5rem;
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .35);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: var(--line);
    color: var(--white);
    cursor: pointer;
}

.modal-body iframe {
    width: 100%;
    height: 70vh;
    border: 0;
    border-radius: 1rem;
}

body.modal-open {
    overflow-y: scroll;
}