/* 팝업 스타일 */
.main_popup {
	position: fixed;
	display: none;
	z-index: 99999;
	background: #fff;
	border: 2px solid #333;
	box-shadow: 5px 5px 20px rgba(0,0,0,0.3);
	border-radius: 5px;
	overflow: hidden;
	cursor: move;
}

.popup_header {
	background: #f5f5f5;
	padding: 5px 10px;
	border-bottom: 1px solid #ddd;
	cursor: move;
	font-size: 12px;
	color: #666;
	text-align: right;
}

.popup_content {
	position: relative;
	overflow: hidden;
}

.popup_content img {
	display: block;
	width: 100%;
	height: auto;
}

.popup_footer {
	background: #f5f5f5;
	padding: 10px;
	border-top: 1px solid #ddd;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.popup_footer label {
	font-size: 12px;
	color: #333;
	cursor: pointer;
	user-select: none;
}

.popup_footer input[type="checkbox"] {
	margin-right: 5px;
	cursor: pointer;
}

.popup_close_btn {
	background: #333;
	color: #fff;
	border: none;
	padding: 5px 15px;
	cursor: pointer;
	font-size: 12px;
	border-radius: 3px;
	transition: background 0.3s;
}

.popup_close_btn:hover {
	background: #555;
}

/* 개별 팝업 위치 및 크기 */
#popup_poster {
	top: 80px;
	left: 100px;
	width: 650px;
}

#popup_poster .popup_content img {
	max-width: 100%;
	height: auto;
	image-rendering: -webkit-optimize-contrast;
	image-rendering: crisp-edges;
}

#popup_rep {
	top: 80px;
	right: 100px;
	left: auto;
	width: 650px;
}

#popup_rep .popup_content img {
	max-width: 100%;
	height: auto;
	image-rendering: -webkit-optimize-contrast;
	image-rendering: crisp-edges;
}

/* 반응형 처리 */
@media screen and (max-width: 1500px) {
	#popup_poster {
		left: 20px;
		margin-left: 0;
		max-width: 600px;
	}
	#popup_rep {
		left: auto;
		right: 20px;
		margin-left: 0;
		max-width: 600px;
	}
}

@media screen and (max-width: 1200px) {
	#popup_poster {
		max-width: 500px;
	}
	#popup_rep {
		max-width: 500px;
	}
}

@media screen and (max-width: 1024px) {
	#popup_poster {
		max-width: 450px;
	}
	#popup_rep {
		max-width: 450px;
	}
}

@media screen and (max-width: 768px) {
	.main_popup {
		position: fixed !important;
		top: 50% !important;
		left: 50% !important;
		transform: translate(-50%, -50%);
		max-width: 90% !important;
	}
	#popup_poster .popup_content img,
	#popup_rep .popup_content img {
		max-width: 100%;
	}
}

