/* Gato Gallery Styles */
#gallery{
	background-color: var(--clr-secondary);
}

.grid{
	display: grid;
	height: 100%;
	width: 80%;
	grid-gap: 2rem;
	margin: 2rem auto;
	grid-template-columns: repeat(4, 200px);
	justify-content: center;
}

.grid img{
	height: 200px;
	width: 200px;
	margin: auto;
	cursor: pointer;
}

@media screen and (max-width: 900px){
	#gallery .grid{
	grid-template-columns: repeat(3, 200px);	
	}
}

@media screen and (max-width: 800px){
	#gallery .grid{
	grid-template-columns: repeat(2, 200px);	
	}
}

@media screen and (max-width: 700px){
	#gallery .grid{
	grid-template-columns: repeat(2, 200px);	
	}
}

@media screen and (max-width: 450px){
	#gallery .grid{
		grid-template-columns: 200px;
	}
}
/* Gato Styles End */

.grid-container{
	display: grid;
	justify-content: center;
	align-items: center;
	padding: 10px;
	margin: 1em auto;
	width: 90%;
	grid-gap: 10px;
	grid-template-columns: repeat(4, 1fr);
}

.grid-image{
	margin: auto;
}

.grid-image .img{
	width: 200px;
	border-radius: 1rem;
	object-fit: cover;
}

.g-footer{
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	background-color: var(--clr-primary);
	height: 50px;
	width: 100vw;
	position: relative;
}

.g-footer .footer-text{
	color: var(--clr-secondary);
	font-size: 0.9rem;
	padding: 0.5rem;
}

.g-footer small{
	font-size: 0.8rem;
}

/* Kamon Gallery Sytles */
.gallery-container{
	display: grid;
	width: 100%;
	grid-template-columns: repeat(4, 1fr);
	grid-gap: 1rem;
	margin: 0 auto;
	width: 90%;
}

.gallery-container .image-card{
	display: flex;
	justify-content: center;
	flex-direction: column;
	text-align: center;
	margin: 0 auto;
	height: 300px;
	width: 200px;
	overflow: hidden;
}

.image-card img{
	border-radius: 1rem;
	height: 200px;
	cursor: pointer;
}

.grid img{
	border-radius: 1rem;
}


.name{
	display: flex;
	justify-content: center;
	align-items: center;
	color: var(--clr-primary);
	font-size: 0.8rem;
	padding: 0.3rem;
}

/* Lightbox Styles */
#lightbox{
	position: fixed;
	z-index: 1000;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.8);
	display: none;
}

#lightbox.active{
	display: flex;
	justify-content: center;
	align-items: center;
}

#lightbox img{
	max-width: 90%;
	max-height: 80%;
	padding: 4px;
	background-color: var(--clr-secondary);
	border: 2px solid #fff;
}

/* Grid Media Queries */
@media screen and (max-width: 900px){
	#gato-gallery .grid-container{
	grid-template-columns: repeat(3, 1fr);	
	}
	
	.gallery-container{
		grid-template-columns: repeat(3, 1fr);
	}
}

@media screen and (max-width: 800px){
	#gato-gallery .grid-container{
	grid-template-columns: repeat(2, 1fr);	
	}
	
	.gallery-container{
		grid-template-columns: repeat(3, 1fr);
	}
}

@media screen and (max-width: 700px){
	#gato-gallery .grid-container{
	grid-template-columns: repeat(2, 1fr);	
	}
	
	.gallery-container{
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (max-width: 450px){
	#gato-gallery .grid-container{
		grid-template-columns: 1fr;
	}
	
	.gallery-container{
		grid-template-columns: 1fr;
	}
}