.instagram-feed {
    list-style-type: none;
    padding: 0!important;
    margin: 0 0 40px 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
}
@media(max-width: 991px) {
    .instagram-feed {
        grid-template-columns: 1fr 1fr;
    }
}
@media(max-width: 576px) {
    .instagram-feed {
        grid-template-columns: 1fr;
    }
}

.instagram-feed .item .image {
    display: inline-block;
    background-position: center;
    background-size:cover;
    position: relative;
    display: block;
    overflow: hidden;
}
.instagram-feed .item.type-VIDEO .image:after {
    content: "";
    display: block;
    height: 100px;
    width: 100px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -50px;
    margin-left: -50px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Pro 6.4.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path fill="%23ffffff" d="M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zM188.3 147.1c7.6-4.2 16.8-4.1 24.3 .5l144 88c7.1 4.4 11.5 12.1 11.5 20.5s-4.4 16.1-11.5 20.5l-144 88c-7.4 4.5-16.7 4.7-24.3 .5s-12.3-12.2-12.3-20.9V168c0-8.7 4.7-16.7 12.3-20.9z"/></svg>');
}

.instagram-feed .item .image .caption {
    position: absolute;
    top: 0;
    left: -100%;
    bottom: 0;
    width: 100%;
    background-color: rgba(62, 99, 127, 0.85);
    color: #fff;
    padding: 20px;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}
.instagram-feed .item:hover .image .caption {
    left: 0;
}
.instagram-feed .item .image .caption div {
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    overflow: hidden;
}