/**
 *  News Feed
 */

.news-feed {
    background-color: white;
    padding: 0;
    margin: 0 0 80px;
    display: block;
}

.news-feed h2 {
    margin-top: 6px;
}

.news-feed-content {
    display: flex;
    margin-top: 30px;
    position: relative;
    justify-content: space-between;
    margin-bottom: 20px;
    width: 100%;
    gap: 35px;
}

.news-feed-item {
    width: 33.33%;
    aspect-ratio: 1 / 1;
    height: auto;
    position: relative;
    transition: box-shadow 0.3s;
    margin-bottom: 50px;
    overflow: hidden;
    flex-wrap: wrap;
    background: var(--overlay-color);
}

.news-feed-item-image {
    aspect-ratio: 1 / 1;
}

.news-feed-item-image img {
    -o-object-fit: cover;
       object-fit: cover;
    width: 100%;
    height: 100%;
    opacity: .6;
}

#sb_instagram.sbi_fixed_height {
    overflow-y: hidden;
    aspect-ratio: 1 / 1;
    -o-object-fit: cover;
       object-fit: cover;
    height: auto !important;
    opacity: .6;
}

.news-feed-bottom {
    position: absolute;
    width: 100%;
    bottom: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    align-items: flex-end;
    transition: all 0.3s ease-in-out;
}

.news-feed-bottom h4 {
    color: white;
    font-weight: bold;
    margin-top: 1em;
    margin-bottom: 0.5em;
    margin-left: 10px;
    font-size: 16px;
}

.news-feed-btn {
    width: 38px;
    height: 38px;
    background-color: #f8cc41;
    color: white;
    text-align: center;
    transition: background-color 0.3s;
}

.news-feed-btn i {
    line-height: 38px;
    vertical-align: middle;
}

.news-feed-btn:hover {
    background-color: #e2b115;
}

.pagination-buttons-newsfeed {
    display: none;
}

.news-feed-item {
    transition: all 0.3s ease-in-out;
}

.news-feed-item:hover {
    opacity: .7;
    transition: all 0.3s ease-in-out;
}



@media ( max-width: 920px ) {
    .news-feed {
        background-color: white;
        padding: 0px 30px;
        margin: 0;
        display: block;
        z-index: 9;
        position: relative;
    }

    .news-feed-content {
        flex-wrap: wrap;
        gap: 35px;
    }

    .news-feed h2 {
        text-align: left;
    }

    .news-feed-item {
        margin-bottom: 50px;
    }

    .pagination-buttons-newsfeed {
        display: none;
    }

    .news-feed-item {
        width: calc(33.33% - 24px);
        height: auto;
        aspect-ratio: 1 / 1;
        flex-wrap: wrap;
    }
}

@media ( max-width: 600px ) {
    .newsfeed-heading {
        display: flex;
        justify-content: space-between;
    }

    .pagination-buttons-newsfeed {
        display: flex;
        line-height: 106px;
        vertical-align: middle;
        align-items: center;
    }

    .pagination-buttons-newsfeed .btn-previous,
    .pagination-buttons-newsfeed .btn-next {
        display: block;
        width: 40px;
        height: 40px;
        background-color: #f0f0f0;
        text-align: center;
        line-height: 40px;
        vertical-align: middle;
        color: #636366;
        transition: background-color 0.3s;
        border: none;
        top: 50%;
    }

    .pagination-buttons-newsfeed .btn-previous{
        margin-left: 10px;
    }

    .pagination-buttons-newsfeed .btn-next {
        margin-right: 10px;
    }

    .news-feed h4 {
        font-size: 15px;
        font-weight: 800;
        text-align: left;
        color: #636366;
    }

    .news-feed-item {
        display: block;
        margin-bottom: 20px;
        box-shadow: 0 0 15px #19294129;
        border-radius: 3px;
    }

    .news-feed-content .slick-slide > div {
        margin-right: 10px;
        margin-left: 10px;
    }

    .news-feed-title-mobile {
        position: absolute;
        bottom: 10px;
        left: 5px;
    }

    .news-feed-title-mobile h4 {
        color: #fff;
    }

    .news-feed-item:before,
    .news-feed-item:after {
        display: none;
    }

    .news-feed-item-image img {
        width: 100%;
        height: 100%;
    }

    .news-feed-bottom,
    .news-feed h3 {
        display: none;
    }

    .news-feed-title-mobile h4 {
        display: block;
        margin-top: 20px;
        margin-bottom: 0;
        text-align: center;
    }
}

@media ( max-width: 400px ) {
    .news-feed h2 {
        font-size: 27px;
    }
}