/*==================================================
 レイアウト
================================================== */
.change-images-wrap {
	margin: 0 0 50px;
	position: relative;
}

/* ビュー */
.change-images-view {
	margin: 0 0 20px;
	position: relative;
	z-index: 100;
}

/* サムネリスト */
.change-images-thumb {
	position: relative;
	z-index: 100;
}

/* キャプション */
.change-images-caption {
	width: calc(100% - 2rem);
	position: absolute;
	top: 1rem;
	left: 1rem;
	z-index: 200;
}

@media screen and (max-width: 768px) {
	.change-images-wrap {
		margin: 0 0 1.6rem;
	}

	.change-images-view,
	.change-images-thumb {
		width: 100%;
		margin: 0 0 .4rem;
	}
}

/*==================================================
 ビュー
================================================== */
.change-images-view ul {
	position: relative;
}

.change-images-view li {
	width: 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;
	position: relative;
}

.change-images-view li a {
	padding: 55.1% 0 0;
	display: block;
	position: relative;
}

.change-images-view li img {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	object-fit: cover;
}

/*==================================================
 サムネリスト
================================================== */
.change-images-thumb ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

.change-images-thumb li {
	width: calc((100% - 60px) / 4);
	margin: 0 20px 20px 0;
	position: relative;
}

.change-images-thumb li:nth-child(4n) {
	margin-right: 0;
}

.change-images-thumb li:hover {
	cursor: pointer;
}

.change-images-thumb li a {
	padding: 100% 0 0;
	display: block;
	position: relative;
}

.change-images-thumb li img {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	object-fit: cover;
}

@media screen and (max-width: 768px) {
	.change-images-thumb li:nth-child(n) {
		width: calc((100% - .4rem) / 2);
		margin: 0 .4rem .4rem 0;
	}

	.change-images-thumb li:nth-child(2n) {
		margin-right: 0;
	}
}

/* ボーダー（ホバー）
-------------------------------------------------- */
.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:hover:after {
	border-width: 5px;
}

/* ボーダー（アクティブ）
-------------------------------------------------- */
.change-images-thumb li.active:after {
	border-width: 5px;
	border-color: rgba(251,158,68,.7);
}


/*==================================================
 キャプション
================================================== */
.change-images-caption li {
	padding: 10px;
	color: #fff;
	background: rgba(0,0,0,.5);
	box-shadow: 2px 2px 2px rgba(0,0,0,.1);
	position: absolute;
	top: 0;
	left: 0;
	z-index: 30;
	opacity: 0;
}

.change-images-caption li.active {
	opacity: 1;
}
