:root {
    --mc-accent: #6f2dbd;
}

.mc-stack {
    width: 100%;
    position: relative;
	margin-bottom: 15px;
}

.mc-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px
}

.mc-track.dragging {
    cursor: grabbing
}

.mc-card {
    scroll-snap-align: center;
    flex: 0 0 calc(100% - var(--mc-peek));
    height:210px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
    position: relative;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.mc-card:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12)
}

.mc-media {
    position: relative;
    height: 100%;
    background: #000;
    overflow: hidden
}

.mc-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.mc-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .25) 45%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none
}

.mc-chip {
    position: absolute;
    left: 12px;
    top: 12px;
    background: var(--mc-accent);
    color: #fff;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1
}

.mc-overlay {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .35)
}

.mc-title {
    margin: 0 0 4px;
    font-size: 16px;
    color: #fff
}

.mc-desc {
    margin: 0 0 8px;
    color: #f2f2f7;
    font-size: 13px
}

.mc-cta {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--mc-accent);
    color: #fff;
    text-decoration: none;
    font-size: 13px
}

/* dots */
.mc-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin-top: 4px
}

.mc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #d0cfea;
    cursor: pointer
}

.mc-dot.active {
    background: var(--mc-accent)
}

@media (min-width:768px) {
    .mc-card {
        flex-basis: calc(70% - var(--mc-peek));
    }
}