vor the video links on top – this here is the setting

each image alb element got a youtube link just like the url on top is on youtube
with https://www.youtube.com/watch?v=ID

this comes to child-theme functions.php

here only for that given page-id. – the images are replaced by the embeded Thumbnails.

function youtube_fix(){
if (is_page(33150)){
?>
<script>
(function($){ 
	$('a.avia_image[href*="www.youtube"]').each(function() {
		regex = /(?:youtube(?:-nocookie)?\.com\/(?:[^\/\n\s]+\/\S+\/|(?:v|e(?:mbed)?)\/|\S*?[?&]v=)|youtu\.be\/)([a-zA-Z0-9_-]{11})/;
		var ID = $(this).attr("href").match(regex)[1];
		$(this).find('img').css('width', '100vw ').attr({
			'src': 'https://img.youtube.com/vi/'+ ID +'/mqdefault.jpg',
			'title': 'youtube-thumbnail-'+ ID ,
			'alt': 'youtube-image-'+ ID ,
		});
	});

	$('body').on('DOMNodeInserted', function(){
		$('iframe.mfp-iframe[src*="youtube.com"]').each(function() {
		var _src = $(this).attr("src")
		$(this).attr("src", _src +  '&cc_load_policy=1&enablejsapi=1&ecver=2&playsinline=1&rel=0&showinfo=0&color=white&iv_load_policy=3')
		});
	})
})(jQuery);
</script>
<?php
}
}
add_action('wp_footer', 'youtube_fix');