
.lrm_gallery .col-sm-12 {
	margin-bottom: 30px;
}

.fa-times, .lrm_gallery figcaption {
	text-align: center;
}

.lrm-grid:after {
	content: "";
	display: block;
	clear: both;
}

.lrm-grid-item {
	float: left;
}

.lrm-grid-item img {
	display: block;
	width: 100% !important;
}

.lrm-gallery-image {
	margin: 0 !important;
	padding: 0 !important;
	object-fit: cover;
	cursor: pointer;
}

.lrm-gallery-modal .modal .lrm-gallery-modal-image {
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
	background: 0 0 !important;
	max-width: 600px;
	max-height: 600px;
}

.lrm-gallery-modal .modal-open {
	overflow: hidden;
}

.lrm-gallery-modal.modal {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1055;
	display: none;
	overflow: hidden;
	-webkit-overflow-scrolling: touch;
	outline: 0;
}

.lrm-gallery-modal.modal.fade .modal-dialog {
	-webkit-transform: translate(0, -25%);
	-ms-transform: translate(0, -25%);
	-o-transform: translate(0, -25%);
	transform: translate(0, -25%);
	transition: transform .2s ease-out;
}

.lrm-gallery-modal.modal.in .modal-dialog {
	-webkit-transform: translate(0, 0);
	-ms-transform: translate(0, 0);
	-o-transform: translate(0, 0);
	transform: translate(0, 0);
}

.lrm-gallery-modal .modal-open .modal {
	overflow-x: hidden;
	overflow-y: auto;
}

.lrm-gallery-modal .modal-dialog {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) !important;
}

.lrm-gallery-modal .modal-content {
	position: relative;
	background: 0 0 !important;
	-webkit-background-clip: padding-box;
	border-radius: 6px;
	-webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
	box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
	outline: 0;
}

.lrm-gallery-modal .modal-backdrop {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1040;
	background-color: #000;
	opacity: .9 !important;
}

.lrm-gallery-modal .modal-backdrop.fade {
	opacity: 0;
}

.lrm-gallery-modal .modal-backdrop.in {
	opacity: .5;
}

.lrm-gallery-modal .modal-body {
	position: relative;
	height: 100%;
	padding: 0;
}

.lrm-gallery-modal img {
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
	background: 0 0 !important;
}

.lrm-gallery-modal .modal-footer, .lrm-gallery-modal .modal-header {
	display: table;
	content: " ";
	padding: 0;
	margin: 0;
	height: 0 !important;
	border: none;
}

.clearfix:after, .lrm-gallery-modal .modal-footer:after, .lrm-gallery-modal .modal-header:after {
	clear: both;
}

.close-modal {
	color: #fff !important;
	text-decoration: none !important;
	font-size: 20px;
	position: absolute;
	right: -10px;
	top: -14px;
	background: #000;
	padding: 3px 9px;
	font-weight: 700;
	border-radius: 100%;
	z-index: 3;
	border: 2px solid #fff;
	-webkit-box-shadow: -5px 9px 8px 2px rgba(0, 0, 0, .75);
	-moz-box-shadow: -5px 9px 8px 2px rgba(0, 0, 0, .75);
	box-shadow: -5px 9px 8px 2px rgba(0, 0, 0, .75);
}

.fa-times {
	background: #000;
	width: 35px;
	height: 35px;
	border-radius: 50%;
	line-height: 32px !important;
	vertical-align: middle;
	border: 1px solid #fff;
	font-size: 18px !important;
}

.img-next, .img-prev {
	display: flex;
	top: 45%;
	line-height: 0;
	height: 10%;
	text-decoration: none !important;
	z-index: 2;
	position: absolute;
}

.fa-times:before {
	content: "";
}

.close-modal:hover {
	color: #333 !important;
}

.img-prev {
	left: 0;
	padding-left: 10px;
	padding-right: 5%;
	align-items: center;
}

.img-next {
	right: 0;
	padding-right: 10px;
	padding-left: 5%;
	align-items: center;
	text-align: right;
}

.img-next .fa {
	position: relative;
	top: 50%;
	padding: 8px 11px 8px 12px;
}

.img-next .fa, .img-prev .fa {
	color: #fff;
	border-radius: 100%;
	background: #000;
	border: 2px solid #fff;
	-webkit-box-shadow: -5px 9px 8px 2px rgba(0, 0, 0, .75);
	-moz-box-shadow: -5px 9px 8px 2px rgba(0, 0, 0, .75);
	box-shadow: -5px 9px 8px 2px rgba(0, 0, 0, .75);
}

.img-prev .fa {
	position: relative;
	top: 50%;
	padding: 8px 12px 8px 11px;
}

.img-next:hover, .img-prev:hover {
	opacity: 1;
}

.fa-chevron-left:before {
	content: "";
}

.fa-chevron-right:before {
	content: "";
}

.lrm-gallery-loader {
	width: 200px !important;
	height: 200px !important;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	border: none !important;
	background: 0 0 !important;
	z-index: 3;
}

.lrm-gallery-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, .6);
}

@media (max-width:576px) {
	.lrm-grid-item, .lrm-grid-sizer {
		width: 100%;
	}
}

@media (min-width:300px) and (max-width:767px) {
	.lrm_gallery {
		text-align: center;
	}
	
	.lrm-gallery-modal.modal {
		padding: 20px;
	}
	
	.img-next, .img-prev {
		opacity: 1 !important;
	}
	
	.lrm-gallery-modal .modal-dialog {
		width: 325px;
		top: 54%;
		left: 48%;
	}
	
	.lrm-gallery-modal .lrm-gallery-modal-image {
		max-width: 350px !important;
		max-height: none !important;
	}
}

@media (min-width:768px) {
	.lrm-grid-item, .lrm-grid-sizer {
		width: 33.333%;
	}
	
	.lrm-gallery-modal .modal-content {
		-webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
		box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
	}
}

@media (min-width:992px) {
	.lrm-gallery-modal .modal-lg {
		width: 900px;
	}
}
