/*----------------------------
	Thumbnails
-----------------------------*/

.touchgallery-thumbs.touchgallery-thumbs-polaroid {
    width: 95%;
    margin: 20px auto 35px;
    text-align: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-flow: row wrap;
    flex-flow: row wrap;
}

.touchgallery-thumbs.touchgallery-thumbs-polaroid a {
    display: table;
    /* float: left; */
    border: 7px solid #fff;
    -webkit-box-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
    /*border-radius:0;*/
    position: relative;
    text-decoration: none;
    background-color: #fff;
    overflow: hidden;
    -webkit-transition: all 300ms ease-out;
    transition: all 300ms ease-out;
}

.touchgallery-thumbs.touchgallery-thumbs-polaroid a img {
    max-width: 100%;
}

.touchgallery-thumbs.touchgallery-thumbs-polaroid a .tg-thumbtitle-polaroid {
    display: none;
    min-height: 50.000px;
    /*color: #303030;*/
    font-size: 1.0em;
    line-height:1.0em;
    z-index: 7;
    padding: 7px 7px 0;
    /*width: 92%;*/
    word-wrap: break-word;
    word-break: break-word;
}

.touchgallery-thumbs.touchgallery-thumbs-polaroid.tg-with-caption-polaroid a .tg-thumbtitle-polaroid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex: 1;
    -webkit-box-flex: 1;
    flex: 1;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}
