/**************************\
  Basic Modal Styles
\**************************/

.modal {
    z-index: 2000;

    &__title {
        padding: 18px;
        font-size: 22px;
        background: getColor('primary');
        color: #fff;
        text-align: center;
    }

    &__close {
        width: 30px;
        height: 30px;
        display: block;
        position: absolute;
        right: 0;
        top: -40px;
        z-index: 1000;

        &:before {
            content: "";
            height: 2px;
            background-color: #fff;
            width: 22px;
            position: absolute;
            transform: rotate(45deg) translate3d(12px, 7px, 0);
        }

        &:after {
            content: "";
            height: 2px;
            background-color: #fff;
            width: 22px;
            position: absolute;
            transform: rotate(-45deg) translate3d(-7px, 12px, 0);
        }

        &:hover {
            transform: scale(1.2);
        }
    }

    &__container {
        position: relative;
        overflow: visible !important;
    }

    &__video {
        position: relative;
        padding-bottom: 56.25%;
        /* 16:9 */
        padding-top: 25px;
        height: 0;
        width: 85vw;
        max-width: 1200px;

        iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }
    }
}

.modal__overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2100;
}




.modal__container {
    background-color: #fff;
    padding: 0;
    max-height: 100vh;
    max-width: 97%;
    overflow-y: auto;
    box-sizing: border-box;

    iframe {
        display: block;
        max-width: 100%;
    }
}


/**************************\
  Demo Animation Style
\**************************/
@keyframes mmfadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes mmfadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes mmslideIn {
    from {
        transform: translateY(15%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes mmslideOut {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-10%);
    }
}

.micromodal-slide {
    display: none;
}

.micromodal-slide.is-open {
    display: block;
}

.micromodal-slide[aria-hidden="false"] .modal__overlay {
    animation: mmfadeIn .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.micromodal-slide[aria-hidden="false"] .modal__container {
    animation: mmslideIn .3s cubic-bezier(0, 0, .2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__overlay {
    animation: mmfadeOut .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__container {
    animation: mmslideOut .3s cubic-bezier(0, 0, .2, 1);
}

.micromodal-slide .modal__container,
.micromodal-slide .modal__overlay {
    will-change: transform;
}