/* Independent dialog styles; source video blocks and poster triggers stay editable. */
.ssw-story-dialog{
  width:min(1120px,calc(100vw - 32px));
  max-width:calc(100vw - 32px);
  max-height:calc(100vh - 32px);
  max-height:calc(100dvh - 32px);
  margin:auto;
  padding:0;
  border:0;
  border-radius:6px;
  overflow:auto;
  overscroll-behavior:contain;
  background:#111820;
  color:#fff;
  box-shadow:0 20px 90px #0009;
}
.ssw-story-dialog::backdrop{background:rgb(4 9 14 / 86%)}
.ssw-story-dialog [hidden]{display:none!important}
.ssw-story-dialog__panel{padding:20px}
.ssw-story-dialog__header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 16px}
.ssw-site .ssw-story-dialog .ssw-story-dialog__title{
  margin:0!important;
  padding:0!important;
  color:#fff!important;
  font-size:clamp(18px,2vw,25px)!important;
  line-height:1.25!important;
  letter-spacing:-.02em;
  overflow-wrap:anywhere;
}
.ssw-story-dialog__close{
  display:inline-flex;
  flex:0 0 48px;
  align-items:center;
  justify-content:center;
  width:48px;
  min-width:48px;
  height:48px;
  min-height:48px;
  padding:0;
  border:1px solid #68727c;
  border-radius:3px;
  background:#ffffff0d;
  color:#fff;
  font-size:34px;
  line-height:1;
  cursor:pointer;
}
.ssw-story-dialog__close:hover{background:#fff;color:#111820}
.ssw-story-dialog__close:focus-visible,.ssw-story-dialog__original:focus-visible{outline:3px solid #f2b705;outline-offset:4px}
.ssw-story-dialog__stage{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:min(72vh,720px,calc(100vh - 160px));
  height:min(72dvh,720px,calc(100dvh - 160px));
  min-height:120px;
  overflow:hidden;
  background:#000;
}
.ssw-story-dialog__stage.is-landscape{
  height:auto;
  min-height:0;
  max-height:min(72vh,720px,calc(100vh - 160px));
  max-height:min(72dvh,720px,calc(100dvh - 160px));
  aspect-ratio:var(--ssw-video-ratio,16 / 9);
}
.ssw-story-dialog__stage.is-landscape.is-failed{
  min-height:min(280px,calc(100vh - 160px));
  min-height:min(280px,calc(100dvh - 160px));
}
.ssw-story-dialog__video{
  display:block;
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  margin:0;
  object-fit:contain;
  background:#000;
}
.ssw-story-dialog .ssw-story-dialog__status{margin:12px 2px 0!important;color:#e0e5e9;font-size:14px;line-height:1.5}
.ssw-story-dialog__fallback{position:absolute;inset:0;display:grid;place-items:center;padding:24px;background:#111820;color:#fff;text-align:center;overflow:auto}
.ssw-story-dialog__poster{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;filter:brightness(.27)}
.ssw-story-dialog__fallback-copy{position:relative;z-index:1;max-width:540px}
.ssw-story-dialog .ssw-story-dialog__fallback-copy p{margin:0 0 18px!important;color:#fff;font-size:15px;line-height:1.65}
.ssw-story-dialog__original{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 18px;border:1px solid #f2b705;border-radius:3px;background:#f2b705;color:#161b22;font-size:14px;font-weight:700;line-height:1.4;text-decoration:none}
.ssw-story-dialog__original:hover{background:#ffd24a;color:#161b22}
@media(max-width:600px){
  .ssw-story-dialog{width:calc(100vw - 20px);max-width:calc(100vw - 20px);max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px)}
  .ssw-story-dialog__panel{padding:12px}
  .ssw-story-dialog__header{gap:12px;margin-bottom:12px}
  .ssw-story-dialog__fallback{padding:18px}
  .ssw-story-dialog .ssw-story-dialog__fallback-copy p{font-size:14px}
}
