.cbcfg {
    background-color: #1a1a1a;
    width: 100%;
    height: 100%;
    position: relative;
    font-family: Arial, Helvetica, sans-serif;
    overflow: hidden;
}

.cbcfg .noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
}

.cbcfgfullscreen {
    position: fixed;
    width: 100%;
    height: 100%;
    top:0;
    left:0;
    z-index:2000000;
}

.cbcfg.loading {
    background-image: url("../img/fg/loading.gif");
    background-repeat: no-repeat;
    background-position: 50% 50%;
}

.cbcfg ul { list-style-type: none; margin: 0; padding: 0 }
.cbcfg ul li { background: none; }

.cbcfg ul.images { width: 100%; height: 100%; }
.cbcfg ul.images li { display: none; line-height: 0; }
.cbcfg ul.images li img { z-index:0;}

.cbcfg .overlays.thumbOn ul.captions {
    bottom: 95px;
}
.cbcfg .overlays.thumbOn .thumbcontainer {
    display: block;
}

.cbcfg .overlays .captions a { color: #C3C3C3; text-decoration: underline; }
.cbcfg .overlays .captions a:hover { color: #FFFFFF; }

.cbcfg .thumbcontainer { display: none; position: absolute; bottom: 32px; left: 0; width: 100%; height: 62px; overflow: hidden; background-color: #000000; background: rgba(0, 0, 0, 0.75); z-index: 10010; border-top: 1px solid #555; }
.cbcfg .thumbcontainer .thumbnav {
    display: block;
    height: 16px;
    width: 8px;
    padding: 23px 8px;
    background-repeat: no-repeat;
    background-image: url("../img/fg/thumbnav.png");
    position: absolute;
    top: 0;
    cursor:pointer;
    z-index: 10030;
}
.cbcfg .thumbcontainer .thumbnav.prev { background-position: -28px 23px; left: 0; }
.cbcfg .thumbcontainer .thumbnav.prev:hover { background-position: -46px 23px; left: 0; }

.cbcfg .thumbcontainer .thumbnav.next { background-position: 8px 23px; right: 0; }
.cbcfg .thumbcontainer .thumbnav.next:hover { background-position: -10px 23px; right: 0; }

.cbcfg .thumbcontainer .thumbnails { margin: 0 24px; overflow: hidden; position:relative;  }
.cbcfg .thumbcontainer .thumbnails ul {  display: block; left: 0px; position: relative; top: 0;}
.cbcfg .thumbcontainer .thumbnails ul li { float: left; display: block; margin: 8px 8px; line-height:0; background-color: #000; width: 78px; height: 46px; overflow: hidden; }
.cbcfg .thumbcontainer .thumbnails ul li:first-child { margin-left: 0px }
.cbcfg .thumbcontainer .thumbnails ul li:last-child { margin-right: 0px }
.cbcfg .thumbcontainer .thumbnails ul li img { cursor: pointer;
    -moz-opacity: 0.4;
    opacity: 0.4;
    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha"(Opacity=40);
    filter:alpha(opacity=40);
}
.cbcfg .thumbcontainer .thumbnails ul li img.wide { height: 46px; }
.cbcfg .thumbcontainer .thumbnails ul li img.tall { width: 78px; }
.cbcfg .thumbcontainer .thumbnails ul li.selected { border: 1px solid #555; width: 76px; height: 44px }

.cbcfg .thumbcontainer .thumbnails ul li.selected img {
    -moz-opacity: 1;
    opacity: 1;
    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha"(Opacity=100);
    filter:alpha(opacity=100);
    margin-top: -1px;
    margin-left: -1px;
}

.cbcfg ul.captions { width: 100%; height: auto; position: absolute; left: 0; bottom: 32px; display: none; border-top: 1px solid #555; z-index: 10030; }
.cbcfg ul.captions li { color: #c3c3c3; padding: 10px; background-color: #000000; background: rgba(0, 0, 0, 0.75); display: none; font-size: 12px;}
.cbcfg ul.captions li.nodesc { font-style: italic; }

.cbcfg ul.captions.on {
    display: block;
}

.cbcfg .tools {
    position: relative;
    bottom: 32px;
    left: 0;
    height: 31px;
    width: 100%;
    background-color: #000;
    color: #c3c3c3;
    z-index: 10000;
    border-top: 1px solid #555;
}
.cbcfg .tools .counter {
    color: #FFF;
    font-size: 12px;
    line-height: 32px;
    padding-left: 10px;
    float: left;
}

.cbcfg .tools .icon {
    background-image: url("../img/fg/toolsprite.png");
    background-repeat: no-repeat;
    height: 15px;
    width: 24px;
    margin: 8px 5px;
    display: block;
    float: right;
    cursor: pointer;
}

.cbcfg .tools .fullscreen { background-position: -34px 0; }
.cbcfg .tools .fullscreen:hover, .cbcfg .tools .fullscreen.on { background-position: -34px -25px; }

.cbcfg .tools .captions { background-position: -160px 0; width: 82px;}
.cbcfg .tools .captions:hover, .cbcfg .tools .captions.on { background-position: -160px -25px; }
.cbcfg .tools .captions.on { background-position: -68px 0; width: 82px;}
.cbcfg .tools .captions.on:hover { background-position: -68px -25px; }

.cbcfg .tools .thumbs { background-position: 0 0; }
.cbcfg .tools .thumbs:hover, .cbcfg .tools .thumbs.on { background-position: 0 -25px; }

.cbcfg .nav {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    cursor: pointer;
    height: 100%;
    border-width: 0px 0px 32px 0px;
    border-style: solid;
    border-color: transparent;
    width: 50%;
    position: absolute;
    top: 0;
    background-image: url(data:image/gif;base64,R0lGODlhAQABAIAAAD9AQAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==);
    background-repeat: repeat;
}
.cbcfg .nav:focus {
    outline:0;
    border: none;
    border-color: transparent;
}

.cbcfg .nav.prev { background-position: 0 50%; left: 0; }
.cbcfg .nav.prev:hover { background-image: url("../img/fg/prev.png"); background-repeat: no-repeat; }

.cbcfg .nav.next { background-position: 100% 50%; right: 0; }
.cbcfg .nav.next:hover { background-image: url("../img/fg/next.png"); background-repeat: no-repeat; }

.cbcfg .nav.next.disabled, .cbcfg .nav.prev.disabled { cursor: default; background-image: none; }