/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */


figure.gallery-item {
	text-align: center;
}
.gallery-item img{
	margin: 15px 0;
	border: 1px solid #ffffff;
}

.related-posts-container {
	padding: 1.5rem;
	background-color: #0a0a12;
	border-radius: 0px;
}
.related-posts-title {
	font-size: 24px;
	margin-bottom: 20px;
	text-align: left;
}
.related-posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 15px;
}
.related-post-item {
	text-align: left;
}
.related-post-thumb {
	aspect-ratio: 5 / 7;
	width: 100%;
	overflow: hidden;
}
.related-post-thumb img.related-thumb-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0px;
}
.related-post-title {
	font-size: 16px;
	margin-top: 8px;
}

/* =================================================
   1. MOBILE‑FIRST: одноколоночная структура
   ================================================= */
   .custom-post-hero {
	margin-bottom: 1rem;
}

.custom-post-thumbnail img {
	width: 100%;
	aspect-ratio: 5 / 7;
	object-fit: cover;
	border-radius: 0;
	margin-bottom: 0;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.custom-post-meta {
	background-color: #0a0a12;
	padding: 1.5rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
	border-radius: 0;
}

/* 📏 Явный отступ между абзацами и читаемость */
.custom-post-meta p {
	margin: 0.5rem 0;
	line-height: 1.8;
	overflow-wrap: break-word;
	word-break: normal;
}

.custom-post-meta p span.dashicons {
	float: left;
	margin-right: 8px;
	font-size: 1.2rem;
}

.custom-post-meta p::after {
	content: "";
	display: table;
	clear: both;
}

/* 📱 MOBILE: отступ сверху для заголовка */
.custom-post-title {
	margin-top: 3rem;
	margin-bottom: 3rem;
	font-size: 2rem;
}

@media (min-width: 1024px) {
	/* =================================================
	   2. DESKTOP ≥1024px: изображение слева, текст справа
	   ================================================= */
	:root {
		--col-gap: 2rem;
		--thumb-w: clamp(280px, 35%, 360px);
	}

	.custom-post-meta {
		display: flex;
		align-items: stretch; /* Раньше было flex-start */
		gap: var(--col-gap);
	}

	.custom-post-thumbnail {
		flex: 0 0 var(--thumb-w);
		margin-bottom: 0;
		/* ❌ aspect-ratio удалён */
		/* ✅ мы полагаемся на aspect-ratio внутри IMG */
	}

	.custom-post-thumbnail img {
		width: 100%;
		aspect-ratio: 5 / 7;
		height: auto;
		object-fit: cover;
	}

	.custom-post-text {
		flex: 1;
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
	}

	/* ❌ Убираем отступ у заголовка на десктопе */
	.custom-post-title {
		margin-top: 0rem;
		margin-bottom: 1rem;
		font-size: 2rem;
	}
}
