.content-carousel{
    width: 100%;
    max-width: 100%;
    margin: var(--block-margin) 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.content-carousel.animate__animated{
    animation-name: fadeInUp;
}

.content-carousel-heading{
    margin: 0 auto var(--row-gap);
    width: 100%;
    max-width: var(--wide-width);
    font: var(--font-elevated-2);
}

.content-carousel-heading h2{
    text-transform: uppercase;
}

.content-carousel-heading h2[data-title-size="big"]{
    font: var(--font-headline-0);
}

.content-carousel-heading h2[data-title-size="bigger"]{
    font: var(--font-headline-00);
}

.content-carousel-heading > *:last-child{
    margin-bottom: 0;
}

.content-carousel-swiper{
    width: 100%;
}

.content-carousel-swiper .swiper-wrapper{
    padding-left: calc((100% - var(--wide-width)) / 2);
    align-items: flex-end;
}

.content-carousel-swiper[data-loop=""] .swiper-wrapper .swiper-slide:last-child{
    --after-margin: calc(100vw - (var(--page-padding) / 2) );
    --after-margin: 50rem;
}

.content-carousel-item{
    width: auto;
    padding: var(--item-row-gap) 0;
    max-width: 80vw;
}

.content-carousel-item.item-1{
    width: 25rem;
    height: 38rem;
    transform: translateY(-3.5%) rotate(3.5deg);
}

.content-carousel-swiper[data-loop=""] .swiper-wrapper .swiper-slide.item-1:last-child{
    margin-right: calc(var(--after-margin) - 25rem);
}

.content-carousel-item.item-2{
    width: 35rem;
    height: 43rem;
}

.content-carousel-swiper[data-loop=""] .swiper-wrapper .swiper-slide.item-2:last-child{
    margin-right: calc(var(--after-margin) - 35rem);
}

.content-carousel-item.item-3{
    width: 45rem;
    height: 35rem;
    transform: translateY(-3.5%) rotate(-3.5deg);
}

.content-carousel-swiper[data-loop=""] .swiper-wrapper .swiper-slide.item-3:last-child{
    margin-right: calc(var(--after-margin) - 45rem);
}

.content-carousel-item.item-4{
    width: 30rem;
    height: 40rem;
}

.content-carousel-swiper[data-loop=""] .swiper-wrapper .swiper-slide.item-4:last-child{
    margin-right: calc(var(--after-margin) - 30rem); 
}

.content-carousel-item-inner{
    width: calc(100% + 1.6rem);
    height: 100%;
    transform: translateX(-0.8rem);
    border-radius: 2.4rem;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
}

a.content-carousel-item-inner{
    text-decoration: none;
}

a.content-carousel-item-inner:is(:hover, :focus, :active){
    text-decoration: none;
    color: var(--text-color);
}

.content-carousel-item-image{
    grid-column: 1;
    grid-row: 1;
    position: relative;
    z-index: 1;
}

.content-carousel-item-image img{
    filter: saturate(0);
    transition: all 0.3s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

a.content-carousel-item-inner:is(:hover, :focus, :active) .content-carousel-item-image img{
    transform: scale(1.1);
}

.content-carousel-item-image::after{
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    mix-blend-mode: multiply;
}

.content-carousel-item-content{
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.6rem;
    position: relative;
    z-index: 2;
}

.content-carousel-item-content svg{
    margin-bottom: auto;
    width: 3.8rem;
    height: auto;
}

.content-carousel-item-content .eyebrow{
    font: var(--font-body-xsmall);
    letter-spacing: 0.05em;
}

.content-carousel-item-content h3{
    font: var(--font-headline-5);
    text-transform: uppercase;
    margin: 0.8rem 0;
}

.content-carousel-item-content > *:first-child{
    margin-top: 0;
}

.content-carousel-item-content > *:last-child{
    margin-bottom: 0;
}

.content-carousel-navigation{
    width: 100%;
    max-width: var(--wide-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.content-carousel-navigation button{
    width: 3.5rem;
    height: 2.2rem;
    pointer-events: all;
}

.content-carousel-navigation button:disabled{
    opacity: 0;
    pointer-events: none;
}

.content-carousel-navigation button svg *{
    transition: all 0.3s ease;
}

.content-carousel-navigation button:is(:hover, :focus, :active){
    outline: none;
}

.content-carousel-navigation button svg path{
    stroke: var(--link-color);
}

.content-carousel-navigation button:is(:hover, :focus, :active) svg path{
    stroke: var(--hover-link-color);
}