/* ==========================================================================
   BKA 2026 v5 · PAGE GROUP: news-article (single posts)
   Centred editorial header → wide photograph (never cropped: podcast covers
   carry text) → one reading column → photographic neighbour links.
   The imported Divi markup inside the story is tidied, never rewritten.
   ========================================================================== */

.v5-article__header {
	padding-block: clamp(3.25rem, 2rem + 4.5vw, 6.5rem) clamp(2rem, 1.5rem + 2vw, 3.25rem);
	background: var(--v5-white);
	text-align: center;
}
.v5-article__heading { max-width: calc(62rem + 2 * var(--v5-gutter)); }
.v5-article__kicker { margin: 0 0 1.1rem; }
.v5-article__kicker a {
	display: inline-flex;
	align-items: center;
	gap: .8rem;
	color: var(--v5-red);
	font-family: var(--v5-font-display);
	font-size: clamp(.95rem, .85rem + .3vw, 1.15rem);
	font-weight: var(--v5-w-display);
	letter-spacing: .16em;
	text-decoration: none;
	text-transform: uppercase;
}
.v5-article__kicker a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .3em; }
.v5-article__meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: .35rem .6rem;
	margin: 0 0 1.25rem;
	color: var(--v5-muted);
	font-size: .8125rem;
	font-weight: var(--v5-w-bold);
	letter-spacing: .1em;
	text-transform: uppercase;
}
.v5-article__meta a { color: var(--v5-red-700); text-decoration: none; }
.v5-article__meta a:hover { text-decoration: underline; }
.v5-article__meta .bka-story__meta-separator { color: var(--v5-line-strong); }
.v5-article__title {
	max-width: 22ch;
	margin: 0 auto;
	color: var(--v5-ink);
	font-size: clamp(2.25rem, 1.3rem + 3.3vw, 4.25rem);
	line-height: 1.04;
	overflow-wrap: break-word;
}
.v5-article__lead {
	max-width: 44rem;
	margin: 1.5rem auto 0;
	color: var(--v5-ink-soft);
	font-size: var(--v5-fs-lead);
	line-height: 1.6;
}

/* Wide photograph: full width for landscape images, contained for portrait/square covers */
.v5-article__hero {
	max-width: calc(72rem + 2 * var(--v5-gutter));
	margin: 0 auto;
	padding-inline: var(--v5-gutter);
}
.v5-article__hero img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: min(78vh, 46rem);
	margin-inline: auto;
	border-radius: var(--v5-radius-lg);
	box-shadow: var(--v5-shadow-lift);
}

/* Reading column */
.v5-article__reading {
	max-width: calc(var(--v5-shell-narrow) + 2 * var(--v5-gutter));
	margin: 0 auto;
	padding: clamp(2.75rem, 2rem + 3vw, 5rem) var(--v5-gutter) var(--v5-section-y-tight);
}
.v5-article__content { max-width: none; font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem); }
.v5-article__content > p:first-of-type:not(:empty) { color: var(--v5-ink); font-size: 1.1em; line-height: 1.62; }
.v5-article--short .v5-article__content { font-size: clamp(1.125rem, 1.05rem + .4vw, 1.375rem); }
.v5-article__content :where(h2) { font-size: clamp(1.625rem, 1.2rem + 1.3vw, 2.25rem); }
.v5-article__content :where(h2 + h2) { margin-top: .25em; color: var(--v5-ink); }
.v5-article__content :where(.rocket-lazyload, p:empty) { display: none; }
.v5-article__content :where(img) { height: auto; }
.v5-article__content :where(p > img:only-child, p > a:only-child > img:only-child) { width: 100%; }
.v5-article__content :where(.alignleft) { float: left; margin: .35rem 1.25rem .75rem 0; }
.v5-article__content :where(.alignright) { float: right; margin: .35rem 0 .75rem 1.25rem; }
.v5-article__content :where(.aligncenter) { margin-inline: auto; }
.v5-article__content :where(img[width="50"]) { width: 3rem; height: 3rem; margin: 0 .75rem .75rem 0; border-radius: 50%; }
.v5-article__content :where(p)::after { content: ""; display: table; clear: both; }

/* Old builder galleries (div.landscape / div.portrait runs) → one grid */
.v5-article__gallery {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(.5rem, .35rem + .5vw, .85rem);
	margin: 2.25rem 0;
}
.v5-article__gallery > div { margin: 0; }
.v5-article__gallery br,
.v5-article__gallery span:empty { display: none; }
.v5-article__gallery a,
.v5-article__content > :where(.landscape, .portrait) a {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--v5-radius-sm);
	background: var(--v5-mist);
}
.v5-article__gallery img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 0;
	transition: transform var(--v5-dur-slow) var(--v5-ease);
}
.v5-article__gallery > .portrait img { aspect-ratio: 3 / 4; }
.v5-article__gallery a:hover img { transform: scale(1.04); }
.v5-article__gallery a:focus-visible { box-shadow: var(--v5-focus); }
.v5-article__content > :where(.landscape, .portrait) br { display: none; }
.v5-article__content > :where(.landscape, .portrait) img { width: 100%; }

/* The original-photo viewer (forked programme-experience-20260907.js) ---- */
.bka-experience-lightbox {
	position: fixed;
	inset: 0;
	width: 100vw;
	max-width: none;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: clamp(.75rem, .5rem + 1vw, 1.5rem);
	border: 0;
	background: #16121a;
	color: #fff;
}
.bka-experience-lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 1rem; }
.bka-experience-lightbox::backdrop { background: rgba(var(--v5-scrim), .94); }
.bka-experience-lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.bka-experience-lightbox__bar p { margin: 0; font-family: var(--v5-font-display); font-size: 1.125rem; }
.bka-experience-lightbox button {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	min-width: 2.85rem;
	min-height: 2.85rem;
	border: 2px solid rgba(255, 255, 255, .55);
	border-radius: 50%;
	background: transparent;
	color: #fff;
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
}
.bka-experience-lightbox button:hover:not(:disabled) { border-color: var(--v5-red); background: var(--v5-red); }
.bka-experience-lightbox button:disabled { opacity: .3; cursor: default; }
.bka-experience-lightbox button:focus-visible { box-shadow: var(--v5-focus-on-red); }
.bka-experience-lightbox__image { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.bka-experience-lightbox__footer { display: flex; justify-content: center; align-items: center; gap: 1.5rem; }
.bka-experience-lightbox__position { min-width: 4rem; text-align: center; font-variant-numeric: tabular-nums; font-weight: var(--v5-w-bold); }
html.bka-experience-lightbox-open { overflow: hidden; }

.v5-article__content :where(table) { margin-block: 1.5rem; }

/* Pagination inside a story / comments keep the system look */
.v5-article .post-page-numbers { display: inline-grid; place-items: center; min-width: 2.5rem; height: 2.5rem; margin: 0 .25rem; border-radius: var(--v5-radius-pill); background: var(--v5-mist); text-decoration: none; }

/* Neighbour links ------------------------------------------------------------ */
.v5-article__neighbours {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--v5-gap);
}
.v5-article__neighbour {
	display: grid;
	grid-template-columns: minmax(7rem, 11rem) minmax(0, 1fr);
	align-items: stretch;
	overflow: hidden;
	border-radius: var(--v5-radius);
	background: #fff;
	box-shadow: var(--v5-shadow-card);
	color: var(--v5-ink);
	text-decoration: none;
	transition: transform var(--v5-dur) var(--v5-ease), box-shadow var(--v5-dur) var(--v5-ease);
}
.v5-article__neighbour:hover { transform: translateY(-3px); box-shadow: var(--v5-shadow-lift); color: var(--v5-ink); text-decoration: none; }
.v5-article__neighbour--next:only-child { grid-column: 2; }
.v5-article__neighbour-media { position: relative; min-height: 8.5rem; overflow: hidden; background: var(--v5-mist); }
.v5-article__neighbour-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v5-article__neighbour-media .v5-placeholder { position: absolute; inset: 0; min-height: 0; font-size: 2.5rem; }
.v5-article__neighbour-copy { display: grid; align-content: center; gap: .3rem; padding: 1.15rem 1.35rem; }
.v5-article__neighbour-arrow {
	display: inline-grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	margin-bottom: .35rem;
	border-radius: 50%;
	background: var(--v5-red-100);
	color: var(--v5-red);
	transition: background-color var(--v5-dur) var(--v5-ease), color var(--v5-dur) var(--v5-ease);
}
.v5-article__neighbour:hover .v5-article__neighbour-arrow { background: var(--v5-red); color: #fff; }
.v5-article__neighbour-copy time { color: var(--v5-muted); font-size: .8125rem; font-weight: var(--v5-w-bold); letter-spacing: .06em; }
.v5-article__neighbour-title { font-family: var(--v5-font-display); font-size: clamp(1.125rem, 1rem + .4vw, 1.375rem); line-height: 1.2; }

@media (max-width: 56rem) {
	.v5-article__neighbours { grid-template-columns: 1fr; }
	.v5-article__neighbour--next:only-child { grid-column: auto; }
}

@media (max-width: 40rem) {
	.v5-article__header { text-align: left; }
	.v5-article__meta { justify-content: flex-start; }
	.v5-article__title { margin-inline: 0; }
	.v5-article__lead { margin-inline: 0; }
	.v5-article__neighbour { grid-template-columns: 6.5rem minmax(0, 1fr); }
	.v5-article__neighbour-media { min-height: 7rem; }
	.v5-article__content :where(.alignleft, .alignright) { float: none; margin: 0 0 1rem; }
	.v5-article__content :where(img[width="50"]) { display: inline-block; }
}
