/**
*	Name: Ms LightBox
*	Version: 1.1
*	Website: soroush.pro
*	Copyright: soroush.pro
*	Developer: Mahdi Soroush
*	Created on: January 19, 2017
**/

.sl-overlay {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: #000;
    opacity: .90;
    display: none;
    z-index: 1006
}

.sl-wrapper {
    z-index: 1000
}

    .sl-wrapper button {
        border: 0;
        background: 0 0;
        font-size: 30px;
        padding: 0;
        cursor: pointer;
        color: #fff
    }

        .sl-wrapper button:hover {
            opacity: .7
        }

    .sl-wrapper .sl-close {
        position: fixed;
        right: 25px;
        top: 25px;
        z-index: 1015;
        text-align: center;
        display: block;
        height: 30px;
        width: 30px;
        background: url("../img/ms_lightbox/close.svg") no-repeat center;
        background-size: 25px;
        -webkit-transition: all ease-in-out 300ms;
        -moz-transition: all ease-in-out 300ms;
        -o-transition: all ease-in-out 300ms;
        transition: all ease-in-out 300ms;
        opacity: 0.7;
    }

        .sl-wrapper .sl-close:hover {
            opacity: 1;
        }

    .sl-wrapper .sl-counter {
        display: none;
        position: fixed;
        top: 30px;
        left: 30px;
        z-index: 1015
    }

    .sl-wrapper .sl-navigation {
        width: 100%;
        display: none
    }

        .sl-wrapper .sl-navigation button {
            position: fixed;
            top: 50%;
            margin-top: -10px;
            height: 60px;
            width: 60px;
            line-height: 60px;
            text-align: center;
            display: block;
            z-index: 1015;
            font: normal 14px IranYekan !important;
            background: url("../img/ms_lightbox/arrow.svg") no-repeat center;
            background-size: 40px;
            -webkit-transition: all ease-in-out 300ms;
            -moz-transition: all ease-in-out 300ms;
            -o-transition: all ease-in-out 300ms;
            transition: all ease-in-out 300ms;
            opacity: 0.3;
        }

            .sl-wrapper .sl-navigation button:hover {
                opacity: 1;
            }

            .sl-wrapper .sl-navigation button.sl-prev {
                left: 40px;
                -webkit-transform: rotate(180deg);
                -moz-transform: rotate(180deg);
                -ms-transform: rotate(180deg);
                -o-transform: rotate(180deg);
                transform: rotate(180deg);
            }

            .sl-wrapper .sl-navigation button.sl-next {
                right: 40px;
            }

    .sl-wrapper .sl-image {
        position: fixed;
        -ms-touch-action: none;
        touch-action: none;
        z-index: 10000
    }

        .sl-wrapper .sl-image img {
            margin: 0;
            padding: 0;
            display: block
        }

        .sl-wrapper .sl-image .sl-caption {
            display: none;
            padding: 10px;
            color: #fff;
            /*background: #000;
    opacity: .8;*/
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            text-align: center;
        }

            .sl-wrapper .sl-image .sl-caption.pos-top {
                display: block;
                
                bottom: auto;
                text-align: center;
            }

    .sl-caption {
        display: none;
        top: -49px;
        font-size: 15px;
        font-weight: bold;
    }



@media (max-width: 640px) {
    .sl-caption {
        display: none;
        top:initial !important;
        bottom: 0px !important;
        position:relative !important;
        font-size: 12px;
        /*font-weight: bold;*/
    }

    .sl-wrapper .sl-image .sl-download {
        display: none;
        position: absolute;
        bottom: 5px;
        right: 5px;
        color: #fff;
        z-index: 1005
    }

    .sl-spinner {
        display: none;
        border: 5px solid #333;
        border-radius: 40px;
        height: 40px;
        left: 50%;
        margin: -20px 0 0 -20px;
        opacity: 0;
        position: fixed;
        top: 50%;
        width: 40px;
        z-index: 1007;
        -webkit-animation: pulsate 1s ease-out infinite;
        -moz-animation: pulsate 1s ease-out infinite;
        -o-animation: pulsate 1s ease-out infinite;
        animation: pulsate 1s ease-out infinite
    }

    .sl-scrollbar-measure {
        position: absolute;
        top: -9999px;
        width: 50px;
        height: 50px;
        overflow: scroll
    }

    @-webkit-keyframes pulsate {
        0% {
            transform: scale(.1);
            opacity: 0
        }

        50% {
            opacity: 1
        }

        100% {
            transform: scale(1.2);
            opacity: 0
        }
    }

    @keyframes pulsate {
        0% {
            transform: scale(.1);
            opacity: 0
        }

        50% {
            opacity: 1
        }

        100% {
            transform: scale(1.2);
            opacity: 0
        }
    }

    @-moz-keyframes pulsate {
        0% {
            transform: scale(.1);
            opacity: 0
        }

        50% {
            opacity: 1
        }

        100% {
            transform: scale(1.2);
            opacity: 0
        }
    }

    @-o-keyframes pulsate {
        0% {
            transform: scale(.1);
            opacity: 0
        }

        50% {
            opacity: 1
        }

        100% {
            transform: scale(1.2);
            opacity: 0
        }
    }

    @-ms-keyframes pulsate {
        0%, 100% {
            opacity: 0
        }

        0% {
            transform: scale(.1)
        }

        50% {
            opacity: 1
        }

        100% {
            transform: scale(1.2)
        }
    }

    .sl-wrapper a:hover, .sl-wrapper a:focus, .sl-wrapper a:active, .sl-wrapper a:visited,
    .sl-wrapper button:hover, .sl-wrapper button:focus, .sl-wrapper button:active, .sl-wrapper button:visited {
        outline: none !important;
        box-shadow: none !important;
    }

    .sl-wrapper .text_indent {
        text-indent: -9999em;
    }

    .sl-wrapper .text_indent {
        text-indent: -9999em;
        display: block;
    }
