/* Carousel under the header. Two sizes: home (640 px) and inner (340 px).
   Slides are stacked in one grid cell, so the band is as tall as its tallest slide (or the
   variant height, whichever is more). Only .is-active is visible; behaviour in main.js.
   Text sizes are below the boards' (46/54 px home) so long quotes fit the band (owner, 2026-11-23).
   --py-car-ctrl is the space kept at the bottom for the controls, which sit at the same place on every slide. */
.py-carousel {
	--py-car-h: 640px; --py-car-gap: 24px; --py-car-quote: 36px; --py-car-quote-max: 760px; --py-car-title: 46px;
	--py-car-pad: 48px; --py-car-ctrl-bottom: 36px; --py-car-ctrl: calc(var(--py-car-ctrl-bottom) + 44px + 24px);
	position: relative; overflow: hidden; background: var(--py-dark); color: var(--py-white);
}
.py-carousel--inner { --py-car-h: 340px; --py-car-gap: 14px; --py-car-quote: 30px; --py-car-quote-max: 700px; --py-car-title: 38px; --py-car-pad: 32px; --py-car-ctrl-bottom: 20px; --py-car-ctrl: calc(var(--py-car-ctrl-bottom) + 44px + 14px); }

.py-carousel__slides { display: grid; }
.py-slide {
	grid-area: 1 / 1; position: relative; min-height: var(--py-car-h); display: flex;
	visibility: hidden; opacity: 0; transition: opacity .5s ease, visibility 0s linear .5s;
}
.py-slide.is-active { visibility: visible; opacity: 1; transition: opacity .5s ease; }

/* Backdrops */
.py-slide__media { position: absolute; inset: 0; }
.py-slide__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Keep faces in view when the band is shorter than the image (inner pages, phones): every
   image is anchored 25 % from the top (owner, 2026-11-23; was portraits only). */
.py-slide__media img { object-position: 50% 25%; }
.py-slide--photo .py-slide__media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(20, 20, 23, .92) 0%, rgba(20, 20, 23, .55) 55%, rgba(20, 20, 23, .2) 100%);
}
.py-slide--quote .py-slide__media {
	left: auto; width: 46%;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%); mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
}

/* Text column */
.py-slide__inner { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: var(--py-car-gap); padding-block: var(--py-car-pad) var(--py-car-ctrl); }
.py-slide__eyebrow { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; }
.py-slide__eyebrow::before { content: ""; flex: none; width: 26px; height: 1px; background: var(--py-gold); }
.py-hl, .py-slide__mark { color: var(--py-gold); }

.py-slide__quote { margin: 0; max-width: var(--py-car-quote-max); }
.py-slide__line { margin: 0; font-size: var(--py-car-quote); line-height: 1.18; }
.py-slide__cite { margin-top: var(--py-car-gap); padding-left: 14px; border-left: 2px solid var(--py-gold); line-height: 1.45; font-size: 13px; color: #C9C9CF; }
.py-slide__cite span { display: block; }
.py-slide__cite .py-slide__name { font-size: 15px; font-weight: 700; color: var(--py-white); }

.py-slide__text { max-width: 760px; }
.py-slide--photo .py-slide__line { font-size: var(--py-car-title); line-height: 1.12; }
.py-slide__caption { margin: 14px 0 0; max-width: 560px; font-size: 14px; color: #D2D2D8; }

/* Controls: hidden until the script is running (no JS = first slide only, no dead buttons).
   Pinned to the bottom of the band, so they stay put when the slide changes. */
.py-carousel__controls { display: none; align-items: center; gap: 12px; position: absolute; left: var(--py-gutter); bottom: var(--py-car-ctrl-bottom); }
.py-carousel.is-ready .py-carousel__controls { display: flex; }
.py-carousel__arrow {
	display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
	border: 1px solid rgba(255, 255, 255, .5); background: transparent; color: var(--py-white); cursor: pointer;
	transition: background-color .15s ease;
}
.py-carousel__arrow:hover { background: rgba(255, 255, 255, .14); }
.py-carousel__dots { display: flex; align-items: center; }
.py-carousel__dot { width: 28px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.py-carousel__dot span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .45); transition: background-color .15s ease; }
.py-carousel__dot:hover span { background: rgba(255, 255, 255, .8); }
.py-carousel__dot[aria-current="true"] span { background: var(--py-gold); }
.py-carousel--no-dots .py-carousel__dots { display: none; }
.py-carousel :focus-visible { outline-color: var(--py-gold); }

@media (max-width: 900px) {
	.py-carousel { --py-car-quote: clamp(22px, 4vw, 32px); --py-car-title: clamp(28px, 4.8vw, 40px); }
	.py-carousel--inner { --py-car-quote: clamp(19px, 3.4vw, 28px); --py-car-title: clamp(23px, 4.2vw, 34px); }
	.py-slide--quote .py-slide__media { width: 60%; opacity: .55; }
}

@media (max-width: 700px) {
	.py-carousel { --py-car-h: 520px; --py-car-gap: 20px; --py-car-pad: 72px; --py-car-ctrl-bottom: 24px; --py-car-ctrl: calc(var(--py-car-ctrl-bottom) + 44px + 20px); }
	.py-carousel--inner { --py-car-h: 300px; --py-car-gap: 14px; --py-car-pad: 56px; --py-car-ctrl-bottom: 16px; --py-car-ctrl: calc(var(--py-car-ctrl-bottom) + 44px + 14px); }
	.py-slide__inner { justify-content: flex-end; }
	.py-slide--quote .py-slide__media { width: 100%; opacity: .35; }
	.py-carousel--no-dots-narrow .py-carousel__dots { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.py-slide, .py-slide.is-active { transition: none; }
}
