.mw-popup-modal {
    .modal-dialog-centered {
        min-height: calc(100% - (1.75rem * 2));
    }

    .modal-dialog.modal-auto {
        display: flex;
        justify-content: center;
    }

    .modal-dialog.image-modal .close {
        position: absolute;
        right: 10px;
        top: 4px;
    }

    .modal-header {
        border-bottom: none;
    }

    .modal-content {
        border-radius: 0;
        border: none;
        box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.25);

        img {
            max-width: 100%;
            height: auto;
        }
    }

    .modal-footer {
        display: flex;
        gap: 10px;
        border-top: none;

        &.buttons-right {
            justify-content: right;
            margin-right: -10px;
        }

        &.buttons-center {
            justify-content: center;
        }

        &.buttons-left {
            justify-content: left;
        }
    }

    .dark-theme .modal-footer .btn.btn-secondary {
        border: 1px solid #FFFFFF;
        background: transparent;
        color: #FFFFFF;
    }

    .dark-theme .modal-header .close {
        color: #FFFFFF;
        opacity: .75;
    };
}

@media only screen and (max-width: 1366px) {
    .image-modal img {
        max-width: 100%;
    }
}

.mw-popup-modal .newsletter-modal {
    .modal-dialog {
        max-width: 750px;
    }

    .d-flex {
        display: -webkit-box !important;
        display: -ms-flexbox !important;
        display: flex !important;
    }

    .d-none {
        display: none !important;
    }

    .modal-content {
        padding: 0 !important;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        width: 100%;
        pointer-events: auto;
        background-color: #fff;
        background-clip: padding-box;
    }

    .modal-header {
        padding: 0;
        border: 0;
        display: flex;
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: flex-start;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
        border-bottom: 1px solid #dee2e6;
        border-top-left-radius: 0.3rem;
        border-top-right-radius: 0.3rem;
    }

    .modal-content button.close {
        position: absolute;
        top: 0;
        right: 0;
        padding: 0;
        margin: 0;
        width: 40px;
        height: 40px;
        z-index: 1;
        text-shadow: none;
        background: rgba(0, 0, 0, 0.1);
        opacity: .5;
    }

    .no-gutters {
        margin-right: 0;
        margin-left: 0;
    }

    .no-padding {
        padding-left: 0;
        padding-right: 0;
    }

    .row {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        margin-right: -15px;
        margin-left: -15px;
    }

    .modal-content .modal-body {
        border: none;
        position: relative;
        z-index: 0;
    }

    .img {
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center center;
    }

    .modal-body {
        position: relative;
        -webkit-box-flex: 1;
        -ms-flex: 1 1 auto;
        flex: 1 1 auto;
        padding: 1rem;
    }

    .close {
        -webkit-box-align: center !important;
        -ms-flex-align: center !important;
        align-items: center !important;
        webkit-box-pack: center !important;
        -ms-flex-pack: center !important;
        justify-content: center !important;
    }
}