/********************************************************************************/
/* MAIN
/********************************************************************************/

/* Page */
.page {
	position: absolute;
	z-index: -99;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	opacity: 0;
	background-color: #170000;
	color: #fff;
	direction: rtl;
}
.page.opening {
	position: fixed;
	z-index: 5;
	height: auto;
	opacity: 1;
	-webkit-transition: opacity 1s ease;
	   -moz-transition: opacity 1s ease;
		-ms-transition: opacity 1s ease;
		 -o-transition: opacity 1s ease;
			transition: opacity 1s ease;
}
.page.active {
	position: relative;
	height: auto;
	z-index: 2;
	opacity: 1;
}
.page.active.closing {
}
/***/



/* Page content */
.page-content {
	padding: 56px 30px;
}
/***/



/* Page tabs */
.page-tabs {
	
}
.page-tab {
	min-height: 100%;
}
.tab-shadow {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	background: rgba(0,0,0,0.6);
}
.tab-text-container {
	position: relative;
	z-index: 2;
}
.tab-text-content {
	padding-top: 60px;
}
.tab-number {
	margin-bottom: 1em;
	text-align: center;
}
.page-tabs .swiper-button-prev,
.page-tabs .swiper-button-next {
	display: none;
}
@media only screen and (max-width : 1200px) {
	.page-tabs > .swiper-wrapper {
		display: block !important;
	}
	.page-tab {
		background-attachment: fixed;
	}
}

/***/



/* Page animatios */
@media only screen and (min-width : 1200px) {
	.tab-shadow,
	.tab-number,
	.text-columns > div { 
		opacity: 0;
	}
	.tab-number {
		-webkit-transform: scale(0.1);
		   -moz-transform: scale(0.1);
			-ms-transform: scale(0.1);
			 -o-transform: scale(0.1);
				transform: scale(0.1);	
	}
	.text-columns > div {
		-webkit-transform: translate3d(-100px,0,0);
		   -moz-transform: translate3d(-100px,0,0);
			-ms-transform: translate3d(-100px,0,0);
			 -o-transform: translate3d(-100px,0,0);
				transform: translate3d(-100px,0,0);	
	}
	.page-tab.current-tab {
	}
	.page-tab.current-tab .tab-shadow, 
	.page-tab.current-tab .tab-number,
	.page-tab.current-tab .text-columns > div {
		opacity: 1;
		-webkit-transform: none;
		   -moz-transform: none;
			-ms-transform: none;
			 -o-transform: none;
				transform: none;	
	}
	.page-tab.current-tab .tab-shadow {
		-webkit-transition: all 0.5s ease 0s;
		   -moz-transition: all 0.5s ease 0s;
			-ms-transition: all 0.5s ease 0s;
			 -o-transition: all 0.5s ease 0s;
				transition: all 0.5s ease 0s;
	}
	.page-tab.current-tab .tab-number {
		-webkit-transition: all 0.5s ease 0s;
		   -moz-transition: all 0.5s ease 0s;
			-ms-transition: all 0.5s ease 0s;
			 -o-transition: all 0.5s ease 0s;
				transition: all 0.5s ease 0s;
	}
	.page-tab.current-tab  .text-columns > div:nth-child(1) {
		-webkit-transition: all 0.5s ease 0.2s;
		   -moz-transition: all 0.5s ease 0.2s;
			-ms-transition: all 0.5s ease 0.2s;
			 -o-transition: all 0.5s ease 0.2s;
				transition: all 0.5s ease 0.2s;
	}
	.page-tab.current-tab  .text-columns > div:nth-child(2) {
		-webkit-transition: all 0.5s ease 0.4s;
		   -moz-transition: all 0.5s ease 0.4s;
			-ms-transition: all 0.5s ease 0.4s;
			 -o-transition: all 0.5s ease 0.4s;
				transition: all 0.5s ease 0.4s;
	}
	.page-tab.current-tab  .text-columns > div:nth-child(3) {
		-webkit-transition: all 0.5s ease 0.6s;
		   -moz-transition: all 0.5s ease 0.6s;
			-ms-transition: all 0.5s ease 0.6s;
			 -o-transition: all 0.5s ease 0.6s;
				transition: all 0.5s ease 0.6s;
	}
}
/***/






/* Popups */
.page .open-popup {
	display: block;
	position: absolute;
	z-index: 99;
	left: 30px;
	bottom: 16px;
	padding: 4px 23px;
	background: transparent url(../img/left-arrow-white-small.png) 0 50% no-repeat;
	font-size: 16px;
	color: #fff;
	letter-spacing: 1px;
}

.popup {
	direction: rtl;
	position: fixed;
	top: 56px;
	bottom: 0;
	width: 100%;
}
.gallery-popup,
.video-popup {
	z-index: 99;
	left: -102%;
	-webkit-transition: left 1s cubic-bezier(0.770, 0.000, 0.175, 1.000);
	   -moz-transition: left 1s cubic-bezier(0.770, 0.000, 0.175, 1.000);
		-ms-transition: left 1s cubic-bezier(0.770, 0.000, 0.175, 1.000);
		 -o-transition: left 1s cubic-bezier(0.770, 0.000, 0.175, 1.000);
			transition: left 1s cubic-bezier(0.770, 0.000, 0.175, 1.000);
}
.gallery-popup {
	background: #170000;
}
.video-popup {
	background: #000;
}
.contact-popup {
	z-index: -99;
	left: 0;
	opacity: 0;
	-webkit-transition: opacity 0.5s ease, z-index 0s ease 0.5s;
	   -moz-transition: opacity 0.5s ease, z-index 0s ease 0.5s;
		-ms-transition: opacity 0.5s ease, z-index 0s ease 0.5s;
		 -o-transition: opacity 0.5s ease, z-index 0s ease 0.5s;
			transition: opacity 0.5s ease, z-index 0s ease 0.5s;	
}

.gallery-popup.opened,
.video-popup.opened {
	left: 0;
}
.contact-popup.opened {
	opacity: 1;
	z-index: 99;
	-webkit-transition: opacity 0.5s ease, z-index 0s ease 0s;
	   -moz-transition: opacity 0.5s ease, z-index 0s ease 0s;
		-ms-transition: opacity 0.5s ease, z-index 0s ease 0s;
		 -o-transition: opacity 0.5s ease, z-index 0s ease 0s;
			transition: opacity 0.5s ease, z-index 0s ease 0s;	
}


.popup .swiper-container,
.popup .swiper-wrapper,
.popup .swiper-slide {
	height: 100%;
}
.popup .swiper-container {
}
.popup .swiper-slide {
	background-color: #170000;
	background-repeat: no-repeat;
	background-position: 50% 50%;
	background-size: 100% auto;
}
.popup .swiper-slide > img {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	margin: auto;
	max-width: 80%;
	max-height: 80%;
}

.close-popup {
	position: absolute;
	z-index: 9;
	top: 10px;
	left: 30px;
	padding: 0 20px;
	background: transparent url('../img/close-gallery.png') 0 -46px no-repeat;
	color: #fff;
	line-height: 25px;
	font-size: 0.95em;
	letter-spacing: 2px;
}
.close-popup.dark {
	background-position: 0 4px;
	color: #170000;
}
@media only screen and ( min-aspect-ratio: 16/9 ) {
	.close-popup:not(.light) {
		background-position: 0 4px;
		color: #170000;
	}
}
@media only screen and (min-width : 1200px) {
	.popup {
		top: 70px;
	}
	.gallery-popup,
	.video-popup {
		-webkit-transition: all 1.5s cubic-bezier(0.770, 0.000, 0.175, 1.000);
		   -moz-transition: all 1.5s cubic-bezier(0.770, 0.000, 0.175, 1.000);
			-ms-transition: all 1.5s cubic-bezier(0.770, 0.000, 0.175, 1.000);
			 -o-transition: all 1.5s cubic-bezier(0.770, 0.000, 0.175, 1.000);
				transition: all 1.5s cubic-bezier(0.770, 0.000, 0.175, 1.000);
	}
	.close-popup {
		top: 30px;
		left: 50px;
	}
	
	.popup .swiper-slide > img {
		max-width: 100%;
		max-height: 90%;
	}
}
/***/







@media only screen and (min-width : 480px) {
	.page-content {
		padding: 75px 30px;
	}
	
	.tab-text-container {
		max-width: 420px;
		margin-left: auto;
		margin-right: auto;
	}
	
	.page-tabs .swiper-button-prev,
	.page-tabs .swiper-button-next {
		top: 135px;
	}
	
	
}

@media only screen and (min-width : 767px) {
	.page-tab {
		display: table;
	}
	.tab-text-container {
		display: table-cell;
		text-align: center;
		vertical-align: middle;
	}
	.tab-text-content {
		display: inline-block;
		max-width: 480px;
		text-align: right;
	}
	
	.page-tabs .swiper-button-prev,
	.page-tabs .swiper-button-next {
		top: 50%;
	}
}

@media only screen and (min-width : 992px) {
	.tab-number {
		float: right;
		width: 64px;
		margin-right: -84px;
		margin-top: 0.4em;
		text-align: left;
	}
}



@media only screen and (min-width : 1200px) {
	.page {
		overflow: auto;
		direction: ltr;
	}
	.page,
	.page.opening,
	.page.active,
	.page-tabs, 
	.page-tabs > .swiper-wrapper,
	.page-tab {
		height: 100%;
	}
	
	.page > * {
		direction: rtl;
	}
	
	
	.page-tabs .swiper-button-prev,
	.page-tabs .swiper-button-next {
		display: block;
		position: fixed;
		top: 50%;
	}
	
	
	
	.page > .open-popup {
		left: 50px;
		bottom: 73px;
	}

	
	.tab-text-content {
		max-width: 892px;
	}
	.tab-text-content.wide {
		max-width: 1192px;
	}
	
	.text-columns:after {
		content: '';
		display: block;
		clear: both;
	}
	
	.text-columns > div {
		width: 50%;
		padding: 0 20px;
	}
	.text-columns.three-columns > div {
		width: 33.3333%;
		padding: 0 20px;
	}
	.text-columns > div:not(.single-column) {
		float: right;
	}
	.text-columns > div.single-column {
		margin-left: auto;
		margin-right: auto;
	}
}



@media only screen and (min-width : 1600px) {
	.popup .swiper-slide {
		background-size: auto;
	}
	
	.tab-text-content {
		max-width: 1092px;
		margin-right: 0;
	}
}






/* Video players */
.video-container {
	position: absolute;
	left: 0;
	/*bottom: 0;*/
	top: 50%;
	width: 100%;
	margin-top: -28.125%;
	padding-top: 56.25%;
}
.video-preview {
	display: none;
	position: absolute;
	z-index: 9;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
.video-player {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
@media only screen and (min-width : 1200px) {

}
/***/









/********************************************************************************/

