/* 게시글 본문·KBoard 본문·목록 썸네일 — 클릭 시 확대 힌트 */
article .entry-content img,
#kboard-document .content-view img,
#kboard-document .kboard-content img,
.kboard-content .content-view img,
[id^="kboard-"][id$="-list"] img {
	cursor: zoom-in;
}

/* 렌트/부동산 등 background-image 메인 사진 (썸네일 .kh-re-gallery__thumb 은 슬라이드 전환용) */
#kboard-document .slide_img,
#kboard-document .kh-re-gallery__main-img {
	cursor: zoom-in;
}

#kh-img-lightbox-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}

#kh-img-lightbox-overlay[hidden] {
	display: none !important;
}

.kh-img-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.82);
	cursor: zoom-out;
}

.kh-img-lightbox__inner {
	position: relative;
	z-index: 1;
	max-width: min(96vw, 1400px);
	max-height: 92vh;
	margin: auto;
	touch-action: pan-y;
}

.kh-img-lightbox__img {
	display: block;
	max-width: 100%;
	max-height: 88vh;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 4px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.kh-img-lightbox__close {
	position: absolute;
	top: -12px;
	right: -12px;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #111;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.kh-img-lightbox__close:hover,
.kh-img-lightbox__close:focus-visible {
	background: #f3f3f3;
	outline: 2px solid #1565c0;
	outline-offset: 2px;
}

.kh-img-lightbox__prev,
.kh-img-lightbox__next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: #111;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
	z-index: 2;
}

.kh-img-lightbox__prev {
	left: -8px;
}

.kh-img-lightbox__next {
	right: -8px;
}

.kh-img-lightbox__prev:hover,
.kh-img-lightbox__prev:focus-visible,
.kh-img-lightbox__next:hover,
.kh-img-lightbox__next:focus-visible {
	background: #fff;
	outline: 2px solid #1565c0;
	outline-offset: 2px;
}

.kh-img-lightbox__counter {
	position: absolute;
	bottom: 8px;
	left: 50%;
	transform: translateX(-50%);
	padding: 4px 12px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 13px;
	line-height: 1.4;
	white-space: nowrap;
	pointer-events: none;
	z-index: 2;
}

@media (max-width: 600px) {
	.kh-img-lightbox__prev {
		left: 4px;
	}
	.kh-img-lightbox__next {
		right: 4px;
	}
	.kh-img-lightbox__counter {
		font-size: 12px;
	}
}

body.kh-img-lightbox-open {
	overflow: hidden;
}
