@charset "UTF-8";

/*==================================================
 レイアウト
================================================== */
.change-images-wrap {
	margin: 0;
	overflow: hidden;
	position: relative;
}

.change-images-wrap:after {
	content: " ";
	display: block;
	clear: both;
}

/* キャプション */
.change-images-caption {
	display: none;
}

/*==================================================
 ビュー
================================================== */
.change-images-view {
	width: calc((100% - 40px) / 2);
	float: left;
	margin-bottom: 10px;
}

.change-images-view ul {
	padding: 66.66% 0 0; /* 黄金比 */
	position: relative;
}

.change-images-view li {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 100;
	opacity: 0;
	transition: All 0.4s ease;
}

.change-images-view li.active {
	opacity: 1;
	z-index: 200;
}

.change-images-view li a {
	height: 100%;
	display: block;
}

@media screen and (max-width: 768px) {
	.change-images-view {
		width: auto;
		float: none;
	}
}


/*==================================================
 サムネリスト
================================================== */
.change-images-thumb {
	font-size: 0;
	letter-spacing: 0;
	width: calc((100% - 40px) / 2);
	float: right;
}

@media screen and (min-width:769px) {
	.change-images-thumb {
		/* overflow-y */
		overflow-y: auto;
		max-height: 347px;
		/* overflow-y */
	}
	.change-images-thumb > .js-changeImages {
	position: relative;
	background: #fff;
	padding: 20px
	/* overflow-yとの選択
	top: 50%;
	transform: translate(0, -50%);*/
	}
}

	.change-images-thumb li {
		width: calc((100% - 2rem) / 3);
		margin: 0 1rem 1rem 0;
		display: inline-block;
		vertical-align: top;
		position: relative;
		box-sizing: border-box;
	}
	.change-images-thumb li:nth-child(3n) {
		margin-right: 0;
	}
@media screen and (max-width: 768px) {
	.change-images-thumb {
		width: auto;
		float: none;
	}
}

/* ボーダー（ホバー）
-------------------------------------------------- */
.change-images-thumb li a {
	pointer-events: none;
	cursor: default;
}
.change-images-thumb li img {
	pointer-events: initial;
	cursor: pointer;
}
.change-images-thumb li:after {
	content: '';
	width: 100%;
	height: 100%;
	border: 1px solid rgba(255,255,255,.5);
	box-sizing: border-box;
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 10;
	transition: All 0.4s ease;
	pointer-events: none;
}

/* ボーダー（アクティブ）
-------------------------------------------------- */
.change-images-thumb li a:hover {
	filter: alpha(opacity=100);
	-moz-opacity: 1;
	opacity: 1;
}
.change-images-thumb li img {
	border: 5px solid rgba(154,123,66,0);
}
.change-images-thumb li.active img {
	border: 5px solid rgba(154,123,66,.7);
}


/*==================================================
 キャプション
================================================== */
.change-images-caption li {
	max-width: 80%;
	padding: 10px;
	color: #fff;
	background: rgba(0,0,0,.5);
	box-shadow: 2px 2px 2px rgba(0,0,0,.1);
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 30;
	opacity: 0;
}

.change-images-caption li.active {
	opacity: 1;
}


/*==================================================
 画像の中央寄せ
================================================== */
.change-image-trim {
	width: 100%;
	display: block;
	position: relative;
	overflow: hidden;
}

.change-image-trim img {
	max-width: 100%;
	max-height: 100%;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translateX(-50%) translateY(-50%);
}

.change-image-trim img.horizontal {
	max-width: 100%;
	max-height: 100%;
}

/* サムネ
-------------------------------------------------- */
.change-images-thumb .change-image-trim {
	height: 0;
	padding: 66.66% 0 0; /* 黄金比 */

}

/* ビュー
-------------------------------------------------- */
.change-images-view .change-image-trim {
	height: 100%;
}