.root {
    width: 100%;
}

.carouselArea {
    display: flex;
    width: 100%;
    overflow: hidden;
}

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

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

.swiperSlide {
    width: auto;
    flex-shrink: 0;
    position: relative;
}

.swiperSlide:first-child::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;
    z-index: 1;
}

.swiperSlide::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;
    z-index: 1;
}

.card {
    position: relative;

    &::before,
    &::after {
        content: '';
        position: absolute;
        left: var(--spacing-24);
        right: var(--spacing-24);
        height: var(--border-width-sm);
        background-color: var(--border-color-light);
        transition: background-color 0.3s ease;
    }

    &::before {
        top: 0;
    }

    &::after {
        bottom: 0;
    }
}

@media (width <= 768px) {
    .carouselArea {
        border-top: var(--border-width-sm) solid var(--border-color-light);
        border-bottom: var(--border-width-sm) solid var(--border-color-light);
    }

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

    .swiperSlide:first-child {
        margin-left: var(--spacing-20);
    }

    .swiperSlide:last-child {
        margin-right: var(--spacing-20);
    }

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

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

    .card {
        &::before,
        &::after {
            display: none;
        }
    }
}
