/**
 * 拡大表示（共通）— ギャラリー（cabf/gallery）とお客様の声（cabf/voice-card のスクショ）で使う
 *
 * 開くと body 直下に移すので、ブロックの CSS の範囲（.cabf-gallery など）の外で効くようにしてある。
 * クラス名はギャラリーで先に作ったときのまま（cabf-gallery-lightbox）。
 */

.cabf-gallery-lightbox[hidden] {
	display: none !important;
}

.cabf-gallery-lightbox {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: grid;
	place-items: center;
	margin: 0;
	padding: clamp(18px, 4vw, 52px);
	background: rgba(18, 22, 28, .88);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.cabf-gallery-lightbox .cabf-gallery-lightbox__image {
	position: relative;
	z-index: 1;
	display: block;
	width: auto;
	height: auto;
	max-width: min(1180px, 94vw);
	max-height: 88vh;
	margin: 0;
	border-radius: 18px;
	box-shadow: 0 28px 80px rgba(0, 0, 0, .42);
	object-fit: contain;
}

.cabf-gallery-lightbox .cabf-gallery-lightbox__close {
	position: fixed;
	top: max(18px, env(safe-area-inset-top));
	right: max(18px, env(safe-area-inset-right));
	z-index: 2;
	display: grid;
	width: 48px;
	height: 48px;
	place-items: center;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .65);
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	box-shadow: none;
	color: #fff;
	cursor: pointer;
	font-size: 30px;
	line-height: 1;
}

body.cabf-gallery-lightbox-open {
	overflow: hidden;
}
