.root {
    width: 100%;
}

.topRow {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--spacing-16);
    padding: 0 var(--spacing-120);
    max-width: var(--content-max-width);
    margin: 0 auto 30px
}

.topRowTabbed {
    margin: calc(var(--border-width-sm) * -1) auto;
}

.headerWrapper {
    display: flex;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
}

.carouselArea {
    display: flex;
    width: 100%;
    max-height: 550px;
    border-top: var(--border-width-sm) solid var(--border-color-light);
    border-bottom: var(--border-width-sm) solid var(--border-color-light);
    padding: 0 var(--spacing-120);
    overflow: hidden;
}

.swiper {
    width: 100%;
    overflow: visible;
}

.swiperControlsTabbed {
    padding-bottom: var(--spacing-32);
}

.swiperControlsHidden {
    visibility: hidden;
}

.swiperControlsDesktop {
    display: flex;
    flex: 0 0 auto;
    position: relative;
}

.swiperControlsMobile {
    display: none;
    flex: 0 0 auto;
    position: relative;
    margin-top: var(--spacing-28);
}

.swiperSlide {
    width: auto;
    max-height: 540px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.swiperSlide::before {
    content: '';
    position: absolute;
    left: 0;
    top: var(--spacing-24);
    bottom: var(--spacing-24);
    width: var(--border-width-sm);
    background-color: var(--border-color-light);
    transition: background-color 0.3s ease;
}

.swiperSlide:hover::before {
    background-color: transparent;
}

.swiperSlide:hover::after {
    background-color: transparent;
}

.swiperSlide:hover + .swiperSlide::before {
    background-color: transparent;
}

.swiperSlide:last-child:after {
    content: '';
    position: absolute;
    right: 0;
    top: var(--spacing-24);
    bottom: var(--spacing-24);
    width: var(--border-width-sm);
    background-color: var(--border-color-light);
    transition: background-color 0.3s ease;
}

.swiperSlide:last-child:hover:after {
    background-color: transparent;
}

@media (width <= 768px) {
    .topRow {
        padding: 0 var(--spacing-20);
    }

    .carouselArea {
        padding: 0 var(--spacing-20) 0;
        max-height: 450px;
    }

    .swiperControlsDesktop {
        display: none;
    }

    .swiperControlsMobile {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .swiperSlide {
        max-height: 436px;
    }

    .swiperSlide:first-child::before {
        top: var(--spacing-28);
        bottom: var(--spacing-28);
    }

    .swiperSlide:last-child:after {
        top: var(--spacing-28);
        bottom: var(--spacing-28);
    }

    .swiperSlide:hover::before {
        background-color: var(--border-color-light);
    }

    .swiperSlide:hover::after {
        background-color: var(--border-color-light);
    }

    .swiperSlide:hover + .swiperSlide::before {
        background-color: var(--border-color-light);
    }

    .swiperSlide:last-child:hover:after {
        background-color: var(--border-color-light);
    }
}
