.blocker {
	position: fixed;
	top: 0; right: 0; bottom: 0; left: 0;
	width: 100%; height: 100%;
	overflow: auto;
	z-index: 888888;
	padding: 20px;
	box-sizing: border-box;
/*	background-color: rgb(128,128,128);
	background-color: rgba(128,128,128,0.75);*/
	background-color: rgb(64,64,64);
	background-color: rgba(64,64,64,0.75);
	text-align: center;
	}
.blocker:before{
   content: "";
   display: inline-block;
   height: 100%;
   vertical-align: middle;
	margin-right: -0.05em;
	}
.blocker.behind {background-color: transparent;}
.modal {
	position: relative; display: none;
	width: 50%;
	max-width: 800px !important;
	padding: 0.5%; color: #666; text-align: left;
	box-sizing: border-box;
	vertical-align: middle;
	background-color: #fff;

	border: 2px solid #888;
	-webkit-border-radius: 8px;
	-moz-border-radius: 8px;
	-o-border-radius: 8px;
	-ms-border-radius: 8px;
	border-radius: 8px;
	-webkit-box-shadow: 0 0 10px #ddd;
	-moz-box-shadow: 0 0 10px #ddd;
	-o-box-shadow: 0 0 10px #ddd;
	-ms-box-shadow: 0 0 10px #ddd;
	box-shadow: 0 0 10px #ddd;
	z-index: 999999;
	}
.modal img {
	display: block;
	max-width: 100%;	
	}	
img.dropShadow {	
	margin: 0 1.5% 1.5% 0; padding: 0;
	border: 1px solid #777;
	-moz-box-shadow: 2px 2px 9px #777; /* horizontal, vertical, blur, color */
	-webkit-box-shadow: 2px 2px 9px #777;
	box-shadow: 2px 2px 9px #777;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
	border-radius: 3px;
	}		

.modal a.close-modal {
	position: absolute;
	top: -19.5px; right: -13.5px;
	display: block; width: 30px; height: 30px;
	text-indent: -9999px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center center;
	background-image: url(../img/modal/close.png);
	}

/* CLOSE TEXT LINK */	
#ex1 a,#ex2 a,#ex3 a,#ex4 a {
	display: block; margin-top: 10px !important;
	}
	
/* PROBABLY UNNECESSARY */	
.modal-spinner {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translateY(-50%) translateX(-50%);
  padding: 12px 16px;
  border-radius: 5px;
  background-color: #111;
  height: 20px;
}

.modal-spinner > div {
  border-radius: 100px;
  background-color: #fff;
  height: 20px;
  width: 2px;
  margin: 0 1px;
  display: inline-block;

  -webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;
  animation: sk-stretchdelay 1.2s infinite ease-in-out;
}

.modal-spinner .rect2 {
  -webkit-animation-delay: -1.1s;
  animation-delay: -1.1s;
}

.modal-spinner .rect3 {
  -webkit-animation-delay: -1.0s;
  animation-delay: -1.0s;
}

.modal-spinner .rect4 {
  -webkit-animation-delay: -0.9s;
  animation-delay: -0.9s;
}

@-webkit-keyframes sk-stretchdelay {
  0%, 40%, 100% { -webkit-transform: scaleY(0.5) }
  20% { -webkit-transform: scaleY(1.0) }
}

@keyframes sk-stretchdelay {
  0%, 40%, 100% {
    transform: scaleY(0.5);
    -webkit-transform: scaleY(0.5);
  }  20% {
    transform: scaleY(1.0);
    -webkit-transform: scaleY(1.0);
  }
}


/************************/	
/** MOBILE RULES **/
/** Portrait and Landscape **/
/************************/	
@media only screen and (max-device-width : 756px) {

	/* VERTICAL PORTRAIT */
   @media only screen and (orientation: portrait) {
	.modal {
		position: relative; display: none;
		width: 90%;
		max-width: 800px !important;}	
		}

   /* HORIZONTAL LANDSCAPE */
   @media only screen and (orientation: landscape) {		
		.modal {
			position: relative; display: none;
			width: 70%;
			max-width: 800px !important;}			
		}
		
		
	}
