/*
 * Muziekgieterij 2027 — thema-styles.
 * Vervangt wat voorheen uit GeneratePress, Beaver Themer-instellingen en
 * inline <style>-blokken in Themer-layouts kwam. Kleuren/typografie: theme.json.
 */

html { background-color: var(--wp--preset--color--black); }
body { position: relative; }
/* Horizontale overflow afknippen zonder van html/body een scroll-container te maken.
 * Met overflow-x:hidden op zowel html als body scrolt het muiswiel in Chrome niet meer
 * (legacy.css zet hidden op html en body.single-*). clip heeft dat probleem niet. */
body,
body.single-event, body.single-kijk, body.single-lees { overflow-x: clip !important; }
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; }

/* Basis die voorheen uit GeneratePress kwam (laadt ná plugin-CSS, net als de GP inline-styles) */
h1, h2, h3, h4, h5, h6 { font-weight: 900; }
h1 { font-size: 3.3rem; margin-bottom: 0; }
h2 { font-size: 2.475rem; margin-bottom: 0; }
h3 { font-size: 2.0625rem; }
h4 { font-size: 1.65rem; margin-bottom: 0; }
h5 { font-size: 1.375rem; }
h6 { font-size: 1.1rem; }
ul, ol { margin: 0 0 1.5em 3em; padding: 0; }
li > ul, li > ol { margin-bottom: 0; margin-left: 1.5em; }
@media (max-width: 768px) {
	body, button, input, select, textarea { font-size: 18px; }
	body { line-height: 1.8; }
	h1 { font-size: 2rem; }
	h2 { font-size: 1.5rem; line-height: 1.5rem; margin-bottom: 10px; }
	h3 { font-size: 1.25rem; }
	h4 { font-size: 1rem; }
	h5 { font-size: 0.833rem; }
	h6 { font-size: 0.666rem; }
}

/* ---------- Header ---------- */
.mg-header {
	position: relative;
	z-index: 100;
	width: 100%;
	min-height: 90px;
}
.mg-header--overlay {
	position: absolute !important;
	top: 0;
	left: 0 !important;
	right: 0 !important;
	width: 100% !important;
}
/* Template-part wrapper: Stager maakt op de homepage elke <header> position:fixed */
header.wp-block-template-part { width: 100%; left: 0; top: 0; }
.admin-bar .mg-header--overlay { top: var(--wp-admin--admin-bar--height, 0); }

.mg-header .mg-logo { margin: 30px 0 0 40px; line-height: 0; }
.mg-header .mg-logo img,
#logo img { height: 50px !important; width: auto !important; }

.mg-header .hamburger-container { margin: 10px 40px 0 0; text-align: right; }
#hamburger { font-size: 50px; line-height: 80px; color: var(--wp--preset--color--white) !important; text-decoration: none; }

.mg-header--pagetitle .mg-header__title {
	position: absolute;
	left: 50%;
	top: 30px;
	transform: translateX(-50%);
	margin: 0;
	color: var(--wp--preset--color--white);
	font-size: 3rem;
	line-height: 1;
	white-space: nowrap;
	text-transform: uppercase;
	font-weight: 900;
}

/* Pagina's met een overlay-header schuiven 90px op (gelijk aan de oude BB-spacer-rij). */
header:has(.mg-header--overlay) + .mg-page,
header:has(.mg-header--overlay) + main.mg-page { padding-top: 90px; }

/* ---------- Kaart-layout (vervangt BB "fixed width" rijen van 1300px) ---------- */
.mg-page { position: relative; padding-bottom: 0; }
.mg-page > .mg-card { position: relative; z-index: 1; }
.mg-card--title { padding: 40px; }
.mg-card--content { padding: 20px; }

.mg-card--title .featured-image-container { text-align: center; }

.mg-cols { margin: 0 !important; flex-wrap: nowrap; }
.mg-col-main > * { margin-left: 20px; margin-right: 20px; }
.mg-col-main > .image-wrapper img,
.mg-col-main > .image-wrapper .wp-block-post-featured-image { width: 100%; margin: 0 0 24px; }
.mg-card--narrow > * { margin-left: 20px; margin-right: 20px; }

.content-content-column p:last-child { margin-bottom: 0; }

/* Witte en zwarte variant: kleuren voor tekst en links binnen de kaart */
.mg-card.has-black-color a,
.mg-card.has-black-color h1, .mg-card.has-black-color h2, .mg-card.has-black-color h3,
.mg-card.has-black-color h4, .mg-card.has-black-color h5, .mg-card.has-black-color h6 { color: #000; }
.mg-card.has-white-color a,
.mg-card.has-white-color h2, .mg-card.has-white-color h3,
.mg-card.has-white-color h4, .mg-card.has-white-color h5, .mg-card.has-white-color h6 { color: var(--wp--preset--color--white); }

/* ---------- Watermerk (logo op de achtergrond, uit Themer layout-CSS) ---------- */
.mg-watermark::before {
	content: "";
	position: fixed;
	inset: 0;
	background: url('/wp-content/uploads/2024/02/mg-logo-white.svg') center top / cover no-repeat;
	opacity: 0.1;
	z-index: 0;
	pointer-events: none;
}
.mg-watermark--black::before { background-image: url('/wp-content/uploads/2024/02/mg-logo-black.svg'); }

/* "Algemeen wit op zwart": lichte pagina-achtergrond met zwarte kaart */
body:has(.mg-page--dark) { background-color: var(--wp--preset--color--white) !important; }
body:has(.mg-page--dark) .mg-header { background: linear-gradient(180deg, #000 0%, rgba(0,0,0,0) 100%); }

/* Nieuwslijst in linkerkolom (vervangt BB post-grid "feed") */
.mg-news-list { padding: 0 20px; }
.mg-news-list .wp-block-post-template { list-style: none; margin: 0; padding: 0; }
.mg-news-list .wp-block-post-template > li { margin: 0 0 30px; padding-bottom: 10px; border-bottom: 2px solid var(--wp--preset--color--white); }
.mg-news-list .wp-block-post-featured-image { margin: 0 0 10px; }
.mg-news-list__title { font-size: 1rem !important; line-height: 1.3; margin: 0; }
.mg-news-list__title a { color: var(--wp--preset--color--white) !important; }
.mg-news-list .wp-block-query-pagination .page-numbers { background: #fff; color: #000; padding: 2px 8px; margin: 0 2px; }

/* ---------- Single kijk / lees / luister ---------- */
.mg-hero { position: relative; z-index: 10; padding-top: 0; }
.featured-image-container { width: 100%; text-align: center; overflow: hidden; }
.image-wrapper { position: relative; display: inline-block; width: 100%; }
.image-wrapper img { width: 100%; height: auto; display: block; }
.image-wrapper .wp-block-post-featured-image { margin: 0; }
.close-container {
	position: absolute; top: 20px; right: 20px; cursor: pointer; z-index: 10;
	background-color: rgba(0, 0, 0, 0.2); padding: 10px; width: 50px; height: 50px;
}
.leftright, .rightleft { height: 4px; width: 30px; background-color: #f8f8f8; border-radius: 2px; transition: all .3s ease-in; }
.leftright { position: absolute; margin-top: 14px; transform: rotate(45deg); }
.rightleft { position: absolute; margin-top: 14px; transform: rotate(-45deg); }
.close-container:hover .leftright { transform: rotate(-45deg); }
.close-container:hover .rightleft { transform: rotate(45deg); }

.mg-card--article { padding: 40px 20px 60px; min-height: 100vh; }
.mg-card--article > * { margin-left: 40px !important; margin-right: 40px !important; }
.mg-article-head { margin-bottom: 0 !important; }
.mg-article-body iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; }
.mg-credits { font-style: italic; }

/* ---------- Event & artiest (uit Themer-layout "events-2") ---------- */
.mg-event { position: relative; }
.mg-event-footer { position: relative; z-index: 100; margin-top: 50px; }

#ticketmenu-bottom.container-bottom { width: 100%; background: #000; color: #fff; padding: 20px 0; box-sizing: border-box; }
.inner-container { display: flex; flex-wrap: wrap; align-items: stretch; width: 1300px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.title-column { flex: 70%; word-wrap: break-word; display: flex; align-items: center; }
.meta-column { flex: 30%; display: flex; justify-content: flex-end; align-items: center; }
.post-title.container-bottom { font-family: var(--wp--preset--font-family--roboto-condensed); font-weight: 900; text-align: left; width: 100%; font-size: 2rem; margin: 0; max-width: 100%; }
.ticketBtnBottom { display: inline-block; padding: 10px 15px; color: #000; text-decoration: none; font-weight: bold; font-size: 1rem; text-align: center; min-width: 120px; }

@media (max-width: 1340px) {
	.inner-container { width: 100%; padding: 0 20px; }
}

/* ---------- Footer ---------- */
/* Class-varianten van de #event-footer-regels zodat de footer ook in de Site Editor klopt */
.mg-footer-columns { display: flex; flex-wrap: wrap; width: 100%; justify-content: space-between; align-items: flex-start; padding: 110px; }
.editor-styles-wrapper .mg-footer-columns > .footer-widget { flex: 1; margin: 10px; }
.editor-styles-wrapper .mg-footer-columns > .footer-widget:first-child { flex: 0 0 30%; }
.editor-styles-wrapper .mg-footer-columns > .footer-widget:last-child { display: none; }
.mg-footer { position: relative; z-index: 1; }
.mg-footer .mg-card { padding: 0; }
.mg-footer--dark .footer-widget,
.mg-footer--dark .footer-widget a,
.mg-footer--dark .fa-brands { color: var(--wp--preset--color--white); }
.mg-footer--dark .mg-footer-logo img { filter: invert(1); opacity: .35; }
.footer-widget .menu { list-style: none; margin: 0; padding: 0; }
/* Footer-menu's expliciet opmaken (niet meer afhankelijk van Stager's #menu-footer-* regels) */
.footer-widget .mg-menu .menu a {
	font-family: var(--wp--preset--font-family--roboto-condensed);
	font-weight: 700;
	font-style: normal;
	font-size: 1.35rem;
	color: inherit;
	text-decoration: none;
}
.footer-widget .widget { margin: 0 0 20px; }
.mg-footer-logo { margin: 0; }
.mg-tagline { margin: 0 0 20px; }

/* ---------- Archieven ---------- */
.mg-archive { padding: 0 20px 60px; }
.mg-archive__title { color: var(--wp--preset--color--white); margin: 0 0 30px !important; }
.mg-post-grid .wp-block-post-template { gap: 4px; }
.mg-post-grid__card { height: 100%; }
.mg-post-grid__card .wp-block-post-featured-image { margin: 0; }
.mg-post-grid__title { font-size: 1rem !important; padding: 10px; margin: 0; }
.mg-post-grid__title a { color: #000; }
.mg-archive--event { color: var(--wp--preset--color--white); padding-top: 20px; }

/* ---------- 404 ---------- */

/* ---------- Mobiel (BB breakpoint 768px) ---------- */
@media (max-width: 768px) {
	.mg-header { justify-content: center !important; }
	.mg-header .mg-logo { margin: 20px 0 0 0; }
	.mg-header .hamburger-container { position: absolute; right: 0; top: 0; margin: 8px 20px 0 0; }
	#hamburger { font-size: 40px; }
	.mg-header--pagetitle .mg-header__title { top: 90px; font-size: 2rem; }

	.mg-cols { flex-wrap: wrap !important; }
	.mg-cols > .wp-block-column { flex-basis: 100% !important; }
	.mg-col-main > * { margin-left: 0; margin-right: 0; }
	.mg-card--article > * { margin-left: 0 !important; margin-right: 0 !important; }

	.inner-container { flex-direction: column; padding: 0 15px; }
	.title-column, .meta-column { flex: 100%; width: 100%; justify-content: center; text-align: center; }
	.meta-column { order: 2; }
	.title-column { order: 1; }
	.post-title.container-bottom, .ticketBtnBottom { width: 100%; text-align: center; overflow-wrap: break-word; hyphens: auto; }
	.ticketBtnBottom { display: flex; align-items: center; justify-content: center; }
	.post-title.container-bottom { font-size: 1.2rem; line-height: 1.2; }
	#ticketmenu-bottom.container-bottom { padding: 10px 0; }
}

/* ---------- Event-overlay (assets/js/event-modal.js) ---------- */
html.mg-event-open,
html.mg-event-open body { overflow: hidden; }
html.mg-event-open body { padding-right: var(--mg-sbw, 0); }

.mg-event-modal {
	position: fixed;
	inset: 0;
	z-index: 1010;
}
.mg-event-modal[hidden] { display: none; }

/* Openen: achtergrond faadt in, inhoud schuift van onder naar boven in (zoals live, uk-animation-slide-bottom) */
.mg-event-modal__bg { opacity: 0; transition: opacity .4s ease; }
.mg-event-modal.is-open .mg-event-modal__bg { opacity: 1; }

/* Achtergrond: uitgelichte afbeelding met donkere laag, net als body.single-event */
.mg-event-modal__bg {
	position: absolute;
	inset: 0;
	background: #000 center top / cover no-repeat;
}
.mg-event-modal__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
}

.mg-event-modal__scroll {
	position: absolute;
	inset: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	padding: 90px 20px 0;
	transform: translateY(100%);
	transition: transform .5s cubic-bezier(.22, .8, .25, 1);
	will-change: transform;
}
.mg-event-modal.is-open .mg-event-modal__scroll { transform: none; }
@media (prefers-reduced-motion: reduce) {
	.mg-event-modal__scroll, .mg-event-modal__bg { transition: none; }
}
.mg-event-modal__content {
	position: relative;
	max-width: 1260px;
	margin: 0 auto;
}
.mg-event-modal__content .mg-event { max-width: none; }
.mg-event-modal__content .mg-event > * { max-width: none !important; }

.mg-event-modal__loader {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, .4);
	z-index: 2;
}
.mg-event-modal__loader[hidden] { display: none; }

.mg-event-modal .screen-reader-text:focus {
	position: fixed !important;
	top: 10px; left: 10px;
	width: auto; height: auto; clip: auto;
	padding: 8px 14px;
	background: #fff; color: #000;
	z-index: 5;
}

/* Oude UIkit-overlay van mg-assets/Stager niet meer gebruiken */
#eventOverlay { display: none !important; }

@media (max-width: 768px) {
	.mg-event-modal__scroll { padding: env(safe-area-inset-top, 0px) 0 0; }
}

/* Eventtitel zweeft bovenin mee over de afbeelding en landt boven #event-main-container
 * (overlay én eventpagina). Sticky binnen .featured-image-container: hij stopt waar die eindigt.
 * De margin-bottom houdt hem op afstand van de ticketbalk (sticky rekent met de margin-box);
 * de negatieve margin op de afbeelding compenseert dat, zodat de opbouw bovenaan gelijk blijft. */
.featured-image-container { overflow: clip; --mg-title-gap: 64px; } /* hidden maakt er een scrollcontainer van: dan werkt sticky niet */
.featured-image-container > .event-single-post-title {
	position: sticky;
	top: 20px;
	z-index: 20;
	margin-bottom: var(--mg-title-gap);
}
.featured-image-container > .event-single-post-title + .image-wrapper { margin-top: calc(-1 * var(--mg-title-gap)); }
/* In de overlay telt sticky vanaf de 90px padding van de scrollcontainer */
.mg-event-modal .featured-image-container > .event-single-post-title { top: -70px; }
@media (max-width: 768px) {
	.featured-image-container > .event-single-post-title { top: 10px; }
	.mg-event-modal .featured-image-container > .event-single-post-title { top: calc(env(safe-area-inset-top, 0px) + 10px); }
}

/* Programmalijst: de maand blijft bovenin staan (onder trending-balk + filters) terwijl de
 * evenementen eronderdoor scrollen; de volgende maand schuift er overheen.
 * --mg-month-top wordt in theme.js gezet op de onderkant van de sticky filterbalk. */
.program-event-month {
	--mg-month-gap: 14px; /* ruimte onder de schaduw van de filterbalk */
	position: sticky;
	top: calc(var(--mg-month-top, 0px) + var(--mg-month-gap));
	z-index: 1;
	background-color: var(--color-white, #fff);
}
/* De ruimte boven de geplakte maand afdekken in de kleur van het jaarpaneel, zodat de
 * evenementen daar niet zichtbaar onderdoor schuiven (kleur zet theme.js als --mg-yc-bg). */
.program-event-month::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 100%;
	height: var(--mg-month-gap);
	background-color: var(--mg-yc-bg, #000);
	pointer-events: none;
}

/* Overlay: het ticketpaneel in de inhoud niet tonen; de ticketbalk onderin gebruikt de kopie
 * in #stager_bottom_meta (de overlay is een containing block voor position:fixed). */
.mg-event-modal #ticket-bottom-content { display: none; }

/* Wisselen tussen events in een open overlay (zie swap() in event-modal.js) */
.mg-event-modal__ghost { pointer-events: none; overflow: hidden !important; z-index: 0; }
.mg-event-modal__scroll:not(.mg-event-modal__ghost) { z-index: 1; }
.mg-event-modal__ghost.is-back { z-index: 2; }

/* Programmalijst: jaarpanelen schuiven over het vorige jaar (mg-assets/front.min.js zet het eerste
 * paneel fixed onderin en geeft volgende panelen 25vh marge onderaan). Bij het laatste paneel liet
 * die marge onderaan het vorige jaar weer zien; het laatste paneel sluit nu aan op de onderkant. */
.events-calendar > .year-container:last-child { margin-bottom: 0 !important; display: flow-root; } /* flow-root: marge van het laatste event blijft binnen het paneel */

/* ---------- Hamburger die naar een kruis morft (zie theme.js) ----------
 * Zelfde vorm als het vorige Font Awesome-icoon (bars-staggered); maten in em van #hamburger. */
#hamburger { display: inline-block; line-height: 80px; } /* zelfde verticale positie als het oude icoon */
.mg-burger-float { display: inline-block; }
.mg-burger {
	position: relative;
	display: inline-block;
	width: .88em;
	height: 1.2em;
	vertical-align: middle;
	color: inherit;
}
.mg-burger > span {
	position: absolute;
	left: 0;
	top: 50%;
	width: .76em;
	height: .12em;
	margin-top: -.06em;
	border-radius: .06em;
	background: currentColor;
	transition: transform .32s cubic-bezier(.6, .05, .3, 1), opacity .2s ease, left .32s ease;
}
.mg-burger > span:nth-child(1) { transform: translateY(-.31em); }
.mg-burger > span:nth-child(2) { left: .12em; }
.mg-burger > span:nth-child(3) { transform: translateY(.31em); }
.is-open > .mg-burger > span:nth-child(1) { left: .06em; transform: rotate(45deg); }
.is-open > .mg-burger > span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.is-open > .mg-burger > span:nth-child(3) { left: .06em; transform: rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .mg-burger > span { transition: none; } }

/* Zwevende kopie boven het menu (de header zelf ligt onder de UIkit-modal) */
.mg-burger-float {
	position: fixed;
	z-index: 1011;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important; /* knopstijl van GP/UIkit niet overnemen */
	box-shadow: none !important;
	cursor: pointer;
	color: var(--wp--preset--color--white, #f8f8f8) !important;
	text-align: center;
}
.mg-burger-float:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
html.mg-menu-open #hamburger { visibility: hidden; }
/* Het losse kruis van UIkit niet meer tonen; de hamburger is nu het kruis */
#full-screen-modal .uk-modal-close-full { display: none; }


/* ---------- Menu-animatie ----------
 * Paneel schuift vanaf de rechterkant (kant van de hamburger) in, de pagina erachter wordt
 * gedimd, daarna komen zoekveld en menu-items kort na elkaar binnen. Sluiten: paneel schuift
 * terug naar rechts. UIkit wacht op de transitie van het modal-element zelf; de opacity springt
 * daarom direct (openen) of pas aan het eind (sluiten), zodat er geen fade meer te zien is.
 * Vervangt de oude uk-animation-*-classes (die gaven in de praktijk alleen een fade). */
#full-screen-modal {
	opacity: 1;
	background-color: rgba(0, 0, 0, 0);
	transition: opacity .42s steps(1, jump-end), background-color .42s ease;
	animation: none !important;
}
#full-screen-modal.uk-open {
	background-color: rgba(0, 0, 0, .55);
	transition: opacity .55s steps(1, jump-start), background-color .4s ease;
}
#full-screen-modal:not(.uk-open) { opacity: 0; }
#full-screen-modal .uk-modal-dialog {
	opacity: 1; /* UIkit fade van het paneel uit */
	transform: translateX(100%);
	transition: transform .4s cubic-bezier(.55, 0, .75, .2);
	will-change: transform;
	box-shadow: -30px 0 60px rgba(0, 0, 0, .35);
}
#full-screen-modal.uk-open .uk-modal-dialog {
	transform: none;
	transition: transform .55s cubic-bezier(.16, 1, .3, 1);
}
/* Variant vanaf boven (header.html, attribuut animation="top") */
#full-screen-modal.mg-menu--top .uk-modal-dialog { transform: translateY(-100%); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
#full-screen-modal.mg-menu--top.uk-open .uk-modal-dialog { transform: none; }

/* Inhoud: kort na elkaar binnenkomen */
#full-screen-modal .search-bar-container,
#full-screen-modal .column1 li,
#full-screen-modal .column2 li,
#full-screen-modal .switch {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .2s ease, transform .2s ease;
}
#full-screen-modal.uk-open .search-bar-container,
#full-screen-modal.uk-open .column1 li,
#full-screen-modal.uk-open .column2 li,
#full-screen-modal.uk-open .switch {
	opacity: 1;
	transform: none;
	transition: opacity .45s ease, transform .55s cubic-bezier(.16, 1, .3, 1);
}
#full-screen-modal.uk-open .search-bar-container { transition-delay: 160ms; }
#full-screen-modal.uk-open .switch { transition-delay: 560ms; }
#full-screen-modal.uk-open .column1 li:nth-child(1) { transition-delay: 215ms; }
#full-screen-modal.uk-open .column1 li:nth-child(2) { transition-delay: 250ms; }
#full-screen-modal.uk-open .column1 li:nth-child(3) { transition-delay: 285ms; }
#full-screen-modal.uk-open .column1 li:nth-child(4) { transition-delay: 320ms; }
#full-screen-modal.uk-open .column1 li:nth-child(5) { transition-delay: 355ms; }
#full-screen-modal.uk-open .column1 li:nth-child(6) { transition-delay: 390ms; }
#full-screen-modal.uk-open .column1 li:nth-child(7) { transition-delay: 425ms; }
#full-screen-modal.uk-open .column1 li:nth-child(8) { transition-delay: 460ms; }
#full-screen-modal.uk-open .column1 li:nth-child(9) { transition-delay: 495ms; }
#full-screen-modal.uk-open .column1 li:nth-child(10) { transition-delay: 530ms; }
#full-screen-modal.uk-open .column1 li:nth-child(11) { transition-delay: 565ms; }
#full-screen-modal.uk-open .column1 li:nth-child(12) { transition-delay: 600ms; }
#full-screen-modal.uk-open .column2 li:nth-child(1) { transition-delay: 275ms; }
#full-screen-modal.uk-open .column2 li:nth-child(2) { transition-delay: 310ms; }
#full-screen-modal.uk-open .column2 li:nth-child(3) { transition-delay: 345ms; }
#full-screen-modal.uk-open .column2 li:nth-child(4) { transition-delay: 380ms; }
#full-screen-modal.uk-open .column2 li:nth-child(5) { transition-delay: 415ms; }
#full-screen-modal.uk-open .column2 li:nth-child(6) { transition-delay: 450ms; }
#full-screen-modal.uk-open .column2 li:nth-child(7) { transition-delay: 485ms; }
#full-screen-modal.uk-open .column2 li:nth-child(8) { transition-delay: 520ms; }
#full-screen-modal.uk-open .column2 li:nth-child(9) { transition-delay: 555ms; }
#full-screen-modal.uk-open .column2 li:nth-child(10) { transition-delay: 590ms; }
#full-screen-modal.uk-open .column2 li:nth-child(11) { transition-delay: 625ms; }
#full-screen-modal.uk-open .column2 li:nth-child(12) { transition-delay: 660ms; }
#full-screen-modal .modal-content-wrapper::before { opacity: 0; transition: opacity .3s ease; }
#full-screen-modal.uk-open .modal-content-wrapper::before { opacity: .15; transition: opacity .9s ease .25s; }

@media (prefers-reduced-motion: reduce) {
	#full-screen-modal, #full-screen-modal .uk-modal-dialog,
	#full-screen-modal .search-bar-container, #full-screen-modal li, #full-screen-modal .switch {
		transition: none !important; transform: none !important;
	}
}

/* Menu: geen schuifbalken. Het paneel staat tijdens het inschuiven rechts buiten beeld
 * (horizontale balk) en min-height 100vh + padding maakte de inhoud hoger dan het scherm
 * (verticale balk). Is de inhoud écht hoger (klein scherm), dan scrollt alleen het paneel. */
#full-screen-modal { overflow: hidden !important; }
#full-screen-modal .uk-modal-dialog { height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
#full-screen-modal .uk-modal-dialog::-webkit-scrollbar { display: none; }
#full-screen-modal .modal-content-wrapper { box-sizing: border-box; }

/* ---------- On sale alert (Stager #sales-alert) ---------- */
#sales-alert .sales-alert-dialog.uk-modal-body {
	width: min(560px, calc(100vw - 32px));
	padding: 0;
	overflow: hidden;
	background: var(--wp--preset--color--white, #f8f8f8);
	box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
}
#sales-alert .uk-modal-close-default {
	top: 22px;
	right: 22px;
	padding: 6px;
	color: #fff;
	opacity: .85;
	transition: opacity .15s ease, transform .2s ease;
}
#sales-alert .uk-modal-close-default:hover,
#sales-alert .uk-modal-close-default:focus-visible { opacity: 1; transform: rotate(90deg); }
#sales-alert .stager-sales-alert-heading {
	margin: 0;
	padding: 22px 72px 20px 28px;
	background: #000;
	color: #fff;
	font-family: var(--wp--preset--font-family--roboto-condensed, inherit);
	font-size: 1.6rem;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: .01em;
	text-transform: uppercase;
}
#sales-alert .stager-sales-alert-event-title {
	margin: 0;
	padding: 24px 28px 0;
	font-family: var(--wp--preset--font-family--roboto-condensed, inherit);
	font-size: 1.35rem;
	font-weight: 800;
	line-height: 1.2;
	text-transform: uppercase;
}
#sales-alert .stager-sales-alert-intro {
	margin: 0;
	padding: 6px 28px 4px;
	font-size: 1rem;
	line-height: 1.5;
	color: #444;
}
#sales-alert .stager-sales-alert-form { margin: 0; }
#sales-alert .stager-sales-alert-field { margin: 0; padding: 18px 28px 0; }
#sales-alert .stager-sales-alert-field label {
	display: block;
	margin: 0 0 4px;
	font-family: var(--wp--preset--font-family--roboto-condensed, inherit);
	font-size: .85rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #000;
}
/* Invoerveld en keuzelijst in dezelfde stijl: alleen een lijn onderaan */
#sales-alert .stager-sales-alert-input,
#sales-alert .stager-sales-alert-select,
#sales-alert .stager-sales-alert-field select {
	display: block;
	width: 100%;
	height: 46px;
	margin: 0;
	padding: 8px 0;
	border: 0 !important;
	border-bottom: 2px solid #000 !important;
	border-radius: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;
	background-color: transparent;
	font-size: 1.05rem;
	line-height: 1.4;
	color: #000;
	transition: border-color .15s ease;
}
#sales-alert .stager-sales-alert-input::placeholder { color: #9a9a9a; }
#sales-alert .stager-sales-alert-select,
#sales-alert .stager-sales-alert-field select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 28px;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 4px center;
}
#sales-alert .stager-sales-alert-input:focus,
#sales-alert .stager-sales-alert-field select:focus { border-bottom-color: #503d6b !important; }
#sales-alert .stager-sales-alert-input:focus-visible,
#sales-alert .stager-sales-alert-field select:focus-visible { box-shadow: 0 2px 0 0 #503d6b !important; }
#sales-alert .stager-sales-alert-actions { margin: 0; padding: 28px 28px 28px; }
#sales-alert .stager-sales-alert-actions::after { content: none !important; display: none !important; }
#sales-alert .stager-sales-alert-submit {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	margin: 0;
	padding: 16px 20px;
	border: 0;
	border-radius: 0;
	background: #000;
	color: #fff;
	font-family: var(--wp--preset--font-family--roboto-condensed, inherit);
	font-size: 1.15rem;
	font-weight: 800;
	letter-spacing: .02em;
	line-height: 1;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .15s ease;
}
#sales-alert .stager-sales-alert-submit::after {
	content: "";
	flex: 0 0 auto;
	width: 40px;
	height: 14px;
	margin-left: 16px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='14' viewBox='0 0 40 14'%3E%3Cpath d='M0 7h38M32 1l6 6-6 6' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") no-repeat center / contain;
	transition: transform .2s ease;
}
#sales-alert .stager-sales-alert-submit:hover,
#sales-alert .stager-sales-alert-submit:focus-visible { background: #503d6b; }
#sales-alert .stager-sales-alert-submit:hover::after { transform: translateX(4px); }
#sales-alert .stager-sales-alert-submit[disabled] { opacity: .6; cursor: wait; }
#sales-alert .stager-sales-alert-message { margin: 0; padding: 0 28px; font-size: .95rem; line-height: 1.4; }
#sales-alert .stager-sales-alert-message:not(:empty) { padding: 0 28px 24px; margin-top: -8px; }
@media (max-width: 640px) {
	#sales-alert .stager-sales-alert-heading { font-size: 1.3rem; padding: 18px 64px 16px 20px; }
	#sales-alert .uk-modal-close-default { top: 16px; right: 16px; }
	#sales-alert .stager-sales-alert-event-title,
	#sales-alert .stager-sales-alert-intro,
	#sales-alert .stager-sales-alert-field,
	#sales-alert .stager-sales-alert-actions,
	#sales-alert .stager-sales-alert-message:not(:empty) { padding-left: 20px; padding-right: 20px; }
}

/* Jaarpanelen bij filteren (zie theme.js) */
.events-calendar .year-container.mg-yc-empty { display: none !important; }
/* Eén zichtbaar jaar: geen vastgezet paneel onderin, geen opvulruimte, geen extra marge */
.events-calendar.mg-yc-solo .year-container {
	position: relative !important;
	top: auto !important;
	bottom: auto !important;
	left: auto !important;
	right: auto !important;
	width: auto !important;
	margin-bottom: 0 !important;
}
.events-calendar.mg-yc-solo .year-container-spacer { display: none !important; }

/* ---------- Zoekpagina ([mg_search_results]) ---------- */
.mg-archive--search { padding: 110px 20px 80px; }
.mg-sr { max-width: 980px; margin: 0 auto; color: var(--wp--preset--color--white); }
.mg-sr__heading { font-family: var(--wp--preset--font-family--roboto-condensed); font-weight: 700; text-transform: uppercase; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; margin: 0 0 24px; color: var(--wp--preset--color--white); }
.mg-sr__form { display: flex; gap: 0; border-bottom: 2px solid var(--wp--preset--color--white); margin: 0 0 12px; }
.mg-sr__form input[type=search] { flex: 1; background: transparent; border: 0; color: var(--wp--preset--color--white); font-size: 1.25rem; padding: 12px 0; outline: none; -webkit-appearance: none; border-radius: 0; }
.mg-sr__form input[type=search]::placeholder { color: #8a8a8a; }
.mg-sr__form:focus-within { border-bottom-color: #8f6cb3; }
.mg-sr__form button { background: var(--wp--preset--color--purple); color: #fff; border: 0; padding: 0 26px; font-family: var(--wp--preset--font-family--roboto-condensed); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; transition: background .2s; }
.mg-sr__form button:hover { background: #64488a; }
.mg-sr__count { color: #9a9a9a; font-size: .9rem; margin: 0 0 36px; }
.mg-sr__section { margin: 0 0 44px; }
.mg-sr__section h2 { font-family: var(--wp--preset--font-family--roboto-condensed); font-weight: 700; text-transform: uppercase; font-size: 1.1rem; letter-spacing: .06em; color: #9a9a9a; margin: 0 0 12px; }
.mg-sr__list { display: flex; flex-direction: column; gap: 6px; }
.mg-sr__event { display: flex; align-items: center; gap: 18px; padding: 14px 18px; background: #1f1f1f; border: 1px dashed #3a3a3a; border-radius: 3px; color: var(--wp--preset--color--white); text-decoration: none; transition: background .2s, border-color .2s; }
.mg-sr__event:hover { background: #2a2a2a; border-color: #5a5a5a; color: var(--wp--preset--color--white); }
.mg-sr__date { flex: 0 0 64px; display: flex; flex-direction: column; align-items: center; background: #9a9a9a; color: #000; padding: 6px 4px; font-family: var(--wp--preset--font-family--roboto-condensed); font-weight: 700; text-transform: uppercase; line-height: 1; }
.mg-sr__day { font-size: 1.7rem; }
.mg-sr__month { font-size: .85rem; margin-top: 2px; }
.mg-sr__year { font-size: .7rem; margin-top: 3px; background: #000; color: #fff; padding: 2px 5px; }
.mg-sr__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.mg-sr__title { font-family: var(--wp--preset--font-family--roboto-condensed); font-weight: 700; text-transform: uppercase; font-size: 1.6rem; line-height: 1.05; overflow-wrap: anywhere; }
.mg-sr__meta, .mg-sr__text { color: #9a9a9a; font-size: .9rem; }
.mg-sr__badge { flex: 0 0 auto; background: #555; color: #fff; font-family: var(--wp--preset--font-family--roboto-condensed); font-weight: 700; text-transform: uppercase; font-size: .8rem; padding: 4px 8px; }
.mg-sr__badge--soldout { background: var(--wp--preset--color--red); }
.mg-sr__event.is-past { opacity: .6; }
.mg-sr__event.is-past .mg-sr__title { font-size: 1.25rem; }
.mg-sr__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.mg-sr__item { display: flex; gap: 14px; padding: 12px; background: #1f1f1f; border: 1px dashed #3a3a3a; border-radius: 3px; color: var(--wp--preset--color--white); text-decoration: none; transition: background .2s; }
.mg-sr__item:hover { background: #2a2a2a; color: var(--wp--preset--color--white); }
.mg-sr__item .mg-sr__title { font-size: 1.15rem; }
.mg-sr__thumb { flex: 0 0 96px; width: 96px; height: 72px; object-fit: cover; background: #2b2b2b; display: block; }
.mg-sr__type { color: #8f6cb3; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.mg-sr__empty { font-size: 1.1rem; }
.mg-sr__empty a { color: #fff; text-decoration: underline; }
@media (max-width: 640px) {
	.mg-archive--search { padding-top: 90px; }
	.mg-sr__event { gap: 12px; padding: 10px 12px; }
	.mg-sr__date { flex-basis: 54px; }
	.mg-sr__title { font-size: 1.25rem; }
	.mg-sr__form button { padding: 0 16px; }
}

/* ---------- 404 ([mg_404]) ---------- */
.mg-404__code { font-family: var(--wp--preset--font-family--roboto-condensed); font-weight: 700; font-size: .95rem; letter-spacing: .25em; text-transform: uppercase; color: #8f6cb3; margin: 0 0 10px; }
.mg-404__stage { display: flex; align-items: center; gap: 40px; margin: 0 0 30px; }
.mg-404__copy { flex: 1; min-width: 0; }
.mg-404__deck { position: relative; flex: 0 0 auto; width: 240px; height: 240px; padding: 0; border: 0; background: none; cursor: pointer; }
.mg-404__vinyl { position: absolute; inset: 0; border-radius: 50%;
	background: radial-gradient(circle, transparent 0 31%, rgba(255,255,255,.07) 31.5% 32%, transparent 32.5%),
		repeating-radial-gradient(circle, #111 0 2px, #1b1b1b 2px 4px);
	box-shadow: 0 0 0 6px #0b0b0b, 0 20px 50px rgba(0,0,0,.6), inset 0 0 40px rgba(255,255,255,.04);
	animation: mg404spin 2.4s linear infinite; }
.mg-404__vinyl::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 20deg, transparent 0 40deg, rgba(255,255,255,.08) 55deg, transparent 75deg 220deg, rgba(255,255,255,.06) 235deg, transparent 255deg); }
.mg-404__label { position: absolute; inset: 33%; border-radius: 50%; background: var(--wp--preset--color--purple); display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; font-family: var(--wp--preset--font-family--roboto-condensed); font-weight: 700; line-height: 1; box-shadow: inset 0 0 0 3px rgba(0,0,0,.25); }
.mg-404__label span { font-size: 1.9rem; }
.mg-404__label small { font-size: .5rem; letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; opacity: .8; }
.mg-404__label::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #000; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.mg-404__label span, .mg-404__label small { transform: translateY(-8px); }
.mg-404__arm { position: absolute; top: -6px; right: -18px; width: 12px; height: 150px; border-radius: 6px; background: linear-gradient(#cfcfcf, #8a8a8a); transform-origin: 50% 8px; transform: rotate(24deg); box-shadow: 0 6px 16px rgba(0,0,0,.5); transition: transform .4s ease; }
.mg-404__arm::before { content: ""; position: absolute; top: -10px; left: -10px; width: 32px; height: 32px; border-radius: 50%; background: #555; box-shadow: inset 0 0 0 6px #333; }
.mg-404__arm::after { content: ""; position: absolute; bottom: -8px; left: -5px; width: 22px; height: 26px; border-radius: 3px; background: #333; }
.mg-404__deck:hover .mg-404__arm { transform: rotate(28deg); }
.mg-404__deck.is-scratch .mg-404__vinyl { animation: mg404scratch .7s cubic-bezier(.3,.1,.3,1), mg404spin 2.4s linear .7s infinite; }
@keyframes mg404spin { to { transform: rotate(360deg); } }
@keyframes mg404scratch { 0% { transform: rotate(0); } 35% { transform: rotate(-70deg); } 60% { transform: rotate(40deg); } 100% { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mg-404__vinyl, .mg-404__deck.is-scratch .mg-404__vinyl { animation: none; } }
@media (max-width: 700px) {
	.mg-404__stage { flex-direction: column; align-items: flex-start; gap: 28px; }
	.mg-404__deck { width: 180px; height: 180px; align-self: center; }
	.mg-404__arm { height: 115px; }
}
.mg-404__lead { color: #bdbdbd; font-size: 1.05rem; margin: 0 0 28px; max-width: 640px; }
.mg-404__links { margin: 22px 0 48px; }
.mg-404__btn { display: inline-block; border: 2px solid var(--wp--preset--color--white); color: var(--wp--preset--color--white); padding: 10px 22px; font-family: var(--wp--preset--font-family--roboto-condensed); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; transition: background .2s, color .2s; }
.mg-404__btn:hover { background: var(--wp--preset--color--white); color: #000; }

/* Ticketknop die ticketstatus.min.js bij de verkoopstart neerzet (zonder id="ticketBtn", zie daar):
 * zelfde opmaak als #ticketBtn / #ticketBtnBottom uit legacy.css. */
a.ticket-button.ticket-button-live {
	font-weight: 900;
	font-size: 1.5rem;
	text-transform: uppercase;
	padding: 5px 10px;
	text-align: center;
	display: block;
	width: fit-content;
	margin: 0 auto;
	background-color: var(--color-purple);
	color: var(--color-white) !important;
	font-family: var(--mg-sans);
	font-stretch: 75%;
	text-decoration: none !important;
	position: relative;
	z-index: 4;
	cursor: pointer;
	transition: filter .2s;
}
a.ticket-button.ticket-button-live:hover,
a.ticket-button.ticket-button-live:focus-visible { filter: brightness(1.2); color: var(--color-white) !important; }

/* ---------- Documenten uit Nextcloud [mg_documenten] ---------- */
.mg-docs { max-width: 980px; margin: 0 auto 2rem; color: inherit; }
.mg-docs__folder { border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.mg-docs__folder:last-of-type { border-bottom: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.mg-docs__folder summary { display: flex; align-items: baseline; gap: 14px; padding: 16px 4px; cursor: pointer; list-style: none; font-family: var(--wp--preset--font-family--roboto-condensed); font-weight: 700; text-transform: uppercase; }
.mg-docs__folder summary::-webkit-details-marker { display: none; }
.mg-docs__folder summary::before { content: "+"; flex: 0 0 1.1em; font-size: 1.4em; line-height: .8; color: var(--wp--preset--color--purple); transition: transform .2s; }
.mg-docs__folder[open] > summary::before { content: "–"; }
.mg-docs__folder summary:hover .mg-docs__fname { color: var(--wp--preset--color--purple); }
.mg-docs__fname { font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1; transition: color .2s; }
.mg-docs__count { font-size: .8rem; letter-spacing: .06em; opacity: .55; }
.mg-docs__folder--l2 { margin-left: 1.6em; border-color: color-mix(in srgb, currentColor 12%, transparent); }
.mg-docs__folder--l2 .mg-docs__fname, .mg-docs__folder--l3 .mg-docs__fname { font-size: 1.1rem; }
.mg-docs__folder--l2 summary, .mg-docs__folder--l3 summary { padding: 12px 4px; }
.mg-docs__folder--l3 { margin-left: 1.6em; border-color: color-mix(in srgb, currentColor 10%, transparent); }
.mg-docs__files { list-style: none; margin: 0 0 14px; padding: 0 0 0 1.6em; display: flex; flex-direction: column; gap: 4px; }
.mg-docs > .mg-docs__files { padding-left: 0; margin-bottom: 24px; }
.mg-docs__file { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border: 1px dashed color-mix(in srgb, currentColor 25%, transparent); border-radius: 3px; color: inherit; text-decoration: none; transition: background .2s, border-color .2s; }
.mg-docs__file:hover { background: color-mix(in srgb, currentColor 7%, transparent); border-color: var(--wp--preset--color--purple); color: inherit; }
.mg-docs__ext { flex: 0 0 auto; min-width: 3.2em; text-align: center; padding: 4px 6px; background: var(--wp--preset--color--purple); color: #fff; font-family: var(--wp--preset--font-family--roboto-condensed); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.mg-docs__name { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 500; }
.mg-docs__meta { flex: 0 0 auto; font-size: .8rem; opacity: .6; white-space: nowrap; }
.mg-docs__empty, .mg-docs__error { opacity: .7; }
.mg-docs__error { color: var(--wp--preset--color--red); opacity: 1; }
.mg-docs__admin { margin-top: 12px; font-size: .75rem; opacity: .55; }
@media (max-width: 600px) {
	.mg-docs__file { flex-wrap: wrap; gap: 6px 12px; }
	.mg-docs__meta { flex-basis: 100%; padding-left: calc(3.2em + 24px); }
	.mg-docs__files, .mg-docs__folder--l2, .mg-docs__folder--l3 { padding-left: 0; margin-left: .8em; }
}

/* ---------- Homepage: hamburger boven de vastgezette trending-balk ----------
 * mg-assets zet de header op de homepage op z-index 2 en #trending (sticky) op 3, waardoor
 * de balk over logo én hamburger schuift. De header gaat er nu boven (onder modals/overlays),
 * klikt alleen op logo en hamburger door, en het logo verdwijnt zodra de balk vastzit. */
body.home header.wp-block-template-part { z-index: 4 !important; pointer-events: none; }
body.home header.wp-block-template-part .mg-logo,
body.home header.wp-block-template-part .hamburger-container,
body.home header.wp-block-template-part .uk-modal { pointer-events: auto; }
body.home .mg-header .mg-logo { transition: opacity .2s ease, visibility .2s; }
html.mg-trending-stuck body.home .mg-header .mg-logo { opacity: 0; visibility: hidden; pointer-events: none; }
html.mg-trending-stuck body.home #hamburger { filter: drop-shadow(0 0 6px rgba(0, 0, 0, .8)); }

/* Programmalijst: aansluiting op de maandkop volgt het eerste zichtbare event (theme.js) */
html.mg-fv .event-wrapper.production-wrapper.first-event:not(.mg-first-visible) .event { border-radius: 5px; }
html.mg-fv .event-wrapper.production-wrapper.mg-first-visible .event { border-radius: 0 0 5px 5px; }

/* ---------- Artists in Residence [mg_air] ---------- */
.mg-air { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 40px; }
.mg-air--small { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mg-air__title { margin-top: 40px; }
.mg-air__tile { position: relative; display: block; overflow: hidden; border-radius: 5px; background: #111; color: #fff !important; text-decoration: none !important; aspect-ratio: 1 / 1; isolation: isolate; }
.mg-air__photo, .mg-air__img, .mg-air__noimg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mg-air__img { object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .3s; }
.mg-air__noimg { background: linear-gradient(135deg, #222, #000); }
.mg-air__tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.85) 100%); z-index: 1; }
.mg-air__caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.mg-air__name { font-family: var(--wp--preset--font-family--roboto-condensed); font-weight: 700; text-transform: uppercase; font-size: clamp(1.3rem, 2.4vw, 2rem); line-height: 1; }
.mg-air__genre { font-size: .85rem; opacity: .8; text-transform: uppercase; letter-spacing: .04em; }
.mg-air--small .mg-air__name { font-size: 1.05rem; }
.mg-air--small .mg-air__caption { padding: 10px 12px; }
.mg-air--small .mg-air__genre { display: none; }
.mg-air__tile:hover .mg-air__img, .mg-air__tile:focus-visible .mg-air__img { transform: scale(1.05); }
.mg-air__tile:focus-visible { outline: 3px solid var(--wp--preset--color--purple); outline-offset: 3px; }
.mg-air__caption::after { content: attr(data-more); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: #c9b3e6; max-height: 0; opacity: 0; transition: max-height .25s, opacity .25s, margin .25s; }
.mg-air__tile:hover .mg-air__caption::after, .mg-air__tile:focus-visible .mg-air__caption::after { max-height: 2em; opacity: 1; margin-top: 4px; }
.mg-air--small .mg-air__caption::after { display: none; }
@media (max-width: 600px) {
	.mg-air { grid-template-columns: 1fr; }
	.mg-air--small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mg-air__caption::after { max-height: 2em; opacity: 1; margin-top: 4px; } /* geen hover op touch */
}

/* Detail (overlay én losse pagina) */
.mg-air-detail { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start; }
.mg-air-detail__media { position: sticky; top: 0; }
.mg-air-detail__img { width: 100%; height: auto; display: block; border-radius: 5px; aspect-ratio: 1 / 1; object-fit: cover; }
.mg-air-detail__kicker { margin: 0 0 6px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--wp--preset--color--purple); font-weight: 700; }
.mg-air-detail__name { color: inherit !important; margin: 0 0 6px; font-family: var(--wp--preset--font-family--roboto-condensed); font-weight: 700; text-transform: uppercase; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; }
.mg-air-detail__genre { margin: 0 0 20px; text-transform: uppercase; letter-spacing: .04em; opacity: .7; }
.mg-air-detail__bio p { margin: 0 0 1em; line-height: 1.6; }
.mg-air-detail__project { margin: 24px 0; padding: 18px 20px; border-left: 4px solid var(--wp--preset--color--purple); background: color-mix(in srgb, currentColor 6%, transparent); }
.mg-air-detail__project p { margin: 0; line-height: 1.6; }
.mg-air-detail h3 { color: inherit !important; margin: 28px 0 12px; font-family: var(--wp--preset--font-family--roboto-condensed); font-weight: 700; text-transform: uppercase; font-size: 1.2rem; letter-spacing: .04em; }
.mg-air-detail__project h3 { margin-top: 0; }
.mg-air-detail__socials { list-style: none; margin: 20px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mg-air-detail__socials a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid currentColor; border-radius: 999px; color: inherit !important; text-decoration: none !important; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; transition: background .2s, color .2s, border-color .2s; }
.mg-air-detail__socials a:hover { background: var(--wp--preset--color--purple); border-color: var(--wp--preset--color--purple); color: #fff !important; }
.mg-air-detail__spotify { margin: 24px 0; }
.mg-air-detail__spotify iframe { width: 100%; border-radius: 12px; display: block; }
.mg-air-detail__session { margin: 0 0 20px; }
.mg-air-detail__video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 5px; overflow: hidden; }
.mg-air-detail__video iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.mg-air-detail__session figcaption { margin-top: 6px; font-size: .85rem; opacity: .7; }
.mg-air-back { margin-top: 32px; }
@media (max-width: 800px) {
	.mg-air-detail { grid-template-columns: 1fr; gap: 20px; }
	.mg-air-detail__media { position: static; }
}

/* Overlay */
html.mg-air-open { overflow: hidden; padding-right: var(--mg-sbw, 0); }
.mg-air-modal { position: fixed; inset: 0; z-index: 1012; display: flex; align-items: center; justify-content: center; padding: 30px; }
.mg-air-modal[hidden] { display: none; }
.mg-air-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .75); opacity: 0; transition: opacity .25s; }
.mg-air-modal__panel { position: relative; width: min(1100px, 100%); max-height: 100%; overflow-y: auto; overscroll-behavior: contain; background: #000; color: #fff; border-radius: 6px; padding: 56px 48px 48px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); opacity: 0; transform: translateY(24px); transition: opacity .25s, transform .3s cubic-bezier(.2, .7, .2, 1); outline: none; }
.mg-air-modal.is-open .mg-air-modal__backdrop { opacity: 1; }
.mg-air-modal.is-open .mg-air-modal__panel { opacity: 1; transform: none; }
.mg-air-modal__panel .mg-air-detail__media { top: 0; }
.mg-air-modal__panel .mg-air-detail__kicker { color: #c9b3e6; }
.mg-air-modal__close { position: sticky; top: 0; float: right; margin: -40px -28px 0 0; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; z-index: 3; }
.mg-air-modal__close span { position: absolute; left: 8px; right: 8px; top: 50%; height: 3px; background: #fff; border-radius: 2px; transform: rotate(45deg); transition: background .2s; }
.mg-air-modal__close span + span { transform: rotate(-45deg); }
.mg-air-modal__close:hover span { background: #c9b3e6; }
@media (max-width: 800px) {
	.mg-air-modal { padding: 0; align-items: stretch; }
	.mg-air-modal__panel { border-radius: 0; max-height: none; height: 100%; padding: 56px 20px 32px; }
	.mg-air-modal__close { margin: -44px -8px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
	.mg-air__img, .mg-air-modal__panel, .mg-air-modal__backdrop { transition: none; }
}

.mg-air-detail__icon { display: inline-flex; width: 1.15em; height: 1.15em; align-items: center; justify-content: center; font-size: 1rem; }
.mg-air-detail__icon i { color: inherit !important; font-size: 1em; line-height: 1; }
.mg-air-detail__icon svg { width: 100%; height: 100%; fill: currentColor; }

/* ---------- Kruimelpad, sectienavigatie, vorige/volgende (inc/section-nav.php) ---------- */
.mg-crumbs { margin: 0 0 18px; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.mg-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.mg-crumbs li { display: inline-flex; align-items: center; }
.mg-crumbs li + li::before { content: "›"; margin: 0 8px; opacity: .45; }
.mg-crumbs a { color: inherit !important; text-decoration: none !important; opacity: .65; transition: opacity .2s, color .2s; }
.mg-crumbs a:hover { opacity: 1; color: var(--wp--preset--color--purple) !important; }

.mg-snav { position: sticky; top: 24px; margin: 0 20px 20px 0; }
.mg-snav__open, .mg-snav__close, .mg-snav__backdrop { display: none; }
.mg-snav__head { display: flex; align-items: center; justify-content: space-between; border-bottom: 3px solid currentColor; padding-bottom: 8px; margin-bottom: 6px; }
.mg-snav__root { font-family: var(--wp--preset--font-family--roboto-condensed); font-weight: 700; text-transform: uppercase; font-size: 1.25rem; line-height: 1.1; color: inherit !important; text-decoration: none !important; }
.mg-snav__root:hover, .mg-snav__root.is-current { color: var(--wp--preset--color--purple) !important; }
.mg-snav__list { list-style: none; margin: 0; padding: 0; }
.mg-snav__list--2, .mg-snav__list--3, .mg-snav__list--4 { margin: 0 0 6px 14px; padding-left: 0; border-left: 1px solid color-mix(in srgb, currentColor 15%, transparent); }
.mg-snav__row { display: flex; align-items: stretch; }
.mg-snav__link { flex: 1; display: block; padding: 8px 8px 8px 12px; border-left: 3px solid transparent; margin-left: -1px; color: inherit !important; text-decoration: none !important; font-family: var(--wp--preset--font-family--roboto-condensed); text-transform: uppercase; letter-spacing: .02em; font-size: 1rem; line-height: 1.2; transition: color .15s, border-color .15s, background .15s; }
.mg-snav__list--1 > .mg-snav__item > .mg-snav__row > .mg-snav__link { font-weight: 700; padding-left: 0; border-left: 0; margin-left: 0; }
.mg-snav__list--2 .mg-snav__link, .mg-snav__list--3 .mg-snav__link { font-size: .92rem; }
.mg-snav__link:hover { color: var(--wp--preset--color--purple) !important; }
.mg-snav__item.is-ancestor > .mg-snav__row > .mg-snav__link { font-weight: 700; }
.mg-snav__item.is-current > .mg-snav__row > .mg-snav__link { color: var(--wp--preset--color--purple) !important; font-weight: 700; border-left-color: var(--wp--preset--color--purple); }
.mg-snav__list--1 > .mg-snav__item.is-current > .mg-snav__row > .mg-snav__link { border-left: 0; }
.mg-snav__toggle { flex: 0 0 34px; border: 0; background: transparent; cursor: pointer; position: relative; color: inherit; border-radius: 3px; }
.mg-snav__toggle::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translate(-50%, -70%) rotate(45deg); transition: transform .2s; }
.mg-snav__toggle[aria-expanded="true"]::before { transform: translate(-50%, -30%) rotate(-135deg); }
.mg-snav__toggle:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.mg-snav__toggle:focus-visible, .mg-snav__link:focus-visible, .mg-snav__open:focus-visible { outline: 2px solid var(--wp--preset--color--purple); outline-offset: 2px; }
.mg-snav__sub[hidden] { display: none; }

.mg-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 48px 0 8px; padding-top: 20px; border-top: 1px solid color-mix(in srgb, currentColor 15%, transparent); }
.mg-pager__link { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid color-mix(in srgb, currentColor 20%, transparent); border-radius: 5px; color: inherit !important; text-decoration: none !important; transition: border-color .2s, background .2s; }
.mg-pager__link--next { text-align: right; grid-column: 2; }
.mg-pager__link:hover { border-color: var(--wp--preset--color--purple); background: color-mix(in srgb, var(--wp--preset--color--purple) 6%, transparent); }
.mg-pager__label { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; opacity: .6; }
.mg-pager__link--prev .mg-pager__label::before { content: "← "; }
.mg-pager__link--next .mg-pager__label::after { content: " →"; }
.mg-pager__title { font-family: var(--wp--preset--font-family--roboto-condensed); font-weight: 700; text-transform: uppercase; font-size: 1.05rem; line-height: 1.15; }

@media (max-width: 768px) {
	.mg-snav { position: static; margin: 0 0 20px; }
	.mg-snav__open { display: flex; width: 100%; align-items: center; gap: 10px; padding: 12px 44px 12px 16px; background: #000; color: #fff; border: 0; border-radius: 5px; text-align: left; cursor: pointer; position: relative; font: inherit; }
	.mg-snav__open::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-70%) rotate(45deg); }
	.mg-snav__open-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; opacity: .7; white-space: nowrap; }
	.mg-snav__open-page { font-family: var(--wp--preset--font-family--roboto-condensed); font-weight: 700; text-transform: uppercase; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.mg-snav__panel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1013; max-height: 82vh; overflow-y: auto; overscroll-behavior: contain; background: #fff; color: #000; padding: 18px 20px calc(24px + env(safe-area-inset-bottom)); border-radius: 14px 14px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.35); transform: translateY(105%); visibility: hidden; transition: transform .3s cubic-bezier(.2,.7,.2,1), visibility 0s .3s; }
	.mg-snav.is-open .mg-snav__panel { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
	.mg-snav__backdrop { display: block; position: fixed; inset: 0; z-index: 1012; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .25s; }
	.mg-snav__backdrop[hidden] { display: none; }
	.mg-snav.is-open .mg-snav__backdrop { opacity: 1; }
	.mg-snav__close { display: block; color: #000; position: relative; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; flex: 0 0 40px; }
	.mg-snav__close span { position: absolute; left: 9px; right: 9px; top: 50%; height: 2px; background: currentColor; transform: rotate(45deg); }
	.mg-snav__close span + span { transform: rotate(-45deg); }
	.mg-snav__link { padding-top: 11px; padding-bottom: 11px; }
	html.mg-snav-open { overflow: hidden; }
	.mg-pager { grid-template-columns: 1fr; }
	.mg-pager__link--next { grid-column: 1; }
}
/* De oude index-navigatie van Stager niet meer tonen als de nieuwe er is */
.mg-col-nav:has(.mg-snav) .navigation-content-wrapper { display: none; }
@media (min-width: 769px) { .mg-col-main > .mg-crumbs, .mg-col-main > .mg-pager { margin-left: 20px; margin-right: 20px; } }

/* Scrollspy: het blok dat in beeld is */
.mg-snav__link.is-active { color: var(--wp--preset--color--purple) !important; font-weight: 700; border-left-color: var(--wp--preset--color--purple) !important; }
.mg-snav__list--1 > .mg-snav__item > .mg-snav__row > .mg-snav__link.is-active { padding-left: 10px; border-left: 3px solid var(--wp--preset--color--purple); }
.mg-snav__item.is-active-parent > .mg-snav__row > .mg-snav__link { font-weight: 700; }
/* Zodra een blok actief is, de pagina zelf niet ook nog paars */
.mg-snav.is-spying .mg-snav__item.is-current > .mg-snav__row > .mg-snav__link:not(.is-active),
.mg-snav.is-spying .mg-snav__root.is-current { color: inherit !important; border-left-color: transparent; }
/* Lange lijst (alles uitgeklapt): sticky kolom mag zelf scrollen */
@media (min-width: 769px) {
	/* Geen overscroll-contain: aan het eind van de lijst scrolt de pagina gewoon door (anders "hangt" het scrollen boven de navigatie) */
	.mg-snav__panel { max-height: calc(100vh - 48px); overflow-y: auto; overscroll-behavior: auto; scrollbar-width: thin; }
}
/* Ankers van de blokken niet onder de bovenrand */
.content_insert_container > li { scroll-margin-top: 24px; }

/* Mobiel: menubalk van de sectienavigatie blijft bovenin staan tijdens het scrollen.
 * De kolom wordt 'display: contents', zodat de balk sticky is binnen de hele inhoud (niet alleen
 * binnen de eigen, korte kolom). */
@media (max-width: 768px) {
	.mg-cols > .mg-col-nav:has(.mg-snav) { display: contents; }
	.mg-cols > .mg-col-nav > .mg-snav { position: sticky; top: 0; z-index: 60; flex: 0 0 100%; margin: 0 0 20px; }
	.admin-bar .mg-cols > .mg-col-nav > .mg-snav { top: var(--wp-admin--admin-bar--height, 0); }
	.mg-snav.is-stuck .mg-snav__open { border-radius: 0 0 5px 5px; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
}
@media (max-width: 600px) {
	.admin-bar .mg-cols > .mg-col-nav > .mg-snav { top: 0; } /* adminbalk scrolt daar mee weg */
}

/* ---------- Horeca-assortiment [mg_assortiment] ---------- */
.mg-as { margin: 24px 0 40px; }
.mg-as__tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mg-as__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mg-as__chip { padding: 7px 14px; border: 1px solid currentColor; border-radius: 999px; background: transparent; color: inherit; cursor: pointer; font: inherit; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; transition: background .15s, color .15s, border-color .15s; }
.mg-as__chip:hover { border-color: var(--wp--preset--color--purple); color: var(--wp--preset--color--purple); }
.mg-as__chip.is-on { background: #000; border-color: #000; color: #fff; }
.mg-as__search { flex: 1 1 220px; max-width: 320px; }
.mg-as__search input { width: 100%; padding: 9px 12px; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); border-radius: 5px; background: transparent; color: inherit; font: inherit; }
.mg-as__search input:focus { outline: 2px solid var(--wp--preset--color--purple); outline-offset: 1px; border-color: transparent; }
.mg-as__jumps { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 28px; padding: 10px 0; border-top: 1px solid color-mix(in srgb, currentColor 15%, transparent); border-bottom: 1px solid color-mix(in srgb, currentColor 15%, transparent); }
.mg-as__jump { font-family: var(--wp--preset--font-family--roboto-condensed); font-weight: 700; text-transform: uppercase; font-size: .85rem; color: inherit !important; text-decoration: none !important; }
.mg-as__jump:hover { color: var(--wp--preset--color--purple) !important; }
.mg-as__jump[hidden] { display: none; }

.mg-as__group { margin: 0 0 32px; scroll-margin-top: 90px; }
.mg-as__gtitle { margin: 0 0 10px !important; padding-bottom: 6px; border-bottom: 3px solid currentColor; font-family: var(--wp--preset--font-family--roboto-condensed); font-weight: 700; text-transform: uppercase; font-size: 1.5rem !important; color: inherit !important; }
.mg-as__stitle { margin: 16px 0 4px !important; font-size: .8rem !important; text-transform: uppercase; letter-spacing: .08em; color: var(--wp--preset--color--purple) !important; font-weight: 700; }
.mg-as__list { list-style: none; margin: 0; padding: 0; }
.mg-as__item { border-bottom: 1px dashed color-mix(in srgb, currentColor 20%, transparent); }
.mg-as__item[hidden], .mg-as__sub[hidden], .mg-as__group[hidden], .mg-as__botm[hidden] { display: none; }
.mg-as__item summary, .mg-as__row { display: flex; align-items: baseline; gap: 12px; padding: 10px 0; list-style: none; }
.mg-as__item summary { cursor: pointer; }
.mg-as__item summary::-webkit-details-marker { display: none; }
.mg-as__item summary:hover .mg-as__name { color: var(--wp--preset--color--purple); }
.mg-as__item summary .mg-as__name::after { content: "+"; display: inline-block; margin-left: 6px; font-weight: 400; opacity: .45; transition: transform .2s; }
.mg-as__item details[open] summary .mg-as__name::after { content: "–"; }
.mg-as__main { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.mg-as__name { font-weight: 600; transition: color .15s; }
.mg-as__tags { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.mg-as__tag { display: inline-block; padding: 1px 7px; border-radius: 3px; font-size: .7rem; line-height: 1.6; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; background: color-mix(in srgb, currentColor 9%, transparent); }
.mg-as__tag--alc { font-variant-numeric: tabular-nums; }
.mg-as__tag--alc.is-free { background: #dff3e4; color: #1d6b35; }
.mg-as__tag--diet { background: #eef4d9; color: #4b5d12; }
.mg-as__tag--botm { background: var(--wp--preset--color--purple); color: #fff; }
.mg-as__where { flex-basis: 100%; font-size: .75rem; opacity: .6; }
.mg-as__price { flex: 0 0 auto; font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.mg-as__desc { margin: -4px 0 12px; font-size: .9rem; line-height: 1.55; opacity: .8; max-width: 60ch; }

.mg-as__botm { margin: 0 0 28px; padding: 16px 18px 6px; border-radius: 6px; background: #000; color: #fff; }
.mg-as__botm-kicker { margin: 0; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: #c9b3e6; font-weight: 700; }
.mg-as__botm .mg-as__item { border-bottom: 0; }
.mg-as__botm .mg-as__name { font-family: var(--wp--preset--font-family--roboto-condensed); text-transform: uppercase; font-size: 1.4rem; }
.mg-as__none { padding: 20px 0; opacity: .7; }
.mg-as__note { margin-top: 20px; font-size: .8rem; opacity: .6; }
@media (max-width: 600px) {
	.mg-as__search { max-width: none; }
	.mg-as__jumps { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
	.mg-as__jump { white-space: nowrap; }
}

/* ---------- Inhoudspagina's: logo en hamburger blijven in beeld (sticky header) ----------
 * De header (overlay) wordt vast bovenin gezet; alleen logo en hamburger vangen klikken.
 * Na een stukje scrollen (html.mg-scrolled, theme.js) worden ze compacter en krijgen ze een
 * zwarte achtergrond, zodat ze ook boven de witte inhoud leesbaar blijven. */
body.page:not(.home) header.wp-block-template-part:has(.mg-header--overlay) { position: fixed; top: 0; left: 0; right: 0; z-index: 100; pointer-events: none; }
.admin-bar.page:not(.home) header.wp-block-template-part:has(.mg-header--overlay) { top: var(--wp-admin--admin-bar--height, 0); }
body.page:not(.home) header.wp-block-template-part .mg-logo,
body.page:not(.home) header.wp-block-template-part .hamburger-container,
body.page:not(.home) header.wp-block-template-part .uk-modal { pointer-events: auto; }
body.page:not(.home) .mg-header--overlay .mg-logo,
body.page:not(.home) .mg-header--overlay .hamburger-container { transition: margin .25s ease, padding .25s ease, background-color .25s ease, box-shadow .25s ease, border-radius .25s ease; border-radius: 6px; }
body.page:not(.home) .mg-header--overlay .mg-logo img { transition: height .25s ease; }
body.page:not(.home) .mg-header--overlay #hamburger { transition: font-size .25s ease, line-height .25s ease; }
@media (min-width: 769px) {
	html.mg-scrolled body.page:not(.home) .mg-header--overlay .mg-logo { margin: 14px 0 0 14px; padding: 9px 10px; background: #000; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
	html.mg-scrolled body.page:not(.home) .mg-header--overlay .mg-logo img { height: 34px !important; }
	html.mg-scrolled body.page:not(.home) .mg-header--overlay .hamburger-container { margin: 14px 14px 0 0; padding: 0 12px; background: #000; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
	html.mg-scrolled body.page:not(.home) .mg-header--overlay #hamburger { font-size: 32px; line-height: 52px; }
}
@media (max-width: 768px) {
	/* Mobiel: compacte zwarte balk; de menubalk van de sectienavigatie schuift eronder */
	body.page:not(.home) .mg-header--overlay { transition: background-color .25s ease, min-height .25s ease, box-shadow .25s ease; }
	html.mg-scrolled body.page:not(.home) .mg-header--overlay { background: #000; min-height: 56px; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); pointer-events: auto; }
	html.mg-scrolled body.page:not(.home) .mg-header--overlay .mg-logo { margin: 9px 0 9px; }
	html.mg-scrolled body.page:not(.home) .mg-header--overlay .mg-logo img { height: 38px !important; }
	html.mg-scrolled body.page:not(.home) .mg-header--overlay .hamburger-container { margin: 0 16px 0 0; }
	html.mg-scrolled body.page:not(.home) .mg-header--overlay #hamburger { font-size: 30px; line-height: 56px; }
	html.mg-scrolled body.page:not(.home) .mg-cols > .mg-col-nav > .mg-snav { top: 56px; }
	html.mg-scrolled body.page:not(.home) .mg-snav.is-stuck .mg-snav__open { border-radius: 0 0 5px 5px; }
}
/* Het zwarte verloop achter de header (mg-assets header::before) alleen bovenaan de pagina */
body.page:not(.home) header.wp-block-template-part:has(.mg-header--overlay)::before { transition: opacity .25s ease; }
html.mg-scrolled body.page:not(.home) header.wp-block-template-part:has(.mg-header--overlay)::before { opacity: 0; }

/* ---------- Zoeken in de menu-overlay (inc/search-overlay.php) ---------- */
#search-results-container { color: #fff; max-height: calc(100vh - 220px); overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; transition: opacity .15s; }
#search-results-container.is-loading { opacity: .55; }
.mg-so__section { margin: 0 0 28px; }
.mg-so__title { margin: 0 0 10px !important; font-family: var(--wp--preset--font-family--roboto-condensed); font-weight: 700; text-transform: uppercase; font-size: .95rem !important; letter-spacing: .08em; color: #9a9a9a !important; }
#search-results-container .mg-sr__event { padding: 10px 14px; gap: 14px; }
#search-results-container .mg-sr__date { flex-basis: 54px; }
#search-results-container .mg-sr__day { font-size: 1.4rem; }
#search-results-container .mg-sr__title { font-size: 1.25rem; }
.mg-so__section--past .mg-sr__event { opacity: .75; }
.mg-so__air { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.mg-so__airitem { display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; background: #1f1f1f; border: 1px dashed #3a3a3a; border-radius: 3px; color: #fff !important; text-decoration: none !important; font-family: var(--wp--preset--font-family--roboto-condensed); font-weight: 700; text-transform: uppercase; transition: background .2s, border-color .2s; }
.mg-so__airitem:hover, .mg-so__airitem:focus-visible { background: #2a2a2a; border-color: var(--wp--preset--color--purple); }
.mg-so__airitem img, .mg-so__noimg { width: 44px; height: 44px; object-fit: cover; border-radius: 3px; flex: 0 0 44px; background: #333; }
.mg-so__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.mg-so__links a { display: flex; align-items: baseline; gap: 10px; padding: 8px 12px; background: #1f1f1f; border-radius: 3px; color: #fff !important; text-decoration: none !important; font-weight: 600; transition: background .2s; }
.mg-so__links a:hover, .mg-so__links a:focus-visible { background: #2a2a2a; }
.mg-so__type { flex: 0 0 auto; min-width: 90px; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #c9b3e6; font-weight: 700; }
.mg-so__all a, .mg-so__none a { color: #c9b3e6 !important; }
.mg-so__all { margin: 6px 0 10px; font-weight: 700; }
.mg-so__none, .mg-so__loading { color: #bbb; }
#search-results-container a:focus-visible { outline: 2px solid #c9b3e6; outline-offset: 2px; }
@media (max-width: 600px) {
	#search-results-container { max-height: none; }
	.mg-so__type { min-width: 0; }
	.mg-so__links a { flex-direction: column; gap: 2px; }
}
#search-results-container { display: block; width: 100%; max-width: 900px; }
#search-results-container[style*="none"] { display: none !important; }
.mg-so__section .mg-sr__list { display: flex; flex-direction: column; gap: 6px; }

/* ---------- Verlopen bericht (inc/messages.php) ---------- */
.mg-expired { display: flex; gap: 16px; align-items: flex-start; margin: 0 0 28px; padding: 18px 20px; border: 1px solid #f0b429; border-left-width: 6px; border-radius: 5px; background: rgba(240, 180, 41, .12); color: inherit; }
.mg-expired__icon { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; background: #f0b429; position: relative; margin-top: 2px; }
.mg-expired__icon::before { content: "!"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #000; font-weight: 800; font-family: var(--wp--preset--font-family--roboto-condensed); font-size: 18px; }
.mg-expired__body p { margin: 0 0 6px; line-height: 1.5; }
.mg-expired__title { font-family: var(--wp--preset--font-family--roboto-condensed); font-weight: 700; text-transform: uppercase; font-size: 1.15rem; letter-spacing: .03em; color: #f0b429; }
.has-white-background-color .mg-expired__title, .mg-page:not(.mg-page--dark) .mg-expired__title { color: #8a5d00; }
.mg-expired__more { margin-bottom: 0 !important; font-size: .92rem; opacity: .85; }
.mg-expired a { color: inherit !important; text-decoration: underline !important; }

/* ---------- Meerdaagse evenementen: dagen / passe-partouts (inc/festival-days.php) ---------- */
.mg-fd { text-align: left; margin: 0; padding: 12px 6px 8px; background: transparent; color: #fff; }
.mg-fd__title { margin: 0 0 14px !important; text-align: center; font-family: var(--wp--preset--font-family--roboto-condensed); font-weight: 900; text-transform: uppercase; font-size: 18px !important; line-height: 1.3; color: #f8f8f8 !important; }
.mg-fd__list { display: flex; flex-direction: column; gap: 6px; max-width: 640px; margin: 0 auto; }
.mg-fd__row { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; background: #2b2a2b; border: 1px solid transparent; border-radius: 4px; color: #fff !important; text-decoration: none !important; transition: border-color .15s, background .15s; }
.mg-fd__row:hover, .mg-fd__row:focus-visible { border-color: var(--wp--preset--color--purple); background: #333; }
.mg-fd__row:focus-visible { outline: 2px solid #c9b3e6; outline-offset: 2px; }
.mg-fd__date { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px 0; background: #000; border-radius: 3px; font-family: var(--wp--preset--font-family--roboto-condensed); font-weight: 700; text-transform: uppercase; line-height: 1.05; }
.mg-fd__dow, .mg-fd__mon { font-size: .7rem; letter-spacing: .06em; color: #c9b3e6; }
.mg-fd__day { font-size: 1.55rem; }
.mg-fd__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mg-fd__name { font-family: var(--wp--preset--font-family--roboto-condensed); font-weight: 700; text-transform: uppercase; font-size: 1.15rem; }
.mg-fd__acts { font-size: .9rem; color: #ddd; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mg-fd__time { font-size: .78rem; color: #9a9a9a; font-variant-numeric: tabular-nums; }
.mg-fd__side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.mg-fd__status { font-size: .8rem; font-weight: 700; white-space: nowrap; }
.mg-fd__status--on { color: #fff; }
.mg-fd__status--last { color: #ffd166; }
.mg-fd__status--soon { color: #c9b3e6; }
.mg-fd__status--off { color: #9a9a9a; text-decoration: line-through; }
.mg-fd__go { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #9a9a9a; transition: color .15s; }
.mg-fd__row:hover .mg-fd__go { color: #c9b3e6; }
.mg-fd--pass .mg-fd__date { background: var(--wp--preset--color--purple); }
.mg-fd--pass .mg-fd__dow, .mg-fd--pass .mg-fd__mon { color: #fff; }
.stager_production_meta_extra_item:has(> .mg-fd) { flex: 1 1 100%; width: 100%; }
@media (max-width: 600px) {
	.mg-fd { padding: 14px 10px 10px; }
	.mg-fd__row { grid-template-columns: 50px 1fr; gap: 10px; }
	.mg-fd__side { grid-column: 2; flex-direction: row; justify-content: space-between; align-items: baseline; }
	.mg-fd__acts { white-space: normal; }
}

/* ---------- Vertraagde download (inc/tickets-sealed.php) ---------- */
.tickets-sealed.mg-sealed { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: center; justify-content: flex-start !important; gap: 14px; padding: 16px 20px; background: rgb(28, 27, 28); color: #f8f8f8; text-align: left; border-top: 1px solid rgba(255, 255, 255, .08); border-radius: 0 !important; max-width: 980px; margin-left: auto; margin-right: auto; }
.mg-sealed__icon { flex: 0 0 40px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--wp--preset--color--purple); color: #fff; }
.mg-sealed__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; text-align: left; }
.mg-sealed__title { font-family: var(--wp--preset--font-family--roboto-condensed); font-weight: 900; text-transform: uppercase; font-size: 18px; line-height: 1.2; }
.mg-sealed__when { font-size: .95rem; line-height: 1.45; }
.mg-sealed__when strong { color: #fff; white-space: nowrap; }
.mg-sealed__why { font-size: .8rem; color: #a9a9a9; }
.mg-sealed__why a { color: #c9b3e6 !important; font-weight: 700; text-decoration: none !important; white-space: nowrap; }
.mg-sealed__why a:hover { text-decoration: underline !important; }
@media (max-width: 600px) {
	.tickets-sealed.mg-sealed { padding: 14px 12px; gap: 12px; }
	.mg-sealed__when strong { white-space: normal; }
}

@media (max-width: 600px) {
	/* Meta-blok (losse dagen, meerdaagse kaarten, meldingen) over de volle breedte, net als de vertraagde download */
	.stager_production_meta_extra_container { margin-left: 0 !important; margin-right: 0 !important; }
	.mg-fd { padding-left: 0; padding-right: 0; }
	.tickets-sealed.mg-sealed { padding: 14px 10px; }
}

/* ---------- Losse berichtpagina op mobiel: bericht eerst, nieuwslijst eronder als swipe-rij ---------- */
@media (max-width: 781px) {
	body.single-post .mg-cols { flex-direction: column; }
	body.single-post .mg-cols > .mg-col-main { order: -1; }
	body.single-post .mg-cols > .mg-col-nav { margin-top: 32px; padding-top: 20px; border-top: 2px solid rgba(255, 255, 255, .15); }
	body.single-post .mg-news-list { padding: 0; }
	body.single-post .mg-news-list::before { content: "Meer nieuws"; display: block; margin: 0 20px 12px; font-family: var(--wp--preset--font-family--roboto-condensed); font-weight: 900; text-transform: uppercase; font-size: 18px; color: #fff; }
	html[lang^="en"] body.single-post .mg-news-list::before { content: "More news"; }
	body.single-post .mg-news-list .wp-block-post-template { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px; padding: 0 20px 12px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
	body.single-post .mg-news-list .wp-block-post-template::-webkit-scrollbar { display: none; }
	body.single-post .mg-news-list .wp-block-post-template > li { flex: 0 0 72%; margin: 0; padding: 0 0 10px; border-bottom: 0; scroll-snap-align: start; }
	body.single-post .mg-news-list .wp-block-post-template > li.current-post { display: none; }
	body.single-post .mg-news-list .wp-block-query-pagination { display: none; }
}

/* Sectienavigatie op mobiel: losse 'zwevende' balk met wat ruimte tot de bovenkant/header */
@media (max-width: 768px) {
	.mg-cols > .mg-col-nav > .mg-snav { top: 12px; }
	.admin-bar .mg-cols > .mg-col-nav > .mg-snav { top: calc(var(--wp-admin--admin-bar--height, 0px) + 12px); }
	html.mg-scrolled body.page:not(.home) .mg-cols > .mg-col-nav > .mg-snav { top: calc(68px + 12px); } /* zwarte header is op mobiel 68px hoog */
	.mg-snav.is-stuck .mg-snav__open,
	html.mg-scrolled body.page:not(.home) .mg-snav.is-stuck .mg-snav__open { border-radius: 5px; box-shadow: 0 8px 22px rgba(0, 0, 0, .38); }
}
@media (max-width: 600px) {
	.admin-bar .mg-cols > .mg-col-nav > .mg-snav { top: 12px; }
}

/* Lopende tekst: ruimte tussen paragrafen/lijsten. De globale blockGap is 0px, waardoor WordPress
 * (:root :where(.is-layout-flow) > * { margin-block: 0 }) alle alinea's tegen elkaar zette. */
body :is(#eventContent, .content-content-column .entry-content, .mg-col-main .entry-content, .mg-col-main > .wp-block-post-content) > :is(p, ul, ol, blockquote, .wp-block-list, .wp-block-quote) + :is(p, ul, ol, blockquote, .wp-block-list, .wp-block-quote) { margin-block-start: 1em; }

/* ---------- Programma: meerdaags evenement (Stager .ma) in dezelfde stijl als een gewone rij ---------- */
.event-wrapper.production-wrapper.ma { scale: none; box-shadow: none; margin-top: 10px; margin-bottom: 10px; }
.event-wrapper.production-wrapper.ma > .event { border: 0 !important; border-radius: 5px; background: rgba(255, 255, 255, .12); padding: 15px 10px 10px 5px !important; }
.event-wrapper.production-wrapper.ma .event-content-ma { align-items: flex-start; gap: 0; }
/* datumkolom: zoals een gewone rij, met begin – eind onder elkaar */
.event-content-ma > .event-column-date { flex: 0 0 50px; align-self: stretch; }
.event-content-ma > .event-column-date .event-date { height: auto !important; background: transparent !important; color: inherit !important; padding: 0 !important; border-radius: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; font-family: var(--wp--preset--font-family--roboto-condensed); font-weight: 700; text-transform: uppercase; line-height: 1.05; font-size: 1rem; }
.event-content-ma > .event-column-date .event-date-item.divider { display: block; width: 2px; height: 14px; margin: 2px 0; background: #fff !important; opacity: 1; border: 0 !important; box-sizing: content-box; }
/* kop: titel links, zelfde maat als gewone rijen */
.event-content-ma > .event-column-content { justify-content: flex-start; align-items: flex-start; padding-left: 20px; }
.event-content-ma > .event-column-content > .event-info { padding: 0 !important; flex: 1 1 auto; }
.event-info-artist-container.ma .artist-name { text-align: left !important; filter: none !important; font-size: 2.1rem !important; line-height: 1; margin: 0; }
.event-info-artist-container.ma .tag-line:empty, .event-content-ma .event-button:empty { display: none; }
/* de dagen: compacte rijen zonder gestippelde kaders */
.event-content-ma .poma_wrapper { flex: 1 1 100%; display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.event-content-ma .poma_wrapper > .event { border: 0 !important; border-left: 3px solid transparent !important; border-radius: 4px; background: rgba(0, 0, 0, .28) !important; margin: 0 !important; padding: 8px 12px 8px 6px !important; opacity: 1; }
.event-content-ma .poma_wrapper > .event.upcoming { opacity: 1 !important; }
.event-content-ma .poma_wrapper > .event.past { opacity: .35 !important; }
.event-content-ma .poma_wrapper > .event.today { border-left-color: #e3262a !important; background: rgba(255, 255, 255, .07) !important; }
.event-content-ma .poma_wrapper .event-content { align-items: center; gap: 10px; }
.event-content-ma .poma_wrapper .event-date { flex: 0 0 44px; height: auto !important; background: transparent !important; color: #bbb !important; padding: 0 !important; font-size: .75rem !important; line-height: 1.15; font-weight: 700; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; }
.event-content-ma .poma_wrapper > .event.today .event-date { color: #fff !important; }
.event-content-ma .poma_wrapper .event-info { padding: 0 !important; }
.event-content-ma .poma_wrapper .artist-name { font-size: 1.3rem !important; line-height: 1.1; margin: 0 0 4px; }
.event-content-ma .poma_wrapper .child-event-date { display: none; } /* staat al in het datumblok */
@media (max-width: 600px) {
	.event-wrapper.production-wrapper.ma > .event { padding: 12px 8px 8px 2px !important; }
	.event-content-ma > .event-column-content { padding-left: 10px; }
	.event-info-artist-container.ma .artist-name { font-size: 1.6rem !important; }
	.event-content-ma .poma_wrapper > .event { padding: 6px 8px 6px 2px !important; }
	.event-content-ma .poma_wrapper .artist-name { font-size: 1.1rem !important; }
}
@media (max-width: 600px) {
	/* mobiel: de dagen tonen hun eigen datum; buitenste datumkolom weg voor meer breedte */
	.event-content-ma > .event-column-date { display: none !important; }
	.event-content-ma > .event-column-content { padding-left: 6px; }
	.event-content-ma .poma_wrapper .event-date { flex-basis: 38px; }
}

/* Sectienavigatie mobiel: lange paginatitels niet uit beeld laten lopen (de balk duwde de pagina breder) */
@media (max-width: 768px) {
	.mg-cols > .mg-col-nav > .mg-snav { min-width: 0; max-width: 100%; }
	.mg-snav__open { min-width: 0; overflow: hidden; }
	.mg-snav__open-label, .mg-snav__open-page { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.mg-snav__open-label { flex: 0 0 auto; max-width: 40%; }
	.mg-snav__open-page { flex: 1 1 auto; }
}
@media (max-width: 400px) {
	.mg-snav__open-label { display: none; } /* heel smal: alleen de huidige pagina */
}

/* Zwevende eventtitel: support-artiesten voorafgaan door een + ("+ Darker + Artiest 2") */
.event-single-post-title .artist-title .event-artist-item .event-artist-name::before { content: "+\00a0"; }
/* … en dan geen | meer tussen de artiesten (Stager: .event-artist-item:not(:last-child):after) */
.event-single-post-title .event-artist-item:not(:last-child)::after { content: none !important; display: none !important; }

/* Trends-pagina (blanco sjabloon): witte achtergrond, donkere tekst */
html:has(body.page-template-page-blank .trends_floating_buttons),
body.page-template-page-blank:has(.trends_floating_buttons) { background: #fff !important; color: #111; }
body.page-template-page-blank:has(.trends_floating_buttons) .wp-site-blocks,
body.page-template-page-blank:has(.trends_floating_buttons) main { background: #fff; color: #111; }
