.ov-epc-wrap {
	--ov-epc-gap: 20px;
	--ov-epc-columns: 4;
	position: relative;
	overflow: hidden;
}

.ov-epc-track {
	display: grid;
	gap: var(--ov-epc-gap);
	overflow-y: hidden;
	padding-bottom: 0;
	-webkit-overflow-scrolling: touch;
}

.ov-epc-slider-on .ov-epc-track {
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--ov-epc-gap) * (var(--ov-epc-columns) - 1))) / var(--ov-epc-columns));
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.ov-epc-slider-on .ov-epc-track::-webkit-scrollbar {
	width: 0;
	height: 0;
	display: none;
	background: transparent;
}

.ov-epc-slider-off .ov-epc-track {
	grid-template-columns: repeat(var(--ov-epc-columns), minmax(0, 1fr));
	overflow: hidden;
}

.ov-epc-card {
	display: flex;
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 12px;
	overflow: hidden;
	min-height: 170px;
}

.ov-epc-slider-on .ov-epc-card {
	scroll-snap-align: start;
}

.ov-epc-img-left {
	flex-direction: row;
}

.ov-epc-img-top {
	flex-direction: column;
}

.ov-epc-img-bottom {
	flex-direction: column-reverse;
}

.ov-epc-thumb-link {
	display: block;
	line-height: 0;
}

.ov-epc-img-left .ov-epc-thumb-link {
	width: 42%;
	flex: 0 0 42%;
}

.ov-epc-img-top .ov-epc-thumb-link,
.ov-epc-img-bottom .ov-epc-thumb-link {
	width: 100%;
	flex: 0 0 auto;
}

.ov-epc-thumb {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ov-epc-img-top .ov-epc-thumb,
.ov-epc-img-bottom .ov-epc-thumb {
	aspect-ratio: 16 / 9;
	height: auto;
}

.ov-epc-view-circle .ov-epc-thumb-link {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 14px 10px;
}

.ov-epc-view-circle.ov-epc-img-left .ov-epc-thumb-link {
	width: 120px;
	flex: 0 0 120px;
}

.ov-epc-view-circle .ov-epc-thumb {
	width: 90px;
	height: 90px;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
}

.ov-epc-view-square .ov-epc-thumb {
	aspect-ratio: 1 / 1;
	height: auto;
	border-radius: 0;
}

.ov-epc-view-flat .ov-epc-thumb {
	border-radius: 0;
}

.ov-epc-thumb-placeholder {
	background: #f3f3f3;
}

.ov-epc-content {
	flex: 1 1 auto;
	padding: 14px;
}

.ov-epc-title {
	font-size: 16px;
	line-height: 1.3;
	margin: 0 0 8px;
}

.ov-epc-title a {
	color: inherit;
	text-decoration: none;
}

.ov-epc-title a:hover {
	text-decoration: underline;
}

.ov-epc-meta {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
	gap: 2px;
	margin-bottom: 10px;
	font-size: 12px;
	color: #666666;
}

.ov-epc-date,
.ov-epc-author {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.ov-epc-meta-icon {
	display: inline-flex;
	width: 14px;
	height: 14px;
	flex: 0 0 14px;
	color: #666666;
}

.ov-epc-meta-icon svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
}

.ov-epc-excerpt {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: #565656;
}

.ov-epc-nav {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	pointer-events: none;
}

.ov-epc-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	border: 1px solid #d9d9d9;
	border-radius: 8px;
	background: #ffffff;
	color: #222222;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	pointer-events: auto;
	z-index: 2;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.ov-epc-btn:hover {
	background: #f6f6f6;
}

.ov-epc-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.ov-epc-prev {
	left: 8px;
}

.ov-epc-next {
	right: 8px;
}

.ov-epc-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	padding-top: 14px;
}

.ov-epc-dot {
	width: 10px;
	height: 10px;
	border: 0;
	border-radius: 50%;
	background: #c8c8c8;
	cursor: pointer;
	padding: 0;
}

.ov-epc-dot.is-active {
	background: #222222;
}

@media (max-width: 1024px) {
	.ov-epc-slider-on .ov-epc-track {
		grid-auto-columns: calc((100% - var(--ov-epc-gap)) / 2);
	}

	.ov-epc-slider-off .ov-epc-track {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.ov-epc-slider-on .ov-epc-track {
		grid-auto-columns: 85%;
	}

	.ov-epc-slider-off .ov-epc-track {
		grid-template-columns: 1fr;
	}

	.ov-epc-card {
		min-height: 0;
	}

	.ov-epc-img-left {
		flex-direction: column;
	}

	.ov-epc-img-left .ov-epc-thumb-link {
		width: 100%;
		flex-basis: auto;
	}

	.ov-epc-img-left .ov-epc-thumb {
		aspect-ratio: 16 / 9;
		height: auto;
	}

	.ov-epc-btn {
		width: 32px;
		height: 32px;
	}
}
