:root {
	--sticky-top: 88px;
	/* 헤더 높이에 맞춰 필요시 JS로 갱신 */
	--sticky-w: clamp(340px, 44vw, 640px);
	--col-gap: clamp(16px, 3vw, 40px);
	--page-gutter: clamp(16px, 5vw, 72px);
	--stage-bg: rgba(0, 0, 0, .92);
	--btn-bg: rgba(0, 0, 0, .55);
	--btn-size: 40px;
	--btn-radius: 999px;
}

/* ===== 이미지 뷰어 오버레이 ===== */
/* 간단한 모달 스타일 */
#iv-modal[hidden] {
	display: none;
}

#iv-modal {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 9999;
}

#iv-stage {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: var(--stage-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	touch-action: none;
	-webkit-user-select: none;
	user-select: none;
	isolation: isolate;
}

#iv-img {
	width: auto;
	height: auto;
	max-width: none;
	max-height: none;
	transform-origin: 50% 50%;
	will-change: transform;
	-webkit-user-drag: none;
	user-select: none;
	touch-action: none;
	cursor: grab;
	z-index: 1;
}

#iv-img:active {
	cursor: grabbing;
}

.iv-close {
	position: fixed;
	top: 12px;
	right: 12px;
	width: var(--btn-size);
	height: var(--btn-size);
	border: 0;
	border-radius: var(--btn-radius);
	background: var(--btn-bg);
	color: #fff;
	font-size: 24px;
	line-height: var(--btn-size);
	cursor: pointer;
	z-index: 10000;
}

.iv-close:focus-visible {
	outline: 2px solid #60a5fa;
	outline-offset: 2px;
}

.badge {
	display: inline-block;
	font-size: 12px;
	padding: 2px 8px;
	border-radius: 999px;
	background: #eef2ff;
	color: #4338ca;
	margin-left: 8px;
}