@charset "utf-8";
/* CSS Document */

.grl-yt {
  position: relative;
  width: 100%;
  aspect-ratio: var(--grl-yt-ratio, 16 / 9);
  overflow: hidden;
}

.grl-yt-block {
  margin: 16px 0;
}

.grl-yt-block--pending{
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 8px;
}

.grl-yt__btn {
  all: unset;
  cursor: pointer;
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.grl-yt__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.grl-yt__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.grl-yt__play::before {
  content: "";
  width: 68px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0,0,0,0.55);
  display: block;
}

.grl-yt__play::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-left: 16px solid rgba(255,255,255,0.95);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  transform: translateX(2px);
}

.grl-yt__iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------------------------------------------
   GRL YouTube: Button Hover / Focus polish
--------------------------------------------- */

.grl-yt__btn .grl-yt__play::before,
.grl-yt__btn .grl-yt__play::after {
  transition: transform 180ms ease, background-color 180ms ease, opacity 180ms ease;
}

.grl-yt__btn:hover .grl-yt__play::before {
  transform: scale(1.06);
  background: rgba(0,0,0,0.70);
}

.grl-yt__btn:hover .grl-yt__play::after {
  transform: translateX(3px) scale(1.06);
}

.grl-yt__btn:focus-visible .grl-yt__play::before {
  transform: scale(1.06);
  background: rgba(0,0,0,0.75);
  outline: 2px solid rgba(255,255,255,0.65);
  outline-offset: 4px;
}

/* ---------------------------------------------
   GRL YouTube: Poster image hover animation
--------------------------------------------- */

.grl-yt__poster {
  transition: transform 300ms ease;
}

.grl-yt__btn:hover .grl-yt__poster {
  transform: scale(1.04);
}

.grl-yt__btn:focus-visible .grl-yt__poster {
  transform: scale(1.04);
}

