/* Vinkylguiden — YouTube-sektionen (design/sections/video.section.json).
 * Klick-för-att-spela: bara miniatyren laddas tills besökaren klickar, sedan
 * byter 70-video.js in en youtube-nocookie-iframe. Ingen YouTube-kod eller
 * cookie före klick. */
.vg-video { margin-block: 0; }
.vg-video__dek { margin: 0 0 1rem; color: var(--wp--preset--color--muted); }
.vg-video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: var(--wp--preset--color--contrast);
}
.vg-video__play, .vg-video__frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block;
}
.vg-video__play img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease, opacity .2s ease;
}
.vg-video__play:hover img, .vg-video__play:focus-visible img { transform: scale(1.02); opacity: .92; }
.vg-video__btn {
  position: absolute; left: 50%; top: 50%;
  width: 76px; height: 76px; margin: -38px 0 0 -38px;
  border-radius: 50%;
  background: var(--wp--preset--color--primary);
  box-shadow: 0 6px 24px rgb(0 0 0 / .35);
  transition: transform .2s ease;
}
.vg-video__btn::after {
  content: ""; position: absolute; left: 31px; top: 24px;
  border-style: solid; border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent var(--wp--preset--color--base);
}
.vg-video__play:hover .vg-video__btn, .vg-video__play:focus-visible .vg-video__btn { transform: scale(1.08); }
.vg-video__play:focus-visible { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 3px; }
.vg-video__sr {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.vg-video__meta { margin: .6rem 0 0; font-size: .875rem; color: var(--wp--preset--color--muted); }
.vg-video__meta a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 600px) {
  .vg-video__btn { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
  .vg-video__btn::after { left: 24px; top: 18px; border-width: 12px 0 12px 19px; }
}
