/* omc-lightbox.css — 本文画像クリック拡大（responsive-lightbox 置換）
   Author: hpm:omanclub */

html.omc-lb-lock { overflow: hidden; }

#omc-lb {
	position: fixed;
	inset: 0;
	z-index: 2147483000; /* チャットFAB/固定フッター等より確実に上 */
	display: none;
}
#omc-lb.is-open { display: block; }

.omc-lb-backdrop {
	position: absolute;
	inset: 0;
	background-color: rgba(10, 10, 12, 0.92);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}

.omc-lb-stage {
	position: absolute;
	inset: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 5vh 6vw;
	box-sizing: border-box;
	pointer-events: none; /* 余白クリックは背景へ通す＝閉じる */
}

.omc-lb-img {
	max-width: 92vw;
	max-height: 82vh;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 4px;
	background-color: #fff;
	box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55);
	opacity: 0;
	transform: scale(0.985);
	transition: opacity 0.25s ease, transform 0.25s ease;
	pointer-events: auto;
	cursor: zoom-out;
}
.omc-lb-img.is-ready { opacity: 1; transform: none; }

.omc-lb-cap {
	margin-top: 14px;
	max-width: 82vw;
	color: #f3eede;
	font-size: 14px;
	line-height: 1.65;
	text-align: center;
	letter-spacing: 0.02em;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
	pointer-events: auto;
}

.omc-lb-count {
	position: absolute;
	top: 18px;
	left: 22px;
	color: #d9c98a;
	font-size: 13px;
	letter-spacing: 0.08em;
	pointer-events: none;
}

.omc-lb-close {
	position: absolute;
	top: 8px;
	right: 16px;
	width: 48px;
	height: 48px;
	padding: 0;
	font-size: 36px;
	line-height: 1;
	color: #fff;
	background: transparent;
	border: 0;
	cursor: pointer;
	opacity: 0.82;
	transition: opacity 0.2s, color 0.2s;
}
.omc-lb-close:hover { opacity: 1; color: #e3c766; }

.omc-lb-prev,
.omc-lb-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 56px;
	height: 84px;
	padding: 0;
	font-size: 30px;
	color: #fff;
	background-color: rgba(0, 0, 0, 0.28);
	border: 0;
	cursor: pointer;
	opacity: 0.75;
	transition: opacity 0.2s, background-color 0.2s, color 0.2s;
}
.omc-lb-prev { left: 8px; border-radius: 0 8px 8px 0; }
.omc-lb-next { right: 8px; border-radius: 8px 0 0 8px; }
.omc-lb-prev:hover,
.omc-lb-next:hover { opacity: 1; background-color: rgba(0, 0, 0, 0.5); color: #e3c766; }

/* 読み込みスピナー */
.omc-lb-spin {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 38px;
	height: 38px;
	margin: -19px 0 0 -19px;
	border: 3px solid rgba(255, 255, 255, 0.25);
	border-top-color: #e3c766;
	border-radius: 50%;
	opacity: 0;
	pointer-events: none;
	animation: omc-lb-spin 0.8s linear infinite;
}
#omc-lb.is-loading .omc-lb-spin { opacity: 1; }
@keyframes omc-lb-spin { to { transform: rotate(360deg); } }

@media (max-width: 600px) {
	.omc-lb-stage { padding: 4vh 3vw; }
	.omc-lb-img { max-width: 96vw; max-height: 76vh; }
	.omc-lb-prev, .omc-lb-next { width: 42px; height: 64px; font-size: 24px; }
	.omc-lb-close { top: 4px; right: 8px; width: 44px; height: 44px; font-size: 32px; }
	.omc-lb-cap { font-size: 13px; max-width: 92vw; }
	.omc-lb-count { top: 12px; left: 14px; }
}
