 

.main .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 1rem;
    justify-content: center;
    align-items: center;
}

.main .card {
    color: #252a32;
    border-radius: 2px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.24);
}

.main .card-image {
    position: relative;
    display: block;
    width: 100%;
    padding-top: 70%;
    background: #fff;
}

.main .card-image img {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media only screen and (max-width: 600px) {
    .main .container {
        display: grid;
        grid-template-columns: 1fr;
        grid-gap: 1rem;
    }
}


.image-gallery .card .card-image {
    position: relative;
    overflow: hidden;
    background: #00000045;
  }
 
  .image-gallery .card .card-image a::before {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -13px;
    margin-left: -13px;
    opacity: 0;
    color: #fff;
    font-size: 26px;
    content: '+';
    pointer-events: none;
    z-index: 9000;
    transition: 0.4s;
  }
 
  .image-gallery .card .card-image a:after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-color: #00000045;
    content: '';
    transition: 0.4s;
  }
 
  .image-gallery .card:hover img {
 
    transform: scale(1.5);
    opacity: 0.2;
  }

  .image-gallery .card img {
    width: 100%;
    transition: all 5s ease;
}