/* AK Urdu Publisher – Urdu typography on the public Blog */
.akup-urdu-content {
	direction: rtl;
	text-align: right;
	font-family: var(--akup-font);
	font-size: var(--akup-size, 20px);
	line-height: var(--akup-lh, 2.2);
	word-spacing: 0.05em;
}
/* Each paragraph picks its own direction, so a fully English paragraph stays left-to-right. */
.akup-urdu-content p,
.akup-urdu-content li,
.akup-urdu-content h1,
.akup-urdu-content h2,
.akup-urdu-content h3,
.akup-urdu-content h4,
.akup-urdu-content blockquote,
.akup-urdu-content figcaption {
	unicode-bidi: plaintext;
	text-align: start;
	font-family: inherit;
}
.akup-urdu-content p { margin: 0 0 1em; }
.akup-urdu-content h1, .akup-urdu-content h2, .akup-urdu-content h3, .akup-urdu-content h4 { line-height: 1.9; margin: 1.2em 0 .5em; }
.akup-urdu-content ul, .akup-urdu-content ol { padding-inline-start: 1.6em; padding-inline-end: 0; }
.akup-urdu-content img { max-width: 100%; height: auto; }
.akup-urdu-content figure { margin-inline: 0; }

/* Photos added in the post creator, shown under the article. */
/*
 * Each photo shows at its own size (e.g. 1254 × 1254) up to the configured width, never cropped
 * or enlarged. It may extend beyond the text column, centred, and shrinks evenly on small screens.
 */
.akup-photos { display: flex; flex-direction: column; gap: 1.5em; margin: 2em 0 1em; direction: rtl; }
.akup-urdu-content .akup-photo {
	--akup-w: min(var(--akup-nat, var(--akup-photo-w, 1254px)), var(--akup-photo-w, 1254px), calc(100vw - 32px));
	width: var(--akup-w);
	max-width: none;
	margin: 0 calc(50% - var(--akup-w) / 2);
}
/* Keeps the width/height attributes' ratio, so the space is reserved correctly before a lazy photo loads. */
.akup-urdu-content .akup-photo img { display: block; width: 100%; max-width: 100%; height: auto; object-fit: contain; border-radius: 10px; }
.akup-photo figcaption { margin-top: .5em; font-size: .85em; line-height: 1.9; color: #5E6660; text-align: center; unicode-bidi: plaintext; }

/* Featured poster on the article page: real proportions, real size, no cropping. */
.akup-urdu-single .wp-block-post-featured-image {
	--akup-w: min(var(--akup-feat-w, var(--akup-photo-w, 1254px)), var(--akup-photo-w, 1254px), calc(100vw - 32px));
	width: var(--akup-w) !important;
	max-width: none !important;
	margin-left: calc(50% - var(--akup-w) / 2) !important;
	margin-right: calc(50% - var(--akup-w) / 2) !important;
	aspect-ratio: auto !important;
	height: auto !important;
}
.akup-urdu-single .wp-block-post-featured-image img,
.akup-urdu-single .post-thumbnail img,
.akup-urdu-single .elementor-widget-theme-post-featured-image img {
	width: 100% !important;
	max-width: 100%;
	height: auto !important;
	aspect-ratio: auto !important;
	object-fit: contain !important;
}

/* Titles of Urdu posts on the single page and Blog listing (block themes, classic themes, Elementor). */
.akup-urdu-single .wp-block-post-title,
.akup-urdu-single .entry-title,
.akup-urdu-single .elementor-widget-theme-post-title .elementor-heading-title,
.akup-urdu-post .wp-block-post-title,
.akup-urdu-post .entry-title,
.akup-urdu-post .elementor-post__title,
.akup-urdu-post .wp-block-post-excerpt,
.akup-urdu-post .entry-summary {
	font-family: var(--akup-font);
	unicode-bidi: plaintext;
	text-align: start;
	line-height: 1.9;
}
