@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  position: relative;
  background-color: #fafafa;
  font-family: "Poppins", sans-serif;
}

.image-gallery {
  width: 100%;
  max-width: 950px;
  margin: 0 auto;
  padding: 20px 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-auto-rows: 250px;
  grid-auto-flow: dense;
  grid-gap: 20px;
}

.image-gallery img {
  border:solid 2px;
  border-bottom-color:#ffe;
  border-left-color:#eed;
  border-right-color:#eed;
  border-top-color:#ccb;
  max-height:100%;
  max-width:100%;
}


.image-gallery .image-box {
  position: relative;
  background-color: #d7d7d8;
  overflow: hidden;
}

.image-gallery .image-box:nth-child(7n + 1) {
  grid-column: span 2;
  grid-row: span 2;
}

.image-gallery .image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
  
  cursor: pointer;

}

.image-gallery .image-box img  {
  width: 80%;
  height: 75%;
  object-fit: cover;
  transition: all 0.5s ease;
  margin:10% 10% 10% 10%;
  cursor: pointer;

}

.image-gallery .image-box {
	
 
  background-color:#d3d3d3;
  height:100%;
  -webkit-box-shadow: inset 10px 10px 37px 0px rgba(0,0,0,0.75);
-moz-box-shadow: inset 10px 10px 37px 0px rgba(0,0,0,0.75);
box-shadow: inset 10px 10px 37px 0px rgba(0,0,0,0.75);
border:black solid 30px;


}

  .image-gallery .picture-frame  {
   
    
    background-color:#d3d3d3;
    height:100%;
    -webkit-box-shadow: inset 10px 10px 37px 0px rgba(0,0,0,0.75);
  -moz-box-shadow: inset 10px 10px 37px 0px rgba(0,0,0,0.75);
  box-shadow: inset 10px 10px 37px 0px rgba(0,0,0,0.75);
  border:black solid 40px;
  }


  @media (max-width: 401px) {
    .image-gallery {
      grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
      grid-auto-rows: 330px;
      width: 100%;
    }
  
    .image-gallery .image-box:nth-child(7n + 1) {
      grid-column: unset;
      grid-row: unset;
      width: 100%;
    }
  
  .image-gallery .image-box {
    
   
    background-color:#d3d3d3;
    height:100%;
    -webkit-box-shadow: inset 10px 10px 37px 0px rgba(0,0,0,0.75);
  -moz-box-shadow: inset 10px 10px 37px 0px rgba(0,0,0,0.75);
  box-shadow: inset 10px 10px 37px 0px rgba(0,0,0,0.75);
  border:rgb(15, 14, 14) solid 20px;
  
  
  }
  
.image-gallery .image-box img  {
  width: 80%;
  height: 78%;
  object-fit: cover;
  transition: all 0.5s ease;
  margin:10% 10% 10% 10%;
  cursor: pointer;

}
  }
  


/* Let's make it responsive */
@media only screen and (min-width: 402px) and (max-width: 501px){
  .image-gallery {
    grid-template-columns: repeat(auto-fit, minmax(381px, 1fr));
    grid-auto-rows: 381px;
    width: 100%;
  }

  .image-gallery .image-box:nth-child(7n + 1) {
    grid-column: unset;
    grid-row: unset;
    width: 100%;
  }
 
  .image-gallery .image-box img  {
    width: 80%;
    height: 78%;
    object-fit: cover;
    transition: all 0.5s ease;
    margin:10% 10% 10% 10%;
    cursor: pointer;
  
  }
 
}



@media only screen and (min-width: 502px) and (max-width: 604px){
  .image-gallery {
    grid-template-columns: repeat(auto-fit, minmax(484px, 1fr));
    grid-auto-rows: 484px;
    width: 100%;
  }

  .image-gallery .image-box:nth-child(7n + 1) {
    grid-column: unset;
    grid-row: unset;
    width: 100%;
  }

  
.image-gallery .image-box img  {
  width: 80%;
  height: 75%;
  object-fit: cover;
  transition: all 0.5s ease;
  margin:10% 10% 10% 10%;
  cursor: pointer;

}
}


@media only screen and (min-width: 605px) and (max-width: 707px){
  .image-gallery {
    grid-template-columns: repeat(auto-fit, minmax(530px, 1fr));
    grid-auto-rows: 530px;
    width: 100%;
  }

  .image-gallery .image-box:nth-child(7n + 1) {
    grid-column: unset;
    grid-row: unset;
    width: 100%;
  }

 
}


@media only screen and (min-width: 708px) and (max-width: 770px){
  .image-gallery {
    grid-template-columns: repeat(auto-fit, minmax(630px, 1fr));
    grid-auto-rows: 630px;
    width: 100%;
  }

  .image-gallery .image-box:nth-child(7n + 1) {
    grid-column: unset;
    grid-row: unset;
    width: 100%;
  }

 
}
