.modal > label {
background: #FFD300;
color: #000;
cursor: pointer;
display: inline-block;
}

.modal-overlay {
background-color:rgba(255,255,255,0.9);
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
text-align:center;
}

.modal-wrap {
position: relative;
margin: 0 auto;
width: 100%;
height: 100%;
}

.modal-wrap #modal_div{
	margin-top: 10px;
	height: 85%;
}

.modal-wrap #modal_div img{
	width: auto;
	height: 100%;
}
.modal-wrap label {
	background: #383838;
	color: #fff;
	cursor: pointer;
	display: inline-block;
	font-size: 14px;
	padding: 3px;
	border-radius: 3px;
	margin-top: 5px;
}

input {
position: absolute;
z-index: -9999;
visibility: hidden;
}

.modal-overlay {
	opacity:0;
	-webkit-transform: scale(0.5);
	-moz-transform: scale(0.5);
	-ms-transform: scale(0.5);
	-o-transform: scale(0.5);
	transform: scale(0.5);
/*	-webkit-transition: all 0.75s cubic-bezier(0.65, -0.55, 0.265, 1.55);
	-moz-transition: all 0.75s cubic-bezier(0.65, -0.55, 0.265, 1.55);
	-ms-transition: all 0.75s cubic-bezier(0.65, -0.55, 0.265, 1.55);
	-o-transition: all 0.75s cubic-bezier(0.65, -0.55, 0.265, 1.55);
	transition: all 0.75s cubic-bezier(0.65, -0.55, 0.265, 1.55); */
	z-index: -999;
}

input:checked ~ .modal-overlay {
	opacity: 1;
	-webkit-transform: scale(1);
	-moz-transform: scale(1);
	-ms-transform: scale(1);
	-0-transform: scale(1);
	transform: scale(1);
	z-index: 999;
}