* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
body {
	background-color: black;
	color: aliceblue;
	margin: 0;
	padding: 0;
}

.grid-gallery{
  width: 100%;
  max-width: 1800px;
  margin:auto;
  padding: 0px 0px 30px 0px ;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-auto-rows: 250px 250px;
  grid-auto-flow: dense;
  grid-gap: 10px;
}
.grid-gallery .grid-item{
  position: relative;
  background-color: #efefef;
  overflow: hidden;
}
.grid-gallery .grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: thick;
  border-color: aliceblue;	
 	
}
.grid-gallery .grid-item:hover img{
	transform: scale(1.1);
}
.grid-gallery .grid-item a {
	cursor: zoom-in;
}
.grid-gallery .grid-item:nth-child(3n - 2) {
	grid-column: span 2;
	grid-row: span 2;	
}
.text{
	position: absolute;
	bottom: 10px;
	left: 50%;
	transform: translate(-50%);
	color: aliceblue;
	background-color: rgba(0,0,0,0.5);
	padding: 5px;
	text-align: center;
}
@media (max-width: 768px) {
	.grid-gallery {
		grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
		grid-auto-rows: 250px;
	}
	.grid-gallery .grid-item:nth-child(3n - 2){
		grid-column: unset;
		grid-row: unset;
	}
}