figure {
    margin: 1em 0;
}
figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4pt;
}
figure figcaption {
    /* margin-top: 0.5em; */
    text-align: right; 
    font-size: 8pt;
    color: #666;
}
.image-gallery {
    display: flex;
    overflow-x: auto;
    gap: 1em;

    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.image-gallery figure {
    flex: 0 0 100%;
    scroll-snap-align: center;
}
.image-gallery::-webkit-scrollbar {
    display: none;
}
.image-gallery {
    scrollbar-width: none;
}
.image-gallery::-webkit-scrollbar {
    display: none;
}

.image-gallery-wrapper {
    margin: 0;
}

/* コントロール全体 */
.gallery-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1em;
	margin: 0;
}

/* ボタン */
.gallery-controls .nav {
	background: #eee;
	border: none;
	padding: 0.3em 0.6em;
	cursor: pointer;
}

/* ドット */
.gallery-controls .dots {
	display: flex;
	gap: 6px;
}
.gallery-controls .dot {
	width: 8px;
	height: 8px;
	background: #ccc;
	border-radius: 50%;
}
.gallery-controls .dot.active {
	background: #333;
}

/* 枚数表示 */
.gallery-controls .counter {
	font-size: 0.9em;
	color: #666;
	margin-left: 0.5em;
}
