/* ------------------------------------------ */
/* ------------- LIVE FEED CUSTOM V2 START --------------- */
/* ------------------------------------------ */

#home .live-feed-lf8 .wrapper {
    position: relative;
    background: var(--lf-bg-color, #fff);
}

#home .live-feed-lf8 .cards-slider {
    position: relative;
    isolation: isolate;
    padding-block: 35px;
}

#home .live-feed-lf8 .cards-slider::after {
    position: absolute;
    right: -40px;
    height: 100%;
    width: 75%;
    background: var(--bg-color);
    content: close-quote;
    z-index: -1;
}

#home .live-feed-lf8 .cards-slider .slider-button {
    position: absolute;
    right: -10px;
}

#home .live-feed-lf8 .slider-button {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

#home .live-feed-lf8 .slider-button svg {
    display: none;
}

#home .live-feed-lf8 .slider-button::after {
    content: close-quote;
    border: solid var(--arrow-icon-color);
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 0.3em;
}

#home .live-feed-lf8 .cards-slider .slider-button.left {
    transform: translateY(-50%);
    margin-bottom: 9px;
    padding-left: 4px;
}

#home .live-feed-lf8 .cards-slider .slider-button.right {
    transform: translateY(50%);
    margin-top: 9px;
}

#home .live-feed-lf8 .slider-button.left::after {
    transform: rotate(135deg);
    -webkit-transform: rotate(135deg);
}

#home .live-feed-lf8 .slider-button.right::after {
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
}

#home .cards-wrapper {
    max-width: calc(100% - 60px);
    padding-block: 10px;
}

#home .cards-wrapper .card {
    width: calc(100vw - 35px);
    transition: all 0.35s ease-in-out;
}

#home .cards-wrapper .card .card-content {
    padding: 20px;
    justify-content: flex-start;
    gap: 15px;
    box-shadow: 0px 4px 8.8px 0px rgba(0, 0, 0, 0.25);
    transition: all 0.35s ease-in-out;
}
#home .cards-wrapper .card:not(:has(.card-gallery)) .card-content {
    flex: 1;
}
#home .image-gallery .gallery-controls .buttons .button {
    width: 40px;
    height: 40px;
}

#home .cards-wrapper .card .card-content .card-header {
    flex-direction: column;
    align-items: flex-start;
}

#home .cards-wrapper .card .card-content .card-header img {
    margin-bottom: 5px;
    width: 36px;
    height: 36px;
}

#home .cards-wrapper .card .card-content .card-header .time-ago {
    margin-left: 0;
}

#home .cards-wrapper .card .card-content .card-header .author {
    font-size: 18px;
    line-height: 1.1;
    font-weight: 400;
}

#home .cards-wrapper .card .card-content .card-header .time-ago {
    font-size: 16px;
    line-height: 1.1;
    font-weight: 400;
}

#home .cards-wrapper .card .card-content .card-description {
    font-size: 16px;
    line-height: 1.3;
}

#home .cards-wrapper .card .card-gallery {
    height: 347px;
    width: 210px;
    transition: all 0.35s ease-in-out;
    min-width: 160px;
    flex-grow: 1;
}

#home .image-gallery .gallery-controls {
    flex-direction: column;
    align-items: flex-start;
}

#home .live-feed-lf8 .buttons-container {
    display: none;
}

#home .image-gallery .gallery-image img {
    object-position: right top;
}

@media only screen and (min-width: 900px) {
    #home .cards-wrapper .card {
        width: calc(50vw - 52px);
    }

    #home .cards-wrapper {
        gap: 15px;
    }

    #home .cards-wrapper .card:hover .card-content {
        min-width: 150px;
    }

    #home .cards-wrapper .card:hover .card-gallery:hover {
        min-width: 347px;
        aspect-ratio: 1/1;
    }

    #home .cards-wrapper .card:has(.card-gallery):hover {
        width: 40vw;
    }

    #home .cards-wrapper .card:has(.card-gallery):hover+.card .card-gallery {
        width: 0px;
        overflow: hidden;
    }
}

@media only screen and (min-width: 1350px) {
    #home .cards-wrapper .card .card-content .card-header img {
        margin-bottom: 10px;
        width: 45px;
        height: 45px;
    }

    #home .cards-wrapper .card .card-content {
        gap: 20px;
    }

    #home .cards-wrapper .card {
        width: calc(33vw - 65px);
    }
}

@media only screen and (max-width: 959px) {
    #home .live-feed-lf8 .cards-slider .slider-button {
        display: none;
    }

    #home .live-feed-lf8 .buttons-container {
        display: flex;
        justify-content: center;
        margin-top: -25px;
    }

    #home .live-feed-lf8 .buttons-container .slider-button {
        position: relative;
    }

    #home .live-feed-lf8 .buttons-container .slider-button.right {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    #home .cards-wrapper {
        max-width: 100%;
    }
}

/* ------------------------------------------ */
/* ------------- LIVE FEED CUSTOM V2 END --------------- */
/* ------------------------------------------ */