/**
 * Hirurgija Kila — legacy kompatibilnost globalnog blog šablona.
 *
 * Nova blog pravila pripadaju kanonskom design-system.css fajlu. Ovaj fajl se
 * ne prosiruje; postojeca pravila se gase tek kada ista svojstva budu native
 * podesena u Elementor sablonu i prodju regresioni test.
 */

body.single-post .elementor > .elementor-element.hk-article-opening,
body.single-post .elementor > .elementor-element.hk-article-section,
body.single-post .elementor > .elementor-element.hk-article-alert,
body.single-post .elementor > .elementor-element.hk-article-sources {
	box-sizing: border-box;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	border-radius: 0;
}

body.single-post .elementor > .elementor-element.hk-article-opening {
	background: var(--hk-white) !important;
}

body.single-post .elementor > .elementor-element.hk-article-section {
	gap: 0 !important;
}

body.single-post .elementor > .elementor-element.hk-article-section--white,
body.single-post .elementor > .elementor-element.hk-article-sources {
	background: var(--hk-white) !important;
}

body.single-post .elementor > .elementor-element.hk-article-section--soft {
	background: #f2f5fa !important;
}

body.single-post .elementor > .elementor-element.hk-article-section--sand {
	background: var(--hk-sand) !important;
}

body.single-post .elementor > .elementor-element.hk-article-section > .elementor-element,
body.single-post .elementor > .elementor-element.hk-article-alert > .elementor-element {
	width: 100%;
	max-width: 1480px;
	margin-right: auto;
	margin-left: auto;
}

body.single-post .hk-article-section > .hk-section-intro {
	margin-bottom: 38px;
}

body.single-post .hk-article-section > .hk-article-prose {
	max-width: 920px;
	margin-right: auto;
	margin-left: auto;
}

/* Jedna fotografija u telu članka razbija dugačke tekstualne blokove. */
body.single-post .hk-article-media-split--editorial,
body.single-post .elementor-element.hk-article-media-split--editorial {
	display: grid !important;
	grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
	gap: 54px;
	align-items: center;
	width: 100%;
	max-width: 1360px;
	margin: 0 auto;
}

body.single-post .hk-article-media-split--reverse > .hk-article-media-split__media { order: 2; }
body.single-post .hk-article-media-split--reverse > .hk-article-media-split__content { order: 1; }

body.single-post .hk-article-inline-image,
body.single-post .hk-article-inline-image .elementor-widget-container {
	width: 100%;
}

body.single-post .hk-article-inline-image img {
	display: block;
	width: 100%;
	height: clamp(330px, 34vw, 440px);
	object-fit: cover;
	border-radius: 18px 18px 58px 18px;
	box-shadow: 0 20px 52px rgba(8,26,56,.12);
}

body.single-post .hk-article-media-split--reverse .hk-article-inline-image img {
	border-radius: 18px 18px 18px 58px;
}

body.single-post .hk-article-inline-caption,
body.single-post .hk-article-inline-caption p {
	margin: 0 !important;
	color: var(--hk-muted);
	font-size: .82rem;
	line-height: 1.55;
	--paragraph-spacing: 0;
}

@media (max-width: 900px) {
	body.single-post .hk-article-media-split--editorial,
	body.single-post .elementor-element.hk-article-media-split--editorial {
		grid-template-columns: 1fr !important;
		gap: 30px !important;
	}

	body.single-post .hk-article-media-split--reverse > .hk-article-media-split__media,
	body.single-post .hk-article-media-split--reverse > .hk-article-media-split__content { order: initial; }
}

@media (max-width: 767px) {
	body.single-post .hk-article-inline-image img {
		height: 310px;
		border-radius: 14px 14px 42px 14px;
	}
}
