.huMonguzRestGalleryWrapper-top,
.huMonguzRestGalleryWrapper-bottom {
    display: none;
}

.huMonguzRestGalleryWrapper {
    margin: 20px 0px;
}

.huMonguzRestGalleryWrapper .rest-gallery-waiting .loading-wrapper{
    text-align: center;
}

.huMonguzRestGallery.portlet-edit-mode {
    display: block;
}

.huMonguzRestGallery .coverservlet_wrapper {
    margin: 0px;
}

.huMonguzRestGallery img {
    box-shadow: none !important;
}

.huMonguzRestGallery .coverservlet_wrapper {
    position: relative;
}

.huMonguzRestGallery .coverservlet_wrapper a {
    position: absolute;
    bottom: 5px;
    display: block;
    width: 100%;
    display: block;
    text-align: center;
}

.huMonguzRestGallery .coverservlet_wrapper a .coverservlet_from {
    background-color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding-top: 0px;
    padding-bottom: 0px;
    padding: 2px;
    display: inline-block;
}

.huMonguzRestGallery #imageBlock {
    margin-bottom: 10px;
    display: table;
}

.huMonguzRestGallery #imageBlock .galleryElement {
    display: inline-table;
    margin-bottom: 10px;
    margin-right: 5px;
}

.huMonguzRestGallery #imageBlock .imageWrapper {
    background: #F0F0F0;
    border: 1px solid #B6B6B6;
    box-shadow: #FCFCFC 0px 0px 0px 1px inset, 0px 0px 12px -3px gray;
}

.huMonguzRestGallery #imageBlock .itemDescription {
    display: table-footer-group;
}

.huMonguzRestGallery #imageBlock .imageWrapper .image {
    height: 200px;
    cursor: pointer;
    background-image: url('../images/loading.gif');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.huMonguzRestGallery #imageBlock .imageWrapper img {
    display: inherit;
}

.huMonguzRestGallery #imageBlock .imageWrapper .coverServletImage {
    height: 200px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.huMonguzRestGallery #imageBlock .imageWrapper .image.default {
    background-image: url('../images/default.gif');
}

.huMonguzRestGallery #imageBlock .imageWrapper .description {
    text-align: center;
    white-space: nowrap;
    /*overflow: hidden;*/
    text-overflow: ellipsis;
    cursor: pointer;
}

.huMonguzRestGallery #loadingBar {
    background-image: url('../images/loading_bar.gif');
    height: 130px;
    background-position: center;
    background-repeat: no-repeat;
}

.huMonguzRestGallery #centerButtonBlock .buttonItem {

}

.huMonguzRestGallery #errorMessage {

}

.huMonguzRestGallery #metadataTemplate {
    width: 300px;
    height: 100px;
}

.huMonguzRestGallery .allButtonBlock {
    /*line-height: 130px;*/
    text-align: center;
}

.huMonguzRestGallery .allButtonBlock .buttonBlock {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.huMonguzRestGallery .allButtonBlock .buttonBlock .buttonItem {
    width: 220px;
    margin: 5px;
    padding: 3px 10px 3px 10px;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 1px 1px 1px 0px gray;
    background: #57abdd;
    color: white;
    font-weight: bold;
    font-size: 10pt;
}

.huMonguzRestGallery .allButtonBlock .buttonBlock .dotDotItem {
    width: 220px;
    padding: 5px;
    background-color: light-grey;
}

.huMonguzRestGallery .allButtonBlock .buttonBlock .buttonItem.selected {
    width: 220px;
    padding: 8px 8px;
    margin: 5px;
    background-color: #76ae00;
    cursor: default;
}

.huMonguzRestGallery .allButtonBlock .buttonBlock .moreImageButton {
    margin: 5px;
    padding: 8px;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 1px 1px 1px 0px gray;
    background: #57abdd;
    color: white;
    font-weight: bold;
    font-size: 10pt;
    text-shadow: none;
}

.huMonguzRestGallery .allButtonBlock .buttonBlock .moreImageButton:hover {
    border: none !important;
}

.huMonguzRestGallery .coverservlet_from {
    text-align: center;
}

.huMonguzRestGallery .coverservlet_image_wrapper {
    border: none;
    box-shadow: none;
    text-align: center;
}

.huMonguzRestGallery img {
    border: 1px solid grey;
    max-width: 100%;
    max-height: 100%;
}

.huMonguzRestGallery .coverservlet_wrapper .coverservlet_form_wrapper .coverservlet_from_link {
    position: relative;
}

.huMonguzRestGallery .coverservlet_wrapper.coverservlet_contain_image div.coverservlet_image {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    position: absolute;
}

.huMonguzRestGallery .coverservlet_description_wrapper {
    color: black;
    box-shadow: 0 4px 2px -2px rgba(255, 255, 255, 0.7);
    background-color: rgba(255, 255, 255, 0.7);
}

.huMonguzRestGallery .coverservlet_description_title {
    padding: 10px 3px;
    font-size: 14px;
    font-weight: bold;
    max-height: 100px;
    overflow: hidden;
}

.huMonguzRestGallery .coverservlet_description_author {
    font-size: 12px;
    font-weight: bolder;
    max-height: 20px;
    overflow: hidden;
}

.huMonguzRestGallery .coverservlet_description_publishDate {
    font-size: 12px;
    max-height: 20px;
    overflow: hidden;
}


.huMonguzRestGallery ul li {
    margin: 0;
}

.huMonguzRestGallery ul li table .coverservlet_wrapper,
.huMonguzRestGallery ul li table .coverservlet_image_wrapper,
.huMonguzRestGallery ul li table .coverservlet_image_wrapper .coverservlet_image {
    height: 100%;
}

.huMonguzRestGallery ul li .gallery-border {
    /*border: 1px solid #000000;*/
    box-shadow: 0 7px 10px 2px #0000009e;
    display: block;
}

.huMonguzRestGallery ul li table .coverservlet_image {
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
}

.huMonguzRestGalleryWrapper .counter-wrapper {
    margin-top: 10px;
    cursor: default;
}

.huMonguzRestGalleryWrapper .record-item-title {
    bottom: 10px;
    position: absolute;
    padding: 5px;
    text-align: center;
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    color: #ffffff;
    display: none;
}

.huMonguzRestGalleryWrapper .counter {
    /*border: 1px solid #000000;*/
    display: inline-block;
    padding: 5px;
}
