.content-page {
    padding-bottom: 5px;
}

.grid-sizer, .grid-item {
    margin-top: 5px;
}

.gallery-container {
    padding: 5px 0 0 !important;
}

.gallery-item {

}

.gallery-item:hover, .gallery-item:focus, .gallery-item:active {
    cursor: pointer;
    text-decoration: none;
    outline: none;
}

.gallery-img {
    margin-bottom: 0;
    position: relative;
}

.gallery-img img {
    border-radius: 5px;
    height: 250px;
    width: 100%;
}

.gallery-img .img-frame {
    border-radius: 5px;
    height: 250px;
    width: 100%;
}

.gallery-content {
    text-align: center;
}

.gallery-title {
    font-size: 16px;
    color: #5b380e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 5px;
}

.gallery-title:hover {
    text-decoration: underline;
}

.title-bg {
    background: rgba(0, 0, 0, 0) url("../../images/gallery/gallery_title_bg.png") no-repeat scroll center center / 100% 100%;
    width: 100%;
    height: 61px;
    position: absolute;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 0 0 4px 4px;
}

.uiScaledImageContainer {
    /*position: relative;*/
    /*overflow: hidden;*/
    padding: 0 !important;
    margin-bottom: 0 !important;
}

/*-------------- admin -----------------*/
.gallery-add {
    padding-bottom: 30px;
}

/*-------------- media -----------------*/
@media (max-width: 767px) {
    .gallery-img .img-frame {
        height: 300px;
    }

    .gallery-img img {
        /*height: 100%;*/
        /*width: 100%;*/
        height: auto !important;
    }
}