/* 팝업 스타일 */
.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;
	width: 455px;
	height: 575px; /* 버튼 공간 확보를 위해 조정 */
	padding: 0;
	margin: 0;
}

.popup_content img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover; /* 이미지를 꽉 채움 (양옆 여백 제거) */
	background: white;
}

/* 참가신청 바로가기 버튼 영역 */
.popup_apply_btn {
	background: #f5f5f5;
	padding: 0;
	border-top: 1px solid #ddd;
	border-bottom: 1px solid #ddd;
}

.apply_button {
	display: block;
	width: 100%;
	padding: 18px 20px;
	background: linear-gradient(135deg, #ff1493 0%, #c71585 100%);
	color: white !important;
	text-decoration: none;
	font-size: 18px;
	font-weight: bold;
	text-align: center;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
}

.apply_button:hover {
	background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
	transform: scale(1.02);
	box-shadow: 0 4px 15px rgba(255, 20, 147, 0.4);
	color: white !important;
	text-decoration: none;
}

.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;
}

/* 개별 팝업 위치 및 크기 (30% 축소: 650px → 455px) */
/* 두 팝업을 붙여서 나란히 배치 */
#popup_poster {
	top: 80px;
	left: 50%;
	transform: translateX(-455px); /* 왼쪽 팝업: -455px (팝업 전체 너비) */
	width: 455px;
}

/* 왼쪽 팝업 - 버튼 없이 높이만 맞춤 (더미 영역 추가) */
#popup_poster .popup_content {
	width: 455px;
	height: 631px; /* 오른쪽과 동일한 전체 높이 (575px + 56px 버튼) */
	padding: 0;
	margin: 0;
}

#popup_poster .popup_content img {
	width: 100%;
	height: 100%;
	object-fit: cover; /* 이미지를 꽉 채움 */
	image-rendering: -webkit-optimize-contrast;
	image-rendering: crisp-edges;
}

#popup_rep {
	top: 80px;
	left: 50%;
	transform: translateX(0); /* 오른쪽 팝업: 0px (중앙부터 시작) */
	width: 455px;
}

#popup_rep .popup_content {
	width: 455px;
	height: 575px;
	padding: 0;
	margin: 0;
}

#popup_rep .popup_content img {
	width: 100%;
	height: 100%;
	object-fit: cover; /* 이미지를 꽉 채움 */
	image-rendering: -webkit-optimize-contrast;
	image-rendering: crisp-edges;
}

/* 반응형 처리 (30% 축소 적용) */
@media screen and (max-width: 1500px) {
	#popup_poster {
		left: 20px;
		transform: none;
		max-width: 420px;
	}
	#popup_rep {
		left: auto;
		right: 20px;
		transform: none;
		max-width: 420px;
	}
}

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

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

@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%;
	}
}

