.galleryContainer img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
	display: inline-block;
}

/* Main CSS */
.galleryContainer > div {
	display: flex;
	justify-content: center;
	align-items: center;
}
.galleryContainer > div > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 5px;
}

.galleryContainer {
	display: grid;
	grid-gap: 10px;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	grid-auto-rows: 200px;
	grid-auto-flow: dense;
}
.galleryContainer .wide {
	grid-column: span 2;
}
.galleryContainer .tall {
	grid-row: span 2;
}
.galleryContainer .big {
	grid-column: span 2;
	grid-row: span 2;
}

/* lightbox */
.lightbox {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
	justify-content: center;
	align-items: center;
	z-index: 1000;
}
.lightbox img {
	max-width: 80%;
	max-height: 80%;
	border-radius: 10px;
}
.lightbox .prev,
.lightbox .next {
  height: 50px;
  width: 50px;
  position: absolute;
  transform: translateY(-50%);
  font-size: 2.5rem;
  background-color: transparent;
  color: #ffffff;
  padding: 10px;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  z-index: 1001;
}
.lightbox .prev {
  left: 20px;
}
.lightbox .next {
  right: 20px;
}
.lightbox .close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  color: #ffffff;
  background: none;
  cursor: pointer;
  border: none;
  z-index: 1001;
}

@media screen and (max-width: 475px) {
	.galleryContainer {
		display: flex;
		flex-direction: column;
	}
	.galleryContainer .wide,
	.galleryContainer .tall,
	.galleryContainer .big {
		grid-column: span 1;
		grid-row: span 1;
	}
}
