.modal {
    visibility: hidden;
    position: fixed;
    inset: 0;
    z-index: -1;
    background-color: rgba(0, 0, 0, .75);
    padding: 40px;
    overflow: auto;
}

.modal.open {
    visibility: visible;
    z-index: 10000;
}

.modal__body {
    position: relative;
    margin-left: auto;
    margin-right: auto;
    padding: 50px 30px 30px 30px;
    background: #fff;
    border: 3px solid #0C1E5F;
    border-radius: 10px;
}

.modal__body h1 {
    display: inline-flex;
    margin-top: 10px;
    margin-bottom: 0;
    border-radius: 2px;
    color: #031602;
}

.modal__body h1:focus {
    padding: 10px;
    outline: 2px solid #101F59;
}

.modal__body .modal__image img {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
    border-radius: 10px;
}

.modal__body .btn {
    position: absolute;
    top: 10px;
    right: 10px;
}

/*Video*/
.modal.modal--video .modal__body {
    display: flex;
    justify-content: center;
    padding: 45px 15px 5px 15px;
    border: none;
    border-radius: 0;
}

.modal.modal--video .modal__video-wrapper {
    width: 100%;
}

body.modal-open {
    /* body overflow is hidden to hide main scrollbar when modal window is open */
    overflow: hidden;
}

@media all and (min-width: 1400px) {
    .modal__body {
        display: flex;
        padding: 30px;
        max-width: 70%;
    }

    .modal__body .modal__image {
        flex: 1 0 auto;
        padding-right: 30px;
    }

    .modal__body .modal__image img {
        margin-bottom: 0;
        width: auto;
        height: 200px;
    }

    .modal__body .btn {
        top: 20px;
        right: 20px;
    }

    /*Staff*/
    .modal.modal--staff .modal__body {
        display: grid;
        grid-template-columns: 265px 3fr;
        align-items: center;
        column-gap: 30px;
        max-width: 70%;
    }

    .modal.modal--staff .modal__body .modal__image {
        padding-right: 0;
    }

    .modal.modal--staff .modal__body .modal__image img {
        width: auto;
        height: 265px;
    }

    /*Video*/
    .modal.modal--video .modal__body {
        padding: 55px 15px 5px 15px;
    }
}