.sel-embed {
	margin: 0 auto 1.5em;
	width: 100%;
	max-width: 100%;
}

.sel-embed .sel-media,
.sel-embed video,
.sel-embed img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
}

.sel-embed iframe {
	max-width: 100%;
}

/* One post in a single bordered box, like a widget. */
.sel-embed--boxed {
	border: 1px solid #e3e3e3;
	border-radius: 12px;
	padding: 16px;
	background: #fff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
	overflow: hidden;
}

.sel-embed--boxed .sel-card {
	border: 0;
	padding: 0;
	border-radius: 0;
}

.sel-embed--boxed .sel-card__body {
	padding: 12px 0 0;
}

.sel-card {
	border: 1px solid #e3e3e3;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}

.sel-card__body {
	padding: 14px 16px 16px;
}

.sel-card__site {
	display: block;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #777;
	margin-bottom: 4px;
}

.sel-card__title {
	font-weight: 600;
	font-size: 16px;
	line-height: 1.35;
	color: inherit;
	text-decoration: none;
}

.sel-card__title:hover {
	text-decoration: underline;
}

/* Show title toggle: hides the card title when show_title="no". */
.sel-hide-title .sel-card__title {
	display: none;
}

/* Platform icon at the bottom-left of each block. It ignores clicks so the embed still works. */
.sel-embed {
	position: relative;
}

.sel-badge {
	position: absolute;
	left: 10px;
	bottom: 10px;
	z-index: 2;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #444;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
	pointer-events: none;
}

.sel-badge svg {
	width: 16px;
	height: 16px;
}

.sel-badge--youtube { background: #ff0000; }
.sel-badge--instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.sel-badge--facebook { background: #1877f2; }
.sel-badge--x,
.sel-badge--tiktok { background: #000; }
.sel-badge--vimeo { background: #1ab7ea; }

/* Video with play button. The button hides while the video plays. */
.sel-video {
	position: relative;
}

.sel-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 1;
	width: 64px;
	height: 64px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.sel-play:hover {
	background: rgba(0, 0, 0, 0.8);
}

.sel-play svg {
	width: 28px;
	height: 28px;
	fill: #fff;
	margin-left: 4px;
}

.sel-video.is-playing .sel-play {
	display: none;
}

.sel-link a {
	font-weight: 600;
}

.sel-error {
	color: #b32d2e;
	border: 1px dashed #b32d2e;
	padding: 8px 12px;
	border-radius: 6px;
}
