.link-box, .is-preview .link-box{
    position: relative;
    display: flex;
    flex-direction: column;
  }
  
  .link-box-grid, .is-preview .link-box-grid{
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin: auto;
  }

  .link-box-grid.masonry-grid .grid-item, .is-preview .link-box-grid.masonry-grid .grid-item{
    width: 33.333%;
  }
  .link-box-grid.masonry-grid .grid-item:nth-child(5n-1), .is-preview .link-box-grid.masonry-grid .grid-item:nth-child(5n-1),  .link-box-grid.masonry-grid .grid-item:nth-child(5n),.is-preview .link-box-grid.masonry-grid .grid-item:nth-child(5n){
    width: 50%;
}

.link-box-grid.row-grid ,.is-preview .link-box-grid.row-grid {
  display:grid;
}
  
  .link-box  .grid-item{
    overflow: hidden;

  }
  
  .center-wrap{
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .post-info-wrap, .is-preview .post-info-wrap{
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    color: #fff;
    text-align: center;
  }

  .post-link{
    position: relative;
      padding-top: 100%;
      display: flex;
      flex-direction: column;
      height: 100%;
  }
  
  .link-box-grid.masonry-grid .grid-item:nth-child(5n-1) .post-link, .is-preview .link-box-grid.masonry-grid .grid-item:nth-child(5n-1) .post-link,  .link-box-grid.masonry-grid .grid-item:nth-child(5n) .post-link,.is-preview .link-box-grid.masonry-grid .grid-item:nth-child(5n) .post-link{
    padding-top: 65%;
}

  
  .post-link:hover > .img-wrap img{
    scale: 1.1;
  }

  .post-link:hover > .img-wrap::after {
    opacity: 0;
  }
  
  
  .post-info-wrap h3, .is-preview .post-info-wrap h3{
    position: relative;
    margin: 0;
	  font-size: 30px;
    color: #fff;
  }

  
  .img-wrap{
    position: absolute;
    top:0;
    left: 0;
    font-size: 0;
    width: 100%;
    height: 100%;
  }

  .img-wrap::after{
    content: '';
    position: absolute;
    top:0;
    left: 0;
    font-size: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0.5;
    -webkit-transition: .3s ease-in-out;
    -moz-transition: .3s ease-in-out;
    -o-transition: .3s ease-in-out;
    transition: .3s ease-in-out;
  }
  
  .img-wrap img{
    width: 100%;
      height: 100%;
      object-fit: cover;
      -webkit-transition: .3s ease-in-out;
        -moz-transition: .3s ease-in-out;
        -o-transition: .3s ease-in-out;
        transition: .3s ease-in-out;
  }

.link-box-wrap{
    margin: 0 auto;
    max-width: 1400px;
    padding: 0 20px;
    width: 100%;
}

@media only screen 
  and (min-width: 0px) 
  and (max-width: 768px) 
{ 

  .link-box-grid.masonry-grid .grid-item, .is-preview .link-box-grid .grid-item{
    width: 100%;
  }
  .link-box-grid.masonry-grid .grid-item:nth-child(5n-1), .is-preview .link-box-grid.masonry-grid .grid-item:nth-child(5n-1),  .link-box-grid.masonry-grid .grid-item:nth-child(5n),.is-preview .link-box-grid.masonry-grid .grid-item:nth-child(5n){
    width: 100%;
}

  .link-box-grid.masonry-grid .grid-item:nth-child(5n-1) .post-link, .is-preview .link-box-grid.masonry-grid .grid-item:nth-child(5n-1) .post-link,  .link-box-grid.masonry-grid .grid-item:nth-child(5n) .post-link,.is-preview .link-box-grid.masonry-grid .grid-item:nth-child(5n) .post-link{
    padding-top: 100%;
}

.link-box-grid.row-grid ,.is-preview .link-box-grid.row-grid {
  grid-template-columns: auto!important;
}

}

@media only screen 
  and (min-width: 769px) 
  and (max-width: 1023px) 
{ 
  .link-box-grid.row-grid ,.is-preview .link-box-grid.row-grid {
    grid-template-columns: repeat(2,1fr)!important;
  }
  
}