/* v1.8 - linked cards fix */
.mm-wrapper{width:100%;position:relative;overflow:hidden;font-family:inherit}
.mm-viewport{width:100%;overflow:hidden}
.mm-track{display:flex;gap:var(--mm-gap);will-change:transform;transition:transform .45s ease}
.mm-track{cursor:grab;touch-action:pan-y;user-select:none}
.mm-track:active{cursor:grabbing}
.mm-card{flex:0 0 calc((100% - (var(--mm-desktop) - 1) * var(--mm-gap)) / var(--mm-desktop));width:auto;min-width:0;aspect-ratio:16/10;position:relative}
.mm-card-link{display:block;width:100%;height:100%;color:inherit;text-decoration:none}
.mm-card-image{height:100%;position:relative;background:#ddd center/cover no-repeat;border-radius:var(--mm-radius);overflow:hidden}
.mm-card-image:not([style*="background-image"]){background:#222}
.mm-overlay{position:absolute;inset:0;background:transparent;padding:28px;display:flex;flex-direction:column;justify-content:flex-end;color:#fff;transition:background .3s ease}
.mm-card-title{font-size:20px;font-weight:700;line-height:1.1;transition:transform .3s ease}
.mm-description{font-size:15px;line-height:1.5;max-height:0;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;opacity:0;transform:translateY(12px);transition:max-height .35s ease,opacity .3s ease,transform .35s ease;margin-top:0}
.mm-card:hover .mm-overlay{background:#000;color:#fff}
.mm-card:hover .mm-card-title{transform:translateY(-4px)}
.mm-card:hover .mm-description{max-height:180px;opacity:1;transform:translateY(0);margin-top:10px}
.mm-controls{display:flex;justify-content:flex-end;gap:var(--mm-arrow-gap);margin-top:16px}
.mm-controls button{width:var(--mm-arrow-size);height:var(--mm-arrow-size);border:1px solid #b3b3b3;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:22px;line-height:1;background:#fff;color:#b3b3b3;transition:transform .2s ease,background .2s ease,color .2s ease,border-color .2s ease}
.mm-controls button:hover{transform:translateY(-2px);background:#b3b3b3;color:#fff;border-color:#b3b3b3}
.mm-controls button:disabled{opacity:.45;cursor:not-allowed;transform:none}
@media(max-width:1024px){.mm-card{flex-basis:calc((100% - (var(--mm-tablet) - 1) * var(--mm-gap)) / var(--mm-tablet))}}
@media(max-width:767px){.mm-card{flex-basis:calc((100% - (var(--mm-mobile) - 1) * var(--mm-gap)) / var(--mm-mobile))}.mm-card-image{height:100%;}.mm-overlay{padding:20px}.mm-description{font-size:14px}.mm-card:hover .mm-description{max-height:200px}}


/* MM V2.2: show a visual peek of the next card */
.mm-viewport {
    overflow: hidden;
}

@media (min-width: 1025px) {
    .mm-viewport {
        padding-right: clamp(28px, 5vw, 80px);
    }
}

@media (max-width: 1024px) {
    .mm-viewport {
        padding-right: 24px;
    }
}

@media (max-width: 767px) {
    .mm-viewport {
        padding-right: 18px;
    }
}

/* v2.3 mobile arrow interaction */
.mm-controls, .mm-controls button { position: relative; z-index: 5; touch-action: manipulation; }
.mm-controls button { pointer-events: auto; }

/* MM V2.4 hover design */
.mm-card:hover .mm-overlay,
.mm-card:hover .mm-card-title,
.mm-card:hover .mm-description{color:#fff}
