@-webkit-keyframes zoom {
    from {
        -webkit-transform: scale(1)
    }

    to {
        -webkit-transform: scale(2)
    }
}

@keyframes zoom {
    from {
        transform: scale(0.4)
    }

    to {
        transform: scale(1)
    }
}

@keyframes zoom-out {
    from {
        transform: scale(1)
    }

    to {
        transform: scale(0)
    }
}

@keyframes mltShdSpin {
    0% {
        box-shadow: 0 -0.83em 0 -0.4em,
            0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em,
            0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
    }

    5%,
    95% {
        box-shadow: 0 -0.83em 0 -0.4em,
            0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em,
            0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
    }

    10%,
    59% {
        box-shadow: 0 -0.83em 0 -0.4em,
            -0.087em -0.825em 0 -0.42em, -0.173em -0.812em 0 -0.44em,
            -0.256em -0.789em 0 -0.46em, -0.297em -0.775em 0 -0.477em;
    }

    20% {
        box-shadow: 0 -0.83em 0 -0.4em, -0.338em -0.758em 0 -0.42em,
            -0.555em -0.617em 0 -0.44em, -0.671em -0.488em 0 -0.46em,
            -0.749em -0.34em 0 -0.477em;
    }

    38% {
        box-shadow: 0 -0.83em 0 -0.4em, -0.377em -0.74em 0 -0.42em,
            -0.645em -0.522em 0 -0.44em, -0.775em -0.297em 0 -0.46em,
            -0.82em -0.09em 0 -0.477em;
    }

    100% {
        box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em,
            0 -0.83em 0 -0.44em, 0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em;
    }
}

@keyframes round {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}

#myModal.modal {
    display: none;
    position: fixed;
    z-index: 1060;
    align-items: center;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.9);
}

#myModal.modal .modal-content {
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    width: 60%;
    height: 90%;
    border-width: 0px;
}

#myModal.modal .modal-content .image-modal {
    object-fit: contain;
    height: 100%;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

#myModal.modal .modal-content {
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
}

#myModal.modal .out {
    animation-name: zoom-out;
    animation-duration: 0.6s;
}

#myModal.modal .container-close {
    display: block;
    position: fixed;
    z-index: 100010;
    top: 32px;
    left: 32px;
}

#myModal.modal .container-close .icon-close {
    display: block;
    width: 25px;
    height: 23px;
    background: black url(/components/modal/img/buttons-close.png) no-repeat 7px 6px;
    transition: 0.5s all;
    cursor: pointer;
}

#myModal.modal .container-close .icon-close:hover {
    background-position: -32px 6px;
}

#myModal.modal .modal-content .loader {
    display: block;
    color: #ffffff;
    font-size: 64px;
    text-indent: -9999em;
    overflow: hidden;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    position: fixed;
    transform: translateZ(0);
    animation: mltShdSpin 1.7s infinite ease, round 1.7s infinite ease;
}

@media (max-width: 767px) {
    #myModal.modal .modal-content {
        width: 90%;
        height: 80%;
    }

    #myModal.modal .container-close {
        top: 16px;
        left: 32px;
    }

    #myModal.modal .modal-content .image-modal {
        max-width: 100%;
    }
}