/*
 * Vidéos dans les blocs 2 colonnes des articles (inc/acf-media.php).
 * Le reste du style (.video, bouton play) vient déjà de index.css.
 */

.article-content .video-embed iframe {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border: 0;
}

/*
 * Liens YouTube / Vimeo collés directement dans un champ texte : WordPress
 * les affiche à sa taille par défaut (500 px, calés à gauche). On les met
 * pleine largeur, centrés et en 16/9, comme les vidéos du champ Vidéo.
 */
.article-content iframe[src*="youtube.com"],
.article-content iframe[src*="youtube-nocookie.com"],
.article-content iframe[src*="player.vimeo.com"] {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	margin: 0 auto;
	border: 0;
}

.article-content .video-file video {
	display: block;
	cursor: pointer;
}

.article-content .video-file .fb-video-bar {
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: 3;
	width: 100%;
	height: 6px;
	background-color: #e9e9e9;
	cursor: pointer;
}

.article-content .video-file .fb-video-progress {
	width: 0;
	height: 100%;
	background-color: #1b3541;
}

@media screen and (min-width: 1600px) and (orientation: landscape) {
	.article-content .video-file .fb-video-bar {
		height: 10px;
	}
}

/*
 * Bloc « texte sur 2 colonnes » (text-column) : index.css utilise
 * column-count, qui fait couler les deux champs texte comme un seul flux
 * réparti sur deux colonnes. Le texte de gauche déborde alors dans la
 * colonne de droite, et une image ou une vidéo dans le texte de gauche
 * repousse tout le reste. Chaque champ doit occuper sa propre colonne :
 * on passe en grille.
 */
@media screen and (min-width: 768px) {
	body.article .article-content .text-column,
	body.collections .article-content .text-column {
		column-count: auto;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: clamp(4rem, 3.0291262136rem + 2.5889967638vw, 8rem);
		align-items: start;
	}
}
