/*popup display*/
.bg_overlay {
	width: 100%;
	background: rgba(0,0,0,0.8);
	position: fixed;
	top: 0px;
	bottom: 0px;
	left: 0px;
	right: 0px;
	z-index: 999999999; 
}
/*.bg_content {
	position: fixed;
	width: 90%;
	display: table;
	z-index: 99999999;
	max-width: 800px;
	margin-right: -50%;
	top: 50%;
	left: 50%;
	margin-bottom: -50%;
	transform: translate(-50%, -50%);
}
.bg_content img {
	max-width:100%;max-height: 450px;
	display: table;
margin: auto;
}*/
.bg_content {}
.bg_content img { 
	max-width: 95%;
	max-height: 95%; 
	position: absolute;
	margin-right: -50%;
	top: 50%;
	left: 50%;
	margin-bottom: -50%;
	transform: translate(-50%, -50%);
	z-index: 9999;
}


.pclose {
	background: #666;
	color: #fff !important;
	padding: 2px 9px 4px;
	top: 15px;
	right: 15px;
	display: block;
	position: absolute;
	cursor: pointer;
	font-size: 20px;
	border: 1px solid transparent;
	border-radius: 100%;
	z-index: 99999999;
	text-decoration: navajowhite;
} 
.pclose:hover {
	border-color:#fff;
}
/*video play block*/
.bg_overlay.vid_overlay{
	background: rgba(0,0,0,0.5);display:none;  
}
.bg_overlay.vid_overlay .bg_content{ 
	position: fixed;
	width: 90%;
	display: table;
	z-index: 99999999;
	max-width: 800px;
	margin-right: -50%;
	top: 50%;
	left: 50%;
	margin-bottom: -50%;
	transform: translate(-50%, -50%); 
	padding:10px;background: #fff;max-width: 500px;}

.bg_overlay.vid_overlay .bg_content iframe{width: 100%!important;}
.bg_overlay.vid_overlay .bg_content .pclose {
	background: red;
	top: -10px;
	right: -10px;
	padding: 3px;
	line-height: 13px;
}
/**/
@media only screen and (min-width:320px) and (max-width:991px) {
	/*.bg_overlay:not(.vid_overlay) { 
		display:block;
	}*/
}