.has-overlay {
	overflow: hidden;
}
.has-overlay > body {
	height: 100%;
	overflow-y: scroll;
}
#popBox.semantic-content {
	-webkit-transform: translate(0, 100%);
	-moz-transform: translate(0, 100%);
	-ms-transform: translate(0, 100%);
	-o-transform: translate(0, 100%);
	transform: translate(0, 100%);
	-webkit-transform: translate3d(0, 100%, 0);
	-moz-transform: translate3d(0, 100%, 0);
	-ms-transform: translate3d(0, 100%, 0);
	-o-transform: translate3d(0, 100%, 0);
	transform: translate3d(0, 100%, 0);
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1000000;
	opacity: 0;
	line-height: 1.3;
	display: none\9;
	
	-webkit-transition: opacity 0.25s;
    	-o-transition: opacity 0.25s;
    	transition: opacity 0.25s;

}

#popBox.semantic-content:target {
	-webkit-transform: translate(0, 0);
	-moz-transform: translate(0, 0);
	-o-transform: translate(0, 0);
	-ms-transform: translate(0, 0);
	transform: translate(0, 0);
	opacity: 1;
}

#popBox.is-active.semantic-content {
	display: block\9;
}

#popBox.semantic-content:target {
	display: block\9;
}

#popBox.semantic-content .modal-inner {
	z-index: 1000;
	overflow-x: hidden;
	border-radius: 2px;
	background: #fff;
	-webkit-box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
	-moz-box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
	-ms-box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
	-o-box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
	position: absolute;
	left: 50%;
}

	#popBox.semantic-content .widthPercentageOff .modal-inner {
		min-width: 300px;
		width: 300px;
		max-width: 300px;
	}
	
	#popBox.semantic-content .widthPercentageOn .modal-inner {
		min-width:500px;
		width:500px;
		max-width:500px;
	}

.semantic-content .modal-inner > img,
.semantic-content .modal-inner > video,
.semantic-content .modal-inner > iframe {
	width: 100%;
	height: auto;
	min-height: 100px;
}
.semantic-content .modal-inner > img {
	width: auto;
	max-width: 100%;
}
#popBox.semantic-content .popBoxHeader{padding: 10px 1.2em 30px;color: #333;position: absolute;right: 20px;}
#popBox.semantic-content .modal-content {
	border-bottom: 1px solid #EEE;
	overflow-x: visible;
	overflow-y: auto;
	color: #333;
	height:500px;

}
#popBox.semantic-content .popBoxFooter {
	background: #f0f0f0;
  	border-top: 1px solid #eee;
  	padding: 10px 1.2em 14px;
  	border-radius: 2px;
  	color: #333;
}
#popBox .footerOffOn .popBoxFooter, 
#popBox .headerOffOn .popBoxHeader {
	display: none;
}
.semantic-content .modal-close {
	text-indent: -100px;
	overflow: hidden;
	opacity: 1;
}
.semantic-content .modal-close:before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10;
}

#popBox.overlayDark .modal-close:before {
	background-color: rgba(0, 0, 0, 0.5);
}

#popBox.overlayLight .modal-close:before {
	background-color: rgba(255, 255, 255, 0.5);
}

#popBox .closeIcon {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 99999999;
	color: #333;
}

#popBox .closeIcon .fa {
	font-size: 18px;
}

@media (max-width: 600px){
.mobile #popBox.semantic-content .widthPercentageOn .modal-inner {
		min-width:400px;
		width:400px;
		max-width:400px;
		height:400px
	}
}

@media screen and (max-width: 480px) {

	#popBox.semantic-content .modal-content {
		height: 300px !important;
	}

}


@media screen and (min-width: 30em) {
	.semantic-content {
    	-webkit-transition: opacity 0.25s;
    	-o-transition: opacity 0.25s;
    	transition: opacity 0.25s;
  	}
}