#facebox {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100000;
  text-align: left;
}
#facebox #popupFrame {
	border-radius:5px;
}

#facebox .popup{
  position:relative;
  /*border:3px solid rgba(0,0,0,0);
  -webkit-border-radius:5px;
  -moz-border-radius:5px;
  border-radius:5px;
  -webkit-box-shadow:0 0 18px rgba(0,0,0,0.4);
  -moz-box-shadow:0 0 18px rgba(0,0,0,0.4);
  box-shadow:0 0 18px rgba(0,0,0,0.4);*/
}

#facebox .content {
  display:table;
  /* defaut popup size for desktop */
  width: 1024px;
  height:768px;
  background: #fff;
  -webkit-border-radius:5px;
  -moz-border-radius:5px;
  border-radius:5px;
}

#facebox .content > p:first-child{
  margin-top:0;
}
#facebox .content > p:last-child{
  margin-bottom:0;
}

#facebox .close{
  position:absolute;
  top:-20px;
  right:-40px;
}
#facebox .close img{
  opacity:0.7;
  width:70%;
}
#facebox .close:hover img{
  opacity:1.0;
}

#facebox .loading {
  text-align: center;
}

#facebox .image {
  text-align: center;
}

#facebox img {
  border: 0;
  margin: 0;
  max-width:1024px;
  max-height:768px;
}

#facebox_overlay {
  position: fixed;
  top: 0px;
  left: 0px;
  height:100%;
  width:100%;
}

.facebox_hide {
  z-index:-100;
}

.facebox_overlayBG {
  background-color: rgba(0,0,0,.5);
  z-index: 99999;  
}

#facebox iframe {
	margin-top:0!important;
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (max-width: 992px) {
	#facebox .content {
	  width: 600px;
	  height:468px;
	}
	#facebox img {
	  max-width:600px;
	  max-height:468px;
	}
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (max-width: 768px) {
	#facebox .content {
	  width: 500px;
	  height:360px;
	}
	#facebox img {
	  max-width:500px;
	  max-height:360px;
	}
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (max-width: 600px) {
	#facebox .content {
	  width: 320px;
	  height:400px;
	}
	#facebox .close{
	  top:0;
	  right:-20px;
	}
	#facebox img {
	  max-width:320px;
	  max-height:400px;
	}
}