body.modal__open {
	overflow: hidden;
}

.modal {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	bottom: 0;
	z-index: 1040;
	display: none;
	overflow: scroll;
	-webkit-overflow-scrolling: touch;
	outline: 0;
	-webkit-transition: all 0.5s ease;
	   -moz-transition: all 0.5s ease;
	    -ms-transition: all 0.5s ease;
	     -o-transition: all 0.5s ease;
	        transition: all 0.5s ease;
}

.modal__dialog {
	position: relative;
	margin: 5vh auto;
	background: #fff;
	-webkit-background-clip: padding-box;
	        background-clip: padding-box;
	-webkit-border-radius: 10px;
	   -moz-border-radius: 10px;
	    -ms-border-radius: 10px;
	     -o-border-radius: 10px;
	        border-radius: 10px;
	-webkit-box-shadow: 0 0 10px #000;
	   -moz-box-shadow: 0 0 10px #000;
	    -ms-box-shadow: 0 0 10px #000;
	     -o-box-shadow: 0 0 10px #000;
	        box-shadow: 0 0 10px #000;
}

.modal__close,
.modal a.modal__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
}

.modal__current {
	position: fixed;
	padding: 0;
	display: none;
	overflow: auto;
	 -webkit-transform: translate(0, 0);
		 -ms-transform: translate(0, 0);
		  -o-transform: translate(0, 0);
			 transform: translate(0, 0);
}
.modal--xsmall .modal__dialog { width: 35%; }
.modal--small .modal__dialog { width: 50%; }
.modal--medium .modal__dialog { width: 65%; }
.modal--large .modal__dialog { width: 80%; }

.modal__header {
	padding: .5rem;
	border-bottom: 1px solid #ddd;
}
.modal__content {
	padding: .5rem;
}
.modal__footer {
	padding: .5rem;
	clear: both;
	border-top: 1px solid #ddd;
}

.modal__paging {
	width: 100%;
	clear: both;
}

.modal-spinner {
	display: none;
	width: 64px;
	height: 64px;
	position: fixed;
	top: 50%;
	left: 50%;
	margin-right: -32px;
	margin-top: -32px;
	background: url(../images/spinner.gif) #111 no-repeat center center;
	-webkit-border-radius: 8px;
	   -moz-border-radius: 8px;
	    -ms-border-radius: 8px;
	     -o-border-radius: 8px;
	        border-radius: 8px;
}

#loadOverlay {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	height: 100%;
	width: 100%;
	display: none;
	background: rgba(255,255,255,.75);
	-webkit-border-radius: 8px;
	   -moz-border-radius: 8px;
	    -ms-border-radius: 8px;
	     -o-border-radius: 8px;
	        border-radius: 8px;
}
#loadOverlay h2 {
	position: relative;
	top: 50%;
	text-align: center;
}

@media only screen and (max-width: 1232px) {
	.modal__current.modal--large .modal__dialog { 
		width: auto;
		margin: 3rem 1rem; 
	}
}
@media only screen and (max-width: 832px) {
	.modal__current.modal--medium .modal__dialog { 
		width: auto;
		margin: 3rem 1rem; 
	}
}
@media only screen and (max-width: 432px) {
	.modal__current.modal--small .modal__dialog { 
		width: auto;
		margin: 3rem 1rem; 
	}
}

@media only print {
	.modal__footer .button {
		display: none;
	}
}