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

.lrm_gallery img {
  margin-bottom: 30px !important;
}

.lrm_gallery.row {
  margin-left: -15px;
  margin-right: -15px;
}

.lrm_gallery > [class*="col-"] {
  box-sizing: border-box;
  padding-left: 15px;
  padding-right: 15px;
}

.lrm-grid {
  margin-left: -15px;
  margin-right: -15px;
}

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

.lrm-grid-item,
.lrm-grid-sizer {
  box-sizing: border-box;
  padding-left: 15px;
  padding-right: 15px;
}

.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 .lrm-grid-item,
.lrm_gallery > [class*="col-"] {
  position: relative;
  cursor: pointer;
}

.lrm_gallery .lrm-grid-item:after,
.lrm_gallery > [class*="col-"]:after {
  content: "";
  position: absolute;
  top: 0;
  right: 15px;
  bottom: 30px;
  left: 15px;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lrm_gallery .lrm-grid-item:hover:after,
.lrm_gallery > [class*="col-"]:hover:after {
  opacity: 1;
}

.lrm-gallery-modal .modal .lrm-gallery-modal-image {
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: transparent !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 0.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: transparent !important;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  border-radius: 6px;
  -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
  box-shadow: 0 3px 9px rgba(0, 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: 0.9 !important;
}

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

.lrm-gallery-modal .modal-backdrop.in {
  opacity: 0.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: transparent !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;
  line-height: 1.2;
  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, 0.75);
  -moz-box-shadow: -5px 9px 8px 2px rgba(0, 0, 0, 0.75);
  box-shadow: -5px 9px 8px 2px rgba(0, 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: "\f00d";
}

.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, 0.75);
  -moz-box-shadow: -5px 9px 8px 2px rgba(0, 0, 0, 0.75);
  box-shadow: -5px 9px 8px 2px rgba(0, 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: "\f053";
}

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

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

.lrm-gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 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: 25%;
  }

  .lrm-gallery-modal .modal-content {
    -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  }
}

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

.slider-image {
  width: 100%;
  object-fit: cover;
}

@media (min-width: 1200px) {
  .slider-image {
    height: 450px !important;
  }
}
