.masonry {
    position: relative;
    width: 100%;
    display: flex;
    gap: 10px;

}
.masonry .column{
    flex:1;
    display: flex;
    flex-direction: column;
    gap:10px;
}
.masonry .post{
    position: relative;
    overflow: hidden;
    width:100%;
    margin: 5px;
    padding: 0;
    cursor: pointer;
}
.masonry .post:hover::before {
  content: '';
  position: absolute;
  left:0;
  right: 0;
  top:0;
  bottom:0;
  background-position: center;
  background-color: var(--green);
  opacity: 0.7;
}
.masonry img{
    width: 100%;
    height: 100%;
}

.masonry .overlay{
    position: absolute;
    top:0;
    left: 0;
    width:100%;
    height:100%;
    background:#161616;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity:0;
    transition:0.5s;
    border-radius: 5px;
}

.masonry .post:hover .overlay{
    opacity: 0.5;
    cursor: pointer;
}
