/*----------------------------
	Thumbnails
-----------------------------*/

.touchgallery-thumbs {
    width: 95%;
    margin: 60px auto 35px;
    text-align: center;
    z-index: 0;
}

.touchgallery-thumbs-corner-shadow a {
    border: none;
    box-shadow: none;
    border-radius: 0;
    position: relative;
    text-decoration: none;
    overflow: visible;
    background-color: #fff;
}

.touchgallery-thumbs-corner-shadow a:before,
.touchgallery-thumbs-corner-shadow a:after {
    z-index: -1;
    position: absolute;
    content: "";
    bottom: 15px;
    left: 10px;
    width: 50%;
    top: 80%;
    max-width: 300px;
    background: #4C4C4C;
    box-shadow: 0 15px 10px #4C4C4C;
    transform: rotate(-3deg);
    -webkit-transition: right, transform 400ms ease-out;
    -moz-transition: right, transform 400ms ease-out;
    -ms-transition: right, transform 400ms ease-out;
    -o-transition: right, transform 400ms ease-out;
    transition: right, transform 400ms ease-out;
}

.touchgallery-thumbs-corner-shadow a:after {
    transform: rotate(3deg);
    right: 10px;
    left: auto;
}

.touchgallery-thumbs-corner-shadow a:hover:before {}

.touchgallery-thumbs-corner-shadow a:hover:after {}

.touchgallery-thumbs a .tg-thumbtitle-corner-shadow {
    display: none;
    background: -moz-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 100%);
    /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(0, 0, 0, 0)), color-stop(100%, rgba(0, 0, 0, 0.65)));
    /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 100%);
    /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 100%);
    /* Opera 11.10+ */
    background: -ms-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 100%);
    /* IE10+ */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 100%);
    /* W3C */
    filter: progid: DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#a6000000', GradientType=0);
    /* IE6-9 */
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, .4);
    font-size: 1.12em;
    z-index: 7;
    padding: 2em 6% 6% 6%;
    /*width: 92%;*/
    word-wrap: break-word;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
}

.touchgallery-thumbs a .tg-thumbtitle-corner-shadow:before {
    margin-right: 10px;
    content: '[';
    -webkit-transform: translateX(20px);
    -moz-transform: translateX(20px);
    transform: translateX(20px);
}

.touchgallery-thumbs a .tg-thumbtitle-corner-shadow:after {
    margin-left: 10px;
    content: ']';
    -webkit-transform: translateX(-20px);
    -moz-transform: translateX(-20px);
    transform: translateX(-20px);
}

.touchgallery-thumbs a .tg-thumbtitle-corner-shadow:before,
.touchgallery-thumbs a .tg-thumbtitle-corner-shadow:after {
    display: inline-block;
    opacity: 0;
    -webkit-transition: -webkit-transform 0.3s, opacity 0.2s;
    -moz-transition: -moz-transform 0.3s, opacity 0.2s;
    transition: transform 0.3s, opacity 0.2s;
}

.touchgallery-thumbs a:hover .tg-thumbtitle-corner-shadow:before,
.touchgallery-thumbs a:hover .tg-thumbtitle-corner-shadow:after,
.touchgallery-thumbs a:focus .tg-thumbtitle-corner-shadow:before,
.touchgallery-thumbs a:focus .tg-thumbtitle-corner-shadow:after {
    opacity: 1;
    -webkit-transform: translateX(0px);
    -moz-transform: translateX(0px);
    transform: translateX(0px);
}

.tg-with-caption-corner-shadow a .tg-thumbtitle-corner-shadow {
    display: block;
}


/*----------------------------
	Media Queries
-----------------------------*/

@media screen and (max-width: 960px) {
    .touchgallery-thumbs {
        width: auto;
    }
}

