/* Klick-för-att-ladda: miniatyr + spelknapp, ingen tredjepart förrän klick. */
.inbaddning {
  margin: 1.25em 0 1.5em;
  max-width: 36rem;
}
.inbaddning-yta {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--gx-mork, #2a1450);
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 0 0 1px var(--gx-kant, #e4d8f0);
}
.inbaddning-yta img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.inbaddning-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4rem;
  height: 4rem;
  margin: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--gx-lila, #800080);
  box-shadow: 0 2px 10px rgba(42, 20, 80, 0.45);
  pointer-events: none;
  transition: background-color 0.15s, transform 0.15s;
}
.inbaddning-play::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.7rem 0 0.7rem 1.15rem;
  border-color: transparent transparent transparent #fff;
  transform: translate(-35%, -50%);
}
.inbaddning-yta:hover .inbaddning-play,
.inbaddning-yta:focus-visible .inbaddning-play {
  background: var(--gx-mellan, #5b2a8c);
}
.inbaddning-yta:hover .inbaddning-play {
  transform: translate(-50%, -50%) scale(1.08);
}
.inbaddning-yta:focus-visible {
  outline: 3px solid var(--gx-mellan, #5b2a8c);
  outline-offset: 3px;
}
.inbaddning iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 8px;
  background: #000;
}
.inbaddning figcaption {
  font-size: 0.9em;
  line-height: 1.45;
  margin-top: 0.45em;
  color: #5a4a6e;
}
.inbaddning-oppna {
  white-space: nowrap;
}
@media (max-width: 640px) {
  .inbaddning {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .inbaddning-play {
    width: 3.25rem;
    height: 3.25rem;
  }
  .inbaddning-play::after {
    border-width: 0.55rem 0 0.55rem 0.95rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .inbaddning-play,
  .inbaddning-yta:hover .inbaddning-play {
    transition: none;
    transform: translate(-50%, -50%);
  }
}
