.modal {
	display: none;
	overflow: hidden;
	outline: 0;
	position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
	z-index: $top-base;
	-webkit-overflow-scrolling: touch;
	-ms-overflow-style: -ms-autohiding-scrollbar;
	.modal-open & {
		overflow-x: hidden;
		overflow-y: auto;
	}
}

.modal-backdrop {
	background-color: $black;
	position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
	z-index: ($top-base - 1);
	@include opacity(0);
	@include transition(opacity 0.3s $timing);
	&.fade.in {
		@include opacity(0.5);
	}
}

.modal-close {
	color: $black-sec;
	cursor: pointer;
	display: block;
	float: right;
	font-size: $font-size-h4;
	line-height: $line-height-h4;
	margin-right: ($grid-gutter / -2);
	padding-right: ($grid-gutter / 2);
	padding-left: ($grid-gutter / 2);
	&:focus,
	&:hover {
		color: $link-color;
		text-decoration: none;
	}
}

.modal-content {
	background-clip: padding-box;
	background-color: $white;
	border: 1px solid transparent;
	border-radius: 4px;
	outline: 0;
	position: relative;
	@include box-shadow(0 1px 30px rgba(0, 0, 0, 0.5));
	.modal-uploader & {
		height: 100%;
	}
}

.modal-dialog {
	margin-right: auto;
	margin-left: auto;
	padding: ($line-height * 2) $grid-gutter;
	position: relative;
	&.modal-full {
		height: 100%;
		.modal-content {
			height: 100%;
			overflow-x: hidden;
			overflow-y: auto;
			-webkit-overflow-scrolling: touch;
			-ms-overflow-style: -ms-autohiding-scrollbar;
		}
	}
	.modal.fade & {
		@include transform(scale(0, 0));
		@include transition(all 0.3s $timing);
	}
	.modal.fade.in & {
		@include transform(scale(1, 1));
	}
	// 480
		@include responsive(xs) {
			&.modal-xs {
				width: $screen-xs;
			}
		}
	// 992
		@include responsive(md) {
			width: ($screen-md - $grid-gutter * 2);
		}
	// 1440
		@include responsive(lg) {
			width: ($screen-lg - $grid-gutter * 2);
		}
}

.modal-footer {
	padding-right: ($grid-gutter * 2);
	padding-left: ($grid-gutter * 2);
	.btn + .btn {
		margin-left: $grid-gutter;
	}
}

.modal-heading {
	padding-top: $line-height;
	padding-right: ($grid-gutter * 2);
	padding-left: ($grid-gutter * 2);
	position: relative;
}

.modal-inner {
	padding-right: ($grid-gutter * 2);
	padding-left: ($grid-gutter * 2);
}

.modal-open {
	overflow: hidden;
}

.modal-title {
	font-size: $font-size-h4;
	line-height: $line-height-h4;
	margin-top: 0;
	margin-right: ($grid-gutter + 12);
	margin-bottom: $line-height;
}