@charset "utf-8";
/* CSS Document */
.gasou-grid-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

.gasou-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.grid-aitemu img {
	width: 100%;
	object-fit: cover;
	display: block;
	cursor: pointer;
	border-radius: 4px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.grid-aitemu img:hover {
	transform: scale(1.03);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.load-more-btn {
	display: block;
	margin: 20px auto 40px;
	padding: 10px 20px;
	background-color: rgb(36, 55, 66);
	color: white;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-size: 16px;
	transition: background-color 0.3s;
}

.load-more-btn:hover {
	background-color: rgb(33, 37, 41);
}

.grid-aitemu.kakusu {
	display: none;
}

/* --- 燈箱 (Modal) 樣式 --- */
.arubamu-moda {
	position: fixed;
	z-index: 1080;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	display: flex; 
	display: none;
	align-items: center;
	justify-content: center;
	background-color: rgba(0, 0, 0, 0.9);
}

.modal-kontentsu {
	position: relative;
	margin: 0;
	padding: 0;
	width: 90%;
	max-width: 900px;
	height: 95vh; 
	display: flex;
	flex-direction: column; 
}

.tojiru {
	color: #fff;
	position: absolute;
	top: 15px;
	right: 35px;
	font-size: 40px;
	font-weight: bold;
	opacity: 0.8;
	transition: 0.3s;
	z-index: 1100;
	cursor: pointer;
}

/* --- 投影片區域樣式 --- */
.slides-rappa {
	flex: 1; 
	overflow: hidden; 
	position: relative;
	display: flex; 
	align-items: stretch; 
	min-height: 200px;
}

#modalSlidesContainer {
	flex: 1; 
	position: relative;
}

.bokuSlides {
	display: none;
	position: absolute; 
	top: 0;
	left: 0;
	width: 100%;
	height: 100%; 
	display: flex;
	align-items: center; 
	justify-content: center;
}

.bokuSlides img {
	max-width: 100%;
	max-height: 100%; 
	object-fit: contain; 
}

/* 導航箭頭 (prev/next) 容器 */
.slide-nav-botan {
	width: 60px; 
	flex-shrink: 0;
	display: grid;
	align-items: center;
	justify-content: center;
	background-color: rgba(0, 0, 0, 0.4);
	cursor: pointer;
	transition: background-color 0.3s;
}

.slide-nav-botan:hover {
	background-color: rgba(0, 0, 0, 0.8);
}

.slide-nav-botan a {
	color: white !important;
	font-weight: bold;
	font-size: 30px;
	padding: 16px;
	user-select: none;
	text-decoration: none;
}

/* 圖片編號 (左上角系統編號) */
.numbertext {
	position: absolute;
	top: 10px;
	left: 10px;
	color: white;
	background-color: rgba(0, 0, 0, 0.6);
	padding: 5px 10px;
	border-radius: 3px;
	z-index: 15;
}

/* --- 圖片標題 (Caption) 區域 --- */
.titoru-container {
	flex-shrink: 0; 
	background-color: #222;
	padding: 10px 16px;
	color: white;
	display: flex; 
}

.titoru-left {
	flex: 1; 
}

.titoru-right {
	flex-basis: 8rem; 
	text-align: left; 
	font-size: 0.9rem;
	line-height: 1.5;
}

/* --- 縮圖導覽列容器 --- */
.samuneiru-rappa {
	flex-shrink: 0; 
	position: relative; 
	background-color: #333;
	padding: 10px; 
	max-width: 100%;
	margin: 0 auto;
	display: flex;
	align-items:stretch;
	gap:10px;
}

.modal-samuneiru {
	display: flex;
	flex-wrap: nowrap; 
	overflow-x: hidden; 
	scroll-behavior: smooth;
	justify-content: flex-start;
	flex: 1; 
}

.modal-samuneiru .sanpuru {
	width: 80px;
	height: 60px; 
	margin: 5px; 
	flex-shrink: 0; 
	object-fit: cover;
	opacity: 0.6;
	cursor: pointer;
}

.modal-samuneiru .sanpuru.active {
	opacity: 1;
	border: 2px solid white;
}


.mae-samuneiru, .tsugi-samuneiru {
	cursor: pointer;
	width: 30px; 
	text-align: center;
	color: white;
	font-size: 20px;
	font-weight: bold;
	background-color: rgba(0, 0, 0, 0.7);
	z-index: 10;
	display: grid;
	align-items:center;
	transition: background-color 0.3s;
}

.mae-samuneiru:hover, .tsugi-samuneiru:hover {
	background-color: rgba(0, 0, 0, 1);
}

.mae-samuneiru a, .tsugi-samuneiru a {
	text-decoration: none;
	color: white;
	display: block;
}


/* --- 媒體查詢 --- */
@media screen and (max-width: 800px) {
	.gasou-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media screen and (max-width: 600px) {
	.gasou-grid {
		grid-template-columns: repeat(1, 1fr);
	}
	.modal-kontentsu {
		width: 100%;
	}
}	

