.custom_media_and_text{
	padding: 120px 0;
	position: relative;
	overflow: hidden;
}
.custom_media_and_text .wp-block-heading{
	margin: 0 0 20px;
}
.custom_media_and_text .media_wrap {
	position : relative;
	width    : 100%;
}
.custom_media_and_text.out_of_container .media_wrap video{
	max-width: 100%;
	height: auto;
}
.custom_media_and_text .media_wrap .section_image{
	overflow: hidden;
}
.custom_media_and_text .media_wrap .section_image,
.custom_media_and_text .media_wrap .section_image img{
	width : 100%;
}
.custom_media_and_text.image_full_height .media_wrap .section_image,
.custom_media_and_text.image_full_height .media_wrap .section_image img{
	height: 100%;
	object-fit: cover;
}
.custom_media_and_text,
.custom_media_and_text .container{
	align-items: center;
	display: flex;
	flex-direction: column;
}
.custom_media_and_text .text_wrap{
	padding-bottom: 40px;
}
.custom_media_and_text .book_btn{
	float: right;
	margin-right: 30px;
	margin-bottom: -60px;
	z-index: 5;
	position: relative;
	margin-top: -60px;
}
.custom_media_and_text .text_wrap ul{
	padding: 0;
}
.custom_media_and_text .text_wrap li{
	padding: 10px 0 10px 60px;
	list-style: none;
	background: url(../../img/svg/list_icon.svg) left 10px no-repeat;
}
.sertificates .book_btn{
	display: none;
}
.custom_media_and_text.sertificates{
	background: url(../../img/sertificates_bg.jpg) center / cover no-repeat;
	padding: 0;
}
.custom_media_and_text.sertificates .text_wrap{
	padding: 40px 0 40px 0;
}
.about_us:before {
	position: absolute;
	content: '';
	background: url(../../img/stripes.jpg) center / cover no-repeat;
	width: 70px;
	height: 100%;
	right: 0;
	top: 0;
}

@media(min-width: 769px){
	.custom_media_and_text .media_wrap {
		max-width: 700px;
	}
}
@media(min-width: 1025px){

}
@media(min-width: 1200px){
	.custom_media_and_text.center .container,
	.custom_media_and_text.center{
		align-items: center;
	}
	.custom_media_and_text.bottom .container,
	.custom_media_and_text.bottom{
		align-items: flex-end;
	}
	.custom_media_and_text,
	.custom_media_and_text .container{
		display: flex;
		justify-content: space-between;
		align-items: flex-start;
		flex-direction: row;
	}
	.custom_media_and_text.about_us .container{
		flex-direction: row-reverse;
	}
	.custom_media_and_text .media_wrap{
		max-width: unset;
	}
	.custom_media_and_text.columns_50_50 .media_wrap{
		width : 50%;
	}
	.custom_media_and_text.columns_60_40 .media_wrap{
		width : 40%;
	}
	.custom_media_and_text.columns_66_33 .media_wrap{
		width : 33%;
	}
	.custom_media_and_text.columns_75_25 .media_wrap{
		width : 25%;
	}
	.custom_media_and_text.out_of_container .media_wrap{
		position: absolute;
		height: 100%;
		top: 0;
		right: 0;
		display: flex;
		align-items: center;
	}
	.custom_media_and_text.out_of_container.columns_50_50 .media_wrap{
		width : 50%;
	}
	.custom_media_and_text.out_of_container.columns_60_40 .media_wrap{
		width : calc(50% - 1400px/2 + 1400px/2.5);
	}
	.custom_media_and_text.out_of_container.columns_66_33 .media_wrap{
		width : calc(50% - 1400px/2 + 1400px/3);
	}
	.custom_media_and_text.out_of_container.columns_75_25 .media_wrap{
		width : calc(50% - 1400px/4);
	}

	.custom_media_and_text.about_us .text_wrap{
		padding-left: 40px;
	}
	.custom_media_and_text.sertificates .text_wrap{
		padding: 40px 40px 40px 0;
	}
	.custom_media_and_text.columns_50_50 .text_wrap{
		width : 50%;
	}
	.custom_media_and_text.columns_60_40 .text_wrap{
		width : 60%;
	}
	.custom_media_and_text.columns_66_33 .text_wrap{
		width : 66%;
	}
	.custom_media_and_text.columns_75_25 .text_wrap{
		width : 75%;
	}
	.custom_media_and_text .book_btn {
		margin-right: 0;
	}
}
@media(min-width: 1480px){
	.custom_media_and_text.out_of_container.columns_66_33 .media_wrap{
		width : calc(50% - 1400px/2 + 1400px/3);
	}
	.custom_media_and_text.out_of_container.columns_75_25 .media_wrap{
		width : calc(50% - 1400px/4);
	}
	.custom_media_and_text .book_btn {
		margin-top: 40px;
	}
}

















.custom_media_and_text .carousel_wrap{
	/*position: absolute;*/
	width : 100%;
	/*height: 100%;*/
	top: 0;
	left: 0;
}
.custom_media_and_text .carousel_wrap .flickity-viewport{
	/*z-index: -1;*/
	/*height: 100% !important;*/
}
.custom_media_and_text .carousel_wrap .item{
	width : 100%;
	/*height: 100%;*/
	/*background-position: center;*/
	/*background-size: cover;*/
	/*z-index: -1;*/
}
.custom_media_and_text .carousel_wrap>.item{
	display: none; /* hide item for not initiated carousel in admin panel */
}
.custom_media_and_text .flickity-button{
	background: none;
}
.custom_media_and_text .flickity-button:before{
	content: '';
	width : 30px;
	height: 30px;
	border-right: 2px solid #fff;
	border-bottom: 2px solid #fff;
	rotate: -44deg;
	display: block;
}
.custom_media_and_text .flickity-button.previous:before{
	rotate: 136deg;
	margin-left: 15px;
}
.custom_media_and_text .flickity-button svg{
	display: none;
}
