<?php
	$heading = get_sub_field('video_title');
	$sub_heading = get_sub_field(' video_description');
	$video = get_sub_field('video_embed');
	$video = str_replace('></iframe>', ' ' . 'class="embed-responsive-item"' . '></iframe>', $video);

?>

<section data-aos="fade-up" class=" video mt-5 relative <?php echo $background_classes; ?> <?php echo $text_classes; ?>">

	<div class="text-center">

		<div class="col-11 m-auto py-5">

			<div class="relative m-4">

				<?php if ( $heading ) : ?>

						<h2 class="<?php echo $text_classes; ?>"><?php echo $heading; ?></h2>

				<?php endif; ?>

				<?php if ( $sub_heading ) : ?>
					<div class="">
						<p class="lead <?php echo $text_classes; ?>"><?php echo $sub_heading; ?></p>
					</div>
				<?php endif; ?>

			</div>

		<div class="relative embed-responsive embed-responsive-16by9" data-aos="animate-up">

<?php echo $video; ?>

		</div>
	</div>
	</div>
</section>
