.gallery-b {
    overflow: hidden;
    position: relative;
    list-style: none;
    width: auto;
    margin: 0 0 18px -4px;
    padding: 0;
}
.gallery-b li {
    float: left;
    width: 25%;
    margin: 0 0 4px;
    border-left: 4px solid rgba(255,255,255,0);
    text-align: center;
}
@media only screen and (max-width: 43.75em){
.gallery-b li {
    width: 50%;
}
}
@media only screen and (max-width: 62.5em){
.gallery-b li {
    width: 33.333333333%;
}
}
@media only screen and (max-width: 68.75em){
.gallery-b li {
    width: 25%;
}
}
@media only screen and (max-width: 81.25em){
.gallery-b li {
    width: 20%;
}
}
.gallery-a li {
    float: left;
    width: 25%;
    margin: 0 0 4px;
    border-left: 4px solid rgba(255,255,255,0);
    text-align: center;
}
.gallery-a span {
    display: block;
    overflow: hidden;
    height: 25px;
    padding: 2px 8px 3px 8px;
    white-space: nowrap;
    text-overflow: ellipsis;
    background: rgba(0,0,0,.4);
    color: #FFFFFF;
    position: absolute;
    font-size: 16px;
    text-transform: uppercase;
}
/* ---------- pagination -------------- */
.pagination {
    font-size: 0;
    text-align: center;
    margin: 10px 0
}

.pagination a,
.pagination span {
    color: #463029;
    font-family: Roboto;
    font-size: 14px;
    font-weight: 400;
    line-height: 30px;
    position: relative;
    display: inline-block;
    margin-right: 10px;
    padding: 0 5px;
    vertical-align: middle
}

.pagination a:not(.prev):not(.next):hover,
.pagination span:not(.inactive) {
    color: #9da64f
}

.pagination a:not(.prev):not(.next):hover:before,
.pagination span:not(.inactive):before {
    content: '';
    height: 3px;
    -webkit-box-shadow: 0 2px 4px #0b432f;
    box-shadow: 0 2px 4px #0b432f;
    width: 100%;
    background-color: #9da64f;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    position: absolute;
    bottom: 0;
    left: 0
}

.pagination .next,
.pagination .prev {
    -webkit-border-radius: 8px;
    border-radius: 8px;
    background-color: #463029;
    width: 38px;
    height: 38px;
    position: relative
}

.pagination .next:before,
.pagination .prev:before {
    font-family: custom;
    content: '\0044';
    color: #efefef;
    font-size: 16px;
    line-height: 38px
}

.pagination .next:hover,
.pagination .prev:hover {
    -webkit-box-shadow: 0 2px 4px #0b432f;
    box-shadow: 0 2px 4px #0b432f;
    background-color: #9da64f
}

.pagination .next:before {
    content: '\0043'
}