#dg-modal-overlay {
	display: block;
	position: fixed;
	width: 0;
	height: 0;
	top: 0;
	left: 0;
	background: rgba(0,0,0,0.6);
	opacity: 0;
	z-index: 9001;
	-webkit-transition: opacity 0.15s linear 0s;
	transition: opacity 0.15s linear 0s;
}
#dg-modal-overlay.visible {
	width: 100%;
	height: auto;
	bottom: 0;
	opacity: 1;
	cursor: pointer;
}
.dg-modal {
	display: block;
	position: fixed;
	/*width: 0;*/
	height: 0;
	max-height: 100%;
	left: 50%;
	-ms-transform: translate(-50%,-100%);
	-webkit-transform: translate(-50%,-100%);
	transform: translate(-50%,-100%);
	overflow: auto;
	opacity: 0;
	z-index: 9002;
	-webkit-transition: opacity 0.15s linear 0s, transform 0.3s ease-out 0s;
	transition: opacity 0.15s linear 0s, transform 0.3s ease-out 0s;
}
.dg-modal.visible {
	width: 100%;
	height: auto;
	opacity: 1;
	top: 51%;
	-ms-transform: translate(-50%,-51%);
	-webkit-transform: translate(-50%,-51%);
	transform: translate(-50%,-51%);
}
.dg-modal .modal-wrapper > .btn-close {
	position: absolute;
	top: 15px;
	right: 15px;
	width: 26px;
	height: 26px;
	font-size: 26px;
	line-height: 26px;
	text-align: center;
	overflow: hidden;
	cursor: pointer;
	z-index: 10;
}
.dg-modal .modal-wrapper {
	position: relative;
	max-width: 500px;
	margin: 0 auto;
	background: #fff;
	overflow-x: hidden;
}
.dg-modal .modal-wrapper > .content-wrapper {
	padding: 20px;
}
