/* -----------------------------------------------------------------------------------
Basics
----------------------------------------------------------------------------------- */
.mfp-bg {
	position: fixed; top: 0; left: 0; z-index: 1042;
	width: 100%; height: 100%;
	overflow: hidden;
	background: #fff;
	opacity: 1; filter: alpha(opacity=100);
}

.mfp-wrap {
	position: fixed; top: 0; left: 0;z-index: 1043;
	width: 100%; height: 100%;
	outline: none !important;
	-webkit-backface-visibility: hidden;
	-webkit-overflow-scrolling:touch;
}

.mfp-container {
	position: absolute; left: 0; top: 0;
	width: 100%; height: 100%;
	padding: 0 15px;
	text-align: center;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box; }

	.mfp-container:before {
		content: '';
		display: inline-block;
		height: 100%;
		vertical-align: middle; }

	.mfp-align-top .mfp-container:before {
	display: none;
}

.mfp-content {
	position: relative; z-index: 1045;
	display: inline-block;
	margin: 0 auto;
	vertical-align: middle;
	text-align: left; }

	.mfp-inline-holder .mfp-content, .mfp-ajax-holder .mfp-content {
		width: 100%;
		cursor: auto;
}

.mfp-ajax-cur {
	cursor: progress;
}

.mfp-zoom-out-cur, .mfp-zoom-out-cur .mfp-image-holder .mfp-close {
	cursor: -moz-zoom-out;
	cursor: -webkit-zoom-out;
	cursor: zoom-out;
}

.mfp-zoom {
	cursor: pointer;
	cursor: -webkit-zoom-in;
	cursor: -moz-zoom-in;
	cursor: zoom-in;
}

.mfp-auto-cursor .mfp-content {
	cursor: auto;
}

.mfp-close, .mfp-arrow, .mfp-preloader, .mfp-counter {
	-webkit-user-select: none;
	-moz-user-select: none;
	user-select: none;
}

.mfp-loading.mfp-figure {
	display: none; }

.mfp-hide {
	display: none !important;
}


/* -----------------------------------------------------------------------------------
Preloader
----------------------------------------------------------------------------------- */
.mfp-preloader {
	position: absolute; top: 50%; left:0; right:0; z-index: 1044;
	margin-top: -30px; padding-top:40px;
	width: auto; min-width:100px;
	min-height:40px;
	font-size:12px; line-height:18px; color: #000; text-align: center;
	background: url(icons/loading.gif) no-repeat center top;
	background: url(icons/loading.svg) no-repeat center top, none;
	background-size:32px 32px;
}
.mfp-s-ready .mfp-preloader {
	display: none;
}
.mfp-s-error .mfp-content {
	display: none;
}

button.mfp-close, button.mfp-arrow {
	z-index: 1046;
	display: block;
	padding: 0;
	overflow: visible;
	cursor: pointer;
	background: transparent;
	border: 0;
	-webkit-appearance: none;
}
button::-moz-focus-inner {
	padding: 0;
	border: 0;
}

/* -----------------------------------------------------------------------------------
Close
----------------------------------------------------------------------------------- */
.mfp-close {
	position: absolute; right: 0; top: 0;
	height: 40px;
	font-size: 0px;
}
.mfp-image-holder .mfp-close, .mfp-iframe-holder .mfp-close {
	background: url(icons/x.png) no-repeat right bottom;
	background: url(icons/x.svg) no-repeat right bottom, none;
	background-size:24px 24px;
	width: 100%;
}
@media (min-width: 768px) {
	.mfp-image-holder .mfp-close, .mfp-iframe-holder .mfp-close {
		background-size:30px 30px;
	}
}

.mfp-counter {
	position: absolute; top: 0; right: 0;
	font-size: 15px; line-height: 18px; color:#000;
}

/* -----------------------------------------------------------------------------------
Navigation Arrow
----------------------------------------------------------------------------------- */
.mfp-arrow {
	position: absolute; top: 50%;
	margin: -41px 0 0 0;
	width: 40px; height: 83px;
}
.mfp-arrow:before, .mfp-arrow:after, .mfp-arrow .mfp-b, .mfp-arrow .mfp-a {
	position: absolute; left: 0; top: 0; 
	content: '';
	display: block;
	width: 0; height: 0;
}
.mfp-arrow-left {
	left: 25px;
}
.mfp-arrow-left:after {
	width:40px; height:83px;
	background: url(icons/arrow-back.png) no-repeat;
	background: url(icons/arrow-back.svg) no-repeat, none;
	background-position:center center;
	background-size:20px 43px;
	background-color:#fff;
	background-color: rgba(255,255,255,0.75);
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
}
.mfp-arrow-right {
	right: 25px;
	
}
.mfp-arrow-right:after {
	width:40px; height:83px;
	background: url(icons/arrow-next.png) no-repeat;
	background: url(icons/arrow-next.svg) no-repeat, none;
	background-position:center center;
	background-size:20px 43px;
	background-color:#fff;
	background-color: rgba(255,255,255,0.75);
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
}

@media (min-width: 768px) {
	.mfp-arrow {
		margin: -52px 0 0 0; 
		width: 60px; height: 104px;
	}
	.mfp-arrow-left:after {
		width:60px; height:104px;
		background-size:30px 64px;
	}
	.mfp-arrow-right:after {
		width:60px; height:104px;
		background-size:30px 64px;
	}
}

/* -----------------------------------------------------------------------------------
Iframe Holder
----------------------------------------------------------------------------------- */
.mfp-iframe-holder {
	padding: 55px 0 40px 0; }
	
	.mfp-iframe-holder .mfp-content {
		line-height: 0;
		width: 100%;
		max-width: 80%;
	}
	.mfp-iframe-holder .mfp-close {
		top: -55px;
}

.mfp-iframe-scaler {
	width: 100%; height: 0;
	overflow: hidden;
	padding-top: 56.25%; }
	
	.mfp-iframe-scaler iframe {
		position: absolute; top: 0; left: 0;
		display: block;
		width: 100%; height: 100%;
		-webkit-box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
		-moz-box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
		box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
		background: #fff;
}

/* -----------------------------------------------------------------------------------
Main image in popup
----------------------------------------------------------------------------------- */
img.mfp-img {
	display: block;
	margin: 0 auto; padding: 50px 0 45px 0;
	width: auto; max-width: 100%; height: auto;
	line-height: 0;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
 }

/* The shadow behind the image */
.mfp-figure {
	line-height: 0; }
	
	.mfp-figure:after {
		position: absolute; left: 0; right: 0; top: 40px; bottom: 40px; z-index: -1;
		display: block;
		width: auto; height: auto;
		background: #fff;
		content: '';
	}
	.mfp-figure small {
		display: block;
		font-size: 12px; line-height: 14px; color: #000; }
	
	.mfp-figure figure {
		margin: 0;
}

/* Image Info Bar */
.mfp-bottom-bar {
	position: absolute; top: 100%; left: 0;
	margin-top: -36px;
	width: 100%;
	cursor: auto; }

	.mfp-title {
		padding-right: 36px;
		font-size:15px; line-height: 18px; color: #000; word-wrap: break-word; text-align: left;
}

.mfp-image-holder .mfp-content {
	max-width: 100%; max-height: 100%; }

	.mfp-gallery .mfp-image-holder .mfp-figure {
		cursor: pointer;
}


 /* -----------------------------------------------------------------------------------
Customized
----------------------------------------------------------------------------------- */
/* overlay at start */
.mfp-fade.mfp-bg,
.mfp-fade .mfp-figure,
.mfp-ready .mfp-figure,
.mfp-fade.mfp-wrap .mfp-arrow,
.mfp-fade.mfp-wrap .mfp-preloader {
	opacity: 0;
	-webkit-transition: all 0.25s ease-out;
	-moz-transition: all 0.25s ease-out;
	transition: all 0.25s ease-out;
}

/* overlay animate in */
.mfp-fade.mfp-bg.mfp-ready,
.mfp-fade.mfp-wrap.mfp-ready .mfp-arrow,
.mfp-fade.mfp-wrap.mfp-ready .mfp-preloader {
	opacity: 1;
}

/* overlay animate out */
.mfp-fade.mfp-bg.mfp-removing {
	opacity: 0;
}

/* content at start */
.mfp-fade.mfp-wrap .mfp-content {
	opacity: 0;
	-webkit-transition: all 0.25s ease-out;
	-moz-transition: all 0.25s ease-out;
	transition: all 0.25s ease-out;
}

/* content animate in */
.mfp-fade.mfp-wrap.mfp-ready .mfp-content,
.mfp-fade.mfp-image-loaded .mfp-figure {
	opacity: 1;
}

/* content animate out */
.mfp-fade.mfp-wrap.mfp-removing .mfp-content,
.mfp-fade.mfp-wrap.mfp-removing .mfp-arrow,
.mfp-fade.mfp-removing .mfp-figure,
.mfp-fade.mfp-wrap.mfp-removing .mfp-preloader {
	opacity: 0;
}