/* SH Fond — Эпоха */

.epoha-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 28px;
}

.epoha-filter {
	display: inline-block;
	padding: 8px 16px;
	border: 1px solid #242628;
	border-radius: 2px;
	color: #242628;
	text-decoration: none;
	font-size: 14px;
	line-height: 1.3;
	transition: background 0.15s ease, color 0.15s ease;
}

.epoha-filter:hover,
.epoha-filter.is-active {
	background: #242628;
	color: #fff;
}

.epoha-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
	margin-bottom: 32px;
}

.epoha-card {
	margin: 0;
	border: 1px solid #e8e8e8;
	border-radius: 2px;
	background: #fff;
	overflow: hidden;
	transition: box-shadow 0.15s ease;
}

.epoha-card:hover {
	box-shadow: 0 4px 16px rgba(36, 38, 40, 0.12);
}

.epoha-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
	height: 100%;
}

.epoha-card__media {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #f4f4f4;
	overflow: hidden;
}

.epoha-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.epoha-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 48px;
	font-weight: 700;
	color: #999;
	text-transform: uppercase;
}

.epoha-card__placeholder--film {
	background: linear-gradient(145deg, #3a3d40 0%, #242628 100%);
}

.epoha-card__placeholder--film::after {
	content: '';
	display: block;
	width: 0;
	height: 0;
	margin-left: 6px;
	border-style: solid;
	border-width: 14px 0 14px 24px;
	border-color: transparent transparent transparent rgba(255, 255, 255, 0.9);
}

.epoha-card__badge {
	position: absolute;
	left: 10px;
	top: 10px;
	padding: 4px 10px;
	background: #242628;
	color: #fff;
	font-size: 11px;
	line-height: 1.3;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.epoha-card__body {
	padding: 16px 18px 18px;
}

.epoha-card__title {
	font-size: 18px;
	line-height: 1.35;
	margin: 0 0 8px;
	color: #242628;
}

.epoha-card__excerpt {
	font-size: 14px;
	line-height: 1.5;
	color: #666;
	margin: 0 0 12px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.epoha-card__cta {
	font-size: 13px;
	font-weight: 600;
	color: #242628;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.epoha-empty {
	color: #666;
}

.epoha-single__type {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #666;
	margin: 0 0 8px;
}

.epoha-single__thumb {
	margin: 0 0 24px;
}

.epoha-single__thumb img {
	width: 100%;
	height: auto;
}

.epoha-single__video {
	margin: 0 0 24px;
}

.epoha-single-page .article {
	width: 100%;
	max-width: none;
}

.epoha-archive-page .article {
	width: 100%;
	max-width: none;
}

.epoha-single__video iframe {
	max-width: 100%;
}

.epoha-single__actions {
	margin: 20px 0 0;
}

.epoha-btn {
	display: inline-block;
	padding: 10px 20px;
	background: #242628;
	color: #fff !important;
	text-decoration: none;
	border-radius: 2px;
	font-size: 14px;
}

.epoha-btn--outline {
	background: transparent;
	color: #242628 !important;
	border: 1px solid #242628;
}

.epoha-back {
	margin-top: 32px;
	padding-top: 20px;
	border-top: 1px solid #e8e8e8;
}

.epoha-back a {
	color: #242628;
}

.epoha-card__count {
	font-size: 14px;
	line-height: 1.5;
	color: #666;
	margin: 0 0 12px;
}

.epoha-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
	margin: 0 0 28px;
}

.epoha-gallery__item {
	margin: 0;
}

.epoha-gallery__link {
	display: block;
	border-radius: 2px;
	overflow: hidden;
	background: #f4f4f4;
}

.epoha-gallery__link img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
}

.epoha-gallery__caption {
	font-size: 13px;
	line-height: 1.4;
	color: #555;
	margin-top: 8px;
}

.epoha-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(0, 0, 0, 0.88);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
}

.epoha-lightbox[hidden] {
	display: none !important;
}

.epoha-lightbox__img {
	max-width: min(100%, 1100px);
	max-height: calc(100vh - 120px);
	width: auto;
	height: auto;
	object-fit: contain;
}

.epoha-lightbox__caption {
	color: #fff;
	font-size: 15px;
	line-height: 1.5;
	margin: 16px 0 0;
	max-width: 900px;
	text-align: center;
}

.epoha-lightbox__close {
	position: absolute;
	top: 16px;
	right: 20px;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 40px;
	line-height: 1;
	cursor: pointer;
}

body.epoha-lightbox-open {
	overflow: hidden;
}

@media (max-width: 768px) {
	.epoha-grid {
		grid-template-columns: 1fr;
	}
}
