/* issue-slider block (PublicContentIssueSliderBlock): Bootstrap 5 carousel of issue covers. */
.public-content .content-issue-carousel { max-width: 26rem; margin: 1rem auto 0; padding-bottom: 2.5rem; }
.public-content .content-issue-link { display: block; text-align: center; color: var(--content-primary); text-decoration: none; }
.public-content .content-issue-link:hover .content-issue-label,
.public-content .content-issue-link:focus .content-issue-label { text-decoration: underline; }
/* Covers keep their upload's proportions (no stored size), so the box has the fixed newspaper front page ratio of the
   title card below: nothing shifts while a cover loads; a cover in other proportions is cropped from its top. */
.public-content .content-issue-carousel img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1.414;
	object-fit: cover;
	object-position: top;
	border-radius: var(--content-radius);
	border: 1px solid var(--content-border);
}
.public-content .content-issue-label { display: block; margin-top: .5rem; font-weight: 600; }
/* An issue without a cover image: a neutral title card in the proportions of a newspaper front page. */
.public-content .content-issue-fallback {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
	width: 100%; aspect-ratio: 1 / 1.414; padding: 1.5rem;
	border-radius: var(--content-radius); border: 1px solid var(--content-border);
	background: var(--content-surface); color: var(--content-text);
}
.public-content .content-issue-fallback-name { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.public-content .content-issue-fallback-day { font-size: 1rem; }
/* Indicators below the cover instead of over it; controls dark so they stay visible on white paper. */
.public-content .content-issue-carousel .carousel-indicators { bottom: 0; margin-bottom: 0; }
.public-content .content-issue-carousel .carousel-indicators [data-bs-target] { background-color: var(--content-border); }
.public-content .content-issue-carousel .carousel-indicators .active { background-color: var(--content-primary); }
/* Prev/next: the shared .content-nav-button (public-content.css), at the vertical middle of the cover (the box minus its
   top and bottom padding; the indicators sit in the bottom padding). Only the button is the click area: Bootstrap's
   full-height strips would cover the cover's edges (its link). Without the coverflow (no JavaScript, Swiper not loaded)
   the buttons sit just inside the cover's edges. */
.public-content .content-issue-carousel {
	--issue-pad-top: 0rem;
	--issue-pad-bottom: 2.5rem;
	--content-nav-inset: .5rem;
	--content-nav-top: calc(50% + (var(--issue-pad-top) - var(--issue-pad-bottom)) / 2);
}
/* Coverflow mode (public-content-issue-slider.js with Swiper's coverflow effect): all covers on one track; Swiper sets
   each cover's transform from its distance to the current one and the script leans and greys out the neighbours, so
   they sit tilted behind it and the next cover grows out from behind them. Covers follow the finger while dragging and
   snap on release. The cover width is fluid (at most 26rem, about half the viewport), so the tilted neighbours stay
   fully inside the screen on tablets too. --issue-shift is the neighbour's distance in percent of a cover width. */
.public-content .content-issue-carousel--flow {
	--issue-shift: 42;
	--issue-ease: cubic-bezier(.22, .61, .36, 1);
	--issue-pad-top: 1rem; max-width: min(26rem, 52vw); padding-top: 1rem; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
/* Swiper's layout rules (its own stylesheet is not loaded: it embeds an icon font as a data: URL, which the public
   font-src 'self' refuses). The wrapper is the track, each cover one slide; flat stacking (z-index from the effect),
   since the effect moves nothing in depth here. */
.public-content .content-issue-carousel--flow .carousel-inner {
	position: relative;
	z-index: 1;
	display: flex;
	box-sizing: content-box;
	overflow: visible;
	transition-property: transform;
	transition-timing-function: var(--issue-ease);
}
.public-content .content-issue-carousel--flow .carousel-inner::after { content: none; }
.public-content .content-issue-carousel--flow .carousel-item {
	position: relative;
	display: block;
	flex-shrink: 0;
	width: 100%;
	float: none;
	margin: 0;
	backface-visibility: visible;
	transform-origin: 50% 60%;
	will-change: transform;
	transition-property: transform;
	transition-duration: 0s;
	transition-timing-function: var(--issue-ease);
}
.public-content .content-issue-carousel--flow .carousel-item.is-far { visibility: hidden; }
.public-content .content-issue-carousel--flow .content-issue-link {
	transform-origin: 50% 60%;
	transition-property: transform, filter;
	transition-duration: 0s;
	transition-timing-function: var(--issue-ease);
}
.public-content .content-issue-carousel--flow .carousel-item:not(.active) { cursor: pointer; }
.public-content .content-issue-carousel--flow .carousel-item img { -webkit-user-drag: none; transition: box-shadow .55s ease; }
.public-content .content-issue-carousel--flow .carousel-item.active img { box-shadow: 0 1rem 2.25rem rgba(16, 24, 40, .22); }
.public-content .content-issue-carousel--flow .content-issue-label { display: none; }
.public-content .content-issue-caption { margin: .75rem 0 0; text-align: center; font-weight: 600; color: var(--content-primary); transition: opacity .12s ease; }
.public-content .content-issue-caption.is-changing { opacity: 0; }
.public-content .content-issue-carousel--flow .carousel-control-prev,
.public-content .content-issue-carousel--flow .carousel-control-next,
.public-content .content-issue-carousel--flow .carousel-indicators { z-index: 20; }
/* The arrows sit beside the current cover, over the leaning neighbours. */
.public-content .content-issue-carousel--flow { --content-nav-inset: -3.5rem; }
/* Small screens: smaller covers and less sideways shift, so the page does not scroll horizontally. The width is fluid
   below 390px so the tilted neighbours stay fully on screen on narrow phones too. The arrows overlap the current cover's
   edges a little and cover only the inner part of the neighbours, so the neighbours' outer halves stay free to tap. */
@media (max-width: 35.98rem) {
	.public-content .content-issue-carousel--flow { --issue-shift: 28; --issue-pad-bottom: 3rem; --content-nav-inset: -1.25rem; max-width: min(15rem, 61vw); padding-bottom: 3rem; }
	.public-content .content-issue-carousel--flow .carousel-indicators { bottom: .4rem; }
}
@media (prefers-reduced-motion: reduce) {
	.public-content .content-issue-carousel--flow .carousel-item,
	.public-content .content-issue-carousel--flow .content-issue-link,
	.public-content .content-issue-carousel--flow .carousel-item img,
	.public-content .content-issue-caption { transition: none; }
}
