/* ============================================================
   css/single.css
   Wpis blogowy — mp-theme
   Wzorowane na: historie-sesji.css
   Wersja: 1.0
   ============================================================ */

/* ── HERO — wspólne dla wszystkich wariantów ──────────────── */

.post-hero__eyebrow {
	margin: 0 0 18px;
}

.post-hero__title {
	font-family: 'DM Serif Display', 'Playfair Display', Georgia, serif !important;
	font-weight: 400 !important;
	font-size: clamp(28px, 4vw, 48px);
	line-height: 1.18;
	margin: 0 0 18px;
	color: #1A1A1A;
}

.post-hero__title--light {
	color: #FAF7F2;
}

.post-hero__gold {
	color: #8B6914;
	font-style: italic;
}

.post-hero__meta {
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 300;
	letter-spacing: .04em;
	color: rgba(26,26,26,.45);
}

.post-hero--full .post-hero__meta,
.post-hero--full .post-hero__meta-sep {
	color: rgba(255,255,255,.55);
}

.post-hero__meta-sep {
	margin: 0 8px;
}

/* ── WARIANT: FULL (zdjęcie na całą szerokość) ────────────── */
/* Dziedziczy .his-hero / .his-hero__bg / .his-hero__inner z historie-sesji.css */

/* ── WARIANT: SPLIT (zdjęcie + tekst po prawej) ───────────── */

.post-hero--split {
	padding: 0;
}

.post-hero__split-inner {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	min-height: clamp(420px, 60vh, 720px);
}

.post-hero__split-img {
	position: relative;
	overflow: hidden;
	background: #d4cfc8;
}

.post-hero__split-img img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.post-hero__split-img--placeholder {
	position: absolute;
	inset: 0;
	background: #d4cfc8;
}

.post-hero__split-text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(40px, 5vw, 80px) clamp(32px, 5vw, 80px);
	background: #F5F0E8;
	box-sizing: border-box;
}

/* ── WARIANT: NONE (tylko tytuł) ──────────────────────────── */

.post-hero--none {
	padding: clamp(100px, 14vw, 180px) 60px 40px;
	box-sizing: border-box;
	background: #F5F0E8;
}

.post-hero__none-inner {
	max-width: 760px;
	margin: 0 auto;
}

/* ── TREŚĆ WPISU (the_content) ────────────────────────────── */

.post-content {
	padding: 80px 60px;
	box-sizing: border-box;
	background: #FAF7F2;
}

.post-content__inner {
	max-width: 880px;
	margin: 0 auto;
}

.post-content__inner > * {
	max-width: 100%;
}

.post-content__inner h2,
.post-content__inner h1 {
	font-family: 'DM Serif Display', 'Playfair Display', Georgia, serif !important;
	font-weight: 400 !important;
	font-size: clamp(24px, 3vw, 34px);
	line-height: 1.25;
	color: #1A1A1A;
	margin: 56px 0 20px;
}

.post-content__inner h2:first-child,
.post-content__inner h1:first-child {
	margin-top: 0;
}

.post-content__inner h3 {
	font-family: 'DM Serif Display', 'Playfair Display', Georgia, serif;
	font-weight: 400;
	font-size: clamp(19px, 2.2vw, 24px);
	line-height: 1.3;
	color: #1A1A1A;
	margin: 40px 0 16px;
}

.post-content__inner p {
	font-family: 'Inter', sans-serif;
	font-size: 17px;
	font-weight: 300;
	line-height: 1.75;
	color: #1A1A1A;
	opacity: .88;
	margin: 0 0 24px;
}

.post-content__inner ul,
.post-content__inner ol {
	font-family: 'Inter', sans-serif;
	font-size: 17px;
	font-weight: 300;
	line-height: 1.85;
	color: #1A1A1A;
	opacity: .88;
	margin: 0 0 24px;
	padding-left: 24px;
}

.post-content__inner li {
	margin-bottom: 8px;
}

.post-content__inner strong {
	font-weight: 600;
	opacity: 1;
}

.post-content__inner em {
	color: #8B6914;
	font-style: italic;
}

.post-content__inner a {
	color: #8B6914;
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: opacity .2s ease;
}

.post-content__inner a:hover {
	opacity: .7;
}

.post-content__inner blockquote {
	margin: 40px 0;
	padding: 0 0 0 28px;
	border-left: 2px solid #8B6914;
}

.post-content__inner blockquote p {
	font-family: 'DM Serif Display', 'Playfair Display', Georgia, serif;
	font-style: italic;
	font-size: clamp(19px, 2vw, 23px);
	line-height: 1.5;
	color: #1A1A1A;
	opacity: 1;
	margin: 0;
}

/* Zdjęcia wstawione w treści wpisu */

.post-content__inner img,
.post-content__inner figure {
	width: 100%;
	height: auto;
	display: block;
	margin: 48px 0;
	border-radius: 2px;
}

.post-content__inner figure img {
	margin: 0;
}

.post-content__inner figcaption {
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 300;
	color: rgba(26,26,26,.5);
	margin-top: 12px;
	text-align: center;
}

/* Galeria WordPress (kilka zdjęć obok siebie) */

.post-content__inner .wp-block-gallery,
.post-content__inner .gallery {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	margin: 48px 0;
}

.post-content__inner .wp-block-gallery img,
.post-content__inner .gallery img {
	margin: 0;
	height: 100%;
	object-fit: cover;
}

/* ── CTA — uzupełnienie max-width dla post-cta ────────────── */

.post-cta .his-cta-pf__inner {
	text-align: left;
}

/* ── RESPONSYWNOŚĆ ────────────────────────────────────────── */

@media (max-width: 900px) {
	.post-hero__split-inner {
		grid-template-columns: 1fr;
		min-height: auto;
	}
	.post-hero__split-img {
		min-height: 360px;
	}
	.post-content__inner .wp-block-gallery,
	.post-content__inner .gallery {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.post-hero--none {
		padding: 80px 24px 32px;
	}
	.post-hero__split-text {
		padding: 40px 24px;
	}
	.post-content {
		padding: 56px 24px;
	}
	.post-content__inner h2 {
		margin-top: 40px;
	}
	/* post-related: inline padding:60px override */
	.post-related {
		padding-left: 24px !important;
		padding-right: 24px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.post-content__inner a {
		transition: none;
	}
}

/* ── WIĘCEJ Z BLOGA — sekcja powiązanych wpisów ───────────── */
/* Padding, gap, kolory i szerokość kontrolowane przez Customizer (inline style) */

/* Zdjęcia w kartach — kwadrat, przycięte do proporcji 1:1 */
.post-related__grid .his-card__img-wrap {
	padding-bottom: 0 !important;
	height:         auto !important;
	aspect-ratio:   1 / 1;
	position:       relative !important;
	overflow:       hidden;
}

.post-related__grid .his-card__img {
	position:        absolute !important;
	inset:           0;
	width:           100% !important;
	height:          100% !important;
	object-fit:      cover !important;
	object-position: center center !important;
	display:         block !important;
}