.mm-popup .popup {
    outline: none;
    display: block;
}

.mm-popup {
    cursor: pointer;
    position: relative;

}

.mm-popup .popup-icon.left {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.mm-popup .popup-icon.right {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.mm-popup .popup-icon.top {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.mm-popup .popup-icon.bottom {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
}



.mm-popup .popup-icon .field--type-fontawesome-icon {
    width: auto!important;
    margin-left: 8px;
    margin-right: 8px;
    margin-top: 8px;
    margin-bottom: 8px;
}

.mm-popup .popup .short p {
    width: 100%
}


.mm-popup-full {
    position:fixed;
    left: 50vw;
    top: 50vh;
    transform: translate(-50%, -50%);
    z-index: 3000;
    display: none;
    opacity: 0;
    border-radius: 5px;
    max-height: 80vh;
    overflow-y: auto;
}

.mm-popup-full img {
    width: 100%;
    height: auto;
}


.mm-popup-full.active {
    display: block;
    opacity: 1;
    -webkit-animation: fadeInFromNone 0.5s ease-out;
    -moz-animation: fadeInFromNone 0.5s ease-out;
    -o-animation: fadeInFromNone 0.5s ease-out;
    animation: fadeInFromNone 0.5s ease-out;
}



@-webkit-keyframes fadeInFromNone {
    0% {
        display: none;
        opacity: 0;
    }

    1% {
        display: block;
        opacity: 0;
    }

    100% {
        display: block;
        opacity: 1;
    }
}

@-moz-keyframes fadeInFromNone {
    0% {
        display: none;
        opacity: 0;
    }

    1% {
        display: block;
        opacity: 0;
    }

    100% {
        display: block;
        opacity: 1;
    }
}

@-o-keyframes fadeInFromNone {
    0% {
        display: none;
        opacity: 0;
    }

    1% {
        display: block;
        opacity: 0;
    }

    100% {
        display: block;
        opacity: 1;
    }
}

@keyframes fadeInFromNone {
    0% {
        display: none;
        opacity: 0;
    }

    1% {
        display: block;
        opacity: 0;
    }

    100% {
        display: block;
        opacity: 1;
    }
}

.magz-popup-close {
    position: fixed;
    right: 2rem;
    top: 2rem;
    display: none;
    overflow: hidden;
    border-radius: 2.4rem;
    cursor: pointer;
    z-index: 4000;
    width: 2rem;
    height: 2rem;
    background-color: white;
    border-color: black;
    border-width: 1px;
    border-style: none;
}

.magz-popup-close i {
    color: black;
}

.popup-background {
    display: none;
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    background-color: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}


.magz-popup-close i {
    display: block;
    font-size: 1.8rem!important;
    margin: 2px 0px 0px 1px;
    padding: 0px;
}

.magz-pop-up  .field--type-fontawesome-icon {
    margin-right: 0px;
}

@media(max-width: 820px) {
    .mm-popup-full.active  {
        width: 90vw!important;
        max-height: 80vh;
    }
    .magz-popup-close {
        position: fixed;
        top: 1rem;
        right: 1rem;
        width: 1.3rem;
        height: 1.3rem;
    }
    .magz-popup-close i {
        font-size: 1rem!important;
        display: block;
        margin: 1px 0px 0px 2.5px;
    }


    .mm-popup-full p,
    .mm-popup-full li{
        font-size: 100%;
    }

    .mm-popup-full h1{
        font-size: 200%;
    }

    .mm-popup-full h2{
        font-size: 180%;
    }

    .mm-popup-full h3{
        font-size: 160%;
    }

    .mm-popup-full h4 {
        font-size: 150%;
    }

    .mm-popup-full h5{
        font-size: 130%;
    }

    .mm-popup-full h6{
        font-size: 120%;
    }

    .mm-popup-full ul {
        padding-left: 20px;
    }
    .mm-popup-full button {
        font-size: 15px !important;
    }
    .slick-slide-container button {
        font-size: 0px!important;
    }
    .mobile-background {
        background-size: auto 100% !important;
    }
    .mm-text-block article.align-left,
    .mm-text-block article.align-right {
        width: 100%;
    }
    .mm-text-block .field__item article.align-left .field--type-image {
        margin-right: unset;
        margin-bottom: 16px;
        margin-top: 16px;
    }

    .mm-text-block .field__item article.align-right .field--type-image {
        margin-left: unset;
        margin-bottom: 16px;
        margin-top: 16px;
    }

    .mm-text-block article.media--type-image {
        width: 100%!important;
    }
    .mm-text-block .field__item figure.align-right,
    .mm-text-block .field__item figure.align-left,
    .mm-text-block .field__item figure {
        width: 100%!important;
    }
}
