.item-img {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}
.item-img img {
    max-width: 100%;
}
.item-img .content {
    position: absolute;
    text-align: center;
    height: 0;
    width: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: 100%;
    width: 100%;
    transition: 0.2s ease-in-out;
    opacity: 0;
}
.item-img .content a {
    opacity: 0;
    transition: 0.2s ease;
    font-size: 24px;
    width: 100%;
    height: 100%;
    display: block;
    display: flex;
    align-items: center;
    justify-content: center;
}
  
.item:hover .content {
    height: calc(100% - 30px);
    width: calc(100% - 30px);
    opacity: 1;
}
  
.item:hover .content a {
    opacity: 1;
    color: #fff;
}
/*-------- 3.7 Pagination --------*/
.clear:after, .pagination:after, .clear:before, .pagination:before {
    content: "";
    display: table;
}
.clear:after, .pagination:after {
    clear: both;
}

.pagination__wrapper {
    height: 50px;
    padding-top: 30px;
    margin-bottom: 30px;
    position: relative;
    text-align: center;
    width: 100%;
}
.pagination__wrapper:before {
    top: -1px;
}
.pagination__wrapper:after {
    bottom: -1px;
}

@keyframes hoverAnimation {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}
.pagination {
    display: inline-block;
    list-style: none;
    margin: 0;
    padding: 0;
}
.pagination li {
    display: block;
    float: left;
    padding: 5px;
}
.pagination li:first-child {
    border: none;
}
.pagination a,
.pagination span {
    background: none;
    border: none;
    border-radius: 50%;
    box-sizing: border-box;
    color: rgba(0, 0, 0, 0.6);
    display: block;
    font-size: 16px;
    height: 40px;
    line-height: 40px !important;
    min-width: 40px;
    padding: 0 !important;
}
.pagination a {
    outline: none;
    position: relative;
    transition: all 170ms linear;
}
.pagination a:before {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    content: "";
    cursor: pointer;
    height: 0;
    left: 50%;
    opacity: 0;
    position: absolute;
    transform: translate(-50%, -50%);
    transition: all 270ms linear;
    top: 50%;
    width: 0;
}
.pagination a:hover:not(.active) {
    color: black;
}
.pagination a:hover:not(.active):before {
    animation: hoverAnimation 810ms linear forwards;
    height: 40px;
    width: 40px;
}
.pagination a.active {
    background: #24262d;
    color: white;
    cursor: default;
}
.pagination .prev,
.pagination .next {
    font-size: 28px;
}
.pagination li.active {
    background-color: transparent;
}