.tpl-carousel-bgcards {
    --color-card-background: var(--color-terciary-gray);
}

.tpl-carousel-bgcards .vs-link-arrow.link-page-mobile {
    margin-top: 16px;
}

.vs-component--fluid.tpl-carousel-bgcards__swiper {
    width: 100%;
    margin-top: 16px;
}

.tpl-carousel-bgcards__swiper .swiper {
    padding-inline: 20px;
}

.tpl-carousel-bgcards__swiper .swiper-wrapper {
    box-sizing: border-box;
    height: auto;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent
}

.tpl-carousel-bgcards__swiper .swiper-slide {
    width: 32%;
    min-width: 248px;
    height: auto;
    padding:16px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 39.77%, rgba(0, 0, 0, 0.60) 60%), var(--url_background_image_item) lightgray 50% / cover no-repeat;
}

.tpl-carousel-bgcards__swiper .touch-layer {
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    row-gap: 16px;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.tpl-carousel-bgcards__img {
    position: relative;
    height: 192px;
    pointer-events: none;
}

.tpl-carousel-bgcards__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.tpl-carousel-bgcards__chip {
    align-items: center;
    display: flex;
    flex-direction: row;
    gap: 4px;
    position: absolute;
    right: 0;
    padding: 4px 8px;
    border-radius: 16px;
    border: 1px solid var(--color-primary-white, #FFF);
    background-color: var(--color-primary-white, #FFF);
}

.tpl-carousel-bgcards__swiper .tpl-carousel-bgcards__description {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 4px;
    flex: 1 0 0;
}

.tpl-carousel-bgcards__swiper .swiper-pagination {
    display: flex;
    padding: 8px 16px;
    border-radius: 64px;
    background-color: var(--color-secondary-white, #F6F6F6);
}

.tpl-carousel-bgcards__swiper .swiper-horizontal > .swiper-pagination-bullets,
.tpl-carousel-bgcards__swiper .swiper-pagination-bullets.swiper-pagination-horizontal,
.tpl-carousel-bgcards__swiper .swiper-pagination-custom,
.tpl-carousel-bgcards__swiper .swiper-pagination-fraction {
    position: relative;
    bottom: 0;
    width: fit-content;
    margin: 24px auto 0;
}

.tpl-carousel-bgcards__swiper .swiper-pagination-bullet {
    opacity: 1;
    background-color: #DCD5CC;
}

.tpl-carousel-bgcards__swiper .swiper-pagination-bullet-active {
    position: relative;
    background-color: var(--color-link, #ED002F);

}

.tpl-carousel-bgcards__swiper .swiper-pagination-bullet-active::before {
    position: absolute;
    left: 0;
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 8px;
    background-color: var(--color-link, #ED002F);
}

@media (min-width: 1024px) {
    .vs-component--fluid.tpl-carousel-bgcards__swiper {
        margin-top: 32px;
        padding-inline: 40px;
    }

    .tpl-carousel-bgcards__swiper .swiper {
        padding-inline: initial;
        height: auto;
    }

    .tpl-carousel-bgcards__swiper .swiper-wrapper.tpl-carousel-bgcards__cards {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 16px;
        height: auto;
    }

    .tpl-carousel-bgcards__swiper .tpl-carousel-bgcards__img-wrapper {
        width: 100%;
        height: 256px;
    }
}

@media (min-width: 1440px) {
    .vs-component--fluid.tpl-carousel-bgcards__swiper {
        max-width: var(--general-max-width, 1600px);
        padding-inline: 96px;
        margin-top: 32px;
    }

    .tpl-carousel-bgcards__swiper .swiper-wrapper.tpl-carousel-bgcards__cards {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 16px;
        height: auto;
    }

    .tpl-carousel-bgcards__swiper .tpl-carousel-bgcards__description {
        row-gap: 8px;
    }
}

