/*
 * Marquee element styles.
 *
 * Frontend instance CSS (dimensions, delays, keyframes) is generated inline by
 * Element_Marquee::build_scoped_css() in marquee.php.
 *
 * This file contains:
 *   1. Editor-preview classes (.chkpt-mqp-*) used by render_builder()
 *   2. Static structural rules that could be extracted from build_scoped_css()
 *      in a future refactor.
 */

/* ── Editor preview ─────────────────────────────────────────────────────── */

.chkpt-mqp-wrap {
    width: 100%;
    overflow-y: hidden;
    box-sizing: border-box;
}

.chkpt-mqp-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    height: 100%;
}

.chkpt-mqp-track {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    height: 100%;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.chkpt-mqp-item {
    flex-shrink: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.chkpt-mqp-item img {
    width: 100%;
    height: 100%;
    display: block;
}

.chkpt-mqp-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f0f0f0;
    font-size: 12px;
    color: #999;
}

@keyframes chkpt-preview-left {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@keyframes chkpt-preview-right {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}