/* ==========================================================
   Magnific Popup - Required Base CSS
========================================================== */
.mfp-bg {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: #0b0b0b;
	opacity: 0.9;
	z-index: 1042;
}

.mfp-wrap {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	outline: none !important;
	-webkit-backface-visibility: hidden;
	z-index: 1043;
}

.mfp-container {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	padding: 0 20px;
	text-align: center;
	box-sizing: border-box;
}

.mfp-container::before {
	content: "";
	display: inline-block;
	height: 100%;
	vertical-align: middle;
}

.mfp-content {
	position: relative;
	display: inline-block;
	vertical-align: middle;
	margin: 0 auto;
	text-align: left;
	z-index: 1045;
}

.mfp-inline-holder .mfp-content {
	width: 100%;
	cursor: auto;
}

.mfp-auto-cursor .mfp-content {
	cursor: auto;
}

.mfp-hide {
	display: none !important;
}

.mfp-preloader {
	position: absolute;
	top: 50%;
	left: 8px;
	right: 8px;
	width: auto;
	margin-top: -0.8em;
	color: #cccccc;
	text-align: center;
	z-index: 1044;
}

.mfp-s-ready .mfp-preloader {
	display: none;
}

.mfp-s-error .mfp-content {
	display: none;
}

button.mfp-close {
	display: block;
	position: absolute;
	overflow: visible;
	background: transparent;
	border: 0;
	outline: 0;
	box-shadow: none;
	-webkit-appearance: none;
	cursor: pointer;
	touch-action: manipulation;
	z-index: 1046;
}

.mfp-close {
	width: 44px;
	height: 44px;
	line-height: 44px;
	top: 0;
	right: 0;
	padding: 0;
	color: #ffffff;
	font-family: Arial, Baskerville, monospace;
	font-size: 32px;
	font-style: normal;
	text-align: center;
	text-decoration: none;
	opacity: 0.8;
}

.mfp-close:hover,
.mfp-close:focus {
	color: var(--theme-color);
	opacity: 1;
}

.mfp-close:active {
	top: 1px;
}


/* ==========================================================
   Project Local Video Popup
========================================================== */
.project-video-popup {
	position: relative;
	width: calc(100% - 40px);
	max-width: 1200px;
	margin: 50px auto;
	line-height: 0;
	background-color: #000000;
}

.project-video-popup__player {
	display: block;
	width: 100%;
	height: auto;
	max-height: calc(100vh - 100px);
	background-color: #000000;
}

.project-video-popup .mfp-close {
	top: -48px;
	right: 0;
	color: #ffffff;
}

.project-video-popup .mfp-close:hover {
	color: var(--theme-color);
}


/* ==========================================================
   Popup Fade Animation
========================================================== */
.mfp-fade.mfp-bg {
	opacity: 0;
	transition: opacity 0.3s ease;
}

.mfp-fade.mfp-bg.mfp-ready {
	opacity: 0.9;
}

.mfp-fade.mfp-bg.mfp-removing {
	opacity: 0;
}

.mfp-fade.mfp-wrap .mfp-content {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.mfp-fade.mfp-wrap.mfp-ready .mfp-content {
	opacity: 1;
	transform: translateY(0);
}

.mfp-fade.mfp-wrap.mfp-removing .mfp-content {
	opacity: 0;
	transform: translateY(20px);
}

@media only screen and (max-width: 767px) {
	.mfp-container {
		padding-left: 15px;
		padding-right: 15px;
	}

	.project-video-popup {
		width: 100%;
		margin: 55px auto 20px;
	}

	.project-video-popup__player {
		max-height: calc(100vh - 80px);
	}
}