.mod-newsflow .newsflow-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.mod-newsflow .newsflow-slider-track {
  display: flex;
  transition: transform 1500ms ease;
  will-change: transform;
  width: 100%;
  max-width: 100%;
}

.mod-newsflow .newsflow-slide {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.mod-newsflow.layout-slider .newsflow-card {
  width: min(100%, calc(var(--newsflow-media-max-height) * (var(--newsflow-media-ratio-width) / var(--newsflow-media-ratio-height))));
  max-width: 100%;
}

.mod-newsflow .newsflow-slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  width: 100%;
  max-width: 100%;
}

.mod-newsflow .newsflow-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 0.8rem 1rem;
  border: 1px solid var(--newsflow-border);
  border-radius: 999px;
  background: #fff;
  color: var(--newsflow-text);
  cursor: pointer;
}

.mod-newsflow .newsflow-nav:hover,
.mod-newsflow .newsflow-nav:focus-visible,
.mod-newsflow .newsflow-dot:hover,
.mod-newsflow .newsflow-dot:focus-visible,
.mod-newsflow .newsflow-dot.is-active {
  border-color: var(--newsflow-accent);
  background: color-mix(in srgb, var(--newsflow-accent) 10%, white);
}

.mod-newsflow .newsflow-slider-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  flex: 1 1 auto;
  min-width: 0;
}

.mod-newsflow .newsflow-dot {
  width: 12px;
  height: 12px;
  border: 1px solid var(--newsflow-border);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}

@container newsflow-module (max-width: 30rem) {
  .mod-newsflow .newsflow-slider-controls {
    flex-direction: column;
    gap: 0.7rem;
  }

  .mod-newsflow .newsflow-nav {
    width: 100%;
    min-width: 0;
  }
}

@container newsflow-module (max-width: 24rem) {
  .mod-newsflow .newsflow-dot {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  .mod-newsflow .newsflow-slider-controls {
    margin-top: 0.45rem;
  }

  .mod-newsflow .newsflow-slider-dots {
    gap: 0.35rem;
  }

  .mod-newsflow .newsflow-dot {
    width: 9px;
    height: 9px;
  }
}
