﻿#galleryOverlay {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0px;
    left: 0px;
    opacity: 0;
    z-index: 100000;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: hidden;
    display: none;
    transition: opacity 1s ease 0s;
}

    #galleryOverlay.visible {
        opacity: 1;
    }

#gallerySlider {
    height: 100%;
    left: 0px;
    top: 0px;
    width: 100%;
    white-space: nowrap;
    position: absolute;
    transition: left 0.4s ease 0s;
}

    #gallerySlider .placeholder {
        background: url("../images/loader.gif") center center no-repeat;
        height: 100%;
        line-height: 1px;
        text-align: center;
        width: 100%;
        display: inline-block;
    }

        #gallerySlider .placeholder::before {
            content: "";
            display: inline-block;
            height: 50%;
            width: 1px;
            margin-right: -1px;
        }

        #gallerySlider .placeholder img {
            display: inline-block;
            max-height: 100%;
            max-width: 100%;
            vertical-align: middle;
        }

    #gallerySlider.rightSpring {
        animation: 0.3s ease 0s 1 normal none running rightSpring;
    }

    #gallerySlider.leftSpring {
        animation: 0.3s ease 0s 1 normal none running leftSpring;
    }

@-webkit-keyframes rightSpring {
    0% {
        margin-left: 0px;
    }

    50% {
        margin-left: -30px;
    }

    100% {
        margin-left: 0px;
    }
}

@-webkit-keyframes leftSpring {
    0% {
        margin-left: 0px;
    }

    50% {
        margin-left: 30px;
    }

    100% {
        margin-left: 0px;
    }
}

#prevArrow, #nextArrow {
    border: none;
    text-decoration: none;
    background: url("../images/arrows.png") no-repeat;
    opacity: 0.5;
    cursor: pointer;
    position: absolute;
    width: 43px;
    height: 58px;
    top: 50%;
    margin-top: -29px;
    transition: opacity 0.2s ease 0s;
}

    #prevArrow:hover, #nextArrow:hover {
        opacity: 1;
    }

#prevArrow {
    background-position: left top;
    left: 40px;
}

#nextArrow {
    background-position: right top;
    right: 40px;
}
