.cp-home-carousel {
    --cp-carousel-gap: 12px;
    --cp-carousel-card-scale: .924;
    margin: 18px 0 24px;
    padding: 15px;
    overflow: hidden;
    border: 1px solid rgba(82, 44, 82, .12);
    border-radius: 20px;
    background:
        radial-gradient(circle at 0 0, rgba(236, 25, 93, .09), transparent 34%),
        linear-gradient(145deg, #fff 0%, #fff8fb 56%, #f8f2f8 100%);
    box-shadow: 0 12px 34px rgba(82, 44, 82, .08);
}

.cp-home-carousel-head {
    display: flex;
    align-items: end;
    justify-content: flex-start;
    gap: 16px;
    margin: 0 2px 12px;
}

.cp-home-carousel-kicker {
    display: block;
    margin-bottom: 2px;
    color: #a23a70;
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cp-home-carousel h2 {
    margin: 0;
    color: #522c52;
    font-size: clamp(1.18rem, 2vw, 1.45rem);
    line-height: 1.15;
}

.cp-home-carousel-track {
    display: flex;
    gap: var(--cp-carousel-gap);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-behavior: auto;
    scroll-snap-type: none;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
}

.cp-home-carousel-track::-webkit-scrollbar { display: none; }

.cp-home-carousel-track:focus-visible {
    outline: 3px solid rgba(236, 25, 93, .25);
    outline-offset: 5px;
    border-radius: 12px;
}

.cp-home-carousel-card {
    position: relative;
    isolation: isolate;
    flex: 0 0 calc(((100% - (var(--cp-carousel-gap) * var(--cp-carousel-desktop-gaps, 5))) / var(--cp-carousel-desktop-items, 6)) * var(--cp-carousel-card-scale));
    min-width: 134px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border: 2px solid rgba(255, 255, 255, .94);
    border-radius: 16px;
    color: #fff;
    background: #eadfe8;
    box-shadow: 0 8px 20px rgba(50, 26, 49, .13);
    text-decoration: none;
    transform: translateZ(0);
}

.cp-home-carousel-card::after {
    position: absolute;
    z-index: 1;
    inset: 34% 0 0;
    content: '';
    background: linear-gradient(to bottom, transparent 0%, rgba(30, 10, 26, .2) 28%, rgba(30, 10, 26, .9) 100%);
    pointer-events: none;
}

.cp-home-carousel-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .45s cubic-bezier(.2, .7, .2, 1), filter .25s ease;
}

.cp-home-carousel-card:hover img,
.cp-home-carousel-card:focus-visible img { transform: scale(1.035); }

.cp-home-carousel-card:focus-visible {
    border-color: #ec195d;
    outline: 3px solid rgba(236, 25, 93, .28);
    outline-offset: 2px;
}

.cp-home-carousel-photo-count {
    position: absolute;
    z-index: 3;
    top: 9px;
    left: 9px;
    display: inline-flex;
    min-height: 27px;
    padding: 4px 8px;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 999px;
    color: #fff;
    background: rgba(82, 44, 82, .83);
    box-shadow: 0 3px 10px rgba(25, 8, 22, .2);
    font-size: .75rem;
    font-weight: 850;
    line-height: 1;
    backdrop-filter: blur(7px);
}

.cp-home-carousel-photo-count i { color: #ffd7e5; }

.cp-home-carousel-verified {
    position: absolute;
    z-index: 3;
    top: 9px;
    right: 9px;
    display: grid;
    width: 29px;
    height: 29px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .88);
    border-radius: 50%;
    color: #1769aa;
    background: rgba(238, 246, 255, .94);
    box-shadow: 0 3px 10px rgba(25, 8, 22, .2);
    font-size: .91rem;
    backdrop-filter: blur(7px);
}

.cp-home-carousel-copy {
    position: absolute;
    z-index: 2;
    right: 11px;
    bottom: 12px;
    left: 11px;
    display: grid;
    gap: 4px;
    min-width: 0;
    text-shadow: 0 2px 7px rgba(18, 6, 16, .72);
}

.cp-home-carousel-copy strong,
.cp-home-carousel-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cp-home-carousel-copy strong {
    font-size: clamp(.86rem, 1.4vw, 1rem);
    line-height: 1.18;
}

.cp-home-carousel-copy small {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, .92);
    font-size: .77rem;
    font-weight: 700;
}

.cp-home-carousel-copy small i { color: #ff8db4; }

.cp-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 900px) {
    .cp-home-carousel-card { flex-basis: calc(((100% - (var(--cp-carousel-gap) * var(--cp-carousel-tablet-gaps, 3))) / var(--cp-carousel-tablet-items, 4)) * var(--cp-carousel-card-scale)); }
}

@media (max-width: 600px) {
    .cp-home-carousel {
        --cp-carousel-gap: 10px;
        margin: 14px 0 19px;
        padding: 12px 10px 12px 12px;
        border-radius: 17px;
    }
    .cp-home-carousel-head { margin: 0 2px 10px; }
    .cp-home-carousel-kicker { font-size: .63rem; }
    .cp-home-carousel-card {
        flex-basis: calc(((100% - (var(--cp-carousel-gap) * var(--cp-carousel-mobile-gap-factor, 1))) / var(--cp-carousel-mobile-divisor, 2.18)) * var(--cp-carousel-card-scale));
        min-width: 0;
        border-radius: 14px;
    }
    .cp-home-carousel-copy { right: 9px; bottom: 10px; left: 9px; }
    .cp-home-carousel-photo-count { top: 7px; left: 7px; min-height: 25px; padding: 3px 7px; }
    .cp-home-carousel-verified { top: 7px; right: 7px; width: 27px; height: 27px; font-size: .84rem; }
}

@media (prefers-reduced-motion: reduce) {
    .cp-home-carousel-track { scroll-behavior: auto; }
    .cp-home-carousel-card img { transition: none; }
}
