nt {
    width: 100%;
}

:host([layout="ribbonCarousel"][feeds-2-carousel="true"]) .inner-content {
    padding-bottom: 16px;
}

:host([layout="ribbonCarousel"]) .heading-container {
    padding-top: 10px;
    padding-bottom: 2px;
}

:host([layout="ribbonCarousel"][feeds-2-carousel="true"]) .heading-container {
    padding-bottom: 0;
    padding-top: 0;
}

:host([layout="ribbonCarousel"][card-size="_1x_2y"]) .heading-container {
    padding-top: 12px;
}

:host([layout="ribbonCarousel"]) .heading {
    font-size: var(--type-ramp-plus-1-font-size);
    font-weight: 600;
    line-height: var(--type-ramp-plus-1-line-height);
}

:host([layout="ribbonCarousel"][feeds-2-carousel="true"]) .heading {
    font-size: var(--type-ramp-minus-1-font-size, 12px);
    line-height: var(--type-ramp-minus-1-line-heigh, 16px);
    display: inline-flex;
    padding: 16px 16px;
    font-weight: 400;
}

:host([layout="ribbonCarousel"][feeds-2-carousel="true"]) .heading-container {
    align-items: baseline;
}

:host([layout="ribbonCarousel"][feeds-2-carousel="true"]) .heading svg {
    margin-inline-end: 8px;
}

:host([layout="ribbonCarousel"][feeds-2-carousel="true"]) .heading::after {
    content: "";
    position: absolute;
    top: 0px;
    right: 0px;
    left: 0px;
    height: 160px;
    width: 612px;
    z-index: 1;
}

:host([layout="ribbonCarousel"]) fluent-horizontal-scroll {
    max-width: -webkit-fill-available;
    max-width: -moz-available;
    --scroll-item-spacing: 0;
}

:host([layout="ribbonCarousel"][feeds-2-carousel="true"]) fluent-horizontal-scroll {
    z-index: 2;
}

:host([layout="ribbonCarousel"]) msft-article {
    height: 102px;
    min-width: 300px;
    white-space: initial;
}

:host([layout="ribbonCarousel"][feeds-2-carousel="true"]) msft-article {
    height: 96px;
    width: 272px;
    min-width: 272px;
    background: var(--article-backplate);
    border-radius: 8px;
    margin-inline-end: 8px;
}

:host([layout="ribbonCarousel"]) msft-article,
:host([layout="ribbonCarousel"][background="inheritSection"]) msft-article {
    margin-inline-end: 12px;
}

:host([layout="ribbonCarousel"]) msft-article:last-child,
:host([layout="ribbonCarousel"][background="inheritSection"]) msft-article:last-child {
    margin-inline-end: 0;
}

:host([layout="ribbonCarousel"]) msft-article .image {
    height: 60px;
    margin-top: 4px;
    width: 60px;
}

:host([layout="ribbonCarousel"]) msft-article .image {
    height: 80px;
    margin-top: 0px;
    width: 68px;
}

:host([layout="ribbonCarousel"]) msft-article::part(heading) {
    -webkit-line-clamp: var(--heading-max-lines, 3);
}

:host([layout="ribbonCarousel"][feeds-2-carousel="true"]) msft-article::part(heading) {
    --msft-article-heading-font-size: 14px;
    --msft-article-heading-line-height: 20px;
    margin-top: 20px;
    width: 180px;
}

:host([layout="ribbonCarousel"]) msft-article::part(article) {
    height: 88px;
}

:host([layout="ribbonCarousel"][feeds-2-carousel="true"]) msft-article::part(article) {
    height: 80px;
    padding: 8px;
}

:host([layout="ribbonCarousel"]) msft-article::part(attribution) {
    position: absolute;
    bottom: 4px;
}

:host([layout="ribbonCarousel"][feeds-2-carousel="true"]) msft-article::part(attribution),
:host([layout="ribbonCarousel"][feeds-2-carousel="true"]) msft-article::part(actions) {
    top: 8px;
}

:host([layout="ribbonCarousel"]) msft-article .inline-actions {
    bottom: 0;
}

:host([layout="ribbonCarousel"][feeds-2-carousel="true"]) msft-article .inline-actions {
    top: -8px;
    inset-inline-end: 72px;
}

:host([layout="ribbonCarousel"][background="gradient"]) msft-article.social-reaction-enabled .inline-actions {
    background: linear-gradient(var(--inline-actions-ribbon-carousel-gradient-background));
}

:host([layout="ribbonCarousel"][background="gradient"]) social-bar-wc::part(reaction-menu-container) {
    background: var(--background-ribbonCarousel-social-bar);
}

:host([layout="ribbonCarousel"][background="gradient"][feeds-2-carousel="true"]) social-bar-wc::part(reaction-menu-container) {
    top: 0px;
    animation: none;
}

:host .card-content {
    display: flex;
    overflow-x: hidden;
}

:host .card-content msft-article.carousel {
    display: block;
}

:host([layout="ribbonCarousel"][background="inheritSection"]) ::part(viewport) {
    overflow-y: hidden;
}

:host([layout="ribbonCarousel"]) .next,
:host([layout="ribbonCarousel"]) .previous {
    width: 32px;
    height: 32px;
    border-color: transparent;
    border-radius: 999px;
    box-shadow: 0px 3.2px 7.2px rgb(0 0 0 / 13%), 0px 0px 3.8px rgb(0 0 0 / 11%);
    background: var(--neutral-fill-stealth-rest);
}

:host([layout="ribbonCarousel"][feeds-2-carousel="true"]) .next,
:host([layout="ribbonCarousel"][feeds-2-carousel="true"]) .previous {
    height: 38px;
    width: 16px;
    fill: var(--neutral-foreground-hint);
    backdrop-filter: blur(60px);
    border-radius: 3px;
    box-shadow: none;
}

:host([layout="ribbonCarousel"][feeds-2-carousel="true"][show-flippers-on-hover-only="false"]) .next,
:host([layout="ribbonCarousel"][feeds-2-carousel="true"][show-flippers-on-hover-only="false"]) .previous {
    opacity: 1;
}

:host([layout="ribbonCarousel"][feeds-2-carousel="true"]) .next:hover,
:host([layout="ribbonCarousel"][feeds-2-carousel="true"]) .previous:hover {
    fill: var(--neutral-foreground-rest);
}

:host([layout="ribbonCarousel"][feeds-2-carousel="true"]) .next {
    margin-inline-start: 16px;
}

:host([layout="ribbonCarousel"][feeds-2-carousel="true"]) .previous {
    margin-inline-end: 16px;
}

:host([layout="ribbonCarousel"][feeds-2-carousel="true"]) .next::before,
:host([layout="ribbonCarousel"][feeds-2-carousel="true"]) .previous::before {
    border-radius: 3px;
    background: var(--feeds-2-flipper-background);
}

:host([layout="ribbonCarousel"][background="inheritSection"]) .previous {
    margin-inline-start: 10px;
}

:host([layout="ribbonCarousel"][background="inheritSection"]) .next {
    margin-inline-end: 10px;
}

:host([layout="ribbonCarousel"][background="gradient"]):not([feeds-2-carousel="true"]) .previous {
    margin-inline-start: 36px;
}

:host([layout="ribbonCarousel"][background="gradient"]):not([feeds-2-carousel="true"]) .next {
    margin-inline-end: 36px;
}

:host([layout="ribbonCarousel"]) .next::before,
:host([layout="ribbonCarousel"]) .previous::before {
    border-color: transparent;
}

