/**
 * Jazz & Rib Fest block styles.
 *
 * Deliberately a plain stylesheet rather than a SCSS partial. The theme's
 * compiled bundle and its SCSS source have drifted apart, so anything added
 * to the SCSS today would be lost the next time the bundle is rebuilt.
 * Keeping these styles here means the festival blocks survive either way.
 * Follows the pattern already set by css/explore.css.
 *
 * The palette is declared locally rather than read from the theme's custom
 * properties, because those are defined in the SCSS source but never made it
 * into the deployed bundle.
 */

.jrf-grid__section,
.jrf-logos__section,
.jrf-schedule__section {
	--jrf-dark: #313056;
	--jrf-brand: #f16151;
	--jrf-ink: #232020;
	--jrf-white: #fff;
	--jrf-gap: 30px;
	--jrf-radius: 6px;
}

/* ---------------------------------------------------------------- headings */

.jrf-grid__heading {
	margin: 0 0 40px;
	text-align: center;
}

/* Sections that sit on the dark festival purple carry light text. */
.jrf-grid__section--sponsors .jrf-grid__heading,
.jrf-grid__section--vendors .jrf-grid__heading,
.jrf-grid__section--lineup .jrf-grid__heading {
	color: var(--jrf-white);
}

.jrf-grid__empty {
	text-align: center;
	opacity: 0.75;
}

.jrf-grid__section--sponsors .jrf-grid__empty,
.jrf-grid__section--vendors .jrf-grid__empty,
.jrf-grid__section--lineup .jrf-grid__empty {
	color: var(--jrf-white);
}

/* ------------------------------------------------------------------- grids */

.jrf-grid {
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	gap: var(--jrf-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media screen and (min-width: 600px) {
	.jrf-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media screen and (min-width: 900px) {
	.jrf-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.jrf-grid__item {
	display: flex;
	flex-direction: column;
	margin: 0;
}

.jrf-grid__item::before {
	content: none;
}

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

.jrf-card {
	border-radius: var(--jrf-radius);
	overflow: hidden;
}

/*
 * Logo cards are a white tile with the logo centred and given breathing room,
 * so wordmarks and square marks of different proportions all sit consistently.
 * A fixed aspect ratio keeps every tile the same height regardless of the
 * logo inside it.
 */
.jrf-card--logo {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	padding: 24px;
	background-color: var(--jrf-white);
}

.jrf-card--logo .jrf-card__image {
	width: auto;
	max-width: 100%;
	max-height: 100%;
	height: auto;
	object-fit: contain;
}

/* Vendor and artist cards are a photo filling the tile. */
.jrf-card--photo {
	aspect-ratio: 1 / 1;
	background-color: rgba(255, 255, 255, 0.08);
}

.jrf-card--photo .jrf-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.jrf-card__name {
	margin: 16px 0 0;
	font-weight: 700;
	line-height: 1.25;
	color: var(--jrf-white);
}

/* ---------------------------------------------------------- logo carousel */

.jrf-logos {
	position: relative;
	overflow: hidden;
}

.jrf-logos__track {
	display: flex;
	width: max-content;
	animation: jrf-logos-scroll linear infinite;
	animation-duration: 40s;
}

.jrf-logos--slow .jrf-logos__track {
	animation-duration: 60s;
}

.jrf-logos--fast .jrf-logos__track {
	animation-duration: 25s;
}

.jrf-logos:hover .jrf-logos__track,
.jrf-logos:focus-within .jrf-logos__track {
	animation-play-state: paused;
}

.jrf-logos__set {
	display: flex;
	align-items: center;
	gap: 30px;
	margin: 0;
	/* Matches the gap, so the spacing stays even where one set meets the next. */
	padding: 0 0 0 30px;
	list-style: none;
}

/*
 * A fixed tile width rather than a fixed image height, because these logo
 * files carry their own generous white margins: sizing by height shrinks the
 * mark inside to nothing. 250px matches the scale the logos are shown at on
 * the current site.
 */
.jrf-logos__item {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 250px;
	margin: 0;
}

.jrf-logos__item::before {
	content: none;
}

.jrf-logos__image {
	display: block;
	width: 100%;
	height: auto;
	max-height: 156px;
	object-fit: contain;
}

.jrf-logos__link {
	display: block;
}

/*
 * The track holds two identical sets, so shifting it left by exactly half its
 * width lands the second set where the first began and the loop is seamless.
 */
@keyframes jrf-logos-scroll {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

/*
 * Motion is decorative here, so anyone who has asked for reduced motion gets
 * a static, horizontally scrollable row instead.
 */
@media (prefers-reduced-motion: reduce) {
	.jrf-logos {
		overflow-x: auto;
	}

	.jrf-logos__track {
		animation: none;
	}

	.jrf-logos__set[aria-hidden="true"] {
		display: none;
	}
}

/* ------------------------------------------------------------------ lineup */

.jrf-lineup__controls {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 30px;
}

/*
 * The theme forces labels to full width, which would make each control take a
 * whole row and wrap. Reset that here rather than globally.
 */
.jrf-lineup__control {
	flex: 0 0 auto;
	width: auto;
}

.jrf-lineup__control select {
	min-width: 200px;
	padding: 10px 14px;
	border: 0;
	border-radius: 4px;
	background-color: var(--jrf-white);
	color: var(--jrf-ink);
	font: inherit;
	font-size: 1.5rem;
	line-height: 1.2;
}

.jrf-artist__stage {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin: 6px 0 0;
	font-size: 1.4rem;
	line-height: 1.3;
	color: var(--jrf-white);
}

.jrf-artist__pin {
	flex: 0 0 auto;
	margin-top: 2px;
}

/* ---------------------------------------------------------------- schedule */

/*
 * Colours and proportions follow the timetable on the current site. The one
 * thing that carries the colour there is the day, not the stage: every set on
 * Friday is maroon, Saturday gold, Sunday coral, and the tab for that day uses
 * the same colour. The block tags each tab and panel with its day position and
 * the three blocks below do the rest.
 */
.jrf-schedule {
	/*
	 * One knob controls the whole timetable. Every block offset and height is
	 * this many pixels per minute; 1.6667 is the current site's 100px hour.
	 */
	--jrf-min: 1.6667px;
	--jrf-header-h: 104px;
	--jrf-rule: #c2c2c2;
	--jrf-schedule-ink: #313056;

	/* Friday, Saturday, Sunday. */
	--jrf-day-1: #9d4359;
	--jrf-day-2: #ffc062;
	--jrf-day-3: #f26151;

	background-color: var(--jrf-white);
	border-radius: 10px;
	box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.13);
	overflow: hidden;
}

/* ---------------------------------------------------------------- day tabs */

.jrf-schedule__tabs {
	display: flex;
	flex-wrap: wrap;
	border-bottom: 1px solid var(--jrf-rule);
	border-radius: 10px 10px 0 0;
}

.jrf-schedule__tab {
	flex: 1 1 0;
	min-width: 140px;
	padding: 30px 12px;
	border: 0;
	background: transparent;
	font: inherit;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.jrf-schedule__tab:first-child {
	border-radius: 10px 0 0 0;
}

.jrf-schedule__tab:last-child {
	border-radius: 0 10px 0 0;
}

.jrf-schedule__tab-date {
	display: block;
	font-size: 1.6rem;
	line-height: 1.3;
}

.jrf-schedule__tab-day {
	display: block;
	font-size: 3.6rem;
	font-weight: 700;
	line-height: 44px;
	text-transform: uppercase;
}

/*
 * A resting tab is its day's colour on white; the selected tab inverts, and
 * the gold day takes dark text because white on gold does not read.
 */
.jrf-schedule__tab[data-jrf-day="1"] {
	color: var(--jrf-day-1);
}

.jrf-schedule__tab[data-jrf-day="2"] {
	color: var(--jrf-day-2);
}

.jrf-schedule__tab[data-jrf-day="3"] {
	color: var(--jrf-day-3);
}

.jrf-schedule__tab[data-jrf-day="1"][aria-selected="true"] {
	background-color: var(--jrf-day-1);
	color: var(--jrf-white);
}

.jrf-schedule__tab[data-jrf-day="2"][aria-selected="true"] {
	background-color: var(--jrf-day-2);
	color: var(--jrf-schedule-ink);
}

.jrf-schedule__tab[data-jrf-day="3"][aria-selected="true"] {
	background-color: var(--jrf-day-3);
	color: var(--jrf-white);
}

.jrf-schedule__tab[data-jrf-day="2"]:hover:not([aria-selected="true"]) {
	color: var(--jrf-schedule-ink);
}

.jrf-schedule__tab:focus-visible {
	outline: 3px solid var(--jrf-schedule-ink);
	outline-offset: -3px;
}

/* ---------------------------------------------------------------- timetable */

.jrf-schedule__panel {
	padding: 43px 0 28px;
}

.jrf-schedule__grid {
	position: relative;
	display: flex;
	gap: 0 63px;
	padding: 0 60px 0 20px;
}

/*
 * The hour rules are drawn once across the whole grid rather than inside each
 * stage column, so they read as continuous lines behind the sets the way they
 * do on the current site, instead of breaking at every column gap. It is the
 * grid's first child, so the sets paint over it.
 */
.jrf-schedule__grid::before {
	content: "";
	position: absolute;
	left: 94px;
	right: 60px;
	top: var(--jrf-header-h);
	height: calc(var(--jrf-span) * var(--jrf-min));
	background-image: linear-gradient(to bottom, var(--jrf-rule) 1px, transparent 1px);
	background-size: 100% calc(60 * var(--jrf-min));
	pointer-events: none;
}

.jrf-schedule__axis {
	position: relative;
	flex: 0 0 auto;
	width: 74px;
	/* Clears the stage heading row so the ticks line up with the tracks. */
	padding-top: var(--jrf-header-h);
	height: calc(var(--jrf-span) * var(--jrf-min) + var(--jrf-header-h));
}

.jrf-schedule__tick {
	position: absolute;
	right: 14px;
	top: calc(var(--jrf-header-h) + var(--jrf-offset) * var(--jrf-min));
	transform: translateY(-50%);
	font-size: 1.8rem;
	font-weight: 700;
	line-height: 22px;
	/* The hour rail is one colour on the current site whatever the day. */
	color: var(--jrf-day-1);
	white-space: nowrap;
}

.jrf-schedule__column {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	min-width: 0;
}

.jrf-schedule__stage {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	/* Fixed rather than min so every column's track starts at the same y. */
	height: var(--jrf-header-h);
	text-align: center;
}

.jrf-schedule__stage-name {
	margin: 0;
	font-size: 1.8rem;
	font-weight: 600;
	line-height: 1.25;
	color: var(--jrf-schedule-ink);
}

.jrf-schedule__stage-presenter {
	margin: 8px 0 0;
	line-height: 1.3;
	color: var(--jrf-schedule-ink);
}

.jrf-schedule__presented-by {
	display: block;
	font-size: 1.4rem;
	font-weight: 400;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.jrf-schedule__sponsor {
	display: block;
	font-size: 1.8rem;
	font-weight: 700;
}

.jrf-schedule__track {
	position: relative;
	height: calc(var(--jrf-span) * var(--jrf-min));
}

.jrf-schedule__set {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(var(--jrf-offset) * var(--jrf-min));
	height: calc(var(--jrf-duration) * var(--jrf-min));
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 5px;
	border-radius: 10px;
	text-align: center;
	overflow: hidden;
}

.jrf-schedule__panel[data-jrf-day="1"] .jrf-schedule__set {
	background-color: var(--jrf-day-1);
	color: var(--jrf-white);
}

.jrf-schedule__panel[data-jrf-day="2"] .jrf-schedule__set {
	background-color: var(--jrf-day-2);
	color: var(--jrf-schedule-ink);
}

.jrf-schedule__panel[data-jrf-day="3"] .jrf-schedule__set {
	background-color: var(--jrf-day-3);
	color: var(--jrf-white);
}

.jrf-schedule__set-name {
	margin: 0;
	font-size: 1.6rem;
	font-weight: 700;
	line-height: 1.2;
}

.jrf-schedule__set-time {
	margin: 4px 0 0;
	font-size: 1.4rem;
	font-weight: 400;
	letter-spacing: 1px;
	line-height: 1.2;
	text-transform: uppercase;
}

.jrf-schedule__notice {
	margin: 20px 60px 0;
	padding: 12px 16px;
	border-left: 3px solid var(--jrf-day-3);
	background-color: rgba(241, 97, 81, 0.08);
	font-size: 1.4rem;
}

/*
 * Below the grid breakpoint the timetable stops being a timetable. The axis
 * goes away and each stage becomes a chronological list, which is the same
 * DOM reflowed rather than a second copy of the markup. The current site
 * scrolls sideways here instead; this reads better on a phone and keeps the
 * colours the same.
 */
@media screen and (max-width: 899px) {
	.jrf-schedule__grid {
		flex-direction: column;
		gap: 30px;
		padding: 0 20px;
	}

	.jrf-schedule__axis,
	.jrf-schedule__grid::before {
		display: none;
	}

	.jrf-schedule__stage {
		height: auto;
		align-items: flex-start;
		padding-bottom: 12px;
		border-bottom: 1px solid var(--jrf-rule);
		text-align: left;
	}

	.jrf-schedule__track {
		display: flex;
		flex-direction: column;
		gap: 10px;
		height: auto;
		padding-top: 12px;
		background-image: none;
	}

	.jrf-schedule__set {
		position: static;
		height: auto;
		flex-direction: row;
		align-items: baseline;
		justify-content: space-between;
		gap: 12px;
		padding: 12px 14px;
		text-align: left;
	}

	.jrf-schedule__set-time {
		margin: 0;
		flex: 0 0 auto;
	}

	.jrf-schedule__notice {
		margin: 20px 20px 0;
	}
}

/* --- Waves cut off --------------------------------------------------------
 *
 * Two separate causes, both here.
 *
 * 1. The artwork and its squiggle overlay were pinned to a fixed 1440px frame
 *    at any width under 1440, so on a narrower screen the right hand side ran
 *    past the section and the section's overflow clipped it. They now scale
 *    with the viewport at every width.
 *
 * 2. The wave SVG is drawn on a 1440 x 873 canvas but the text-wave block
 *    renders it into a 1440 x 756 box, and "slice" centred that mismatch, so
 *    it took 64px off the top and 64px off the bottom. The bottom is solid
 *    colour and the loss there does not show; the top is the crest of the
 *    wave, which is what was being cut off. The blocks now anchor the slice
 *    to the top (xMidYMin), so the whole crest is in frame and the crop falls
 *    entirely in the solid fill below, where the lower gradient covers it.
 *
 * The ratios below are the SVG's own declared dimensions rather than the
 * rounded 1.64 and 1.9 the bundle used, which were themselves shaving a
 * little off the artwork.
 */
/*
 * The wave fills its section and crops itself, rather than keeping its own
 * proportions and forcing the section to grow to fit. Letting the artwork set
 * the height was pushing the block's text hundreds of pixels down the page on
 * a wide screen, and on a narrow one it overflowed and lost its crest to the
 * section's own clipping. The block anchors the crop to the top of the canvas,
 * so what gets trimmed is the solid colour along the bottom and the crest is
 * always in frame, at any screen width.
 */
.ffitol__wave {
	top: 0;
}

.ffitol__wave--container {
	height: 100%;
}

.ffitol__wave--image {
	width: 100% !important;
	height: 100% !important;
	aspect-ratio: auto !important;
}

.fftw__container .ffitol__wave--container {
	height: auto;
}

.fftw__container .ffitol__wave--image {
	height: auto !important;
	aspect-ratio: 1440 / 756;
}

.ffitol__wave--squiggle,
.fftw__container .ffitol__wave--squiggle {
	width: 100%;
	height: auto;
	background-size: cover;
	aspect-ratio: 2.26 / 1;
}

.column-cards__card {
	height: 100%;
}

.column-cards__card--buttons {
	margin-top: auto;
	padding-top: 40px;
}

.column-cards__card--content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	/* The card centres its children, which otherwise shrinks this to its text
	   and leaves the full width buttons inside it different widths. */
	width: 100%;
}

.column-cards__card--content > p:last-of-type {
	margin-bottom: 30px;
}

.column-cards__card--content > .btn {
	margin-top: auto;
	/* The card's text field underlines every link in it, which is right for a
	   link inside a sentence and wrong for a button. */
	text-decoration: none;
	/* A column layout would otherwise stretch every button to the full card
	   width, which is only right for the ones already set to block. */
	align-self: center;
}

.column-cards__card--content > .btn-block {
	align-self: stretch;
}

/* --- Accessibility cards (Jazz & Ribs 2) ----------------------------------
 *
 * The restroom and service animal cards are informational, not clickable, so
 * the lifted hover state is now simply how they always look and hovering
 * changes nothing.
 */
.ffc__card {
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.13);
}

.ffc__card--container:hover .ffc__card {
	-webkit-transform: none;
	transform: none;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.13);
}

.ffc__card--container:hover .ffc__card--shape {
	opacity: 1;
	-webkit-filter: none;
	filter: none;
}

/* --- Merch, lone product stretched full width (Jazz & Ribs 3) -------------
 *
 * A block holding a single product was being spanned across all three grid
 * columns and given a taller image frame. It now sits in one column at the
 * same size as every other product, left aligned in its row.
 */
.ctc__cards--container > .ffitc__card:only-child {
	grid-column: auto;
}

.ctc__cards--container > .ffitc__card:only-child .ffitc__card--image-container {
	height: auto;
	aspect-ratio: 3 / 2;
}

@media screen and (max-width: 767px) {
	.ctc__cards--container > .ffitc__card:only-child {
		grid-column: auto;
		width: 50%;
		justify-self: start;
	}
}

@media screen and (max-width: 450px) {
	.ctc__cards--container > .ffitc__card:only-child {
		width: 100%;
	}
}

/* --- Column text card button arch (Jazz & Ribs 5, Soul Fest 5) ------------
 *
 * The arch behind the button is an SVG taller than the strip it shows
 * through, so sliding it up on hover exposed a different slice of the curve
 * and read as the arch changing shape. The arch now holds still and the hover
 * feedback is the text colour flip the card already had.
 */
.ffitc__card:hover .ffitc__card--link-background {
	-webkit-transform: translateX(-50%);
	transform: translateX(-50%);
}

/* ------------------------------------------------------------- filter bar */

/*
 * Shared by the lineup and the vendor directory. The lineup's own class is
 * kept so its existing markup kept working while this was added.
 */
.jrf-filters,
.jrf-lineup__controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	margin: 0 0 30px;
}

.jrf-filters__label {
	margin: 0;
	font-size: 1.8rem;
	font-weight: 700;
	color: var(--jrf-white);
}

.jrf-filters__control {
	flex: 0 0 auto;
	width: auto;
}

.jrf-filters__control select {
	min-width: 200px;
	padding: 10px 14px;
	border: 0;
	border-radius: 4px;
	background-color: var(--jrf-white);
	color: var(--jrf-ink);
	font: inherit;
	font-size: 1.5rem;
	line-height: 1.2;
}

.jrf-filters__reset {
	padding: 10px 14px;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 4px;
	background: transparent;
	color: var(--jrf-white);
	font: inherit;
	font-size: 1.4rem;
	cursor: pointer;
}

.jrf-filters__reset:hover {
	border-color: var(--jrf-white);
	background-color: rgba(255, 255, 255, 0.12);
}

/* ------------------------------------------------- cards that open a popup */

/*
 * The whole card is the control. It is a real button so it is reachable by
 * keyboard and announced as something that opens a dialog; the styling just
 * undoes the browser's button chrome.
 */
.jrf-card__trigger {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.jrf-card__trigger .jrf-card {
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.jrf-card__trigger:hover .jrf-card,
.jrf-card__trigger:focus-visible .jrf-card {
	-webkit-transform: translateY(-4px);
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.jrf-card__trigger:focus-visible {
	outline: 3px solid var(--jrf-brand);
	outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
	.jrf-card__trigger .jrf-card {
		transition: none;
	}

	.jrf-card__trigger:hover .jrf-card,
	.jrf-card__trigger:focus-visible .jrf-card {
		-webkit-transform: none;
		transform: none;
	}
}

/* ------------------------------------------------------------------ popup */

.jrf-modal {
	position: fixed;
	z-index: 10000;
	inset: 0;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 5vh 20px;
	overflow-y: auto;
}

.jrf-modal[hidden] {
	display: none;
}

.jrf-modal__backdrop {
	position: fixed;
	inset: 0;
	background-color: rgba(35, 32, 32, 0.7);
}

.jrf-modal__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 760px;
	margin: auto;
	padding: 40px;
	border-radius: 20px;
	background-color: var(--jrf-white);
	color: var(--jrf-ink);
}

.jrf-modal__close {
	position: absolute;
	top: 12px;
	right: 16px;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--jrf-ink);
	font-size: 3.2rem;
	line-height: 1;
	cursor: pointer;
}

.jrf-modal__close:hover {
	color: var(--jrf-brand);
}

.jrf-modal__header {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	align-items: flex-start;
}

.jrf-modal__image {
	flex: 0 0 auto;
	width: 180px;
	border-radius: 10px;
	overflow: hidden;
}

.jrf-modal__image img {
	display: block;
	width: 100%;
	height: auto;
}

.jrf-modal__image--logo {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
	border: 1px solid rgba(35, 32, 32, 0.1);
}

.jrf-modal__intro {
	flex: 1 1 260px;
	min-width: 0;
}

.jrf-modal__title {
	margin: 0;
	font-size: 2.8rem;
	line-height: 1.15;
	color: var(--jrf-dark);
}

.jrf-modal__map {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 12px 0 0;
	font-size: 1.5rem;
	line-height: 1.35;
	color: var(--jrf-brand);
	text-decoration: none;
}

.jrf-modal__map:hover {
	text-decoration: underline;
}

.jrf-modal__pin {
	flex: 0 0 auto;
	margin-top: 2px;
}

.jrf-modal__links {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.jrf-modal__links li {
	margin: 0;
}

.jrf-modal__links li::before {
	content: none;
}

.jrf-modal__links a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background-color: var(--jrf-dark);
	color: var(--jrf-white);
	font-size: 1.7rem;
	text-decoration: none;
}

.jrf-modal__links a:hover {
	background-color: var(--jrf-brand);
	color: var(--jrf-white);
}

.jrf-modal__details {
	display: flex;
	flex-wrap: wrap;
	gap: 24px 40px;
	margin: 32px 0 0;
	padding: 24px 0 0;
	border-top: 1px solid rgba(35, 32, 32, 0.12);
}

.jrf-modal__detail {
	flex: 1 1 160px;
	min-width: 0;
}

.jrf-modal__detail-heading {
	margin: 0 0 6px;
	font-size: 1.3rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--jrf-dark);
	opacity: 0.75;
}

.jrf-modal__detail ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.jrf-modal__detail li {
	margin: 0;
	font-size: 1.5rem;
	line-height: 1.5;
}

.jrf-modal__detail li::before {
	content: none;
}

.jrf-modal__about {
	margin: 32px 0 0;
	padding: 24px 0 0;
	border-top: 1px solid rgba(35, 32, 32, 0.12);
}

.jrf-modal__about-heading {
	margin: 0 0 8px;
	font-size: 1.3rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--jrf-dark);
	opacity: 0.75;
}

.jrf-modal__about p:last-child {
	margin-bottom: 0;
}

/* The page behind a dialog should not scroll with it. */
body.jrf-modal-open {
	overflow: hidden;
}

@media screen and (max-width: 600px) {
	.jrf-modal {
		padding: 0;
	}

	.jrf-modal__dialog {
		min-height: 100%;
		border-radius: 0;
		padding: 56px 20px 40px;
	}

	.jrf-modal__image {
		width: 140px;
	}

	.jrf-modal__title {
		font-size: 2.2rem;
	}
}

/* --- the hidden attribute has to win ---------------------------------------
 *
 * Grid items, the filter bars and the empty-state line all carry a display
 * value, and a display rule beats the browser's own [hidden] styling. Without
 * this the filters compute the right answer and nothing moves on screen, and
 * the controls show before their behaviour is attached.
 */
.jrf-grid__item[hidden],
.jrf-grid__empty[hidden],
.jrf-filters[hidden],
.jrf-lineup__controls[hidden] {
	display: none !important;
}

/*
 * A set block opens that artist's popup, so it is a button. These rules take
 * the browser's own button styling back off, since the block itself is drawn
 * by the timetable rules above, and give it something to say on hover and on
 * keyboard focus.
 */
button.jrf-schedule__set {
	width: 100%;
	margin: 0;
	border: 0;
	font: inherit;
	color: inherit;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button.jrf-schedule__set:hover,
button.jrf-schedule__set:focus-visible {
	transform: scale(1.02);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

button.jrf-schedule__set:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	button.jrf-schedule__set {
		transition: none;
	}

	button.jrf-schedule__set:hover,
	button.jrf-schedule__set:focus-visible {
		transform: none;
	}
}

/* --- Fifty Fifty Image Text or List: vertical rhythm ----------------------
 *
 * The block is sized for tall portrait imagery: a forced min-height of 60.6vw
 * with the columns bottom aligned. The photography here is landscape, so on a
 * wide screen that left several hundred pixels of dead space above every one,
 * and pushed the heading most of the way down the section. Dropping the
 * forced height and centring the two columns is what Soul Fest already does,
 * and it is the spacing the client asked to have on both sites.
 */
@media screen and (min-width: 768px) {
	.ffitol__container--inner {
		min-height: 0;
		align-items: center;
	}

	.ffitol__container {
		padding-top: 70px;
		padding-bottom: 70px;
	}
}

@media screen and (min-width: 1440px) {
	.ffitol__container--inner {
		min-height: 0;
	}
}
