@charset "utf-8";
/* CSS Document */

label[for] {
  cursor: pointer;
}

input[type="checkbox"] {
  display: none;
}

.lightboxbg { 
	display:none;
	background-color: #000000;
	opacity: .2; 
	z-index: 999;
	position:fixed;
	width:100%;
	height:100%;
	top:0;
	left:0;
}
.lightbox { 
	position: fixed; 
	width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  min-height: 100%;
  overflow: auto;
  -webkit-transform: scale(0);
      -ms-transform: scale(0);
          transform: scale(0);
  -webkit-transition: -webkit-transform .5s ease-out;
          transition: transform .5s ease-out;
}
.lightbox img {
  position: fixed;
  top: 50%;
  left: 50%;
  max-width: 96%;
  max-height: 96%;
  -webkit-transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

input[type="checkbox"]:checked + .lightbox {
  -webkit-transform: scale(1);
      -ms-transform: scale(1);
          transform: scale(1);
}
input[type="checkbox"]:checked ~.lightboxbg {
	display:block;
	opacity: .8; 	
}
input[type="checkbox"]:checked ~ .grid {
  opacity: .125;
}
.grid {
    width: 100%;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: center;
    transition: opacity .75s;
    justify-content: center;
}
.grid .grid-item {
  display: inline-block;
  width: 32%;
  padding:0;
  margin:0;
  opacity:1;
  -webkit-transition: opacity .3s;
          transition: opacity .3s; 
}
.grid .grid-item:hover {  opacity: .75;}
.grid-div {  width: 100%;}

@media screen and (min-width: 1000px) {    
  .grid   {gap: 15px;}
  .grid .grid-item {width: 19%;}
}

.grid img { 
  max-width: 100%;
  max-height: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}