/* the pause control of the videos that move on their own (WCAG 2.2.2): one small round button,
   in the bottom-right corner of the hero band or of the clip frame. The button sits in the
   markup but hidden; /assets/js/video-pause.js gives it its state and its label. */

.vp-btn{position:absolute;z-index:3;right:12px;bottom:12px;display:block;width:28px;height:28px;padding:0;border:0;border-radius:50%;background:rgba(26,29,33,.45);color:#fff;cursor:pointer;transition:opacity .2s}
.vp-btn[hidden]{display:none}
.vp-btn:hover{background:rgba(26,29,33,.75)}
/* the ring sits over the video or the artwork: a white ring with a dark halo reads on both */
.vp-btn:focus-visible{outline:2px solid #fff;outline-offset:1px;box-shadow:0 0 0 4px rgba(26,29,33,.9)}
/* with a mouse the control shows only while the pointer is over its video, or when it has focus;
   touch screens have no hover, so there it stays, small */
@media (hover:hover){
  .vp-btn{opacity:0}
  :hover > .vp-btn,.vp-btn:focus-visible{opacity:1}
}
/* the icon is drawn here: two bars for pause, a triangle for play */
.vp-btn::before,.vp-btn::after{content:"";position:absolute;top:50%;left:50%;width:2px;height:9px;background:currentColor;border-radius:1px}
.vp-btn::before{transform:translate(calc(-50% - 2.5px),-50%)}
.vp-btn::after{transform:translate(calc(-50% + 2.5px),-50%)}
.vp-btn[data-state="play"]::before{width:0;height:0;background:none;border-radius:0;border-left:8px solid currentColor;border-top:5px solid transparent;border-bottom:5px solid transparent;transform:translate(-40%,-50%)}
.vp-btn[data-state="play"]::after{display:none}

@media (prefers-reduced-motion:reduce){
  /* no motion: the band shows the poster, not the video. A visitor who asks for the
     animation gets the video back. */
  .hero-paper .hero-video.vp-on{display:block}
}
