/* Quote Marquee - plugin stylesheet */

/* Outer wrapper: clips the sliding track */
.qm-carousel {
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* Track: flex row of all slides, width set by JS */
.qm-carousel-track {
    display: flex;
    align-items: stretch;
    transition: transform 0.6s ease;
    will-change: transform;
}

/* No transition during instant reposition (JS removes this temporarily) */
.qm-carousel-track.qm-no-transition {
    transition: none;
}

/* Individual quote slide */
.qm-slide {
    flex-shrink: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* width is set in JS based on per_view */
}

/* Quote text */
.qm-quote-text {
    margin: 0 0 0.6em;
    line-height: 1.65;
    font-size: inherit;
}

/* Attribution line */
.qm-quote-author {
    margin: 0;
    font-style: italic;
    opacity: 0.65;
    font-size: 0.9em;
}

/* Subtle divider between side-by-side quotes when per_view > 1.
   Uses a pseudo-element so opacity only affects the line, not the slide content. */
.qm-slide + .qm-slide::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: currentColor;
    opacity: 0.2;
}

.qm-slide {
    position: relative; /* needed for the ::before pseudo-element */
}

.qm-carousel[data-per-view="1"] .qm-slide + .qm-slide::before {
    display: none;
}

/* Reduced-motion: stack quotes vertically, no animation */
@media (prefers-reduced-motion: reduce) {
    .qm-carousel-track {
        flex-direction: column;
        transition: none;
        transform: none !important;
    }
    .qm-slide {
        width: 100% !important;
        border-left: none;
        border-bottom: 1px solid rgba(128, 128, 128, 0.25);
    }
    .qm-slide:last-child {
        border-bottom: none;
    }
}
