/* Scope media and controls to the two decorative masthead backgrounds. */
:is(.Masthead, .RibbonMasthead) > figure > video {
  aspect-ratio: auto 16 / 9;
  object-fit: cover;
}

:is(.Masthead, .RibbonMasthead) > figure > [hidden],
:is(.Masthead, .RibbonMasthead) > .seis-video-toggle[hidden] {
  display: none !important;
}

:is(.Masthead, .RibbonMasthead) > .seis-video-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 20;
  max-width: calc(100% - 2rem);
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: 2px solid #fff;
  border-radius: 4px;
  background: #00598c;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  cursor: pointer;
}

:is(.Masthead, .RibbonMasthead) > .seis-video-toggle:focus-visible {
  outline: 3px solid #ffd100;
  outline-offset: 3px;
}

:is(.Masthead, .RibbonMasthead) > .seis-video-toggle:disabled {
  cursor: default;
}
