/* ==========================================================================
   Artist single — Figma "Gem" 51289:13213 (1440×5331)

   Section heights from the frame: hero 740, video/tracks 508, profile 1328,
   gallery 792. Testimonials and the CTA band below are the shared partials and
   carry their own styles.

   Horizontal measurements are fractions of the 1344 container, as elsewhere in
   the theme, so every column holds its designed ratio past 1440.
   ========================================================================== */

/* ==========================================================================
   Hero — "Container" (1440×740)
   ========================================================================== */

.artist-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 640px;
	padding-top: 88px; /* the header sits over this section */
	overflow: hidden;
	color: var(--c-white);
	isolation: isolate;
	background-color: var(--c-primary-900);
}

.artist-hero__media {
	position: absolute;
	inset: 0;
	z-index: -1;
}

/*
 * Same crop model as .we-hero — see the note there. The page's own focal point
 * arrives inline as --hero-focus-x; the weighting below sets the other axis.
 */
.artist-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--hero-focus-x, 50%) var(--hero-focus-y, 50%);
}

/*
 * Past the 1440 frame the band holds 740 while the photo keeps scaling with the
 * viewport, so a centred crop takes progressively more off the top and beheads
 * whoever is standing in it. Weighted to the top from there up.
 */
@media (min-width: 90.0625em) {
	.artist-hero__media img {
		--hero-focus-y: 20%;
	}
}

/*
 * Below the 428 frame the crop runs sideways instead, and a band fixed at 640
 * tightens it with every pixel the screen loses. Holding the band's aspect holds
 * the frame's own framing at any width under it — the visible fraction is
 * (width / height) x the photo's aspect. min-height, so a longer name still gets
 * the room it needs.
 */
@media (max-width: 26.75em) {
	.artist-hero {
		min-height: 149.53vw; /* 640 / 428 */
	}
}

/* Same wash as every other hero — see --hero-wash. */
.artist-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--hero-wash);
}

.artist-hero__inner {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	justify-content: center;
	width: 100%;
	max-width: calc(var(--container) + (var(--gutter) * 2));
	margin-inline: auto;
	padding-inline: var(--gutter);
	/*
	 * Mirrors the 88px the section reserves for the overlaid header, so `center`
	 * resolves to the *band's* centre (320 of 640) — which is where the 428
	 * frame puts the group: name, subtitle, quote and button read as one block
	 * centred on the band, ink centre 325 against the band's 320. Reset at 64em,
	 * where the frames pin instead. Same model as .we-hero__inner.
	 */
	padding-bottom: 88px;
}

/*
 * Sized by its content on mobile. Letting it grow put every pixel the band had
 * spare between the subtitle and the quote — 102 measured at 428 against the
 * frame's 24 — and left the button sitting flat on the angled divider with
 * nothing under it, where the frame leaves 98.
 */
.artist-hero__headline {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--space-24);
	text-align: center;
}

.artist-hero__title {
	margin: 0;
	color: #f6fffe;
	font-size: clamp(3rem, 1.15rem + 4.6vw, var(--fs-display-4xl));
}

.artist-hero__subtitle {
	margin: 0;
	color: #f2efea;
	font-size: clamp(2rem, 0.9rem + 2.75vw, var(--fs-display-3xl));
}

/*
 * The 428 frame centres the quote and the button under the name; only the 1440
 * frame ranges them left, 124 from the frame edge (48 of that is the inner
 * gutter). Same split as .we-hero__content.
 */
.artist-hero__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-24);
	max-width: 492px;
	margin-inline: auto;
	margin-top: var(--space-24); /* the frames' constant headline-to-copy gap */
	text-align: center;
}

.artist-hero__quote {
	margin: 0;
	color: #effcfc;
	font-size: var(--fs-body-lg);
	line-height: var(--lh-body);
}

.artist-hero__angle {
	position: absolute;
	inset: auto 0 0;
	color: var(--c-ground-mist, #fafafa);
	line-height: 0;
	pointer-events: none;
}

.artist-hero__angle .icon {
	display: block;
	width: 100%;
	height: var(--hero-angle-h);
}

@media (min-width: 64em) {
	.artist-hero {
		min-height: 740px;
		padding-top: 121px;
	}

	/*
	 * The 1440 frame pins rather than centres: the name holds the band's upper
	 * half and the quote is measured off the bottom edge, so the headline takes
	 * the slack again and the copy carries its own 166.
	 */
	.artist-hero__inner {
		justify-content: flex-start;
		padding-bottom: 0;
	}

	.artist-hero__headline {
		flex: 1 1 auto;
		padding-block: var(--space-40);
	}

	.artist-hero__content {
		align-items: flex-start;
		margin-top: 0;
		margin-inline: 0;
		margin-left: 76px;
		padding-bottom: 166px;
		text-align: left;
	}
}

/* ==========================================================================
   Video and track list — "Frame 1984078302" (1440×508)
   ========================================================================== */

.artist-media {
	padding-block: var(--space-64);
	background-color: var(--c-white);
}

.artist-media__inner {
	display: grid;
	/*
	 * minmax(0, 1fr), not the implicit `auto` track a single-column grid gets by
	 * default. An `auto` track floors at its widest item's min-content, and the
	 * player's is 362px — the transport row plus the seek slider's UA width and
	 * the timecode. On a 375 phone the column therefore sized to 362 against a
	 * 327 content box and pushed the video and the player 35px past the right
	 * gutter, where `body { overflow-x: hidden }` cut them off. A 0 minimum lets
	 * the column take the container's width and the player's own min-width: 0
	 * internals absorb the rest.
	 */
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-24);
	width: 100%;
	max-width: calc(var(--container) + (var(--gutter) * 2));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.artist-media__video {
	position: relative;
	aspect-ratio: 662 / 380;
	overflow: hidden;
	background-color: var(--c-black);
}

.artist-media__video :is(iframe, video, embed, object) {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/*
 * The still that stands in for a missing video fills the same 662x380 box the
 * embed does, and takes its window from the frame: fitting Frame 1984078303's
 * still back to the source photo puts the top edge 98px down a 1024px-tall
 * shot — 16% of the slack a `cover` crop has to give away, not the 50% it takes
 * by default. Centred, the box lands below the performer's head and fills the
 * bottom of the frame with their legs. Percentages, so the window holds at
 * every width the row scales through.
 */
.artist-media__video--still img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 16%;
}

@media (min-width: 64em) {
	/* Two 662 columns of the 1344 container with a 20 gap. */
	.artist-media__inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 1.49%; /* 20 / 1344 */
		align-items: start;
	}

	/*
	 * Not every artist has both — Shani has a video and no track list, Amy the
	 * reverse. On its own the survivor centres at its designed 662 rather than
	 * sitting in half a two-column grid with a hole beside it.
	 */
	.artist-media__inner:has(> :only-child) {
		grid-template-columns: minmax(0, 662px);
		justify-content: center;
	}
}

/* --- brand logo -----------------------------------------------------------
 * Celebrant frames: the celebrant's own wordmark stands where the track list
 * sits on a musician. Right-aligned against the container edge and top-aligned
 * with the video, exactly as Figma places it (Lei 469×140 at x=875, Jake
 * 241×140 at x=1103 — both flush right of the 1344 row).
 * ------------------------------------------------------------------------ */

.artist-media__logo {
	display: flex;
	align-items: center;
	justify-content: center;
}

/*
 * The frames drew these marks at 140 tall (LoveLei 469x140, Newelly Wedded
 * 241x140) and both read small against the 380 video beside them — the client
 * asked for the mark to be bigger. The caps are raised together so the two
 * celebrants stay in proportion to each other: the wide mark lands on the width
 * cap, the narrow one on the height cap, and neither outgrows the row.
 */
.artist-media__logo img {
	width: auto;
	/*
	 * min(), not a bare width: at 375 the LoveLei mark held its designed width
	 * and ran 48px past the gutter — the same cut as the player, from the other
	 * variant of this row. Jake's narrower mark hid it, which is why only one
	 * celebrant showed the defect.
	 */
	max-width: min(560px, 100%);
	max-height: 220px;
	object-fit: contain;
}

@media (min-width: 64em) {
	/*
	 * Centred in its half, not hung top-right. The frame puts the mark's centre
	 * at 993 against the video's 985 — level with it — while the build pinned it
	 * to the top of the row and let it run 469 wide to the container's edge.
	 */
	.artist-media__logo {
		align-self: stretch; /* the grid start-aligns its columns; take the row's height first */
		align-items: center;
		justify-content: center;
	}
}

/* --- the player -----------------------------------------------------------
 * Figma: a black header holding a square art tile, what is playing, the
 * transport row and the scrubber, over a white list of 75px track rows. The
 * whole panel runs taller than the 380 video on every frame but Gem's.
 * ------------------------------------------------------------------------ */

.artist-player {
	display: flex;
	flex-direction: column;
	border: 1px solid #e4e4e4;
	background-color: var(--c-white);
}

.artist-player__head {
	display: flex;
	align-items: flex-start;
	gap: var(--space-16);
	padding: var(--space-16);
	background-color: #000;
	color: var(--c-white);
}

/* 128 square in the frame; it holds the play control. */
.artist-player__art {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 96px;
	height: 96px;
	background-color: #111;
}

.artist-player__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	padding: 0;
	border: 2px solid rgba(255, 255, 255, 0.55);
	border-radius: var(--radius-circle);
	background: none;
	color: var(--c-white);
	cursor: pointer;
	transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

.artist-player__toggle:hover,
.artist-player__toggle:focus-visible {
	border-color: var(--c-white);
	background-color: rgba(255, 255, 255, 0.12);
}

.artist-player__toggle .icon {
	width: 24px;
	height: 24px;
	margin-left: 3px; /* the glyph's mass sits right of centre */
}

/* Play by default, pause while [data-playing] is set by app.js. The pause bars
   are symmetrical, so they drop the play glyph's optical nudge. */
.artist-player__icon-pause,
.artist-player[data-playing] .artist-player__icon-play {
	display: none;
}

.artist-player[data-playing] .artist-player__icon-pause {
	display: block;
	margin-left: 0;
}

.artist-player__meta {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.artist-player__artist {
	margin: 0;
	font-size: var(--fs-body-sm);
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.75);
}

.artist-player__title {
	margin: 0 0 var(--space-8);
	font-size: var(--fs-body-lg);
	font-weight: var(--fw-semibold, 600);
	line-height: 1.35;
	color: var(--c-white);
}

/*
 * Wraps, because the row cannot honestly fit on a small phone: at 320 the meta
 * column is 126px against a transport row that wants ~220. Unwrapped, flex took
 * the difference out of whatever could give — the volume slider fell to 13px and
 * its icon to 4.5px, neither of them usable or legible. Wrapping drops the
 * volume group to its own line instead and every control keeps its real size.
 */
.artist-player__controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-8) var(--space-12);
}

/*
 * The wrap unit: icon and slider are one control and move together.
 *
 * The 88 floor is the width at which the slider is still worth dragging — the
 * icon, the 12 gap and the input's 2px UA margins leave it 48. Above that the
 * group stays on the transport line and nothing about the row changes; below it
 * the whole group drops to its own line rather than compressing. 148 is the
 * designed size: 4 + 20 icon + 12 gap + 2 + 108 slider + 2.
 */
.artist-player__volume-group {
	display: flex;
	flex: 1 1 88px;
	align-items: center;
	gap: var(--space-12);
	min-width: 88px;
	max-width: 148px;
}

/* flex-shrink 0 and a 32 floor: at 375 the volume slider was squeezing these
   below the 24px minimum tap target. The slider gives way instead. */
.artist-player__step {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--c-white);
	cursor: pointer;
}

.artist-player__step .icon {
	width: 18px;
	height: 18px;
}

.artist-player__step--prev .icon {
	rotate: 180deg;
}

/* flex: 0 0 auto — an icon that shrinks is just a smudge, and unpinned this one
   fell from 20 to 4.5 at 320. */
.artist-player__volume-icon {
	display: inline-flex;
	flex: 0 0 auto;
	margin-left: var(--space-4);
	color: var(--c-white);
}

.artist-player__volume-icon .icon {
	width: 20px;
	height: 20px;
}

.artist-player__volume {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	max-width: 108px;
	height: 4px;
	accent-color: var(--c-white);
	cursor: pointer;
}

.artist-player__scrub {
	display: flex;
	align-items: center;
	gap: var(--space-12);
	margin-top: var(--space-8);
}

.artist-player__seek {
	flex: 1 1 auto;
	min-width: 0;
	height: 4px;
	accent-color: var(--c-white);
	cursor: pointer;
}

.artist-player__time {
	margin: 0;
	flex: 0 0 auto;
	font-size: var(--fs-body-sm);
	line-height: 1;
	color: rgba(255, 255, 255, 0.9);
	font-variant-numeric: tabular-nums;
}

.artist-player__list {
	margin: 0;
	padding: 0;
	list-style: none;
	background-color: var(--c-white);
}

.artist-player__track + .artist-player__track {
	border-top: 1px solid #ececec;
}

/* Rows measure 75 in the frame. */
.artist-player__track-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-16);
	width: 100%;
	min-height: 75px;
	padding: var(--space-12) var(--space-24);
	border: 0;
	background: none;
	cursor: pointer;
	text-align: left;
	transition: background-color var(--dur-fast) var(--ease);
}

.artist-player__track-btn:hover,
.artist-player__track-btn:focus-visible {
	background-color: #fafafa;
}

.artist-player__track.is-active .artist-player__track-btn {
	background-color: #f2f2f2;
}

.artist-player__track-meta {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.artist-player__track-title {
	font-size: var(--fs-body-md, 1rem);
	font-weight: var(--fw-semibold, 600);
	line-height: 1.35;
	color: #1d1d1e;
	overflow-wrap: break-word;
}

.artist-player__track-artist {
	font-size: var(--fs-body-sm);
	line-height: 1.4;
	color: #808080;
}

.artist-player__track-time {
	flex: 0 0 auto;
	font-size: var(--fs-body-sm);
	color: #808080;
	font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Profile — "Frame 1984078300" (1440×1328) on #FAFAFA
   ========================================================================== */

.artist-profile {
	padding-block: var(--space-64);
	background-color: #fafafa;
}

.artist-profile__inner {
	display: flex;
	flex-direction: column;
	gap: 60px;
	width: 100%;
	max-width: calc(var(--container) + (var(--gutter) * 2));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.artist-profile__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-24);
	text-align: center;
}

/*
 * #JE-19 — 20, not 18. Measured off the page's own export in Design Site QA:
 * "Singer / Guitarist / DJ" inks 198 wide there against 178 rendered at 18, and
 * 198/178 is exactly 20/18, so the face is right and only the rung was wrong.
 * The two bio paragraphs under it already match the export line for line, and
 * the Instagram button is already centred on the second one.
 */
.artist-profile__genre {
	margin: 0;
	font-size: var(--fs-body-xl);
	font-weight: var(--fw-semibold);
	line-height: 1.5;
	color: var(--c-body);
}

/* The design sets the name in caps; the post title stays mixed case so the
   listings and the browser tab read normally. */
/* Ramped to land on the frame's 80px at 1440 and 40 at 428. */
.artist-profile__name {
	margin: 0;
	color: var(--c-primary-500);
	text-transform: uppercase;
	font-size: clamp(2.5rem, 1.4425rem + 3.953vw, var(--fs-display-4xl));
}

/*
 * Celebrant-only in practice — the musician layout already says the name in
 * .artist-profile__head and leaves this field empty. Same teal display-2xl as
 * the Ceremony Style band below it, so the two headings on a celebrant page
 * read as one pair.
 */
.artist-profile__title {
	margin: 0;
	color: var(--c-primary-500);
}

.artist-profile__body {
	display: grid;
	gap: var(--space-32);
}

.artist-profile__portrait {
	margin: 0;
}

/*
 * 600x700 in the frame, and it holds that ratio as the container scales — but
 * only up to the height the design gives it. Past the 1440 frame the container
 * keeps growing while the copy beside it wraps shorter, so an uncapped portrait
 * reached 833px at 1920 and 900px at 2560 next to a 411px column and towered
 * over it. The cap is the design's own height; `cover` takes the crop.
 */
/*
 * Anchored high, not centred. Fitting the Amy frame's 600x700 portrait back to
 * its source puts the window 60px down a 901px-tall photo — 30% of the 201px of
 * slack, not the 50% a default `cover` takes. Those 42px are the headroom above
 * the singer's head: centred, the frame lands on her sunglasses and the shot
 * reads cropped in. Same photo, same scale, different anchor.
 */
.artist-profile__portrait img {
	width: 100%;
	height: auto;
	max-height: 700px;
	aspect-ratio: 600 / 700;
	object-fit: cover;
	object-position: 50% 30%;
}

.artist-profile__copy {
	display: flex;
	flex-direction: column;
	gap: var(--space-32);
}

/*
 * The frame sets this paragraph in the display serif at 26/140% with -2%
 * tracking on #000 — not the body sans it was built in. Confirmed by
 * fingerprinting the frame export: at 26/140%/-2% in the 684 column the six
 * lines measure 649/642/633/583/674/619 against the frame's own
 * 648/642/633/581/672/619. The body sans at 24/150% broke the paragraph in
 * completely different places.
 */
.artist-profile__lead {
	color: var(--c-black);
	font-family: var(--font-display);
	font-size: var(--fs-body-lg);
	line-height: 1.4;
	letter-spacing: var(--ls-display);
}

.artist-profile__lead p {
	margin: 0;
}

.artist-profile__lead p + p {
	margin-top: 1em;
}

/*
 * 18/150% — the same on the musician frames as on the celebrant ones. This was
 * built at 14 and corrected on the celebrant layout only; the Frame
 * 1984078300 export settles it for musicians too. (The frames set this
 * paragraph in a ~424 column beside a social pill; the pills are gone, so it
 * now runs the full 684 copy column and wraps wider than the export.)
 */
.artist-profile__text {
	color: var(--c-body);
	font-size: var(--fs-body-lg);
	line-height: var(--lh-body);
}

.artist-profile__text p {
	margin: 0;
}

.artist-profile__text p + p {
	margin-top: 1em;
}

@media (min-width: 64em) {
	/* 600 portrait + 60 gap + 684 copy = 1344. */
	.artist-profile__body {
		grid-template-columns: 44.64% minmax(0, 1fr);
		column-gap: 4.46%; /* 60 / 1344 */
		align-items: start;
	}

	/*
	 * Centred against the portrait, not hung from its top edge. Coop's frame
	 * measures the copy block's ink at 1787-2165 against a 1625-2325 portrait —
	 * centre 1976 against centre 1975 — while the build left a short biography
	 * stranded at the top with ~300px of white under it.
	 *
	 * align-self on the copy rather than align-items on the grid: where the
	 * copy is the taller of the two (Amy, Shani) it sets the row's height and
	 * this is a no-op, which is what keeps the portrait pinned to the top of
	 * the band the way those frames draw it.
	 */
	.artist-profile__copy {
		align-self: center;
		gap: 60px;
	}

	.artist-profile__lead {
		font-size: 1.625rem; /* 26 */
	}
}

/* ==========================================================================
   Ceremony style — "Background" (1440×595) on the celebrant frames
   ========================================================================== */

.artist-style {
	padding-block: var(--space-64);
	background-color: #fafafa;
}

.artist-style__inner {
	display: grid;
	gap: var(--space-32);
	width: 100%;
	max-width: calc(var(--container) + (var(--gutter) * 2));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.artist-style__copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-32);
}

.artist-style__title {
	margin: 0;
	color: var(--c-primary-500);
}

/*
 * Body/L, not Body/M. The Ceremony Style band's paragraph is 18/150 in the
 * frame — Figma's own panel reads "Body/L/Regular · 18/150" on a 632 fill with
 * a hugged height of 216, which is 8 lines at 27. The build shipped 16/1.5, so
 * the same copy set 7 lines at 24 and the band ran short of the photo beside
 * it. Every other paragraph on these two templates is already Body/L.
 */
.artist-style__text {
	color: var(--c-body);
	font-size: var(--fs-body-lg);
	line-height: var(--lh-body);
}

.artist-style__text p {
	margin: 0;
}

.artist-style__text p + p {
	margin-top: 1em;
}

.artist-style__media {
	margin: 0;
	overflow: hidden;
	border-radius: 0;
}

/* Capped at the frame's height for the same reason as the portrait above: past
   1440 the column keeps widening while the copy beside it wraps shorter. */
.artist-style__media img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 467px;
	aspect-ratio: 632 / 467;
	object-fit: cover;
}

/* Preserve Lei's complete photo, including the person at the right edge. */
.artist-style__media--uncropped img {
	max-height: none;
	aspect-ratio: 2048 / 1365;
}

@media (min-width: 64em) {
	/* 632 copy + 80 gap + 632 photo = 1344, both columns centred on each other. */
	.artist-style__inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 5.95%; /* 80 / 1344 */
		align-items: center;
	}
}

/* --- fact cards ---------------------------------------------------------- */

/*
 * One per row at 428. The 428 frame runs these full width — 380 wide, stacked
 * with a 16 gutter — not the two-up grid this was built as.
 */
.artist-facts {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-16);
	margin: 0;
	padding: 0;
	list-style: none;
}

/*
 * Figma 324×230 at 1440, 380 wide at 428. 32 padding and the icon over the
 * words on the wide frame; 24 padding and the icon beside them on the narrow
 * one, which is what lets a full-width card stay 113 tall instead of 200.
 * Border measured off both exports: 1px #e4e4e4, 14 radius, at both widths.
 */
.artist-facts__item {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: var(--space-24);
	padding: var(--space-24);
	border: 1px solid #e4e4e4;
	border-radius: 14px;
	background-color: var(--c-white);
}

.artist-facts__icon {
	display: block;
	flex: 0 0 auto;
	color: var(--c-primary-500);
}

.artist-facts__icon .icon {
	width: 32px;
	height: 32px;
}

.artist-facts__meta {
	display: flex;
	flex-direction: column;
	gap: var(--space-8);
}

.artist-facts__title {
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--fs-body-lg);
	font-weight: var(--fw-medium);
	line-height: 1.5;
	letter-spacing: 0;
	color: #1d1d1e;
}

/*
 * 18/150%, not 14. Both frame exports set a 27px line pitch here, and at 14 the
 * 1440 card's text fit on one line where the frame wraps it onto two — which is
 * what left the card 221 tall against the frame's 230.
 */
.artist-facts__text {
	margin: 0;
	font-size: var(--fs-body-lg);
	line-height: 1.5;
	color: var(--c-body);
}

@media (min-width: 64em) {
	.artist-facts {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.artist-facts__item {
		flex-direction: column;
		gap: var(--space-40);
		padding: var(--space-32);
	}

	.artist-facts__icon .icon {
		width: 40px;
		height: 40px;
	}
}

/* ==========================================================================
   Gallery — "Frame 81" (1440×792)
   ========================================================================== */

.artist-gallery {
	display: flex;
	flex-direction: column;
	gap: var(--space-32);
	padding-block: var(--space-64);
	background-color: var(--c-white);
}

.artist-gallery__title {
	margin: 0;
	padding-inline: var(--gutter);
	text-align: center;
	color: var(--c-primary-500);
}

/*
 * Full-bleed scroller. The design's row is 2060 wide inside the 1440 frame, so
 * it runs past both edges; app.js nudges the initial scroll so it opens on that
 * same cropped-at-both-ends view instead of flush left, and it stays scrollable
 * either way.
 */
/* No scroll snapping: it would pull the rail onto an item boundary and undo
   the designed part-cropped opening position. */
.artist-gallery__rail {
	display: flex;
	gap: var(--space-24);
	margin: 0;
	padding: 0;
	overflow-x: auto;
	scrollbar-width: none;
	list-style: none;
}

/* The auto-running behaviour is shared — see .marquee__track in components.css.
   Only the rail's own gap belongs here. */
.artist-gallery__rail.is-marquee {
	--marquee-gap: var(--space-24);
}

/* Grab and pull is shared behaviour now — see [data-marquee-drag] in
   components.css, which the enquiry intro rail opts into as well. */

.artist-gallery__rail::-webkit-scrollbar {
	display: none;
}

.artist-gallery__item {
	flex: 0 0 auto;
}

/*
 * Weighted high rather than centred: these are performance shots in a square,
 * and a portrait one centred puts the crop through the singer's chin. A quarter
 * down keeps heads in frame and costs a landscape photo nothing — cover scales
 * those by height, so the vertical anchor never bites.
 */
.artist-gallery__item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 25%;
}

.artist-gallery__item--short {
	width: 260px;
	height: 260px;
}

/* Celebrant Canva references share a bottom edge. Frame each image by its
   source orientation, with a square opening crop for Jake's gallery. */
.artist-gallery--celebrant .artist-gallery__rail {
	align-items: flex-end;
}

.artist-gallery--celebrant .artist-gallery__item--tall {
	width: 228px;
	height: 342px;
}

.artist-gallery--celebrant .artist-gallery__item--short {
	width: 308px;
	height: auto;
	aspect-ratio: 3 / 2;
}

.artist-gallery--celebrant .artist-gallery__item--square {
	width: 228px;
	height: 228px;
}

@media (min-width: 64em) {
	.artist-gallery--celebrant .artist-gallery__item--tall {
		width: 360px;
		height: 540px;
	}

	.artist-gallery--celebrant .artist-gallery__item--short {
		width: 486px;
		height: 324px;
	}

	.artist-gallery--celebrant .artist-gallery__item--square {
		width: 360px;
		height: 360px;
	}
}

.artist-gallery__item--tall {
	width: 340px;
	height: 340px;
}

@media (min-width: 64em) {
	.artist-gallery {
		gap: var(--space-48);
	}

	.artist-gallery__rail {
		gap: 60px;
		align-items: center;
	}

	.artist-gallery__rail.is-marquee {
		--marquee-gap: 60px;
	}

	/* Figma alternates 400 and 540 squares, centred against each other. */
	.artist-gallery__item--short {
		width: 400px;
		height: 400px;
	}

	.artist-gallery__item--tall {
		width: 540px;
		height: 540px;
	}
}


.artist-media__logo { flex-direction: column; gap: var(--space-32); }
.artist-media__cta--pending { cursor: default; opacity: .7; }
