/*==================================================
ギャラリーのためのcss
===================================*/

/*＝＝＝並び替えボタンのCSS*/
.sort-btn{
	display: flex;
	justify-content: flex-start;
	flex-wrap: wrap;
	padding:50px 20px;
}

.sort-btn li{
	background:#eee;
    list-style:none;
	border-radius:10px;
	cursor: pointer;
	padding: 10px;
	margin:10px;
}

.sort-btn li:hover {
    background-color: #3c54a3;
    color: white;
}

.sort-btn li.active {
    background-color: #3c54a3;
    color: white;
}

/*横幅が480px以下になった際の指定*/
@media only screen and (max-width: 480px) {
.sort-btn{
	justify-content: space-between;
    padding: 50px 5px;
}
	
.sort-btn li{
	width:48%;
	margin:0 0 10px 0;
	text-align:center;
    display: flex;
    align-items: center;
    justify-content: center;
	}	
}

/*＝＝＝Muuriのレイアウトのための調整 */

.grid {
    display: flex;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
    position: relative;/*並び替えの基準点を指定*/
    padding: 0;
    height: auto !important;
}

.inner {
    transform: none !important;
    transition: none !important;
    width: 48%;
    height: auto !important;
}

@media screen and  (max-width:767.98px) {
.grid {
    display: flex;
    justify-content: space-between;
    width: 100%;
    position: relative;
    padding: 0;
    flex-direction: row;
    height: auto !important;
}
    .inner {
    margin-bottom: 30px;
    padding-right: 0;
    height: auto !important;
    width: 100%;
}
}


/*＝＝＝fancyboxサムネイル背景と画像選択時の枠線の指定*/
.fancybox-thumbs {
    background: transparent!important;
}

.fancybox-thumbs__list a:before {
    border: 6px solid #FA999B;
}