.tt-gallery-overlay {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    margin: 0;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 100000;
    background-color: #222;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: hidden;
    -moz-transition: opacity .8s ease;
    -webkit-transition: opacity .8s ease;
    transition: opacity .8s ease;
}

.tt-gallery-overlay.tt-visible {
    opacity: 1;
}

.tt-gallery-slider {
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 0;
    top: 0;
    left: 0;
    z-index: 1;
    white-space: nowrap;
    -moz-transition-property: left;
    -moz-transition-duration: 0.4s;
    -moz-transition-timing-function: ease;
    -webkit-transition-property: left;
    -webkit-transition-duration: 0.4s;
    -webkit-transition-timing-function: ease;
    transition-property: left;
    transition-duration: 0.4s;
    transition-timing-function: ease;
}

.tt-gallery-slider.tt-right-spring {
    -moz-animation: tt-right-spring 0.3s;
    -webkit-animation: tt-right-spring 0.3s;
    animation: tt-right-spring 0.3s;
}

.tt-gallery-slider.tt-left-spring {
    -moz-animation: tt-left-spring 0.3s;
    -webkit-animation: tt-left-spring 0.3s;
    animation: tt-left-spring 0.3s;
}

.tt-gallery-slider .tt-placeholder {
    width: 100%;
    height: 100%;
    display: inline-block;
    vertical-align: middle;
    overflow: visible;
    line-height: 1px;
    text-align: center;
    background-color: transparent;
    background-image: url('../img/loader2.gif');
    background-repeat: no-repeat;
    background-position: center center;
}

.tt-gallery-slider .tt-placeholder.tt-img {
    background-image: none;
}

.tt-gallery-slider .tt-placeholder::before {
    position: relative;
    display: inline-block;
    content: "";
    height: 50%;
    width: 1px;
    border: 0;
    padding: 0;
    margin: 0;
    margin-right: -1px;
}

.tt-gallery-slider .tt-placeholder img {
    display: inline-block;
    vertical-align: middle;
    width: auto;
    height: auto;
}

.tt-gallery-overlay .tt-prev-arrow,
.tt-gallery-overlay .tt-next-arrow {
    position: absolute;
    display: inline-block;
    width: 43px;
    height: 80px;
    top: 50%;
    margin-top: -29px;
    z-index: 5;
    text-decoration: none;
    cursor: pointer;
    opacity: 0.3;
    background-color: transparent;
    background-image: url('../img/arrows.png');
    background-repeat: no-repeat;
    -moz-transition: opacity .2s ease;
    -webkit-transition: opacity .2s ease;
    transition: opacity .2s ease;
}

.tt-gallery-overlay .tt-prev-arrow:hover,
.tt-gallery-overlay .tt-next-arrow:hover {
    opacity: 1;
}

.tt-gallery-overlay .tt-prev-arrow {
    background-position: left top;
    left: 1%;
}

.tt-gallery-overlay .tt-next-arrow {
    background-position: right top;
    right: 1%;
}

.tt-gallery-overlay .tt-caption {
    position: absolute;
    display: block;
    z-index: 5;
    width: 100%;
    height: auto;
    background: none;
    left: 0;
    bottom: 20px;
    font-size: 24px;
    font-weight: 500;
    line-height: 34px;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    text-align: center;
}

@-webkit-keyframes tt-right-spring {
    0% {
        margin-left: 0px;
    }

    50% {
        margin-left: -30px;
    }

    100% {
        margin-left: 0px;
    }
}

@keyframes tt-right-spring {
    0% {
        margin-left: 0px;
    }

    50% {
        margin-left: -30px;
    }

    100% {
        margin-left: 0px;
    }
}

@-webkit-keyframes tt-left-spring {
    0% {
        margin-left: 0px;
    }

    50% {
        margin-left: 30px;
    }

    100% {
        margin-left: 0px;
    }
}

@keyframes tt-left-spring {
    0% {
        margin-left: 0px;
    }

    50% {
        margin-left: 30px;
    }

    100% {
        margin-left: 0px;
    }
}

@media (max-width: 1080px) {

    .tt-gallery-overlay.tt-touch-screen .tt-prev-arrow,
    .tt-gallery-overlay.tt-touch-screen .tt-next-arrow {
        display: none !important;
    }

    .tt-gallery-overlay.tt-touch-screen .tt-close {
        display: inline-block;
    }
}

@media (orientation: landscape) {
    .tt-gallery-slider .tt-placeholder img {
        max-width: none;
        max-height: 100%;
    }
}

@media (orientation: portrait) {
    .tt-gallery-slider .tt-placeholder img {
        max-height: none;
        max-width: 100%;
    }
}

/* Image LightBox 'Close' Button */
.tt-gallery-overlay .tt-close {
    top: 1px;
    right: 1px;
    position: absolute;
    width: 48px;
    height: 48px;
    z-index: 5;
    text-decoration: none;
    cursor: pointer;
    background-color: transparent;
    background-image: url(../img/close.png);
    background-repeat: no-repeat;
    -moz-transition: opacity .2s ease;
    -webkit-transition: opacity .2s ease;
    transition: opacity .2s ease;
    opacity: 0.3;
}

.tt-gallery-overlay .tt-close:hover {
    opacity: 1;
}