/**
 * Starter theme — front-end styles
 */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: 1.6;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: underline;
}

a:hover {
	background-color: #fff;
	text-decoration: none;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Header */

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1001;
	border-bottom: 1px solid var(--black);
	background: var(--yellow);
}

.site-header__inner,
.site-footer__inner,
.content-area {
	width: min(100% - 2rem, var(--wide-width));
	margin-inline: auto;
}

.site-header__inner {
	height: var(--header-inner-height);
}

.site-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-sm);
}

.site-logo {
	display: block;
	line-height: 0;
	text-decoration: none;
}

.site-logo:hover {
	background-color: transparent;
	text-decoration: none;
}

.site-logo__image {
	display: block;
	width: auto;
	max-width: min(100%, 12rem);
	height: auto;
	max-height: 3rem;
}

.site-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-lg);
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav__list a {
	color: inherit;
	text-decoration: none;
}

.nav-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	border-radius: 4px;
	padding: 0.5rem;
	cursor: pointer;
	color: inherit;
}

.nav-toggle__icon {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 1.25rem;
	height: 0.875rem;
}

.nav-toggle__bar {
	display: block;
	height: 2px;
	width: 100%;
	background-color: currentColor;
	border-radius: 1px;
	transition:
		transform 0.2s ease,
		opacity 0.2s ease;
	transform-origin: center;
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(1) {
	transform: translateY(calc(0.4375rem - 1px)) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(2) {
	opacity: 0;
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(3) {
	transform: translateY(calc(-0.4375rem + 1px)) rotate(-45deg);
}

.site-nav {
	display: none;
	width: 100%;
}

.site-nav.is-open {
	display: flex;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	margin-top: var(--header-height);
	z-index: 1000;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: var(--space-lg);
	width: 100%;
	max-width: none;
	background: var(--yellow);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.site-nav.is-open .site-nav__list {
	align-items: center;
	text-align: center;
	gap: var(--space-xl);
}

@media (max-width: 899.99px) {
	body.nav-open {
		overflow: hidden;
	}
}

.site-nav__list {
	flex-direction: column;
}

/* Breakpoints */

@media (width >= 900px) {
	.nav-toggle {
		display: none;
	}

	.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(1),
	.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(3) {
		transform: none;
	}

	.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(2) {
		opacity: 1;
	}

	.site-nav {
		display: block;
		width: auto;
		position: static;
		inset: auto;
		top: auto;
		right: auto;
		bottom: auto;
		left: auto;
		margin-top: 0;
		z-index: auto;
		flex-direction: row;
		justify-content: flex-start;
		align-items: stretch;
		padding: 0;
		max-width: none;
		background: transparent;
		overflow: visible;
	}

	.site-nav.is-open {
		display: block;
	}

	.site-nav.is-open .site-nav__list {
		align-items: stretch;
		text-align: inherit;
		gap: var(--space-lg);
	}

	.site-nav__list {
		flex-direction: row;
	}
}

/* Main content */

.site-main {
	padding-top: var(--header-height);
}

.page-title,
.entry-title {
	line-height: 1.25;
	margin-block: 0 var(--space-sm);
}

.posted-on,
.entry-footer {
	color: var(--color-muted);
	font-size: 0.875rem;
}

/* Prose + Gutenberg blocks */

.entry-content {
	max-width: var(--content-width);
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content > *:last-child {
	margin-bottom: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-block: var(--space-md) var(--space-sm);
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote {
	margin-block: 0 0 var(--space-sm);
}

.entry-content .alignwide {
	max-width: var(--wide-width);
	margin-inline: auto;
}

.entry-content .alignfull {
	max-width: none;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.entry-content .wp-block-image {
	margin-block: var(--space-md);
}

.entry-content .wp-block-image figcaption {
	color: var(--color-muted);
	font-size: 0.875rem;
	text-align: center;
	margin-top: var(--space-xs);
}

.entry-content .wp-block-columns {
	gap: var(--space-md);
	margin-block: var(--space-md);
}

.entry-content .wp-block-group {
	margin-block: var(--space-md);
}

.entry-content .wp-block-quote {
	border-left: 4px solid var(--color-accent);
	padding-left: var(--space-md);
	margin-inline: 0;
	color: var(--color-muted);
}

.entry-content .wp-block-separator {
	border: 0;
	border-top: 1px solid #e5e7eb;
	margin-block: var(--space-lg);
}

.entry-content iframe,
.entry-content .wp-block-embed {
	max-width: 100%;
}

/* ACF flexible sections */

.flexible-sections {
	container-type: inline-size;
	container-name: sections;
	max-width: var(--wide-width);
	margin-top: var(--space-lg);
}

.flex-section {
	margin-block: var(--space-lg);
}

@container sections (width >= 45rem) { /* --content-width */
	.flex-section {
		margin-block: var(--space-xl);
	}
}

.flex-section__notice {
	padding: var(--space-sm);
	background: #fef3c7;
	border: 1px solid #fcd34d;
	border-radius: 4px;
	font-size: 0.875rem;
}

/* Landing template */

.landing-hero {
	max-width: var(--wide-width);
	margin-bottom: var(--space-lg);
	padding: var(--space-lg);
	background: #f3f4f6;
	border-radius: 8px;
}

.landing-hero__title {
	margin: 0 0 var(--space-sm);
	font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.landing-hero__text {
	margin: 0;
	color: var(--color-muted);
	font-size: 1.125rem;
}

/* Socials bar */

.socials-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 900;
	height: var(--socials-bar-height);
	background: var(--yellow);
	border-top: 1px solid var(--black);
}

.socials-bar__inner {
	height: 100%;
	width: 100%;
}

.socials-bar__list {
	display: flex;
	height: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
	width: 100%;
}

.socials-bar__item {
	flex: 1 1 0;
	min-width: 0;
	width: 25%;
}

.socials-bar__item + .socials-bar__item {
	border-left: 1px solid var(--black);
}

.socials-bar__link {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	width: 100%;
	text-decoration: none;
	color: inherit;
}

.socials-bar__link:hover {
	background-color: #fff;
	text-decoration: none;
}

.socials-bar__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.socials-bar__icon img {
	display: block;
	width: 1.5rem;
	height: 1.5rem;
}

/* Footer */

.site-footer {
	color: var(--black);
	font-size: 0.875rem;
}

.site-footer a {
	color: inherit;
}

/* 404 */

.error-404 .page-title {
	margin-bottom: var(--space-sm);
}

/* Theme styles */

:root {
	--yellow: #FFFF61;
	--black: #000000;
	--font-primary: 'CentSchbook Mono BT', ui-monospace, 'Courier New', monospace;
	--header-inner-height: 74px;
	--header-height: calc(var(--header-inner-height) + 1px);
	--socials-bar-height: 3.5rem;
}

body {
	background: var(--yellow);
	color: var(--black);
	font-family: var(--font-primary);
	padding-bottom: calc(var(--socials-bar-height) - 1px);
	-webkit-font-smoothing: subpixel-antialiased;
}

h2 {
	text-rendering: geometricPrecision;
	font-synthesis: none;
}

/* --bp-sm: 40rem (640px) */
@media (width >= 40rem) {}

/* --bp-md: 48rem (768px) */
@media (width >= 48rem) {}

/* --bp-lg: 64rem (1024px) */
@media (width >= 64rem) {}

.site-nav__list a {
    text-transform: uppercase;
    font-size: 1.5rem;
}

.site-logo__image {
    max-width: 92px;
    height: auto;
	max-height: none;
}

.poster-image {
	max-width: 648px;
	margin: var(--space-lg) auto 0;
}

.programme-heading {
	width: 100vw;
	margin: 0 calc(50% - 50vw) 0;
	padding: var(--space-sm);
	text-align: center;
	text-transform: uppercase;
	font-size: 2rem;
	font-weight: inherit;
	line-height: inherit;
}

.venues-panel {
	width: 100vw;
	margin: 0 calc(50% - 50vw);
	border-top: 1px solid var(--black);
	border-bottom: 1px solid var(--black);
	display: flex;
	justify-content: center;
}

.venues-panel + .venues-panel {
	border-top: none;
}

.venues-panel__inner {
	width: 100%;
	max-width: 800px;
}

.venues-panel__inner--map {
	display: flex;
	align-items: flex-start;
	justify-content: center;
}

.venues-panel__inner--map .edition-image-trigger img {
	display: block;
	width: 100%;
	height: auto;
}

.venues-panel__content {
	padding: var(--space-md);
	text-transform: uppercase;
}

.venues-panel__content > *:first-child {
	margin-top: 0;
}

.venues-panel__content > *:last-child {
	margin-bottom: 0;
}

.venues-panel__content p {
	margin-block: 0 var(--space-md);
}

.venues-panel__content p:last-child {
	margin-bottom: 0;
}

@media (width >= 900px) {
	.venues-panel__inner {
		border-left: 1px solid var(--black);
		border-right: 1px solid var(--black);
	}
}

.venues-panel__map-text {
	margin: 0;
	text-align: center;
	text-transform: uppercase;
	font-size: 2rem;
	line-height: 1.25;
}

.artists-list {
	width: 100vw;
	margin: 0 calc(50% - 50vw) 0;
}

.artists-list__item {
	display: flex;
	flex-direction: column;
	gap: 0;
	border-right: 1px solid var(--black);
}



.artists-list__image,
.artists-list__content {
	border: 1px solid var(--black);
	padding: 20px 30px;
	border-left: none;
	border-right: none;
}

.artists-list__item + .artists-list__item .artists-list__image {
	border-top: 0;
}

.artists-list__image img {
	display: block;
	width: auto;
	max-width: 250px;
	height: auto;
	margin-inline: auto;
}
@media (width >= 900px) {
	.artists-list {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		grid-auto-rows: auto 1fr;
	}

	.artists-list__item {
		display: grid;
		grid-template-rows: subgrid;
		grid-row: span 2;
		min-width: 0;
	}

	.artists-list__item:nth-child(4n) {
		border-right: none;
	}

	.artists-list__item + .artists-list__item .artists-list__image {
		border-top: 1px solid var(--black);
	}

	.artists-list__content {
		height: 100%;
	}

	.artists-list__item:nth-child(n + 5) .artists-list__image {
		border-top: 0;
	}
}

.artists-list__content {
	padding: var(--space-sm);
	border-top: none;
	padding-bottom: var(--space-md);
}

.artists-list__title {
	margin: 0;
	font-size: 24px;
	line-height: 1.25;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.artists-list__text > :last-child {
	margin-bottom: 0;
}

.artists-list__text p {
	margin: 0 0 var(--space-md);
}

.artists-list__text p:last-child {
	margin-bottom: 0;
}

/* Previous editions image modal */

.edition-image-trigger {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	color: inherit;
	font: inherit;
	text-align: center;
}

.edition-image-trigger:hover {
	background: none;
}

.edition-modal {
	position: fixed;
	inset: 0;
	z-index: 1100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--space-md);
}

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

.edition-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
}

.edition-modal__panel {
	position: relative;
	z-index: 1;
	width: min(100%, 70rem);
	max-height: calc(100vh - .5rem);
	margin: 0;
	padding: var(--space-md);
	background: var(--yellow);
	border: 1px solid var(--black);
	overflow: auto;
}

.edition-modal__close {
	position: absolute;
	top: var(--space-sm);
	right: var(--space-sm);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	margin: 0;
	padding: 0;
	border: 1px solid var(--black);
	background: var(--yellow);
	color: inherit;
	font-family: var(--font-primary);
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	text-transform: uppercase;
}

.edition-modal__close-label {
	display: block;
}

.edition-modal__close:hover {
	background: #fff;
}

.edition-modal__image {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}

body.edition-modal-open {
	overflow: hidden;
}