/* Magnific Popup CSS */
.ajax-popup {
	position: relative;
	max-width: 50em;
	margin: 0 auto;
	padding: 2.75em 1.25em 1.25em;

	box-shadow: 0.125em 0.125em 0.5em -0.0625em rgba(0, 0, 0, 0.88);
}

.mfp-bg {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1042;
	width: 100%;
	height: 100%;
	background-color: #000;
	color: #535353;
	opacity: 0.75;
	overflow: hidden;
}

.mfp-wrap {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1043;
	width: 100%;
	height: 100%;
	outline: none !important;
	-webkit-backface-visibility: hidden;
}

.mfp-container {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	padding: 0 8px;
	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 {
	display: inline-block;
	position: relative;
	z-index: 1045;
	margin: 0 auto;
	vertical-align: middle;
	text-align: left;
}
.mfp-inline-holder .mfp-content,
.mfp-ajax-holder .mfp-content {
	width: 100%;
	cursor: auto;
}

.mfp-inline-holder .mfp-content {
	max-width: 23.375em;
}

.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-preloader {
	position: absolute;
	top: 50%;
	right: 8px;
	left: 8px;
	z-index: 1044;
	width: auto;
	margin-top: -0.5em;
	background-color: transparent;
	color: #fff;
	font-weight: 700;
	text-align: center;
}
.mfp-preloader a {
	background-color: transparent;
	color: #ccc;
}
.mfp-preloader a:hover,
.mfp-preloader a:focus,
.mfp-preloader a:active {
	background-color: transparent;
	color: #fff;
}

.mfp-s-ready .mfp-preloader {
	display: none;
}

.mfp-s-error .mfp-content {
	display: none;
}

button.mfp-close,
button.mfp-arrow {
	display: block;
	z-index: 1046;
	padding: 0;
	background-color: transparent;
	border: 0;

	outline: none;
	overflow: visible;
	cursor: pointer;

	-webkit-appearance: none;
	-webkit-box-shadow: none;
	box-shadow: none;
}

.mfp-close {
	position: absolute;
	top: 0;
	right: 0;
	width: 44px;
	height: 44px;
	padding: 0 0 18px 10px;
	color: #fff;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 1.75em;
	font-style: normal;
	line-height: 1.5714285714285714285714285714286;
	text-decoration: none;
	text-align: center;

	opacity: 0.65;
}
.mfp-close:hover,
.mfp-close:focus {
	opacity: 1;
}
.mfp-close:active {
	top: 1px;
}

.mfp-close-btn-in .mfp-close {
	color: #333;
}

.mfp-image-holder .mfp-close,
.mfp-iframe-holder .mfp-close {
	right: -6px;
	width: 100%;
	padding-right: 6px;
	color: #d3d3d3;
	text-align: right;
}

.mfp-counter {
	position: absolute;
	top: 0;
	right: 0;
	color: #ccc;
	font-size: 1em;
	line-height: 1.25;
	white-space: nowrap;
}

.mfp-arrow {
	position: absolute;
	top: 50%;
	width: 90px;
	height: 110px;
	margin: 0;
	margin-top: -55px;
	padding: 0;

	opacity: 0.65;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
.mfp-arrow:active {
	margin-top: -54px;
}
.mfp-arrow:hover,
.mfp-arrow:focus {
	opacity: 1;
}
.mfp-arrow:before,
.mfp-arrow:after,
.mfp-arrow .mfp-b,
.mfp-arrow .mfp-a {
	content: '';
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 0;
	height: 0;
	margin-top: 35px;
	margin-left: 35px;
	border: medium inset transparent;
}
.mfp-arrow:after,
.mfp-arrow .mfp-a {
	top: 8px;
	border-top-width: 13px;
	border-bottom-width: 13px;
}
.mfp-arrow:before,
.mfp-arrow .mfp-b {
	border-top-width: 21px;
	border-bottom-width: 21px;

	opacity: 0.7;
}

.mfp-arrow-left {
	left: 0;
}
.mfp-arrow-left:after,
.mfp-arrow-left .mfp-a {
	margin-left: 31px;
	border-right: 17px solid #fff;
}
.mfp-arrow-left:before,
.mfp-arrow-left .mfp-b {
	margin-left: 25px;
	border-right: 27px solid #000;
}

.mfp-arrow-right {
	right: 0;
}
.mfp-arrow-right:after,
.mfp-arrow-right .mfp-a {
	margin-left: 39px;
	border-left: 17px solid #fff;
}
.mfp-arrow-right:before,
.mfp-arrow-right .mfp-b {
	border-left: 27px solid #000;
}

.mfp-iframe-holder {
	padding-top: 40px;
	padding-bottom: 40px;
}
.mfp-iframe-holder .mfp-content {
	line-height: 0;
	width: 100%;
	max-width: 50em;
}
.mfp-iframe-holder .mfp-close {
	top: -40px;
}

.mfp-iframe-scaler {
	width: 100%;
	height: 0;
	padding-top: 56.25%;
	overflow: hidden;
}
.mfp-iframe-scaler iframe {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #fff;
	color: #535353;

	box-shadow: 0 0 8px 4px rgba(0, 0, 0, 0.3);

	-webkit-border-radius: 0.3125em;
	-moz-border-radius: 0.3125em;
	-ms-border-radius: 0.3125em;
	-o-border-radius: 0.3125em;
	border-radius: 0.3125em;
}

/* Main image in popup */
img.mfp-img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
	padding: 40px 0 40px;
	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 {
	content: '';
	display: block;
	position: absolute;
	z-index: -1;
	top: 40px;
	right: 0;
	bottom: 40px;
	left: 0;
	width: auto;
	height: auto;
	background-color: #444;
	color: #fff;

	box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}
.mfp-figure small {
	display: block;
	background-color: transparent;
	color: #bdbdbd;
	font-size: 0.75em;
	line-height: 1.333333;
}
.mfp-figure figure {
	margin: 0;
}

.mfp-bottom-bar {
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	margin-top: -36px;
	cursor: auto;
}

.mfp-title {
	padding-right: 3em;
	background-color: transparent;
	color: #f3f3f3;
	font-size: 1em;
	line-height: 1.25;
	text-align: left;
	word-wrap: break-word;
}

.mfp-image-holder .mfp-content {
	max-width: 100%;
}

.mfp-gallery .mfp-image-holder .mfp-figure {
	cursor: pointer;
}

@media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px) {
	/*
	* Remove all paddings around the image on small screen
	*/
	.mfp-img-mobile .mfp-image-holder {
		padding-right: 0;
		padding-left: 0;
	}
	.mfp-img-mobile img.mfp-img {
		padding: 0;
	}
	.mfp-img-mobile .mfp-figure:after {
		top: 0;
		bottom: 0;
	}
	.mfp-img-mobile .mfp-figure small {
		display: inline;
		margin-left: 5px;
	}
	.mfp-img-mobile .mfp-bottom-bar {
		position: fixed;
		top: auto;
		bottom: 0;
		margin: 0;
		padding: 3px 5px;
		background-color: rgba(0, 0, 0, 0.6);
		color: #f3f3f3;

		-webkit-box-sizing: border-box;
		-moz-box-sizing: border-box;
		box-sizing: border-box;
	}
	.mfp-img-mobile .mfp-bottom-bar:empty {
		padding: 0;
	}
	.mfp-img-mobile .mfp-counter {
		right: 5px;
		top: 3px;
	}
	.mfp-img-mobile .mfp-close {
		position: fixed;
		top: 0;
		right: 0;
		width: 35px;
		height: 35px;
		padding: 0;
		background: rgba(0, 0, 0, 0.6);
		line-height: 35px;
		text-align: center;
	}
}

@media all and (max-width: 900px) {
	.mfp-arrow {
		-webkit-transform: scale(0.75);
		transform: scale(0.75);
	}
	.mfp-arrow-left {
		-webkit-transform-origin: 0;
		transform-origin: 0;
	}
	.mfp-arrow-right {
		-webkit-transform-origin: 100%;
		transform-origin: 100%;
	}
	.mfp-container {
		padding-left: 6px;
		padding-right: 6px;
	}
}

.magnific-popup {
	position: relative;
	max-width: 48.75em;
	margin-right: auto;
	margin-left: auto;
	padding: 2.75em 1.25em;

	box-shadow: 2px 2px 8px -1px rgba(0, 0, 0, 0.88);
}
.magnific-popup > .heading {
	margin-top: 0;
}

#bodypopup .magnific-popup {
	max-width: none;
	padding-top: 0;
	padding-bottom: 0;

	box-shadow: none;
}
#bodypopup .magnific-popup > .heading {
	margin-top: 0.666667em;
}

.mfp-zoom-in {
  /* start state */
  /* animate in */
  /* animate out */
}
.mfp-zoom-in .mfp-with-anim {
  opacity: 0;
  transition: all 0.2s ease-in-out;
  transform: scale(0.8);
}
.mfp-zoom-in.mfp-bg {
  opacity: 0;
  transition: all 0.3s ease-out;
}
.mfp-zoom-in.mfp-ready .mfp-with-anim {
  opacity: 1;
  transform: scale(1);
}
.mfp-zoom-in.mfp-ready.mfp-bg {
  opacity: 0.9;
}
.mfp-zoom-in.mfp-removing .mfp-with-anim {
  transform: scale(0.8);
  opacity: 0;
}
.mfp-zoom-in.mfp-removing.mfp-bg {
  opacity: 0;
}
