/* Based on https://webdesign.tutsplus.com/tutorials/how-to-lazy-load-embedded-youtube-videos--cms-26743 */
.youtube {
	background-color: #000;
	margin-bottom: 10px;
	position: relative;
	padding-top: 56.25%; /* 16:9 aspect ratio */
	overflow: hidden;
	cursor: pointer;

	img {
		width: 100%;
		top: -16.82%;
		left: 0;
		opacity: 0.7;
		position: absolute;
	}

	.play-button {
		width: 90px;
		height: 60px;
		background-color: #333;
		box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
		z-index: 1;
		opacity: 0.8;
		border-radius: 6px;
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate3d(-50%, -50%, 0);

		&:before {
			content: "";
			border-style: solid;
			border-width: 15px 0 15px 26px;
			border-color: transparent transparent transparent #fff;
			position: absolute;
			top: 50%;
			left: 50%;
			transform: translate3d(-50%, -50%, 0);
		}
	}

	iframe {
		height: 100%;
		width: 100%;
		top: 0;
		left: 0;
		position: absolute;
	}
}
