/* Vídeos de YouTube: miniatura con botón de reproducir y ventana con el vídeo (videos.js) */
.tp-video {
	display: inline-block;
	width: 100%;
	max-width: 480px;
	color: inherit;
	text-decoration: none;
	vertical-align: top;
}
.tp-video-imagen {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 4px;
	background: #111;
}
.tp-video-imagen img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.tp-video-imagen::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 68px;
	height: 48px;
	margin: -24px 0 0 -34px;
	border-radius: 12px;
	background: rgba(196, 22, 28, .85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 30px no-repeat;
	transition: background-color .15s;
}
.tp-video:hover .tp-video-imagen::after,
.tp-video:focus-visible .tp-video-imagen::after {
	background-color: #c4161c;
}
.tp-video-titulo {
	display: block;
	margin-top: .3em;
	font-size: .9em;
}
.tp-video:hover .tp-video-titulo {
	text-decoration: underline;
}

.tp-video-ventana {
	width: min(960px, 92vw);
	max-width: none;
	padding: 0;
	border: 0;
	overflow: visible;
	background: #000;
}
.tp-video-ventana::backdrop {
	background: rgba(0, 0, 0, .85);
}
.tp-video-marco {
	aspect-ratio: 16 / 9;
}
.tp-video-marco iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}
.tp-video-ventana .tp-video-cerrar {
	position: absolute;
	top: -1.6em;
	right: -.2em;
	left: auto;
	width: auto;
	min-width: 0;
	margin: 0;
	padding: 0 .2em;
	border: 0;
	background: none;
	color: #fff;
	font-size: 2em;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: none;
}
