/* Light YouTube player (VideoPlayer): a 16:9 picture with a play button,
   later YouTube's own frame. Used on the home page and in stories. */

.g-player {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000000;
}

.g-player img,
.g-player iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.g-player__start {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.g-player__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 2px 8px rgb(0 0 0 / 0.45));
}

.g-player__icon circle {
  fill: var(--wp--preset--color--brand);
}

.g-player__icon path {
  fill: #ffffff;
}

.g-player__start:hover .g-player__icon circle {
  fill: var(--wp--preset--color--brand-deep, var(--wp--preset--color--brand));
}

.g-player__start:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: -6px;
}
