.document-gallery .document-icon {
    text-align: center;
}
.document-gallery {
display: table;
    border: 1px solid darkgray;
	width: 99.7%;
	background: #F1F1F1;
}	
.document-gallery .document-icon img {
    width: 50px;
    max-width: 100%;
    border: none;
    margin: 0 auto;
}

.document-gallery .document-icon a {
    font-size: 10px;
    line-height: 12px;
}

.document-gallery .document-icon {
    margin: 0;
}

.document-gallery .document-icon .title {
	display: none;
	/*display: block;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 12px;
    line-height: 15px;
    color: darkgreen;*/
}

.dg-paginate-wrapper .paginate {
    text-align: center;
}

/* WITHOUT DESCRIPTION */
.document-gallery .document-icon {
    display: inline-block;
    vertical-align: top;
    overflow: hidden;
}

.document-gallery .document-icon-row {
    padding: 0;
    text-align: left;
    float: left;
    max-width: 300px;
    margin: 10px 20px 10px 0px;
}
.document-gallery .document-icon-row p {
font-size: 13px;
    line-height: 17px;
    overflow: hidden; 
    text-overflow: ellipsis;
    max-height: 57px;
    font-weight: 500;
    width: 200px;
	}
/* END WITHOUT DESCRIPTION */

/* WITH DESCRIPTION */
.document-gallery {
 padding: 15px 5px;
}
.document-gallery .descriptions.document-icon-row .document-icon {
    max-width: 115px;
    padding: 0 3px 0 0;
    float: left;
}

.document-gallery .descriptions.document-icon-row {
    vertical-align: middle;
    text-align: inherit;
}

.document-gallery .descriptions.document-icon-row img {
   /*  width: 65px; */
    max-width: 100%;
}

/* clearfix */
/* can't depend on theme having a clearfix class,
so build it into dg css */
.document-gallery .descriptions.document-icon-row:before,
.document-gallery .descriptions.document-icon-row:after {
    content: "";
    display: table;
}

.document-gallery .descriptions.document-icon-row:after {
    clear: both;
}

.document-gallery .descriptions.document-icon-row {
    zoom: 1; /* For IE 6/7 (trigger hasLayout) */
}

/* END WITH DESCRIPTION */