/* ─── Marquee block ─────────────────────────────────────────────────────────── */

.wp-block-hervin-child-marquee {
  overflow: hidden;
  width: 100%;
}

.hervin-marquee-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.hervin-marquee {
  display: inline-block;
  font-size: 90px;
  font-weight: 500;
  line-height: 110px;
  white-space: nowrap;
  animation: hervin-marquee-scroll linear infinite;
  /* animation-duration is set inline via block attribute (default 15s) */
  padding-left: 2vw;
  color: #000000;
}

.hervin-marquee::after {
  content: attr(data-text);
  padding-left: 2vw;
}

@keyframes hervin-marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── Responsive ────────────────────────────────────────────────────────────── */

@media (max-width: 1446px) {
  .hervin-marquee {
    font-size: 80px;
    line-height: 100px;
  }
}

@media (max-width: 1024px) {
  .hervin-marquee {
    font-size: 50px;
    line-height: 70px;
  }
}

@media (max-width: 767px) {
  .hervin-marquee {
    font-size: 40px;
    line-height: 55px;
  }
}

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

.hervin-marquee-block-editor .hervin-marquee-editor-preview {
  border: 1px dashed rgba(0, 0, 0, 0.15);
  border-radius: 3px;
  padding: 1em 1.4em;
  background: rgba(0, 0, 0, 0.02);
  overflow: hidden;
}

.hervin-marquee-editor-text {
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 2.6rem);
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
