/* Newsam Editions Widget — rotating slider of edition sites. Self-contained, theme/Elementor-safe. */
.newsam-eds{
  --edw-red:#C8102E;
  background:#fff;border:1px solid #e7e7ea;border-radius:12px;overflow:hidden;
  box-shadow:0 1px 2px rgba(20,20,30,.05),0 10px 28px rgba(20,20,30,.06);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color:#1a1a1a;
}
.newsam-eds *{box-sizing:border-box}

.newsam-eds__head{display:flex;align-items:center;gap:9px;padding:13px 16px;border-bottom:2px solid var(--edw-red)}
.newsam-eds__globe{width:20px;height:20px;flex:0 0 auto;color:var(--edw-red)}
.newsam-eds__head h3{margin:0;font-size:14px;font-weight:800;text-transform:uppercase;letter-spacing:.03em;line-height:1.1}
.newsam-eds__count{margin-left:auto;font-size:11px;color:#6b7078;font-weight:700}

.newsam-eds__bar{height:3px;background:#eee;position:relative;overflow:hidden}
.newsam-eds__bar i{position:absolute;left:0;top:0;bottom:0;width:100%;background:var(--edw-red);
  transform:scaleX(0);transform-origin:left}
.newsam-eds.is-playing .newsam-eds__bar i{animation:newsam-eds-fill linear infinite}
.newsam-eds.is-paused .newsam-eds__bar i{animation-play-state:paused}
@keyframes newsam-eds-fill{from{transform:scaleX(0)}to{transform:scaleX(1)}}

.newsam-eds__stage{position:relative;aspect-ratio:16/10;background:#111}
/* Fallback for browsers without aspect-ratio */
@supports not (aspect-ratio:1/1){.newsam-eds__stage{padding-top:62.5%;height:0}.newsam-eds__slides{position:absolute;inset:0}}
.newsam-eds__slides{position:absolute;inset:0;top:0;left:0;right:0;bottom:0}

.newsam-eds__slide{position:absolute;inset:0;top:0;left:0;right:0;bottom:0;opacity:0;visibility:hidden;
  transition:opacity .6s ease;display:block;text-decoration:none;color:#fff;overflow:hidden}
.newsam-eds__slide.is-on{opacity:1;visibility:visible;z-index:2}

/* Branded colour fallback sits behind the screenshot; shows until (or if) the shot loads */
.newsam-eds__fallback{position:absolute;inset:0;top:0;left:0;right:0;bottom:0;display:grid;place-items:center;
  background:linear-gradient(155deg,var(--c),#000)}
.newsam-eds__fbpin{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;
  background:rgba(255,255,255,.16);color:#fff}
.newsam-eds__fbpin svg{width:28px;height:28px}

.newsam-eds__shot{position:absolute;inset:0;top:0;left:0;right:0;bottom:0;width:100%;height:100%;
  object-fit:cover;object-position:top center;opacity:0;transition:opacity .5s ease,transform 6s ease;transform:scale(1.06)}
.newsam-eds__shot.is-loaded{opacity:1}
.newsam-eds__slide.is-on .newsam-eds__shot.is-loaded{transform:scale(1)}

.newsam-eds__slide::after{content:"";position:absolute;inset:0;top:0;left:0;right:0;bottom:0;z-index:1;
  background:linear-gradient(180deg,rgba(0,0,0,.05) 0%,rgba(0,0,0,0) 34%,rgba(0,0,0,.72) 100%)}

.newsam-eds__cap{position:absolute;left:0;right:0;bottom:0;z-index:3;padding:15px 16px;display:flex;align-items:flex-end;gap:11px}
.newsam-eds__pin{width:38px;height:38px;flex:0 0 auto;border-radius:50%;display:grid;place-items:center;
  background:var(--c);color:#fff;box-shadow:0 3px 10px rgba(0,0,0,.35)}
.newsam-eds__pin svg{width:19px;height:19px}
.newsam-eds__txt{min-width:0}
.newsam-eds__eyebrow{display:block;font-size:10px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;opacity:.85}
.newsam-eds__name{display:block;font-size:19px;font-weight:800;line-height:1.1;text-shadow:0 1px 8px rgba(0,0,0,.45)}
.newsam-eds__btn{margin-left:auto;flex:0 0 auto;align-self:center;background:#fff;color:#111;font-weight:700;font-size:12px;
  padding:8px 13px;border-radius:999px;display:inline-flex;align-items:center;gap:6px;white-space:nowrap;
  box-shadow:0 2px 8px rgba(0,0,0,.25);transition:transform .15s}
.newsam-eds__slide:hover .newsam-eds__btn{transform:translateY(-1px)}
.newsam-eds__btn svg{width:12px;height:12px}

.newsam-eds__arw{position:absolute;top:50%;margin-top:-17px;z-index:5;width:34px;height:34px;border:0;cursor:pointer;
  border-radius:50%;background:rgba(0,0,0,.4);color:#fff;display:grid;place-items:center;transition:background .15s}
.newsam-eds__arw:hover{background:rgba(0,0,0,.68)}
.newsam-eds__arw svg{width:18px;height:18px;margin-top:-5px;}
.newsam-eds__arw--prev{left:10px}
.newsam-eds__arw--next{right:10px}

.newsam-eds__dots{display:flex;justify-content:center;gap:7px;padding:11px 0 12px;background:#fff}
.newsam-eds__dot{width:8px;height:8px;border-radius:50%;border:0;padding:0;cursor:pointer;background:#d4d4da;transition:all .2s}
.newsam-eds__dot.is-on{background:var(--edw-red);width:22px;border-radius:5px}

@media (prefers-reduced-motion:reduce){
  .newsam-eds__slide,.newsam-eds__shot{transition:none}
  .newsam-eds.is-playing .newsam-eds__bar i{animation:none;transform:scaleX(1)}
}
