/* Magnific Popup CSS */
		
.mfp-bg {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1042;
    overflow: hidden;
    position: fixed;
    background: #000;
    opacity: 0.8;
    }

.mfp-wrap {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1043;
    position: fixed;
    outline: none !important;
    }

.mfp-container {
    text-align: center;
    position: absolute;
    width: 100%;
    min-height:100%;
    height:100%;
    left: 0;
    top: 0;
    padding: 0px;
    -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;
    display: inline-block;
    vertical-align: middle;
    margin: 0 auto;
    text-align: left;
    z-index: 1045;
    
    background:#fff;
    
    -moz-box-shadow: 0 0 2px rgba(0,0,0,.125);
    box-shadow: 0 0 2px rgba(0,0,0,.125);
    
    padding:0px;
    
	color: #fff;
	
    max-width:800px;
    width:100%;
    
    -moz-border-radius:3px;
    -webkit-border-radius:3px;
    border-radius:3px;
    }
		
			
.mfp-content .grid-items {
	margin-top:0;
	}
	
.mfp-content-inner {
    padding:40px;
	}
		
.mfp-content-inner h1,
.mfp-content-inner h2,
.mfp-content-inner h3,
.mfp-content-inner h4,
.mfp-content-inner h5,
.mfp-content-inner h6 {
	color:#444;
	}
	
.mfp-content-inner h1:first-child,
.mfp-content-inner h2:first-child,
.mfp-content-inner h3:first-child,
.mfp-content-inner h4:first-child,
.mfp-content-inner h5:first-child,
.mfp-content-inner h6:first-child {
	margin-top:0;
	padding-top:0;
	}
	
.mfp-content img {
	max-width:100%;
	height:auto;
	}
	
.mfp-content iframe {
	max-width:100%;
	max-height:100%;
	}
	
.mfp-content p {
	color: #555;
	margin: 0 0 10px;
	padding: 0 0 10px;
	}
    
.mfp-content ol,
.mfp-content ul {
	margin: 0 0 0 15px;
	padding: 0;
	}
	
.mfp-content ol li,
.mfp-content ul li {
	margin: 0;
	padding: 0 0 0 5px;
	}
	
.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; 
    }

.mfp-preloader {
    color: #CCC;
    position: absolute;
    top: 50%;
    width: auto;
    text-align: center;
    margin-top: -0.8em;
    left: 8px;
    right: 8px;
    z-index: 1044; 
    }
  
    .mfp-preloader a {
        color: #CCC; 
        }
        
    .mfp-preloader a:hover {
        color: #FFF; 
        }

.mfp-s-ready .mfp-preloader {
    display: none; 
    }

.mfp-s-error .mfp-content {
    display: none; 
    }

.mfp-close {
    background:rgba(0,0,0,0);
    border: 0 none;

	cursor:pointer;
	
	width: 40px;
	height: 40px;
	
	line-height: 40px;
	
	position: absolute;
	right: 0;
	top: 0;
	
	z-index:9;
	
	text-decoration: none;
	
	text-align: center;
	
	padding: 0;
	
	color: #666;
	
	font-style: normal;
	font-size: 28px;
	
	-moz-border-radius:0 3px 0 0;
	-webkit-border-radius:0 3px 0 0;
	border-radius:0 3px 0 0;
	
	-webkit-transition-duration: 0.5s;
	-moz-transition-duration: 0.5s;
	-ms-transition-duration: 0.5s;
	-o-transition-duration: 0.5s;
	transition-duration: 0.5s;
	
	transition-timing-function: ease-in-out;
	-webkit-transition-timing-function: ease-in-out;
    }
  
    .mfp-close:hover, 
    .mfp-close:focus {
	    background:rgba(0,0,0,.035);
        }
        

.mfp-counter {
  position: absolute;
  top: 0;
  right: 0;
  color: #CCC;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap; }

.mfp-arrow {
    position: fixed;
    top: 50%;
	z-index: 9991;
	
    margin: -30px 0 0 0;
    
    cursor:pointer;
    
    background:#ffec2d;
    border: 0 none;
    border-bottom: 2px solid #c6b400;
    
    color:#444;
    
    -moz-border-radius:999em;
    -webkit-border-radius:999em;
    border-radius:999em;
    
    display: block;

    height: 60px;
    width: 60px;
    
    font-size: 44px;
    line-height: 60px;
    
	text-align:center;
		    
	-webkit-transition-duration: 0.5s;
	-moz-transition-duration: 0.5s;
	-ms-transition-duration: 0.5s;
	-o-transition-duration: 0.5s;
	transition-duration: 0.5s;
	
	transition-timing-function: ease-in-out;
	}
	
 .mfp-arrow span {
    line-height: 60px;
 }
 
.mfp-arrow.mfp-arrow-right { text-indent:2px; right:20px;  }
.mfp-arrow.mfp-arrow-left { text-indent:-4px; left:20px; }

  
.mfp-iframe-holder .mfp-content {
	line-height: 0;
	width: 100%;
	max-width: 1024px;
	}
    
.mfp-iframe-holder .mfp-close {
	right: -40px;
	top: -40px;
	}

.mfp-iframe-scaler {
	width: 100%;
	height: 0;
	position:relative;
	padding-top: 56.25%; 
	}
  
.mfp-iframe-scaler iframe {
	position: absolute;
	display: block;
	top: 0;
	left: 0;
	z-index:1;
	width: 100%;
	height: 100%;
	background: #000; 
	}

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

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

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

.mfp-title {
	color:#fff;
	margin:0 0 10px 0;
	padding:0 0 10px 0;
	}

/************************************************
*	ANIMATION 					     		    *
************************************************/

/* overlay at start */

.modal_animation.mfp-bg {
	opacity: 0;
	
	-webkit-transition-duration: 0.5s;
	-moz-transition-duration: 0.5s;
	-ms-transition-duration: 0.5s;
	-o-transition-duration: 0.5s;
	transition-duration: 0.5s;

	transition-timing-function: ease-in-out;
	-webkit-transition-timing-function: ease-in-out;
	}
	
/* overlay animate in */

.modal_animation.mfp-bg.mfp-ready {
	opacity: 0.8;
	}
	
/* overlay animate out */

.modal_animation.mfp-bg.mfp-removing {
	opacity: 0;
	}

/* content at start */

.modal_animation.mfp-wrap {
	opacity:0;
	visibility:hidden;
	top:50%;
	
	-ms-transform: scale(.5); 
	-webkit-transform: scale(.5); 
	transform: scale(.5); 
		
	-webkit-transition-duration: 0.4s;
	-moz-transition-duration: 0.4s;
	-ms-transition-duration: 0.4s;
	-o-transition-duration: 0.4s;
	transition-duration: 0.4s;

	transition-timing-function: ease-in-out;
	-webkit-transition-timing-function: ease-in-out;
	}
	
/* content animate it */

.modal_animation.mfp-wrap.mfp-ready {
	opacity: 1;
	top:0;
	visibility:visible;
	-ms-transform: scale(1); 
	-webkit-transform: scale(1); 
	transform: scale(1); 
	}
	
/* content animate out */

.modal_animation.mfp-wrap.mfp-removing {
	opacity: 0;
	top:50%;
	
	-ms-transform: scale(.5); 
	-webkit-transform: scale(.5); 
	transform: scale(.5); 
	
	}


/* COLORS */

.orange .mfp-content {
	background:#ff9c00;		
	}
	
.orange .mfp-close {
	background:#EB9000;	
	color:#fff;
	}
	
@media only screen 
and (min-width : 1px) 
and (max-width : 640px) {
	
	body.openModal {
		overflow:hidden;
		height:100%
		}
	
	.mfp-wrap {
		top:0 !important;
		left:0 !important;
		position:fixed !important;
		width:100% !important;
		height:100% !important;
		}
	
	.mfp-arrow {
		background:#009fc9;
		border:0;
		color:#00b4e4;
		
		margin-top:0px;
		
		width:40px !important;
		height:40px !important;
		
		min-width:inherit;
		max-width:40px;
		
		-moz-border-radius:0;
		-webkit-border-radius:0;
		border-radius:0;
		
		overflow:hidden;
		
		top:auto;
		bottom:0;

		}
		
		.mfp-arrow.mfp-arrow-left {
		    left: 0;
		    text-indent: -2px;
			}
			
		.mfp-arrow.mfp-arrow-right {
		    right: 0;
		    text-indent: 1px;
			}
			
		.mfp-arrow:hover {
			color:#fff;
			}
	
	.mfp-arrow span {
	    font-size: 26px;
	    line-height: 38px;
		}

	.mfp-container {
		padding:0;
		}
		
	.mfp-close {
		-moz-border-radius: 0;
		-webkit-border-radius:00;
		border-radius:00;
		}

	.mfp-content {
		width:100%;
		min-width: inherit;
		 
		height:100%;
		
	    position: fixed;
	    top: 0;
	    left:0;
    
    	overflow-x:auto;
    	
    	border-radius:0;
    	-moz-border-radius:0;
    	-webkit-border-radius:0;
		}
		
    
	.mfp-iframe-holder .mfp-close {
		right: 0;
		top: 0;
		position:fixed;
		background: #000;
		}
	
	.mfp-iframe-holder .mfp-content-inner {
	    min-height: 100%;
	    padding: 0px;
		}
	
	.mfp-iframe-scaler iframe {
		position:fixed	
		}
	
	.mfp-iframe-scaler {
   	 	padding-top: 100%;
		}

}