.marukoh-gal {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gap, 5px);
	margin: 0 auto 40px;
}
.marukoh-gal-item {
	background: #f0f0f0;
	display: block;
	flex-basis: calc(var(--r, 1.333) * var(--row-h, 150px));
	overflow: hidden;
	position: relative;
}
.marukoh-gal-item > span {
	display: block;
}
.marukoh-gal-item img {
	height: 100%;
	left: 0;
	object-fit: cover;
	position: absolute;
	top: 0;
	width: 100%;
}
.marukoh-gal.has-overlay .marukoh-gal-item:after {
	background: var(--overlay, rgba(0, 0, 0, 0.4)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-5-5M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 28px 28px no-repeat;
	content: "";
	inset: 0;
	opacity: 0;
	position: absolute;
	transition: opacity 0.2s ease;
}
.marukoh-gal.has-overlay .marukoh-gal-item:hover:after,
.marukoh-gal.has-overlay .marukoh-gal-item:focus:after {
	opacity: 1;
}
.marukoh-gal-filler {
	flex-grow: 1000000;
}
.marukoh-lb {
	align-items: center;
	background: #000;
	display: flex;
	inset: 0;
	justify-content: center;
	position: fixed;
	z-index: 100000;
}
.marukoh-lb[hidden] {
	display: none;
}
.marukoh-lb img {
	max-height: 86vh;
	max-width: 86vw;
	object-fit: contain;
}
.marukoh-lb-num {
	color: #e5e5e5;
	font-size: 14px;
	left: 16px;
	position: absolute;
	top: 14px;
}
.marukoh-lb-close,
.marukoh-lb-prev,
.marukoh-lb-next {
	background: transparent;
	border: 0;
	color: #fff;
	cursor: pointer;
	font-size: 44px;
	line-height: 1;
	padding: 8px 12px;
	position: absolute;
}
.marukoh-lb-close {
	right: 8px;
	top: 0;
}
.marukoh-lb-prev {
	left: 4px;
}
.marukoh-lb-next {
	right: 4px;
}
@media only screen and (max-width: 767px) {
	.marukoh-gal {
		--row-h: 100px !important;
	}
}
