.rsn-lazy-embed {
  clear: both;
  display: block;
  width: 100%;
  min-height: var(--rsn-lazy-embed-min-height, 180px);
  margin: 24px auto;
  overflow: hidden;
}

.rsn-lazy-embed iframe {
  display: block;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.rsn-lazy-embed--twitter,
.rsn-lazy-embed--instagram,
.rsn-lazy-embed--facebook,
.rsn-lazy-embed--facebook-iframe,
.rsn-lazy-embed--tiktok,
.rsn-lazy-embed--spotify,
.rsn-lazy-embed--apple-podcast {
  max-width: 100%;
}

.rsn-lazy-embed--tiktok {
  min-height: var(--rsn-lazy-embed-min-height, 520px);
}

.rsn-lazy-embed--spotify {
  min-height: var(--rsn-lazy-embed-min-height, 152px);
}

.rsn-lazy-embed--apple-podcast {
  min-height: var(--rsn-lazy-embed-min-height, 450px);
}

.rsn-lazy-embed__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: inherit;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  color: inherit;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  box-sizing: border-box;
}

.rsn-lazy-embed__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  opacity: 0.65;
  animation: rsnLazyEmbedSpin 0.75s linear infinite;
}

.rsn-lazy-embed--loaded {
  min-height: 0;
  overflow: visible;
}

.rsn-lazy-embed--loaded .rsn-lazy-embed__placeholder {
  display: none;
}

.rsn-lazy-embed--failed .rsn-lazy-embed__placeholder {
  border-style: dashed;
}

@keyframes rsnLazyEmbedSpin {
  to {
    transform: rotate(360deg);
  }
}
