.document-gallery .document-icon {
    text-align: center;
}

.document-gallery .document-icon img {
    width: 89px;
    max-width: 100%;
    border: none;
    margin: 0 auto;
}

.document-gallery .document-icon a {
    font-size: 10px;
    line-height: 12px;
}

.document-gallery .document-icon {
    margin: 5px 0 0;
}

.document-gallery .document-icon .title {
    display: block;
    text-align: center;
}

.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 {
    width: 100%;
    padding: 0;
    text-align: left;
}

/* END WITHOUT DESCRIPTION */

/* WITH DESCRIPTION */
.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 */