.gallery_wrapper {

    width:100%;
    height:100%;
    min-height:100%;
    display:inline;

 }

div.img {

    width: 96px;
    height: 96px;
    margin: 0px;
    display: block;
    background-position: 50% 50%;
    background-repeat: no-repeat no-repeat;
    text-align:center;
    overflow:hidden;
    background-color:#FFFFFF;
    border: 1px solid #333333;

 }

div.desc {

    text-align:center;
    font-weight:normal;
    width:96px;
    clear:both;

}

div.img_wrapper {

    width:96px;
    height:158px;
    display:inline;
    float:left;
    clear:right;
    margin:0px 0px 0px 0px;
    padding:0px 4px 0px 0px;

}

div.img_wrapper_no_text {

    width: 96px;
    height: 96px;
    display:inline;
    float:left;
    clear:right;
    background-position: 50% 50%;
    background-repeat: no-repeat no-repeat;
    margin:1px 1px 1px 1px;
    padding:0px 0px 0px 0px;
    background-color:#FFFFFF;
    border: 1px solid #333333;

}

div.img img {

    border:0;

}

div.img a, div.img_wrapper_no_text a {

    width: 94px;
    height: 94px;
    display: block;

}

div.img:hover, div.img_wrapper_no_text:hover {

    border:1px solid #017FB9;

}

.ts_gallery_yes_nav {

    width: 76%;
    float:right;

}

.ts_gallery_no_nav {

    width: 100%;

}

.tsgallery {

    display:block;
    padding:6px 0px 0px 0px;

}

.ts_gallery_nav {

    display:inline;
    width:21%;
    float:left;
    padding:0px;
    margin:76px 0px 0px 0px;

}

.ts_gallery_nav_link {

    padding:5px 0px 5px 0px;

}

div.tsgallery H1 {

    text-align:center;

}

.header_buffer {

    width:100%;
    height:15px;

}