.feed--mist-background {
    --feed-item-background-color: var(--color-chalk);
}

.feed-horizontal__title {
    padding: 0 !important;
    margin: 0 0 48px 0;
    color: #000;
    font-size: 23px;
    font-style: normal;
    font-weight: 800;
    line-height: var(--line-height-large);
    display: flex;
    justify-content: space-between;
}

.feed-horizontal {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.feed-horizontal__grid {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 24px;
    background: rgb(var(--feed-background-color));
}

.feed-horizontal__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    flex: 1 1 0;
    min-width: 0;
    padding: 1.5rem;
    background: rgb(var(--feed-item-background-color, var(--color-mist)));
    border-radius: 0.33rem;
    color: rgb(var(--color-graphite));
    height: 316px;
    cursor: pointer;
    position: relative;
}

.feed-horizontal__item__link {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
}

.feed-horizontal__item:hover {
    box-shadow: inset 0px 0px 0px 1px rgb(var(--color-orange));
    color: rgb(var(--color-orange));
    background: #FFF;
}

.feed--mist-background .feed-horizontal__item:hover {
    background: rgba(var(--color-chalk), .3);
}

.feed-horizontal__item__text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.25rem;
    min-height: 0;
    width: 100%;
}

.feed-horizontal__item__category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.3125rem;
    padding: 0.625rem 1rem;
    border: 1px solid currentColor;
    border-radius: 1.25rem;
    font-family: var(--font-brand);
    font-weight: 700;
    font-size: 0.875rem;
    color: inherit;
    white-space: nowrap;
    z-index: 1;
}

.feed-horizontal__item__title {
    font-family: var(--font-brand);
    font-weight: 700;
    font-size: 1.3125rem;
    line-height: var(--line-height-large);
    color: inherit;
    margin: 0 0 0.75rem 0;
    word-break: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.feed-horizontal__item__meta {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* 24px */
    margin-top: auto; /* pins readmore/date to the bottom of the fixed-height card */
    width: 100%;
}

.feed-horizontal__item__caption {
    font-family: var(--font-brand);
    font-weight: 400;
    font-size: var(--font-size-body);
    line-height: var(--line-height-large);
    color: inherit;
    margin: 0 0 1.5rem 0; /* 24px to the readmore/date below */
    word-break: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.feed-horizontal__item__readmore {
    font-family: var(--font-brand);
    font-size: var(--font-size-body);
    font-weight: 400;
    color: inherit;
    text-decoration: underline;
    display: block;
}

.feed-horizontal__item__date {
    font-family: var(--font-brand);
    font-size: var(--font-size-body);
    font-weight: 700;
    color: inherit;
    display: none;
}

.feed-horizontal__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 56px;
    background: rgb(var(--color-dark-green));
    color: rgb(var(--color-lime));
    font-family: var(--font-brand);
    font-size: 1.125rem;
    line-height: var(--line-height-large);
    text-decoration: none;
}

.carousel-controls {
    font-weight: 400;
    display: flex;
    gap: .25rem;
}

.feed-horizontal__grid-item {
    cursor: pointer;
}

@media print, screen and (min-width: 768px) {
    .feed-horizontal__grid {
        flex-direction: row;
    }

    .feed-horizontal__item {
        flex: 0 1 calc(33.333% - 1rem);
    }

    /* Grid layout for non-carousel */
    .feed-horizontal__grid-item {
        width: calc(33.333% - 1rem);
    }
}
