.wp-block-ettandirekt-bildslider.ed-article-slider {
  --ed-slider-ratio: 16 / 9;
  position: relative;
  margin: 34px 0;
  overflow: hidden;
  border: 1px solid #cad5df;
  border-radius: 7px;
  background: #03182d;
  box-shadow: 0 10px 28px rgba(3, 24, 45, .12);
}

.ed-article-slider.is-ratio-standard { --ed-slider-ratio: 4 / 3; }
.ed-article-slider.is-ratio-original { --ed-slider-ratio: auto; }

.ed-slider-viewport { position: relative; overflow: hidden; background: #061a2e; }
.ed-slider-slide { display: none; margin: 0; }
.ed-slider-slide.is-active { display: block; animation: edSliderFade .24s ease-out; }
.ed-slider-slide img {
  display: block;
  width: 100%;
  aspect-ratio: var(--ed-slider-ratio);
  object-fit: cover;
  background: #061a2e;
}
.ed-article-slider.is-ratio-original .ed-slider-slide img { aspect-ratio: auto; object-fit: contain; max-height: 78vh; }

.ed-article-content .ed-slider-caption {
  margin: 0;
  padding: 10px 15px 11px;
  background: #fff;
  color: #536272;
  font-size: 13px;
  line-height: 1.45;
  border-top: 1px solid #dbe3ea;
  border-left: 0;
  font-style: normal;
}

.ed-article-content .ed-slider-caption a { color: #0b72d9; }

.ed-slider-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 46px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 5px;
  background: rgba(3, 24, 45, .82);
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background .15s ease, transform .15s ease;
}
.ed-slider-arrow:hover,
.ed-slider-arrow:focus-visible { background: #0b72d9; transform: translateY(-50%) scale(1.04); outline: 3px solid rgba(255,255,255,.7); outline-offset: 2px; }
.ed-slider-arrow.is-prev { left: 12px; }
.ed-slider-arrow.is-next { right: 12px; }

.ed-slider-controls {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 9px 14px;
  background: #03182d;
  color: #fff;
}
.ed-slider-dots { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; }
.ed-slider-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; }
.ed-slider-dot.is-active { width: 25px; border-radius: 999px; background: #1685ef; }
.ed-slider-dot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.ed-slider-counter { min-width: 46px; color: rgba(255,255,255,.78); font-size: 12px; font-weight: 800; text-align: center; }
.ed-article-slider.has-one-slide .ed-slider-arrow,
.ed-article-slider.has-one-slide .ed-slider-controls { display: none; }

@keyframes edSliderFade { from { opacity: .55; } to { opacity: 1; } }

@media (max-width: 620px) {
  .wp-block-ettandirekt-bildslider.ed-article-slider { margin: 26px -8px; border-radius: 4px; }
  .ed-slider-arrow { width: 40px; height: 50px; font-size: 30px; }
  .ed-slider-arrow.is-prev { left: 7px; }
  .ed-slider-arrow.is-next { right: 7px; }
  .ed-slider-caption { padding: 9px 12px 10px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .ed-slider-slide.is-active { animation: none; }
  .ed-slider-arrow { transition: none; }
}
