@charset "UTF-8";
/* CSS Document */
/*===メイン==============================*/
#gallery_list{
	display: flex;
	flex-wrap: wrap;
}

#gallery_list li{
	width: 18%;
	margin: 0 1% 40px;
}
#gallery_list li .photo{
	display: block;
	position: relative;
    overflow: hidden;
	min-height: 0%;
	width: 100%;
}
#gallery_list li .photo:nth-child(1)::before{
    content: '';
    display: block;
    padding-top: 78%;
}
#gallery_list li .photo:nth-child(1)::after{
	content: '';
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	background: rgba(0, 0, 0, 0);
	transition: all 0.3s ease;
}
#gallery_list li .photo img{
	display: block;
	object-fit: cover;
	width: 100%;
	height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
	transform: translate(-50%, -50%);
	transition: all 0.3s ease;
}
#gallery_list li p.detail_text{
	padding: 3px;
	font-size: 0.8rem;
	margin-top: 5px;
}

#gallery_list li a:hover::after{
	background: rgba(0, 0, 0, 0.2);
}
#gallery_list li a:hover img{
	transform: translate(-50%, -50%) scale(1.15);
}

@media (max-width: 1200px){
	#gallery_list li{
		width: 23%;
	}
}
@media (max-width: 960px){
	#gallery_list li{
		width: 31%;
	}
}
@media (max-width: 750px){
	#gallery_list li{
		width: 48%;
		margin: 0 1% 20px;
	}
}