/**
 * CSS style for carouselTicker
 **/

.carouselTicker__list {
  margin: 10px 0;
  padding: 0;
  list-style-type: none;
  overflow: hidden;
}

.carouselTicker__item {
  margin: 0 0 0 5px;
  float: left;
  border: 4px solid red;
  width: 100px;
  height: 60px;
  line-height: 60px;
  text-align: center;
}

.carouselTicker__loader {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: #fff url("../images/loader.html") center center no-repeat;
}

/**
 * CSS style for vertical direction
 **/

.carouselTicker_vertical .carouselTicker__list {
  margin: 0;
}

.carouselTicker_vertical .carouselTicker__item {
  margin: 0 0 5px 0;
  border: 4px solid red;
  width: 100px;
  height: 60px;
  line-height: 60px;
  text-align: center;
}

#carouselTicker .carouselTicker__item,
#carouselTicker-destructor-example .carouselTicker__item,
#carouselTicker-buttons-controls-example .carouselTicker__item {
  width: auto;
  height: auto;
  line-height: normal;
}

.carouselTicker__item img {
  vertical-align: top;
}


/* ══════════════════════════════════════════════════════════
   RESPONSIVE OVERRIDES
   The default plugin uses fixed px widths/heights which can
   clip content on small screens. These rules make items fluid.
══════════════════════════════════════════════════════════ */

/* ── All screen sizes: fluid base fixes ── */
.carouselTicker__list {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.carouselTicker__item {
    box-sizing: border-box;
    max-width: 100%;
}

.carouselTicker__item img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ── Tablets (≤ 991px) ── */
@media (max-width: 991px) {
    .carouselTicker__item {
        width: 80px !important;
        height: auto !important;
        line-height: normal !important;
        padding: 8px 4px;
    }

    .carouselTicker_vertical .carouselTicker__item {
        width: 80px !important;
        height: auto !important;
        line-height: normal !important;
    }
}

/* ── Small phones (≤ 575px) ── */
@media (max-width: 575px) {
    .carouselTicker__item {
        width: 60px !important;
        height: auto !important;
        margin-left: 4px !important;
        line-height: normal !important;
        padding: 6px 2px;
    }

    .carouselTicker_vertical .carouselTicker__item {
        width: 60px !important;
        height: auto !important;
        margin-bottom: 4px !important;
        line-height: normal !important;
    }
}

/* ── Accessibility: stop ticker for reduced-motion users ── */
@media (prefers-reduced-motion: reduce) {
    .carouselTicker__list {
        animation: none !important;
        overflow-x: auto;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .carouselTicker__item {
        float: none !important;
        position: static !important;
    }
}