@charset "UTF-8";
/* CSS Document */
/* clearfix(削除不可) */
.clearfix:after { content:"."; display:block; clear:both; height:0; visibility:hidden; }
.clearfix { display:inline-block; }
/* for macIE \*/
.clearfix { height:1%; }
.clearfix { display:block; }
.gallery{
width: 100%;  
margin-top: 3%;    
}

#gallery_wrap {
	width:100%;
	margin:0 auto;
}
#gallery_list{
	display: flex;
	flex-wrap: wrap;
}

#gallery_list li{
	width: 31%;
	margin: 0 1% 40px;
	font-size: 0;
}
#gallery_list a.photo{
	display: block;
	position: relative;
    overflow: hidden;
	min-height: 0%;
	width: 100%;
	border: 1px solid #eee;
}
#gallery_list li a::before{
    content: '';
    display: block;
    padding-top: 80%;
}
#gallery_list li a::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 a 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: 1em;
	color: #333;
	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.12);
}
/*---------------------------------
	       /Base CSS 
---------------------------------*/

/*---------------------------------
	      Pager style
---------------------------------*/
.pager_link{
	text-align:right;
	padding:10px;
}
/*ページャーボタン*/
.pager_link a {
    border: 1px solid #aaa;
    border-radius: 5px 5px 5px 5px;
    color: #333;
    font-size: 12px;
    padding: 3px 7px 2px;
    text-decoration: none;
	margin:0 1px;
}
/*現在のページ、オーバーボタン*/
.pager_link a.current,.pager_link a:hover{
    background: #999;
    color: #FFFFFF;
}
.overPagerPattern{
	padding:0 2px ;	
}

@media (max-width: 670px){

#gallery_list li{
		width: 48%;
		margin: 0 1% 20px;   
}