.media-gallery-block > .container > div {
	&:not(:first-child) {
		margin-top: 15px;
	}
}

.media-gallery-block .single-image {
	aspect-ratio: 22/9;
	height: auto;
	margin-left: auto;
	margin-right: auto;
	max-width: var(--wp--style--global--wide-size) !important;
	overflow: hidden;
	position: relative;
	width: 100%;	
}
.media-gallery-block .single-image img {
	height: 100%;
	object-fit: cover;
	object-position: center;
	width: 100%;
}

.media-gallery-block .two-images {
	column-gap: 15px;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	max-height: 345px;
	height: 100%;
	max-width: var(--wp--style--global--wide-size) !important;
	margin-left: auto;
	margin-right: auto;
}

.media-gallery-block .three-images {
	column-gap: 15px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	max-width: var(--wp--style--global--wide-size) !important;
	margin-left: auto;
	margin-right: auto;
	max-height: 345px;
}

.media-gallery-block .two-images,
.media-gallery-block .three-images {
	
	& .image {
		display: inline-block;
		height: 100%;
		max-height: 345px;
		transition: .25s ease-in-out;
		position: relative;
		width: 100%;
	}

	& .image img {
		height: 100%;
		object-fit: cover;
		object-position: center;
		overflow: hidden;
		position: relative;
		width: 100%;	
	}

	& .image .caption {
		align-items: center;
		/* background-color: transparent; */
		bottom: 0;
		color: var(--wp--preset--color--white);
		display: flex;
		height: auto;
		padding: 20px;
		position: absolute;
		transition: .25s ease-in-out;
		width: 100%;
		z-index: 0;
		&::before {
			content: '';
			background-color: var(--wp--preset--color--blue);
			height: 100%;
			left: 0;
			position: absolute;
			top: 0;
			transition: .25s ease-in-out;
			width: 0;
			z-index: -1;
		}
	}
	& .image .caption i {
		margin-left: 7px;
		position: relative;
		right: 0;
		top: 0;
		transition: .25s ease-in-out;
	}

	& .image:hover .caption {
		color: var(--wp--preset--color--white);
		&::before {
			content: '';
			background-color: var(--wp--preset--color--blue);
			height: 100%;
			left: 0;
			position: absolute;
			top: 0;
			width: 100%;
			z-index: -1;
		}
	}
	& .image:hover .caption i {
		right: -10px;
	}

}

@media screen and (max-width: 992px) {
	.media-gallery-block .two-images .image {
		aspect-ratio: 4/3;
	}
	.media-gallery-block .three-images .image {
		aspect-ratio: 1/1;
	}
}

@media screen and (max-width: 768px) {
	.media-gallery-block .two-images {
		max-height: none;
	}
	.media-gallery-block .three-images {
		grid-template-columns: repeat(2, 1fr);
		grid-template-rows: repeat(2, auto);
		gap: 15px;
		max-height: none;
	}	
	.media-gallery-block .three-images img:nth-child(1) {
		grid-column: 1 / span 2;
		aspect-ratio: 16/9;
	}
}

@media screen and (max-width: 662px) {
	.media-gallery-block .two-images,
	.media-gallery-block .three-images {
		gap: 15px;
		grid-template-columns: 1fr;
		max-height: none;
	}
	.media-gallery-block .two-images .image,
	.media-gallery-block .three-images .image {
		aspect-ratio: 16/9;
	}
}





/* VIDEO BLOCK */
.media-gallery-block .video-block {
	aspect-ratio: 16/9;
	height: auto;
	max-width: var(--wp--style--global--content-size) !important;
	overflow: hidden;
	position: relative;
	width: 100%;
}
.media-gallery-block .video-block.home-offset {
	margin-bottom: var(--padding);
	margin-top: -400px;
}
@media(max-width: 992px) {
	.media-gallery-block .video-block.home-offset {
		margin-top: -200px;
	}
}

.media-gallery-block .video-block .video-control {
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
	z-index: 1;

	aspect-ratio: 16/9;
	height: auto;
	max-width: var(--wp--style--global--content-size) !important;
	overflow: hidden;
}
.media-gallery-block .video-block .video-control:hover .video-button svg path {
	opacity: 1;
}
.media-gallery-block .video-block .video-button {
	border-radius: 50%;
	display: grid;
	height: 250px;
	left: 50%;
	place-content: center;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 250px;
}
@media(max-width: 662) {
	.media-gallery-block .video-block .video-button {
		width: 150px;
		height: 150px;
	}
}

.media-gallery-block .video-block .video-button	svg {
	position: absolute;
	top: 50%;
	left: 55%;
	transform: translate(-50%, -50%) scale(1);
	transition: .25s ease-in-out;
	z-index: 1;
}
.media-gallery-block .video-block .video-button	svg path {
	transition: .25s ease-in-out;
	fill: var(--wp--preset--color--white);
	opacity: 0.5;
}


.media-gallery-block .video-block .video-poster {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	z-index: 0;
	overflow: hidden;
	width: 100%;
	height: 100%;
}
.media-gallery-block .video-block .video-poster img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}
.media-gallery-block .video-block .video-poster .embed-container {
	position: relative;
	top: 50%;
	left: 0;
	transform: translateY(-50%);
	padding-bottom: 56.25%; /* 16:9 */
	height: 100%;
	width: 100%;
}
.media-gallery-block .video-block .video-poster iframe {
	position: absolute;
	top: 50%;
	left: 0;
	transform: translateY(-50%) scale(1.3);
	width: 100%;
	height: 100%;
}



#modal-video .modal-video {
	width: 100%;
}
#modal-video .modal-video,
#modal-video .modal-video .embed-container {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	height: 0;
}
#modal-video .modal-video iframe,
#modal-video .modal-video .embed-container  iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
#modal-video .modal-dialog {
	max-width: 75%;
}
@media(max-width: 1200px) {
	#modal-video .modal-dialog {
		max-width: 90%;
	}	
}
@media(max-width: 992px) {
	#modal-video .modal-dialog {
		max-width: 100%;
	}	
}