@charset "utf-8";

/* 팝업 전체 그룹 */
.popup-group {
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 9999;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 24px;
	width: max-content;
	max-width: calc(100vw - 40px);
	transform: translate(-50%, -50%);
}

/* 개별 팝업 */
.popup-item { flex: 0 0 auto; }
.popup-box {
	width: 420px;
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

/* 이미지 */
.popup-content img {
	display: block;
	width: 100%;
	height: auto;
}
.popup-content {
	margin: 0;
	padding: 16px;
	text-align: center;
}
.popup-content p, h2 { margin: 0; }
.pop-title {
	font-size: 16px;
	color: #000;
	padding-bottom: 8px;
}
.pop-campus {
	font-size: 30px;
	font-weight: 600;
	color: #800020;
}
.pop-event {
	font-size: 24px;
	font-weight: 600;
	color: #000;
	padding-bottom: 16px;
}
.pop-date-wrap {
	display: grid;
	grid-auto-flow: column;
	gap: 16px;
}
.pop-date1 {
	display: grid;
}
.pop-date1 > p:first-child {
	padding: 4px 0px;
	background-color: #800020;
	border-radius: 5px;
	font-size: 20px;
	font-weight: 600;
	color: #FFFFFF;
}

.pop-date2 {
	display: grid;
}
.pop-date2 > p:first-child {
	padding: 4px 0px;
	background-color: #800020;
	border-top-left-radius: 5px;
	border-top-right-radius: 5px;
	font-size: 20px;
	font-weight: 600;
	color: #FFFFFF;
}
.pop-date2 p {
	font-size: 16px;
	color: #000;
}
.pop-time2 {
	padding: 8px;
	border: 1px solid #232323;
	border-bottom-left-radius: 5px;
	border-bottom-right-radius: 5px;
}
.pop-link {
	display: flex;
	justify-content: flex-end;
	margin-top: 14px;
	font-size: 14px;
}
.pop-link a {
	color: #800020;
}

/* 단 버튼 */
.popup-bottom {
	display: flex;
	border-top: 1px solid #ddd;
}
.popup-bottom button {
	flex: 1;
	height: 48px;
	border: 0;
	background: #fff;
	font-size: 14px;
	cursor: pointer;
}
.popup-bottom button + button { border-left: 1px solid #ddd; }

.popup-dim {
	position: fixed;
	inset: 0;
	z-index: 9998;
	background: rgba(0, 0, 0, 0.55);
}

.popup-group {
	z-index: 9999;
}

@media (max-width: 768px) {

	.popup-group {
		top: 20px;
		bottom: 20px;
		left: 50%;
		flex-direction: column;
		justify-content: flex-start;
		gap: 16px;
		width: calc(100% - 32px);
		max-width: 400px;
		overflow-y: auto;
		transform: translateX(-50%);
	}

	.popup-item { width: 100%; }
	.popup-box { width: 100%; }

}
