[data-role="internalEmbed"] {
	background: var(--i-background_1) !important;
	overflow: hidden;
}
[data-role="externalEmbed"]{
	background: none !important;
	overflow: hidden;
}

#ipsEmbedLoading {
	display: none;
}

.unloaded #ipsEmbedLoading {
	background: var(--i-background_1);
	display: grid;
	grid-template-columns: 42px 1fr;
	grid-template-rows: 42px 1fr;
	gap: 20px;
	padding: 20px;
	position: fixed;
	inset: 0;
}

@keyframes dummy_anim {
	0%, 100% { opacity: .5 }
	50% { opacity: 1 }
}

#ipsEmbedLoading::before,
#ipsEmbedLoading::after,
#ipsEmbedLoading span::before,
#ipsEmbedLoading span::after {
	display: block;
	content: '';
	background: var(--i-background_5);
	border-radius: 6px;
	animation: dummy_anim 2s infinite;
}

#ipsEmbedLoading::before {
	width: 100%;
	aspect-ratio: 1;
	border-radius: 50%;
}

#ipsEmbedLoading span{
	display: grid;
	gap: .5em;
}

	#ipsEmbedLoading span::before{
		width: 80%;
	}
	#ipsEmbedLoading span::after {
		width: 60%;
	}

#ipsEmbedLoading::after {
	grid-column: span 2;
}

#ipsEmbed {
	opacity: 0.0001;
    overflow: hidden;
}

/* Ensure white background is hidden from embedded tweets while in dark mode */
#ipsEmbed .twitter-tweet{
	border-radius: 15px;
	overflow: hidden;
}