.instagram-widget {
    display: flex;
    position: relative;
    justify-content: center;
    background: #e5e6ea;
    flex-wrap: wrap;
    margin-top: 20px;
    max-width: 100%;
}

.instagram-widget > a {
    flex-grow: 0;
    flex-shrink: 1;
    overflow: hidden;
    display: block;
    position: relative;
}

.instagram-widget .instagram-widget-item {
    position: relative;
    overflow: hidden;
    background: #292929;
    width: 100%;
}

.instagram-widget .instagram-widget-item:nth-child(n + 7) {
    display: none;
}

.instagram-widget .instagram-widget-item > a {
    display: block;
    width: 100%;
    position: relative;
    padding-top: 100%;
}

.instagram-widget .instagram-widget-item > a img {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: calc(100% + 2px);
    height: auto;
    max-width: none;
    object-fit: cover;
    transition: transform 400ms ease-out, opacity 400ms ease-out;
}

.instagram-follow-btn {
    flex-grow: 1;
    margin-top: 19px;
    text-align: center;
    position: absolute;
    top: 100%;
    width: 100%;
    display: none;
}

.instagram-follow-btn span a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    min-width: 220px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.12);
    border-radius: 25px;
    background-color: #ffffff;
    color: #0f0f0f;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 400;
    padding: 0 20px;
}

.instagram-follow-btn span a:hover {
    background-color: var(--color-primary);
    color: #ffffff;
}

.instagram-follow-btn span a:before {
    content: '';
    width: 26px;
    font-size: 20px;
    text-align: center;
    margin-right: 12px;
}

#footer .custom-footer__instagram {
    display: none;
}

@media (min-width: 768px) {
    .custom-instagram-container {
        margin-top: 70px;
        padding-bottom: 70px;
    }
    .instagram-follow-btn span a {
        font-size: 14px;
        min-width: 250px;
        min-height: 50px;
    }
}

@media (min-width: 992px) {
    .custom-instagram-container {
        margin-top: 70px;
        padding-bottom: 0px;
    }
    .instagram-widget {
        flex-wrap: nowrap;
    }
}

@media (max-width: 991px) {
    .instagram-widget.instagram-count-1 .instagram-widget-item {
        flex: 0 0 100%;
        width: 100%;
    }
    .instagram-widget.instagram-count-2 .instagram-widget-item {
        flex: 0 0 50%;
        width: 50%;
    }
    .instagram-widget .instagram-widget-item {
        flex: 0 0 33.33%;
        width: 33.33%;
    }
}

@media (min-width: 768px) {
    .type-category.multiple-columns-body #content-wrapper + .content-wrapper {
        margin-top: 50px;
    }
}



h1.instagram-title {
    text-align: center;
    padding-top: 12px;
    font-weight: 600;
    font-size: 2.4rem;
}