.root {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-40);
}

.carouselArea {
    border-top: var(--border-width-sm) solid var(--border-color-light);
    border-bottom: var(--border-width-sm) solid var(--border-color-light);
}

.carouselArea[data-color-scheme='dark'] {
    border-top: var(--border-width-sm) solid var(--border-color-alpha-white-20);
    border-bottom: var(--border-width-sm) solid var(--border-color-alpha-white-20);
}

.swiper {
    width: 100%;
}

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

.swiperSlide:first-child {
    padding-left: var(--spacing-80);
}

.swiperSlide:last-child {
    padding-right: var(--spacing-80);
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 540px;
    min-width: 540px;
    gap: var(--spacing-32);
    padding: var(--spacing-56);
}

.swiperSlide::after {
    content: '';
    position: absolute;
    top: var(--spacing-24);
    right: 0;
    bottom: var(--spacing-24);
    width: var(--border-width-sm);
    background-color: var(--color-bg-fill-alpha-black-10);
    padding: var(--spacing-24) 0;
}

.swiperSlide[data-color-scheme='dark']::after {
    background-color: var(--color-bg-fill-alpha-white-20);
}

.swiperSlide:last-child::after {
    width: 0;
}

.cardHeader {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    align-items: center;
    text-align: center;
    flex-wrap: nowrap;
    gap: var(--spacing-16);
}

.cardImage {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    width: 180px;
    min-width: 180px;
    height: 240px;
    aspect-ratio: 3 / 4;
    border-radius: var(--border-radius-full);
    object-fit: cover;
}

.title {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    align-self: end;
}

.subtitle {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    align-self: start;
}

.navigation {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.mobile {
    display: none;
}

@media screen and (width <= 768px) {
    .swiperSlide:first-child {
        padding-left: var(--spacing-20);
    }

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

    .card {
        width: 295px;
        min-width: 295px;
        padding: var(--spacing-24);
        gap: var(--spacing-24);
    }

    .cardHeader {
        gap: var(--spacing-12);
    }

    .cardImage {
        width: 102px;
        min-width: 102px;
        height: 136px;
    }

    .mobile {
        display: inline-flex;
    }

    .desktop {
        display: none;
    }
}
