.gallery_container{
    background:#fff url(../images/panel/tablerow-even.gif) repeat-x;
    border:0;
    padding-left: 1%;
    padding-bottom: 10px;
}

.content-container {
    padding: 10px 10px 0;
}

.content-table .gallery_container {
    border: 1px solid #CCCCCC;
    border-top:0;
}

.gallery_container .empty-result {
    padding-top: 8px;
    font-weight: bold;
}

.gallery4 {
    margin: 10px 0.9% 0 0;
    float: left;
    width: 18.85%;
    height: 182px;
    border: 1px solid #CCC;
    background: #e6e6e6 url(../images/panel/bg-box.gif) top repeat-x;
    text-align: center;
    padding-bottom: 10px;
    position: relative;
}

.gallery_image_disabled {
    background:#f7f7f7 url(../images/panel/bg-box-light.gif) top repeat-x;
    color:#808080;
}

.gallery_image_disabled img.image_gallery {
    opacity:0.5;
}

.gallery4 .interaction_container {
    top: 4px;
    left: 4px;
    position: absolute;
    z-index: 99;
    width: 100%;
    text-align: left;
}

.gallery4 .interaction_container .image-tags-container {
    float: right;
    padding-right: 10px;
}


/* Images
------------------------------------------------------------------*/
.image_container {
    width: 100%;
    height: 102px;
    margin: 0 auto 6px;
    white-space: nowrap;
}

.image_container_large {
    width: 100%;
    height: 400px;
    white-space: nowrap;
}

.image_container .image_container_helper,
.image_container_large .image_container_helper {
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    width: 0;
}

.image_container img.image_gallery,
.image_container_large img.image_gallery {
    vertical-align: middle;
    max-width: 95%;
}

img.image_gallery,
#sb-body-inner img {
    border: 1px solid #aaa;
    background: #f5f5f5 url(../images/background_transparency_small.gif) repeat;
}

.image_container_large img.image_gallery {
    max-width: 400px;
    max-height: 400px;
}

img.image_gallery_disabled {
    opacity:0.4;
}

a:hover .image_gallery:hover{
    border-color: black;
    opacity:0.8;
}

.info_container{
}

#dialogImagePreview a:hover .image_gallery:hover {
    opacity:1;
}

.image_link a{
    padding:0;
    margin:0;
}

/* gallery controls */

.sorter{
    padding: 4px 12px 0 0;
    font-size:10px;
    font-weight:bold;
    text-align:right;
    float:right;
    height:22px;
}

.sorter a img {
    vertical-align: -3px;
}

.view {
    padding: 4px 12px 0 0;
    font-size:10px;
    font-weight:bold;
    text-align:right;
    float:right;
    height:22px;
}

.left-sorter{
    padding: 3px 0 0 6px;
    font-size:11px;
    font-weight:bold;
    text-align:right;
    float:left;
    height:22px;

}

.sorter span{
    height:22px;
}

/* template gallery */

.template_gallery_container .gallery4{
    height: 145px;
    padding-top: 10px;
    width: 18.8%;
}

.template_gallery_container .info_container{
    height:22px;
}

/* Paginator
------------------------------------------------------------------*/

.paginator a {
    font-family:arial, sans-serif;
    font-size:8px;
    font-weight:bold;
}

/* Narrow panels
------------------------------------------------------------------*/

.panels-compact .gallery4 {
    margin-top: 4px;
    height:130px;
    width: 18.75%;
}

.panels-compact .gallery4 .image_container {
    height:104px;
}

.panels-compact .gallery4 .info_container {
    height:16px;
}