/* 자유게시판 본문 이미지 전체화면 보기 + 핀치/팬 확대 */
.free-board-img-lb {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: center;
	background: rgba(0, 0, 0, 0.92);
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.2s ease, visibility 0.2s ease;
	padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}

.free-board-img-lb.is-open {
	visibility: visible;
	opacity: 1;
}

.free-board-img-lb__toolbar {
	flex: 0 0 auto;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 8px;
	padding: 8px 10px 4px;
	min-height: 44px;
}

.free-board-img-lb__zoom-in,
.free-board-img-lb__zoom-out {
	appearance: none;
	border: 0;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	min-width: 44px;
	height: 44px;
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
}

.free-board-img-lb__zoom-in:hover,
.free-board-img-lb__zoom-in:focus,
.free-board-img-lb__zoom-out:hover,
.free-board-img-lb__zoom-out:focus {
	background: rgba(255, 255, 255, 0.28);
	outline: none;
}

.free-board-img-lb__close {
	appearance: none;
	border: 0;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 28px;
	line-height: 1;
	width: 44px;
	height: 44px;
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.free-board-img-lb__close:hover,
.free-board-img-lb__close:focus {
	background: rgba(255, 255, 255, 0.28);
	outline: none;
}

.free-board-img-lb__stage {
	flex: 1 1 auto;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 8px 16px;
	min-height: 0;
	touch-action: none;
	-webkit-user-select: none;
	user-select: none;
}

.free-board-img-lb__zoomer {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 0;
	transform-origin: center center;
	will-change: transform;
}

.free-board-img-lb__img {
	display: block;
	flex: 0 1 auto;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: calc(100vh - 72px);
	margin: auto;
	object-fit: contain;
	user-select: none;
	-webkit-user-drag: none;
	pointer-events: auto;
}

@media (max-width: 480px) {
	.free-board-img-lb__img {
		max-height: calc(100dvh - 72px);
	}
}
