.images-grid {
    overflow: hidden; 
}
.images-grid .modal-dialog {
    max-width: 600px;
}

.images-grid .modal-body {
    padding: 15px;  
}

.images-grid .modal-body h3 {
    font-size: 22px; 
}

.images-grid  .modal-title {
    width: 100%;
}

.images-grid .modal-header {
    min-height: 16.43px;
    padding: 15px;
}

.images-grid  button.close {
    font-size: 2.5rem;
    line-height: 1.8rem;
}

.images-grid .col-lg-12 {
    /*min-height: 60vh;*/
    min-height: 300px;
    overflow: hidden;
}

.images-grid .image-grid-inner {
    backface-visibility: hidden;
    width: 100%;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform .5s;
    transform: scale(1.1);
}

.images-grid .image-grid-inner:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

@media(max-width: 992px) {
  .images-grid .image-grid-inner {
    transform: none;
  }
}

.images-grid:before .image-grid-inner {
  background-color: #333;
  opacity: 0.4;
}

.images-grid .col-lg-12:hover .image-grid-inner {
    transform: scale(1); 
}

.images-grid .col-lg-12:hover:after {
    opacity: 1; 
}

.images-grid .col-lg-12:after {
    content: '';
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    background: rgba(23, 99, 145, 0.7);
    -webkit-transition: opacity .5s;
    -moz-transition: opacity .5s;
    -ms-transition: opacity .5s;
    transition: opacity .5s;
}

.images-grid .col-lg-12 .grid-content {
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    -moz-transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    z-index: 1;
    width: 100%;
    max-width: 300px;
    max-height: 70px;
    overflow: hidden;
    margin: 0 auto;
    text-align: center;
    -webkit-transition: .5s ease-in-out;
    -moz-transition: .5s ease-in-out;
    -ms-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
}

.images-grid .col-lg-12:hover .grid-content {
    max-height: 300px;
    -webkit-transition: .5s ease-in-out;
    -moz-transition: .5s ease-in-out;
    -ms-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
    text-decoration: none;
}

.images-grid .col-lg-12 h3 {
  font-size: 20px;
    color: #FFF;
    text-align: center;
}

.images-grid .col-lg-12 h3:after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    margin: 3rem auto;
    background: #fff;
    max-width: 187px;
    position: relative;
    top: -20px;
    {#max-width: 0;
    -webkit-transition: .5s ease-in-out;
    -moz-transition: .5s ease-in-out;
    -ms-transition: .5s ease-in-out;
    transition: .5s ease-in-out;#}
}

.images-grid .col-lg-12:hover h3:after {
    max-width: 180px;
}

@media (max-width: 900px) {
   .images-grid .col-lg-12:after {
      opacity: 1;  
   }
  .images-grid .col-lg-12 {
      min-height: 300px;
   }
  
  .images-grid .col-lg-12 .grid-content {
      max-height: 300px;
  }
  
  .images-grid .col-lg-12 h3:after {
      max-width: 180px;
  }
}

.images-grid .row {
  margin: 0;
}

@media(min-width: 992px) {
  .images-grid .row {
    display: grid;
  }
  
  .images-grid .col-lg-12 .grid-content {
    margin: 20px auto;
  }
}

.images-grid .col-lg-12 .price_content {
  margin-top: -40px;
  font-size: 18px;
  color: #fff;
}




