/*＝＝＝並び替えボタンのCSS*/
.sort-btn{
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	padding:50px 20px;
	max-width: 770px;
    margin: 0 auto;
}

.sort-btn li{
	background:#eee;
list-style:none;
	border-radius:10px;
	cursor: pointer;
	padding: 10px 10px;
	margin:0 10px 15px;
}
.sort-btn li:nth-child(1){}

.sort-btn li.active{/*ボタンに現在地＝activeというクラス名がついたら背景色を変更*/
	background:#ccc;	
}

/*横幅が480px以下になった際の指定*/
@media only screen and (max-width: 480px) {
.sort-btn{
	justify-content: space-between;
	padding: 20px 0 10px;
}
	
.sort-btn li{
	width: 46%;
        margin: 0 0 10px 0;
        text-align: center;
        font-size: 0.8em;
        padding: 10px 4px;
	}
	.item h2 {
    font-size: 11px!important;
	margin-bottom: 5px !important;
	}
}

/*＝＝＝Muuriのレイアウトのための調整 */
.grid {
  position: relative;/*並び替えの基準点を指定*/
}

/*各画像の横幅などの設定*/
.item {
  text-align: center;
  display: block;
  position: absolute;
  width: 20%;/*横並びで3つ表示*/
  z-index: 1;
  list-style:none;
  font-size: 13px;
  line-height: 1.4em;
  height: 310px;
}
.item h2{
	font-size: 14px;
	margin-bottom: 10px;
}

/*内側のボックスの高さが崩れないように維持*/
.item-content {
  position: relative;
  width: 100%;
  height: 100%;
}

/*画像の横幅を100%にしてレスポンシブ化*/
.grid img{
	width:70%;
	height:auto;
	vertical-align: bottom;/*画像の下にできる余白を削除*/
}

/*横幅が768px以下になった際の指定*/
@media only screen and (max-width: 768px) {
.item {
  width: 33%;
  font-size: 0.7em;
  height: 200px;
}
}

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

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