/* "Coming Up" horizontal slider plugin */
.coming-up {
    --cu-gap: 30px;
    --cu-items: var(--cu-items-sm, 1);
    position: relative;
    width: 100%;
    padding-bottom: 40px;
}

@media (min-width: 576px) {
    .coming-up { --cu-items: var(--cu-items-md, 2); }
}

@media (min-width: 992px) {
    .coming-up { --cu-items: var(--cu-items-lg, 3); }
}

.coming-up__viewport {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.coming-up__track {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    gap: var(--cu-gap);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;           /* Firefox */
}

.coming-up__track::-webkit-scrollbar { display: none; }   /* Chrome / Safari */

.coming-up__track:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.coming-up__item {
    /* exactly N columns visible, gaps included */
    flex: 0 0 calc((100% - (var(--cu-items) - 1) * var(--cu-gap)) / var(--cu-items));
    min-width: 0;
    scroll-snap-align: start;
}

.coming-up__arrow {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    color: #c8102e;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: opacity .2s ease, background-color .2s ease;
}

.coming-up__arrow:hover:not(:disabled) { background: #f5f5f5; }
.coming-up__arrow:disabled { opacity: .3; cursor: default; }

/* hide arrows entirely when everything already fits */
.coming-up.is-static .coming-up__arrow,
.coming-up.is-static .coming-up__dots { display: none; }

/* RTL: arrows point the other way */
[dir="rtl"] .coming-up__arrow span,
.coming-up[data-rtl] .coming-up__arrow span { display: inline-block; transform: scaleX(-1); }

.coming-up__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.coming-up__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}

.coming-up__dot.is-active {
    background: #c8102e;
    transform: scale(1.25);
}

@media (max-width: 575.98px) {
    .coming-up { --cu-gap: 16px; }
    /* on phones swipe is the main gesture; keep arrows small */
    .coming-up__arrow { width: 28px; height: 28px; font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .coming-up__track { scroll-behavior: auto; }
}
