/* index 写真ビューワー制御用 */
.index_container {
	width: 100%;
	max-width: 1300px; /* 少し幅を広げました */
	padding: 20px;
	box-sizing: border-box;
}
.index_gallery {
	display: grid;
	/* 縦長なので、1列の最小幅を少し狭める(150px)ときれいに並びます */
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 20px;
}
/* ページ番号付与 */
.modal_counter {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #000; /* オレンジのテーマカラーに合わせる */
    font-family: 'Arial', sans-serif;
    font-size: 1.0rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    z-index: 2003;
	text-shadow: 
	        1px  1px 0 #fff,
	       -1px  1px 0 #fff,
	        1px -1px 0 #fff,
	       -1px -1px 0 #fff,
	        0px  1px 0 #fff,
	        0px -1px 0 #fff,
	       -1px  0px 0 #fff,
	        1px  0px 0 #fff;
}
/* 縦長16:9（9:16）の設定 */
.index_card {
	background: #fff;
	aspect-ratio: 9 / 16; /* ここを9:16に変更 */
	border-radius: 15px;
	overflow: hidden;
	box-shadow: 0 8px 20px rgba(216, 138, 100, 0.15);
	cursor: pointer;
	transition: all 0.3s ease;
	border: 4px solid #fff;
}
.index_card:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 25px rgba(216, 138, 100, 0.25);
}
.index_card img {
	width: 100%;
	height: 100%;
	object-fit: cover; /* 枠いっぱいに収まるように切り抜き */
}
/* モーダル部分（変更なし） */
.index_modal {
	display: none;
	position: fixed;
	z-index: 1000;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: rgba(255, 240, 225, 0.95); 
	backdrop-filter: blur(6px);
	justify-content: center;
	align-items: center;
}
.index_modal_content {
	max-width: 90%;
	max-height: 90%;
	object-fit: contain;
	border-radius: 10px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.1);
	animation: fadeIn 0.3s;
}
@keyframes fadeIn {
	from { opacity: 0; transform: scale(0.95); }
	to { opacity: 1; transform: scale(1); }
}
.index_nav_btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	color: #ff9d6c; 
	font-size: 60px;
	font-weight: bold;
	cursor: pointer;
	padding: 20px;
	user-select: none;
	z-index: 2001;
}
.index_close_btn {
	position: absolute;
	top: 20px;
	right: 30px;
	color: #ff9d6c;
	font-size: 45px;
	cursor: pointer;
	z-index: 2002;
}
.index_prev { left: 5px; }
.index_next { right: 5px; }
