html {
background-color: #0d0d0d;
font-color: #ffffff;
}

#gallery {
   line-height:0;
   -webkit-column-count:5; /* split it into 5 columns */
   -webkit-column-gap:5px; /* give it a 5px gap between columns */
   -moz-column-count:5;
   -moz-column-gap:5px;
   column-count:5;
   column-gap:5px;
}

#gallery img {
   width: 100% !important;
   height: auto !important;
   margin-bottom:5px; /* to match column gap */
}

@media (min-width: 1201px) {
   #gallery {
    -moz-column-count:    5;
    -webkit-column-count: 5;
    column-count:         5;
   }
   
.light-btn {
    color: #fafafa;
    background-color: transparent;
    border: solid 0px white;
    padding: 5px 15px;
    border-radius: 0px;
    text-decoration: none;
    cursor: pointer;
    vertical-align: middle;
    position: absolute;
    top: 45%;
    z-index: 99;
}

#constrain {
   width: 55%;

   padding-right: 60px;
}


}


@media (max-width: 1200px) {
   #gallery {
    -moz-column-count:    4;
    -webkit-column-count: 4;
    column-count:         4;
   }
   
.light-btn {
    color: #fafafa;
    background-color: transparent;
    border: solid 0px white;
    padding: 5px 15px;
    border-radius: 0px;
    text-decoration: none;
    cursor: pointer;
    vertical-align: middle;
    position: absolute;
    top: 45%;
    z-index: 99;
}
#constrain {
   width: 55%;

   padding-right: 60px;
}


}

@media (max-width: 1000px) {
   #gallery {
    -moz-column-count:    3;
    -webkit-column-count: 3;
    column-count:         3;
   }
   
.light-btn {
    color: #fafafa;
    background-color: transparent;
    border: solid 0px white;
    padding: 5px 15px;
    border-radius: 0px;
    text-decoration: none;
    cursor: pointer;
    vertical-align: middle;
    position: absolute;
    top: 45%;
    z-index: 99;
}

#constrain {
   width: 65%;

   padding-right: 20px;
}

}

@media (max-width: 800px) {
   #gallery {
    -moz-column-count:    2;
    -webkit-column-count: 2;
    column-count:         2;
   }
.light-btn {
    color: #fafafa;
    background-color: transparent;
    border: solid 0px white;
    padding: 5px 15px;
    border-radius: 0px;
    text-decoration: none;
    cursor: pointer;
    vertical-align: middle;
    position: absolute;
    top: 45%;
    z-index: 99;
}

#constrain {
   width: 75%;

   padding-right: 20px;
}

}

@media (max-width: 600px) {
   #gallery {
    -moz-column-count:    1;
    -webkit-column-count: 1;
    column-count:         1;
   }
   
.light-btn {
    color: #fafafa;
    background-color: transparent;
    border: solid 0px white;
    padding: 5px 15px;
    border-radius: 0px;
    text-decoration: none;
    cursor: pointer;
    vertical-align: top;
    position: absolute;
    top: 15%;
    z-index: 99;
}

#constrain {
   width: 85%;

   padding-right: 10px;
}

}



#caption1 {

    color: #ffffff;
    position: relative;
    top: 10px;
    text-decoration: none;

}

#caption2 {

    color: #ffffff;
    position: relative;
    top: 30px;
    text-decoration: none;

}

#caption3 {

    color: #ffffff;
    position: relative;
    top: 50px;
    text-decoration: none;

}

.gal:hover {
	 -webkit-filter: grayscale(100%); /* Ch 23+, Saf 6.0+, BB 10.0+ */
  filter: grayscale(100%); /* FF 35+ */
    opacity: 50%;

}

im:hover {
  color: red;
}

.lightbox {
    position: fixed;
    z-index: 500;
    height: 0;
    width: 0;
    text-align: center;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
}
.lightbox img {
    max-height: 85%;
  max-width: 85%;
  object-fit: scale-down;
    margin-top: 2%;
    opacity: 0;
}
.lightbox:target {
    outline: none;
 
    width: 100%;
    height: 100%;
    opacity: 1 !important;
    
}
.lightbox:target img {
    border: solid 0px white;
    opacity: 1;
    webkit-transition: opacity 0.6s;
    transition: opacity 0.6s;
}

.light-btn:hover {
    background-color: transparent;
}
.btn-prev {
    left: 1%;
}
.btn-next {
    right: 1%;
}
.btn-close {
    position: absolute;
    right: 2%;
    top: 2%;
    color: #fafafa;
    background-color: transparent;
    border: solid 0px white;
    padding: 10px 15px;
    border-radius: 0px;
    text-decoration: none;
}
.btn-close:hover {
    background-color: transparent;
}