/* ── Miracouture Image Carousel ─────────────────────────────────────────────── */

.ic-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

/* Stage: height set by JS */
.ic-stage {
    position: relative;
    width: 100%;
    min-height: 100px;
}

/* All slides: absolute, same size, NO scaling */
.ic-slide {
    position: absolute;
    top: 0;
    /* left set by JS */
    transition-property: left, opacity;
    transition-timing-function: cubic-bezier(.42, 0, .58, 1);
    will-change: left, opacity;
    opacity: 0;
    z-index: 1;
}

/* ── Image wrapper ──────────────────────────────────────────────────────────── */
.ic-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: var(--ic-ratio, 16/9);
    overflow: hidden;
    border-radius: var(--ic-radius, 10px);
    background: #ddd;
}

.ic-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: var(--ic-fit, cover);
    display: block;
    border-radius: inherit;
    pointer-events: none;
}

.ic-img-link { display: block; width: 100%; height: 100%; }

/* ── Blur/dim overlay on side slides only ───────────────────────────────────── */
.ic-slide-side .ic-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, var(--ic-dim, 0.5));
    backdrop-filter: blur(var(--ic-blur, 4px));
    -webkit-backdrop-filter: blur(var(--ic-blur, 4px));
    border-radius: inherit;
    z-index: 2;
    pointer-events: none;
}
.ic-no-blur .ic-slide-side .ic-img-wrap::after {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* ── Title below — only active shows it ────────────────────────────────────── */
.ic-title-below {
    font-size: var(--ic-title-size, 16px);
    font-weight: 600;
    color: var(--ic-title-color, #333);
    text-align: center;
    margin-top: 12px;
    padding: 0 6px;
    line-height: 1.4;
}
.ic-slide-side .ic-title-below { visibility: hidden; }

/* ── Title overlay ──────────────────────────────────────────────────────────── */
.ic-title-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 28px 14px 12px;
    background: linear-gradient(transparent, rgba(0,0,0,.65));
    color: #fff;
    font-size: var(--ic-title-size, 16px);
    font-weight: 600;
    border-radius: 0 0 var(--ic-radius, 10px) var(--ic-radius, 10px);
    z-index: 3;
    line-height: 1.3;
}

/* ── Arrows ─────────────────────────────────────────────────────────────────── */
.ic-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(255,255,255,.92);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    font-size: 18px;
    color: #333;
    box-shadow: 0 2px 12px rgba(0,0,0,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, box-shadow .2s, transform .15s;
    padding: 0;
    line-height: 1;
    outline: none;
}
.ic-arrow:hover {
    background: #fff;
    box-shadow: 0 4px 18px rgba(0,0,0,.28);
    transform: translateY(-50%) scale(1.1);
}
.ic-arrow:focus-visible { outline: 2px solid #4a90e2; }
.ic-arrow-prev { left: 10px; }
.ic-arrow-next { right: 10px; }

/* ── Dots ───────────────────────────────────────────────────────────────────── */
.ic-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.ic-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background .25s, transform .25s;
    flex-shrink: 0;
    outline: none;
}
.ic-dot:hover         { transform: scale(1.2); }
.ic-dot-active        { background: #333 !important; transform: scale(1.3) !important; }
.ic-dot:focus-visible { outline: 2px solid #4a90e2; }

/* ── Mobile: hide side slides ───────────────────────────────────────────────── */
@media (max-width: 600px) {
    .ic-slide-side { display: none !important; }
    .ic-arrow { width: 36px; height: 36px; font-size: 14px; }
    .ic-arrow-prev { left: 6px; }
    .ic-arrow-next { right: 6px; }
}
