/* 캘린더, 모달 팝업, 이벤트 카드 스타일 */

/* 캘린더 컨테이너 */
.ep-ec-calendar {
	max-width: 100%;
}

/* 모달 팝업 */
.ep-ec-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.ep-ec-modal[hidden] {
	display: none;
}

.ep-ec-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.ep-ec-modal__box {
	position: relative;
	background: #fff;
	max-width: 640px;
	width: 100%;
	max-height: 85vh;
	overflow-y: auto;
	border-radius: 8px;
	padding: 28px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.ep-ec-modal__close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #666;
}

.ep-ec-modal__thumb img {
	width: 100%;
	height: auto;
	border-radius: 6px;
	margin-bottom: 16px;
}

.ep-ec-modal__title {
	margin: 0 0 8px;
}

.ep-ec-modal__date {
	margin: 0 0 4px;
	font-weight: 600;
}

.ep-ec-modal__location {
	color: #555;
	font-size: 0.9em;
	margin: 0 0 16px;
}

.ep-ec-modal__link {
	display: inline-block;
	margin-top: 16px;
	font-weight: 600;
}

body.ep-ec-modal-open {
	overflow: hidden;
}

/* 이벤트 카드 */
.ep-ec-card {
	display: flex;
	gap: 16px;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	background: #fff;
}

.ep-ec-card__thumb {
	flex: 0 0 140px;
}

.ep-ec-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ep-ec-card__body {
	padding: 16px;
	flex: 1;
}

.ep-ec-card__title {
	margin: 0 0 6px;
	font-size: 1.1em;
}

.ep-ec-card__date {
	font-size: 0.85em;
	font-weight: 600;
	color: #333;
}

.ep-ec-card__location {
	font-size: 0.85em;
	color: #777;
	margin-bottom: 6px;
}

.ep-ec-card__excerpt {
	margin: 8px 0 0;
	font-size: 0.9em;
	color: #555;
}

/* 에디터 미리보기용 카드 */
.ep-ec-card--editor {
	cursor: default;
}

@media (max-width: 600px) {
	.ep-ec-card {
		flex-direction: column;
	}
	.ep-ec-card__thumb {
		flex-basis: auto;
	}
}

/* 이벤트에 연결된 글 목록 */
.ep-ec-linked {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ep-ec-linked__item {
	margin: 0;
	border-bottom: 1px solid #eceef1;
}

.ep-ec-linked__item a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	text-decoration: none;
	color: inherit;
}

.ep-ec-linked__thumb {
	flex: 0 0 56px;
}

.ep-ec-linked__thumb img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 6px;
	display: block;
}

.ep-ec-linked__title {
	font-weight: 600;
}

.ep-ec-linked__item a:hover .ep-ec-linked__title {
	text-decoration: underline;
}
