@charset "utf-8";

/* ===== 레이어팝업 ===== */

/* 스크롤 잠금 */
html.lp_scroll_lock,
html.lp_scroll_lock body {
	overflow: hidden;
}

/* 기본 숨김 : JS에서 쿠키 확인 후 노출 (쿠키 있으면 깜빡임 없음) */
.lp_popup {
	display: none;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 10000;
}

.lp_popup.lp_is_open {
	display: flex;
	align-items: center;
	justify-content: center;
	animation: lp_fade .2s ease-out;
}

/* 블랙 70% 배경 */
.lp_dim {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, .7);
}

/* 팝업 박스 */
.lp_wrap {
	position: relative;
	max-width: calc(100% - 32px);
	background: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
	outline: 0;
}

.lp_body {
	line-height: 0;
}

/* 이미지 : 화면 크기에 맞춰 비율 유지 축소 */
.lp_img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: calc(100vh - 120px);
	margin: 0 auto;
}

/* 하단 제어 영역 */
.lp_foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 12px 8px 16px;
	background: #1e2124;
	color: #fff;
	font-size: 15px;
	line-height: 1.4;
}

.lp_check_area {
	display: inline-flex;
	align-items: center;
}

.lp_check {
	width: 20px;
	height: 20px;
	margin: 0;
	cursor: pointer;
	accent-color: #256ef4;
	appearance: auto;
}

.lp_label {
	padding: 6px 8px; /* 클릭 영역 확보(24px 이상) */
	color: #fff;
	cursor: pointer;
}

.lp_close {
	min-width: 64px;
	min-height: 36px;
	padding: 0 14px;
	border: 1px solid #fff;
	border-radius: 4px;
	background: transparent;
	color: #fff;
	font-size: 15px;
	font-family: inherit;
	cursor: pointer;
}

.lp_close:hover {
	background: #fff;
	color: #1e2124;
}

/* 키보드 초점 표시 */
.lp_check:focus,
.lp_close:focus {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.lp_check:focus:not(:focus-visible),
.lp_close:focus:not(:focus-visible) {
	outline: none;
}

/* 화면에서 숨김, 스크린리더 노출 */
.lp_blind {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

@keyframes lp_fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* 동작 줄이기 설정 사용자 */
@media (prefers-reduced-motion: reduce) {
	.lp_popup.lp_is_open {
		animation: none;
	}
}

/* 모바일 */
@media (max-width: 480px) {
	.lp_foot {
		padding: 6px 8px 6px 12px;
		font-size: 14px;
	}
	.lp_img {
		max-height: calc(100vh - 100px);
	}
}
