.body-overlayed embed, .body-overlayed object, .body-overlayed select
{
	visibility:				hidden;
}

#sbox-window embed, #sbox-window object, #sbox-window select
{
	visibility:				visible;
}

#sbox-overlay
{
	position:				absolute;
	background-color:		#3a3e40;
}


#sbox-window
{
	position:				absolute;
	text-align:				left;
	overflow:				visible;
	padding: 0px;
	border: 0px solid #757575;
	box-shadow:0 0 10px rgb(0, 0, 0);
}

* html #sbox-window
{
	top: 50% !important;
	left: 50% !important;
}

#sbox-btn-close:hover{
  color:#666!important;
}

#sbox-btn-close
{
	position:				absolute;
	width:					30px;
	height:					30px;
	right: -34px;
	top: -30px;
	/* background:				url(../images/closebox.png) no-repeat top left; */
	border:					none;
  	color: #1a1a1a!important;
  	font-size: 30px;
  	
	text-decoration: none;
}

.sbox-loading #sbox-content
{
	background-image:		url(../images/spinner.gif);
	background-repeat:		no-repeat;
	background-position:	center;
}

#sbox-content
{
	clear:					both;
	overflow:				auto;
	background-color:		#fff;
	height:					100%;
	width:					100%;
	-moz-border-radius:		5px;
}

#sbox-content div:first-child{
padding:10px;
}

.sbox-content-image#sbox-content
{
	overflow:				visible;
}

#sbox-image
{
	display:				block;
}

.sbox-content-image img
{
	display:				block;
}

.sbox-content-iframe#sbox-content
{
	overflow: hidden;
}


@media (max-width: 992px) {
	#sbox-window{
	width:90% !important;
	left: 5% !important;
	margin-left:0px !important;
	
 /*  outline: 0; */
  overflow-x: auto;
  overflow-y: auto;
  
	}
	
	#sbox-content{
	/* height:auto !important */
	}
	
	#sbox-window iframe{
	
	}
	
	#sbox-btn-close{
	top:5px !important;right:2px !important;
	}
	
	body.body-overlayed{
	overflow: hidden;-webkit-overflow-scrolling:none
	}
}

@media (max-width: 768px) {
	#sbox-window{
	width:96% !important;left:2% !important;
	margin-top:0px !important;
	top:2% !important;
	height:96% !important;
	background:#fff !important;
	  -webkit-overflow-scrolling: touch;
	}
}
