/*----------------------------
	Thumbnails
-----------------------------*/

.touchgallery-thumbs {
    /*width: 95%;*/
    width: 100%;
    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;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    position: relative;
    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;
    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%;
    height: 25px;
}

#credit {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 11px;
    margin: 0 auto 70px;
    opacity: 0.5;
    padding: 12px 16px;
    text-align: center;
    width: 400px;
}


/*----------------------------
	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
-----------------------------*/

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


/* This class will trigger the animation */

.galleryOverlay.visible {
    opacity: 1;
}

.gallerySlider {
    height: 100%;
    left: 0;
    top: 0;
    width: 100%;
    white-space: nowrap;
    /* position: absolute; */
    position: relative;
    -moz-transition: left 0.4s ease;
    -webkit-transition: left 0.4s ease;
    transition: left 0.4s ease;
}

.gallerySlider .placeholder {
    background: url("images/preloader.gif") no-repeat center center;
    height: 100%;
    line-height: 1px;
    text-align: center;
    width: 100%;
    display: inline-block;
    /* position: relative; */
    position: absolute;
    padding: 0;
    margin: 0;
}


/* The before element moves the
 * image halfway from the top */

.gallerySlider .placeholder:before,
.gallerySlider .placeholder:after {
    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;
}

.galleryOverlay p.placeholderdesc {
    position: absolute;
    /*bottom:-40px;*/
    left: 0;
    width: 100%;
    color: #fff;
    text-align: center;
    background-color: #000;
    background-color: rgba(0, 0, 0, 0.65);
    margin: 0;
    padding: 10px;
    font-size: 14px;
    display: block;
    width: 100%;
    height: auto;
    -moz-box-sizing: border-box;
    /* Firefox */
    -webkit-box-sizing: border-box;
    /* Safari */
    box-sizing: border-box;
    -moz-transition: bottom 0.7s ease, opacity 1s ease;
    -webkit-transition: bottom 0.7s ease, opacity 1s ease;
    transition: bottom 0.7s ease, opacity 1s ease;
}

.placeholderclose {
    border: none;
    text-decoration: none;
    background: url('images/sprites.png') left -58px no-repeat;
    opacity: 0.5;
    cursor: pointer;
    position: absolute;
    width: 50px;
    height: 50px;
    top: 10px;
    right: 36px;
    -moz-transition: top 0.7s ease, right 0.7s ease, opacity 0.5s ease;
    -webkit-transition: top 0.7s ease, right 0.7s ease, opacity 0.5s ease;
    transition: top 0.7s ease, right 0.7s ease, opacity 0.5s ease;
}

.placeholdercontrols {
    border: none;
    text-decoration: none;
    background: url('images/sprites.png') left bottom no-repeat;
    opacity: 0.5;
    cursor: pointer;
    position: absolute;
    width: 44px;
    height: 44px;
    -moz-transition: top 0.7s ease, right 0.7s ease, opacity 0.5s ease;
    -webkit-transition: top 0.7s ease, right 0.7s ease, opacity 0.5s ease;
    transition: top 0.7s ease, right 0.7s ease, opacity 0.5s ease;
}

.gallerySlider.rightSpring {
    -moz-animation: rightSpring 0.5s;
    -webkit-animation: rightSpring 0.5s;
}

.gallerySlider.leftSpring {
    -moz-animation: leftSpring 0.5s;
    -webkit-animation: leftSpring 0.5s;
}


/* Firefox Keyframe Animations */

@-moz-keyframes rightSpring {
    0% {
        margin-left: 0px;
    }
    50% {
        margin-left: -60px;
    }
    100% {
        margin-left: 0px;
    }
}

@-moz-keyframes leftSpring {
    0% {
        margin-left: 0px;
    }
    50% {
        margin-left: 60px;
    }
    100% {
        margin-left: 0px;
    }
}


/* 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;
    }
}


/* Arrows */

.tgArrow {
    border: none;
    text-decoration: none;
    background: url('images/sprites.png') no-repeat;
    opacity: 0.5;
    cursor: pointer;
    position: absolute;
    width: 43px;
    height: 58px;
    top: 50%;
    margin-top: -29px;
    -moz-transition: opacity 0.2s ease;
    -webkit-transition: opacity 0.2s ease;
    transition: opacity 0.2s ease;
}

.tgArrow:hover,
.placeholderclose:hover {
    opacity: 1;
}

.prevArrow {
    background-position: left top;
    left: 40px;
}

.nextArrow {
    background-position: right top;
    right: 40px;
}

@media (-webkit-min-device-pixel-ratio: 1.1),
(-webkit-min-device-pixel-ratio: 1.09375),
(min-resolution: 105dpi),
(min-resolution: 1.1dppx) {
    /* Serve SVG sprite if browser supports SVG and resolution is more than 105dpi */
    .tg--svg .placeholderclose,
    .tg--svg .placeholdercontrols,
    .tg--svg .tgArrow {
        background-image: url('images/sprites.svg');
    }
}