img {
  width: 100%;
}

.grid {
	column-count: 5;
	column-gap: 5px;
	width:80%;
    margin: 0.3% auto;
}

.grid.grid-item {
  display: inline-block;
  margin-bottom: 5px;
  width: 100%;
}
.grid-content {
    font-size: .8em;
}

.lightbox {
    position: fixed;
	z-index: 9999;
    display: none;
    background-color: rgba(0, 0, 0, 0.8);
    width: 100%;
    height: 100%;              
    overflow: auto;
    top: 0;
    left: 0;
}
.lightbox-content {
    position: relative;
    width: 50%;
    
    margin: 5% auto;
}
.lightbox-content img {
    border-radius: 7px;
    box-shadow: 0 0 8px 0 rgba(225, 225, 225, .25);
    width: 100%;
    height: 100%; 
    object-fit: cover;
}
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px;
    top: 45%;
    cursor: pointer;
}
.lightbox-prev {
    left: 0;
}
.lightbox-next {
    right: 0;
}
.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: .8;
}

@media (max-width: 1199px) {
  .grid {
    column-count: 4;
  }
  .lightbox-content {
    position: relative;
    width: 60%;
    ;
}
}

@media (max-width: 991px) {
  .grid {
    column-count: 3;
  }
  .lightbox-content {
    position: relative;
    width: 70%;
    ;
}
}

@media (max-width: 767px) {
  .grid {
    column-count: 1;
	pointer-events: none;
  }
  
}

