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

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

.sort-btn li{
  list-style:none;
	border-radius:10px;
	cursor: pointer;
	padding: 0px;
	margin:0 1.5em 0 0;
}

.sort-btn li.active{
	font-weight: bold;
}

/*横幅が480px以下になった際の指定*/
@media only screen and (max-width: 480px) {
.sort-btn{
	justify-content: space-between;
}

.sort-btn li{
	width:48%;
	margin:0 0 10px 0;
	text-align:center;
	}
}

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

/*各画像の横幅などの設定*/
.item {
  display: block;
  position: absolute;
  width: 19.9999%;/*横並びで3つ表示*/
  z-index: 1;
	list-style:none;
}

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

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

/*横幅が768px以下になった際の指定*/
@media only screen and (max-width: 768px) {
	.item {
  	width: 49.999%;/*横並びで2つ表示*/
	}
	.item-content {
		padding: 10px;
	}
}

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

.fancybox-thumbs__list a:before {
    border: 6px solid #FA999B;
}
.fancybox-bg {
	background: var(--bg-color);
}
.fancybox-is-open .fancybox-bg {
	opacity: 1;
}

.fancybox-button {
	background: rgba(30,30,30,0);
}
.fancybox-button svg {
	display: none;
}

.fancybox-navigation .fancybox-button--arrow_right, .fancybox-navigation .fancybox-button--arrow_left {
	opacity: .1;
}
.fancybox-navigation .fancybox-button--arrow_right {
    background: url(../images/arrow-right.svg) center no-repeat;
		background-size: 50px;
    right: 1rem;
}
.fancybox-navigation .fancybox-button--arrow_left {
    background: url(../images/arrow-left.svg) center no-repeat;
		background-size: 50px;
    left: 1rem;
}
.fancybox-toolbar .fancybox-button--close {
    position: absolute;
    top: 5px;
    right: 5px;
    display: block;
    background: url(../images/close.svg) no-repeat top center;
    background-size: contain;
    width: 20px;
    height: 20px;
    text-indent: -9999px;
}

.fancybox-slide--image {
  overflow: hidden;
  padding: 10vh 0;
}

@media only screen and (max-width: 768px) {
	.fancybox-navigation {
  	display: none;
	}
	.fancybox-slide--image {
		padding: 0 30px;
	}
}
