/*----------------------------
	Thumbnails
-----------------------------*/

.touchgallery-thumbs {
    /*width: 95%;*/
    width: 100%;
    -webkit-box-sizing: border-box !important;
            box-sizing: border-box !important;
    position: relative;
    padding: 0;
    margin: 60px auto 35px;
    text-align: center;
}

.touchgallery-thumbs.tg-fluid {
    visibility: hidden;
}

.touchgallery-thumbs a {
    display: inline-block;
    border: 7px solid #303030;
    -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    position: relative;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    text-decoration: none;
    margin: 0;
    padding: 0;
    overflow: visible;
    background-position: center center;
    background-repeat: no-repeat;
}

.touchgallery-thumbs.tg-fluid a {
    position: absolute !important;
}

.tg-with-caption a:after {
    content: attr(title);
    background-color: #303030;
    border-radius: 5px;
    -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    color: #FFFFFF;
    display: inline-block;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    -o-text-overflow: ellipsis;
    -webkit-text-overflow: ellipsis;
    padding: 6px 5px;
    position: relative;
    text-align: center;
    left: 0;
    top: 100%;
    margin-top: 15px;
    width: 100%;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
}


/*----------------------------
	Media Queries
-----------------------------*/

@media screen and (max-width: 960px) {
    .touchgallery-thumbs {
        width: auto;
    }
}


/*----------------------------
	Namespaced clearfix to not clash with yours
-----------------------------*/

.tg-clearfix {
    /* Supports IE6 & 7
	 if using box-sizing: border-box this is not needed
	*/
    *zoom: 1;
}

.tg-clearfix:before,
.tg-clearfix:after {
    display: table;
    content: "";
}

.tg-clearfix:after {
    clear: both;
}


/*----------------------------
	The gallery overlay
-----------------------------*/

.tg-galleryOverlay {
    width: 100vw;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 100000;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: hidden;
    display: none;
    -webkit-transition: opacity 1000ms ease!important;
    transition: opacity 1000ms ease!important;
}


/* This class will trigger the animation */

.tg-galleryOverlay.visible {
    opacity: 1;
    width: 100%;
}

.tg-gallerySlider {
    height: 100%;
    left: 0;
    top: 0;
    width: 100%;
    white-space: nowrap;
    position: absolute;
    /* background-repeat: no-repeat!important;
    background-position: -9999px -9999px!important; */
}

.tg-gallerySlider .tg-placeholder {
    display: inline-block;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    position: absolute;
    /* margin-left: -50%; */
    width: 100%;
    height: 100%;
    text-align: center;
    -webkit-transition: none;
    transition: none;
}


/* .tg-gallerySlider .tg-placeholder { */

.tg-gallerySlider {
    -webkit-transition: -webkit-transform 500ms ease, left 500ms ease;
    -webkit-transition: left 500ms ease, -webkit-transform 500ms ease;
    transition: left 500ms ease, -webkit-transform 500ms ease;
    transition: transform 500ms ease, left 500ms ease;
    transition: transform 500ms ease, left 500ms ease, -webkit-transform 500ms ease;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}


/* The before element moves the
 * image halfway from the top */

.tg-gallerySlider .tg-placeholder:before,
.tg-gallerySlider .tg-placeholder:after {
    content: "";
    display: inline-block;
    height: 50%;
    width: 1px;
    margin-right: -1px;
}

.tg-gallerySlider .tg-placeholder img {
    display: inline-block;
    max-height: 100%;
    max-width: 100%;
    vertical-align: middle;
    opacity: 1;
    -webkit-transition: opacity 350ms ease-in!important;
    transition: opacity 350ms ease-in!important;
    -webkit-box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.9);
    box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.9);
}

.tg-gallerySlider .tg-placeholder img.loading {
    opacity: 0;
}

.tg-galleryOverlay div.tg-placeholderdesc {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    color: #fff;
    text-align: center;
    background-color: #000;
    background-color: rgba(0, 0, 0, 0.65);
    opacity: 1;
    margin: 0;
    padding: 10px;
    font-size: 14px;
    display: block;
    width: 100%;
    height: auto;
    /* Firefox */
    -webkit-box-sizing: border-box;
    /* Safari */
    box-sizing: border-box;
    -webkit-transition: bottom 0.7s ease, opacity 1s ease, height 0.5s ease;
    transition: bottom 0.7s ease, opacity 1s ease, height 0.5s ease;
}

.tg-gallerySlider.rightSpring {
    -moz-animation: rightSpring 0.5s;
    -webkit-animation: rightSpring 0.5s;
}

.tg-gallerySlider.leftSpring {
    -moz-animation: leftSpring 0.5s;
    -webkit-animation: leftSpring 0.5s;
}


/* Firefox Keyframe Animations */


/* Safari and Chrome Keyframe Animations */

@-webkit-keyframes rightSpring {
    0% {
        margin-left: 0px;
    }
    50% {
        margin-left: -60px;
    }
    100% {
        margin-left: 0px;
    }
}

@-webkit-keyframes leftSpring {
    0% {
        margin-left: 0px;
    }
    50% {
        margin-left: 60px;
    }
    100% {
        margin-left: 0px;
    }
}

@keyframes rightSpring {
    0% {
        margin-left: 0px;
    }
    50% {
        margin-left: -60px;
    }
    100% {
        margin-left: 0px;
    }
}

@keyframes leftSpring {
    0% {
        margin-left: 0px;
    }
    50% {
        margin-left: 60px;
    }
    100% {
        margin-left: 0px;
    }
}


/* Icons */

.tg-has-icons {
    background-color: transparent;
    background-repeat: no-repeat;
    border: none;
    text-decoration: none;
    /* opacity: 0.5; */
    opacity: 1;
    cursor: pointer;
    position: absolute;
    -webkit-backface-visibility: hidden;
    -webkit-transition: all 0.3s ease-out 0.1s;
    transition: all 0.3s ease-out 0.1s;
    width: 36px;
    height: 36px;
}

.tg-has-icons:hover {
    background-color: #2A2A2A;
    -webkit-box-shadow: inset 1px 1px 6px rgba(0, 0, 0, 0.3);
    box-shadow: inset 1px 1px 6px rgba(0, 0, 0, 0.3);
}

.tg-has-icons:hover,
.tg-has-icons:active,
.tg-has-icons:focus {
    /* opacity: 1; */
    outline: none;
}

.tg-no-focus:focus,
.tg-no-focus:active {
    outline: none;
}

.tg-placeholderclose,
.tg-placeholdercontrols {
    border-bottom-left-radius: 3px;
}

.tg-placeholderclose {
    top: 0;
    right: 0;
    background-position: -95px 50%;
    background-size: auto 95%;
}

.tg-placeholdercontrols {
    background-position: -140px 50%;
    background-size: auto 95%;
}

.tg-arrow {
    top: 50%;
    margin-top: -30px;
    height: 60px;
}

.tg-arrow.prevArrow {
    /* background-position: left top; */
    background-position: -10px 50%;
    /* left: 40px; */
    left: 0;
    border-radius: 0 3px 3px 0;
}

.tg-arrow.nextArrow {
    /* background-position: right top; */
    background-position: -60px 50%;
    /* right: 40px; */
    right: 0;
    border-radius: 3px 0 0 3px;
}

@media only screen and (min-width: 1020px) {
    .tg-has-icons {
        width: 52px;
        height: 52px;
    }
    .tg-arrow {
        height: 100px;
        margin-top: -50px;
    }
    .tg-arrow.prevArrow {
        background-position: -4px 50%;
    }
    .tg-arrow.nextArrow {
        background-position: -50px 50%;
    }
    .tg-placeholderclose {
        background-position: -106px 50%;
        background-size: auto;
    }
    .tg-placeholdercontrols {
        background-position: -160px 50%;
        background-size: auto;
    }
}


/* Serve SVG sprite if browser supports it otherwise use png */

.tg--svg .tg-light-icons.tg-thinner-icons .tg-has-icons {
    background-image: url('images/sprites-light-thinner.svg');
}

.tg--no-svg .tg-light-icons.tg-thinner-icons .tg-has-icons {
    background-image: url('images/sprites-light-thinner.png');
}

.tg--svg .tg-light-icons.tg-thin-icons .tg-has-icons {
    background-image: url('images/sprites-light-thin.svg');
}

.tg--no-svg .tg-light-icons.tg-thin-icons .tg-has-icons {
    background-image: url('images/sprites-light-thin.png');
}

.tg--svg .tg-light-icons.tg-thick-icons .tg-has-icons {
    background-image: url('images/sprites-light-thick.svg');
}

.tg--no-svg .tg-light-icons.tg-thick-icons .tg-has-icons {
    background-image: url('images/sprites-light-thick.png');
}

.tg--svg .tg-dark-icons.tg-thinner-icons .tg-has-icons {
    background-image: url('images/sprites-dark-thinner.svg');
}

.tg--no-svg .tg-dark-icons.tg-thinner-icons .tg-has-icons {
    background-image: url('images/sprites-dark-thinner.png');
}

.tg--svg .tg-dark-icons.tg-thin-icons .tg-has-icons {
    background-image: url('images/sprites-dark-thin.svg');
}

.tg--no-svg .tg-dark-icons.tg-thin-icons .tg-has-icons {
    background-image: url('images/sprites-dark-thin.png');
}

.tg--svg .tg-dark-icons.tg-thick-icons .tg-has-icons {
    background-image: url('images/sprites-dark-thick.svg');
}

.tg--no-svg .tg-dark-icons.tg-thick-icons .tg-has-icons {
    background-image: url('images/sprites-dark-thick.png');
}


/* pure CSS spinner */

.tg-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: -1;
}

.tg-spinner-bar {
    display: inline-block;
    width: 4px;
    height: 18px;
    border-radius: 4px;
    -webkit-box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.55);
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.55);
    background-color: #fff;
    margin-right: 3px;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.tg-animated .tg-spinner-bar {
    -webkit-animation: spinner 1s ease-in-out infinite;
    animation: spinner 1s ease-in-out infinite;
}

.tg-spinner-bar:nth-child(1) {
    -webkit-animation-delay: 0s;
    animation-delay: 0s;
}

.tg-spinner-bar:nth-child(2) {
    -webkit-animation-delay: 0.09s;
    animation-delay: 0.09s;
}

.tg-spinner-bar:nth-child(3) {
    -webkit-animation-delay: .18s;
    animation-delay: .18s;
}

.tg-spinner-bar:nth-child(4) {
    -webkit-animation-delay: .27s;
    animation-delay: .27s;
}

.tg-spinner.color .tg-spinner-bar:nth-child(1) {
    background-color: #3498db;
}

.tg-spinner.color .tg-spinner-bar:nth-child(2) {
    background-color: #c0392b;
}

.tg-spinner.color .tg-spinner-bar:nth-child(3) {
    background-color: #f1c40f;
}

.tg-spinner.color .tg-spinner-bar:nth-child(4) {
    background-color: #27ae60;
}

@-webkit-keyframes spinner {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    20% {
        -webkit-transform: scale(1, 2.2);
        transform: scale(1, 2.2);
    }
    40% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

@keyframes spinner {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    20% {
        -webkit-transform: scale(1, 2.2);
        transform: scale(1, 2.2);
    }
    40% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}