/* Base theme. Colours and fonts come from the site's design settings as CSS variables (see SiteLayout.razor). */

:root {
    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-heading: var(--font-body);
    --color-muted: color-mix(in srgb, var(--color-text) 65%, var(--color-bg));
    --color-line: color-mix(in srgb, var(--color-text) 14%, var(--color-bg));
    --color-soft: color-mix(in srgb, var(--color-primary) 7%, var(--color-bg));
    --wrap: 1140px;
    --gutter: clamp(16px, 4vw, 32px);
    --space: clamp(32px, 6vw, 72px);
    --radius: 8px;
}

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

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

body {
    margin: 0;
    font: 400 1.0625rem/1.65 var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
}

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

a { color: var(--color-primary); text-underline-offset: 0.15em; }

h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; margin: 0 0 0.6em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--color-bg); padding: 8px 12px; z-index: 10; }
.skip-link:focus { left: 8px; }

.preview-banner { background: var(--color-accent); color: #fff; text-align: center; padding: 6px; font-weight: 600; }

/* Header and menu */
.site-header { border-bottom: 1px solid var(--color-line); background: var(--color-bg); position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { font: 700 1.25rem/1 var(--font-heading); color: var(--color-text); text-decoration: none; }
.brand img { max-height: 48px; width: auto; }

.menu-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; }
.menu-button { cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; }
.menu-toggle:focus-visible + .menu-button { outline: 2px solid var(--color-primary); border-radius: var(--radius); }
.menu-button span, .menu-button span::before, .menu-button span::after {
    display: block; width: 24px; height: 2px; background: var(--color-text); position: relative; content: "";
}
.menu-button span::before { position: absolute; top: -7px; }
.menu-button span::after { position: absolute; top: 7px; }
.menu nav ul { list-style: none; margin: 0; padding: 0; }
.menu nav a { display: block; padding: 10px 0; color: var(--color-text); text-decoration: none; font-weight: 500; }
.menu nav li.active > a { color: var(--color-primary); }
.menu nav ul ul a { padding-left: 16px; font-weight: 400; }

@media (max-width: 899px) {
    .menu nav { display: none; }
    .menu-toggle:checked ~ nav {
        display: block;
        position: absolute; left: 0; right: 0; top: 100%;
        background: var(--color-bg); border-bottom: 1px solid var(--color-line);
        padding: 8px var(--gutter) 16px; max-height: calc(100vh - 72px); overflow: auto;
    }
}

@media (min-width: 900px) {
    .menu-toggle, .menu-button { display: none; }
    .menu nav > ul { display: flex; gap: 28px; }
    .menu nav > ul > li { position: relative; }
    .menu nav > ul > li > ul {
        display: none; position: absolute; top: 100%; left: -16px; min-width: 220px;
        background: var(--color-bg); border: 1px solid var(--color-line); border-radius: var(--radius); padding: 8px 16px;
        box-shadow: 0 8px 24px rgb(0 0 0 / 0.08);
    }
    .menu nav > ul > li:hover > ul, .menu nav > ul > li:focus-within > ul { display: block; }
    .menu nav ul ul a { padding-left: 0; }
}

/* Pages */
main { min-height: 50vh; }
.page-head { padding-top: var(--space); }
/* A block's space above and below: the editor's "Afstand over/under" (--block-space-top/-bottom on the block's
   wrapper, BlockSpacing, 0-50 px) or the theme's own. */
.block { padding: var(--block-space-top, calc(var(--space) / 2)) 0 var(--block-space-bottom, calc(var(--space) / 2)); }
.block:last-child { padding-bottom: var(--block-space-bottom, var(--space)); }
/* Blocks with a width ("Bredde", BlockColumns): a run of them shares a row on a 12-column grid inside the content
   width (--block-span on each .block-col); a block that does not fit starts the next row. The blocks' own .wrap gives
   way to the row's. Every column in a row is as tall as the tallest, so styled boxes line up. 1/6 and 1/4 become 1/2
   on a tablet, and everything stacks on a phone. */
.block-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.block-col { grid-column: span var(--block-span, 12); min-width: 0; display: flex; flex-direction: column; }
.block-col > * { flex-grow: 1; }
.block-row .wrap { max-width: none; padding-left: 0; padding-right: 0; }
.block-col .block:last-child { padding-bottom: var(--block-space-bottom, calc(var(--space) / 2)); }
.block-row:last-child { padding-bottom: calc(var(--space) / 2); }
@media (max-width: 899px) { .block-col.span-2, .block-col.span-3 { grid-column: span 6; } }
@media (max-width: 599px) { .block-col.block-col { grid-column: 1 / -1; } }

.prose { max-width: 72ch; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose img { border-radius: var(--radius); }
.variant-narrow .prose { max-width: 60ch; margin: 0 auto; }
.variant-highlight .prose { max-width: none; background: var(--color-soft); padding: clamp(20px, 4vw, 40px); border-radius: var(--radius); }

.button {
    display: inline-block; background: var(--color-primary); color: #fff; text-decoration: none;
    padding: 12px 22px; border-radius: var(--radius); font-weight: 600;
}
.button:hover { filter: brightness(1.08); }

figure { margin: 0; }
figcaption { color: var(--color-muted); font-size: 0.9375rem; margin-top: 8px; }
.block-image img { border-radius: var(--radius); width: 100%; }

.split { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
.split-media img { border-radius: var(--radius); width: 100%; }
@media (min-width: 900px) {
    .split { grid-template-columns: 1fr 1fr; }
    .image-right .split-media { order: 2; }
}

/* The hero's image fills the block, so its space above/below is a margin (none unless set in the editor). */
.block-hero { position: relative; padding: 0; margin: var(--block-space-top, 0) 0 var(--block-space-bottom, 0); min-height: clamp(360px, 60vh, 640px); display: grid; align-items: end; color: #fff; background: var(--color-primary); }
.block-hero.variant-small { min-height: clamp(220px, 32vh, 360px); }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.block-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / 0.55), rgb(0 0 0 / 0) 70%); }
.hero-content { position: relative; z-index: 1; padding-top: var(--space); padding-bottom: var(--space); width: 100%; }
.hero-heading { font: 700 clamp(2.25rem, 6vw, 4rem)/1.1 var(--font-heading); margin: 0 0 12px; max-width: 18ch; }
.hero-text { font-size: 1.25rem; max-width: 48ch; margin: 0 0 24px; }
.block-hero .button { background: var(--color-accent); }

picture.picture { display: contents; }

.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.gallery img { aspect-ratio: var(--ratio, 4 / 3); object-fit: cover; width: 100%; border-radius: var(--radius); }

/* Fixed background image (FixedImageBlockView): the block is a window onto a screen-sized image that stays still.
   clip-path makes the block show its fixed image only inside itself, so the next such block shows its own image. */
.block-fixedimage {
    position: relative; display: flex; padding: 0; margin: var(--block-space-top, 0) 0 var(--block-space-bottom, 0);
    min-height: 70vh; clip-path: inset(0); color: #fff; background: var(--color-primary);
}
.block-fixedimage.height-small { min-height: 40vh; }
.block-fixedimage.height-full { min-height: 100vh; min-height: 100svh; }
.fixedimage-media { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none; }
.fixedimage-image { width: 100%; height: 100%; object-fit: cover; }
.block-fixedimage::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.block-fixedimage.shade-light::after { background: rgb(0 0 0 / 0.25); }
.block-fixedimage.shade-dark::after { background: rgb(0 0 0 / 0.5); }
.fixedimage-content { position: relative; z-index: 2; flex: 1; display: flex; align-items: center; }
.fixedimage-content[class*="pos-top-"] { align-items: flex-start; }
.fixedimage-content[class*="pos-bottom-"] { align-items: flex-end; }
.fixedimage-inner { width: 100%; padding-top: var(--space); padding-bottom: var(--space); display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.fixedimage-content[class$="-center"] .fixedimage-inner { align-items: center; text-align: center; }
.fixedimage-content[class$="-right"] .fixedimage-inner { align-items: flex-end; text-align: right; }
.fixedimage-box { max-width: 100%; }
.fixedimage-box > :last-child { margin-bottom: 0; }
.fixedimage-heading { font: 700 clamp(2rem, 5vw, 3.5rem)/1.1 var(--font-heading); margin: 0 0 12px; max-width: 20ch; color: inherit; }
.fixedimage-text { font-size: clamp(1.05rem, 1.8vw, 1.25rem); max-width: 52ch; margin: 0 0 24px; }
.block-fixedimage .button { background: var(--color-accent); }

/* Image slider (SliderBlockView, slider.js). One slide per view, scroll-snap so it also swipes without script. */
.slider-stage { position: relative; }
.slider-track {
    list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius);
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-track:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }
.slider-slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.slider-slide img { width: 100%; height: auto; object-fit: cover; }
.slider-link { display: block; }
/* A slide's caption, text and button lie on the image's lower part. Clicks go through to the image's link; only the button takes them. */
.slider-content {
    position: absolute; inset: 0; display: flex; align-items: flex-end; pointer-events: none; color: #fff;
    background: linear-gradient(to top, rgb(0 0 0 / 0.55), rgb(0 0 0 / 0) 60%);
}
.slider-content-inner { width: 100%; padding: 24px clamp(20px, 4vw, 40px); }
.slider-content-inner.wrap { padding: clamp(24px, 5vw, 64px) var(--gutter); }
.slider-box { max-width: 100%; }
.slider-box > :last-child { margin-bottom: 0; }
/* A block style on the slider is on the text box (block-styles.css comes later and wins over these defaults). */
:where(.slider-box.has-style) { padding: 16px 20px; border-radius: var(--radius); }
/* The nine places (SliderSlide.TextPosition): the row picks the height, the column the side; the shade follows. */
.slider-content-inner { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.slider-content[class*="pos-top-"] { align-items: flex-start; background: linear-gradient(to bottom, rgb(0 0 0 / 0.55), rgb(0 0 0 / 0) 60%); }
.slider-content[class*="pos-middle-"] { align-items: center; background: rgb(0 0 0 / 0.3); }
.slider-content[class$="-center"] .slider-content-inner { align-items: center; text-align: center; }
.slider-content[class$="-right"] .slider-content-inner { align-items: flex-end; text-align: right; }
.slider.has-dots .slider-content:not([class*="pos-bottom-"]) .slider-content-inner { padding-bottom: 24px; }
.slider.has-dots .slider-content:not([class*="pos-bottom-"]) .slider-content-inner.wrap { padding-bottom: clamp(24px, 5vw, 64px); }
.slider-caption { font: 700 clamp(1.25rem, 3vw, 2rem)/1.15 var(--font-heading); margin: 0 0 8px; max-width: 24ch; text-wrap: balance; }
.slider-text { font-size: clamp(0.95rem, 1.4vw, 1.125rem); margin: 0 0 16px; max-width: 52ch; }
.slider-content .button { pointer-events: auto; background: var(--color-accent); }
.is-full .slider-caption { font-size: clamp(1.75rem, 5vw, 3.25rem); max-width: 18ch; }
.is-full .slider-text { font-size: clamp(1rem, 1.8vw, 1.25rem); }
/* Full width: edge to edge like the hero, no rounded corners, no space above unless it has a heading. */
.block-slider.is-full { padding-top: var(--block-space-top, 0); }
.block-slider.is-full > .slider-heading { padding-top: calc(var(--space) / 2); }
.is-full .slider-track { border-radius: 0; }
.slider-prev, .slider-next {
    position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%;
    display: grid; place-items: center; font-size: 1.75rem; line-height: 1; cursor: pointer;
    color: var(--color-text); background: color-mix(in srgb, var(--color-bg) 85%, transparent); box-shadow: 0 2px 8px rgb(0 0 0 / 0.2);
}
.slider-prev { left: 12px; }
.slider-next { right: 12px; }
.slider-prev:hover, .slider-next:hover { background: var(--color-bg); }
/* The dots and the pause button: a bar over the bottom of the images (slider.js, data-controls). Dots or squares,
   with or without the slide's number; hidden, only the pause button is left and shows on keyboard focus. */
.slider-dots {
    position: absolute; left: 0; right: 0; bottom: 12px; z-index: 2; width: fit-content; max-width: calc(100% - 24px); margin: 0 auto;
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px;
    padding: 6px 10px; border-radius: 999px; background: rgb(0 0 0 / 0.35);
}
.slider-dot {
    min-width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
    background: rgb(255 255 255 / 0.55); color: #1f2328; font: 600 0.75rem/1 var(--font-body);
}
.slider-dot:hover { background: rgb(255 255 255 / 0.8); }
.slider-dot[aria-current="true"] { background: #fff; }
.shape-squares .slider-dot { border-radius: 2px; }
.has-numbers .slider-dot { min-width: 22px; height: 22px; padding: 0 5px; }
.shape-dots.has-numbers .slider-dot { border-radius: 11px; }
.has-numbers .slider-dot[aria-current="true"] { background: var(--color-primary); color: #fff; }
.slider-toggle { border: 0; background: none; color: #fff; cursor: pointer; font-size: 0.8rem; line-height: 1; padding: 4px 6px; }
.slider-dots.is-hidden { background: none; padding: 0; }
.slider-dots.is-hidden .slider-toggle:not(:focus-visible) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.slider-dots.is-hidden .slider-toggle:focus-visible { background: rgb(0 0 0 / 0.5); border-radius: 999px; padding: 6px 10px; }
.slider button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 4px rgb(0 0 0 / 0.5); }
/* A slide's texts stay clear of the bar. */
.slider.has-dots .slider-content-inner { padding-bottom: 64px; }
.slider.has-dots .slider-content-inner.wrap { padding-bottom: calc(clamp(24px, 5vw, 64px) + 40px); }
@media (max-width: 600px) { .slider-prev, .slider-next { width: 36px; height: 36px; font-size: 1.4rem; } .slider-prev { left: 6px; } .slider-next { right: 6px; } .slider-dots { bottom: 8px; } }

.block-quote blockquote { margin: 0; font: italic 1.5rem/1.5 var(--font-heading); border-left: 4px solid var(--color-accent); padding-left: 24px; max-width: 60ch; }
.block-quote blockquote p { margin: 0; }

.video { position: relative; aspect-ratio: 16 / 9; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); }

.error-page { padding: var(--space) 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--color-line); padding: 32px 0; color: var(--color-muted); font-size: 0.9375rem; }
.site-footer p { margin: 0 0 6px; }
.footer-company { font-style: normal; display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 12px; }
.footer-company strong { color: var(--color-text); flex-basis: 100%; }
.footer-company a, .footer-social a { color: inherit; }
.footer-social { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 0; margin: 0 0 12px; }
.language-switch ul { list-style: none; display: flex; gap: 4px; padding: 0; margin: 0; font-size: 0.875rem; }
.language-switch a { display: block; padding: 4px 8px; border-radius: 4px; color: inherit; text-decoration: none; }
.language-switch .active a { font-weight: 600; background: rgba(0, 0, 0, 0.06); }

/* News: cards in lists, the archive's tags and paging, the article page. */
.news-grid { display: grid; gap: clamp(20px, 3vw, 32px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.news-card { display: flex; flex-direction: column; gap: 12px; }
.news-card-image img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; border-radius: var(--radius); }
.news-card-title { margin: 0; font-size: 1.25rem; }
.news-card-title a { color: var(--color-text); text-decoration: none; }
.news-card-title a:hover { color: var(--color-primary); text-decoration: underline; }
.news-card-body { display: flex; flex-direction: column; gap: 6px; }
.news-teaser { margin: 0; color: var(--color-muted); }
.news-date { color: var(--color-muted); font-size: 0.9375rem; }
.news-tags { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-block; padding: 4px 12px; border: 1px solid var(--color-line); border-radius: 999px; color: var(--color-text); text-decoration: none; font-size: 0.9375rem; }
a.tag:hover, .tag.active { border-color: var(--color-primary); color: var(--color-primary); }
.tag.active { font-weight: 600; }
.pager { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: var(--space); }
.news-empty { color: var(--color-muted); }
.news-more { margin-top: 24px; }
.news-head { max-width: calc(72ch + 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
.news-head h1 { margin-top: 8px; }
.news-back { margin: 0 0 12px; }
.news-lead { font-size: 1.25rem; margin: 0 0 12px; }
.news-author { color: var(--color-muted); margin: 0; }
.news-image { margin-top: 24px; }
.news-image img { width: 100%; border-radius: var(--radius); max-height: 70vh; object-fit: cover; }
.news-facts-wrap { max-width: calc(72ch + 2 * var(--gutter)); margin: 24px auto 0; }
.news-facts { border: 1px solid var(--color-line); border-radius: var(--radius); padding: 16px 20px; background: var(--color-soft); }
.news-facts-heading { font-size: 1.125rem; margin: 16px 0 4px; }
.news-facts-heading:first-child { margin-top: 0; }
.news-facts-text { margin: 0 0 8px; color: var(--color-muted); }
.news-facts-list { margin: 0; display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 6px 24px; }
.news-fact { display: contents; }
.news-fact dt { font-weight: 600; }
.news-fact dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .news-facts-list { grid-template-columns: 1fr; gap: 2px; } .news-fact dd { margin-bottom: 8px; } }
.news-article .block-text .prose, .news-article .block-image .wrap { max-width: 72ch; margin-left: auto; margin-right: auto; }
.news-foot { max-width: calc(72ch + 2 * var(--gutter)); padding-bottom: var(--space); }
.news-card.no-image .news-card-body { background: var(--color-soft); border-radius: var(--radius); padding: 20px; height: 100%; }

/* Calendar: events by month with a date badge, the event page's facts and dates. */
.calendar-month { font-size: 1.125rem; text-transform: none; margin: var(--space) 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--color-line); }
.calendar-month:first-of-type { margin-top: 0; }
.calendar-heading { margin-top: 0; }
.event-list { display: flex; flex-direction: column; gap: 16px; }
.event-card { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: start; padding: 16px; border-radius: var(--radius); background: var(--color-soft); }
.event-card.no-image { grid-template-columns: 64px 1fr; }
.event-badge { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: var(--radius);
    background: var(--color-primary); color: #fff; line-height: 1.1; }
.event-day { font-size: 1.5rem; font-weight: 700; }
.event-month { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.04em; }
.event-card-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.event-card-body p { margin: 0; }
.event-card-title { margin: 0; font-size: 1.1875rem; }
.event-card-title a { color: var(--color-text); text-decoration: none; }
.event-card-title a:hover { color: var(--color-primary); text-decoration: underline; }
.event-when { font-weight: 600; }
.event-where, .event-teaser, .event-more, .event-note { color: var(--color-muted); }
.event-card-image img { width: 160px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.event-card.cancelled .event-card-title a, .event-dates li.cancelled > span:first-child { text-decoration: line-through; }
.event-status { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: 0.8125rem; font-weight: 600;
    background: var(--color-bg); border: 1px solid var(--color-line); color: var(--color-text); }
.event-status.status-cancelled { border-color: #b42318; color: #b42318; }
.event-status.status-booked { border-color: #b54708; color: #b54708; }
.calendar-links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: var(--space); }
.event-head { max-width: calc(72ch + 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
.event-facts { display: grid; gap: 8px; margin: 16px 0; padding: 16px 20px; background: var(--color-soft); border-radius: var(--radius); }
.event-facts div { display: grid; grid-template-columns: 7rem 1fr; gap: 12px; }
.event-facts dt { font-weight: 600; }
.event-facts dd { margin: 0; }
.event-address, .event-facts .event-note { display: block; color: var(--color-muted); }
.event-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.event .block-text .prose, .event .block-image .wrap { max-width: 72ch; margin-left: auto; margin-right: auto; }
.event-dates { max-width: calc(72ch + 2 * var(--gutter)); padding-bottom: var(--space); }
.event-dates ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-line); }
.event-dates li { padding: 10px 0; border-bottom: 1px solid var(--color-line); }
.event-dates .event-note { margin-left: 8px; }
@media (max-width: 600px) {
    .event-card, .event-card.no-image { grid-template-columns: 52px 1fr; gap: 12px; padding: 12px; }
    .event-badge { width: 52px; height: 52px; }
    .event-day { font-size: 1.25rem; }
    .event-card-image { display: none; }
    .event-facts div { grid-template-columns: 1fr; gap: 0; }
}

/* Galleries: cover cards, the gallery's images (grid or masonry) and the large view (gallery.js). */
.album-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.album-card { display: flex; flex-direction: column; gap: 10px; }
.album-card-image { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--color-soft); }
.album-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.album-card-image:hover img { transform: scale(1.03); }
.album-count { position: absolute; right: 8px; bottom: 8px; padding: 2px 10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 600;
    background: rgb(0 0 0 / 0.6); color: #fff; }
.album-card-body { display: flex; flex-direction: column; gap: 4px; }
.album-card-body p { margin: 0; }
.album-card-title { margin: 0; font-size: 1.125rem; }
.album-card-title a { color: var(--color-text); text-decoration: none; }
.album-card-title a:hover { color: var(--color-primary); text-decoration: underline; }
.album-head { max-width: calc(72ch + 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
.album-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--color-muted); }
.album-images { padding-bottom: var(--space); }
.photos-grid, .photos-masonry { list-style: none; margin: 0; padding: 0; }
ul.photos-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
ul.photos-grid img { aspect-ratio: var(--ratio, 4 / 3); object-fit: cover; width: 100%; border-radius: var(--radius); }
ul.photos-masonry { columns: 4 220px; column-gap: 12px; }
ul.photos-masonry li { break-inside: avoid; margin-bottom: 12px; }
ul.photos-masonry img { width: 100%; height: auto; border-radius: var(--radius); }
.album-images figure { margin: 0; }
.album-images figcaption { margin-top: 6px; font-size: 0.875rem; color: var(--color-muted); }
.album .block-text .prose { max-width: 72ch; margin-left: auto; margin-right: auto; }
dialog.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(0 0 0 / 0.92); color: #fff;
    display: none; grid-template-columns: 64px 1fr 64px; align-items: center; }
dialog.lightbox[open] { display: grid; }
dialog.lightbox::backdrop { background: rgb(0 0 0 / 0.6); }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-height: 100vh; padding: 24px 0; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; }
.lightbox figcaption { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; max-width: 72ch; }
.lightbox-caption { font-weight: 600; }
.lightbox-text { color: rgb(255 255 255 / 0.8); white-space: pre-line; }
.lightbox-counter { color: rgb(255 255 255 / 0.6); font-size: 0.875rem; }
.lightbox button { background: none; border: 0; color: #fff; font-size: 2.5rem; line-height: 1; cursor: pointer; padding: 12px; }
.lightbox button:focus-visible { outline: 2px solid #fff; border-radius: var(--radius); }
.lightbox-close { position: absolute; top: 8px; right: 8px; }
.lightbox.single .lightbox-prev, .lightbox.single .lightbox-next { visibility: hidden; }
@media (max-width: 600px) {
    dialog.lightbox { grid-template-columns: 40px 1fr 40px; }
    .lightbox button { font-size: 2rem; padding: 6px; }
}

/* Page list (variant "list"); the card variant uses the news cards. */
.page-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-line); }
.page-list li { padding: 14px 0; border-bottom: 1px solid var(--color-line); display: flex; flex-direction: column; gap: 4px; }
.page-list a { font-weight: 600; font-size: 1.125rem; text-decoration: none; }
.page-list a:hover { text-decoration: underline; }
.page-list-teaser { color: var(--color-muted); }

/* Forms. */
.ncms-form { max-width: 720px; margin-top: 8px; }
.form-fields { display: flex; flex-wrap: wrap; gap: 18px 20px; }
.form-field { flex: 1 1 100%; display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; margin: 0; padding: 0; }
.form-field.width-half { flex-basis: calc(50% - 10px); }
@media (max-width: 600px) { .form-field.width-half { flex-basis: 100%; } }
.form-field > label, .form-field > legend { font-weight: 600; padding: 0; }
.form-field input:not([type="checkbox"]):not([type="radio"]), .form-field select, .form-field textarea {
    font: inherit; color: inherit; background: var(--color-bg); width: 100%;
    border: 1px solid color-mix(in srgb, var(--color-text) 35%, var(--color-bg)); border-radius: 6px; padding: 10px 12px;
}
.form-field input:focus-visible, .form-field select:focus-visible, .form-field textarea:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 1px; }
.form-field [aria-invalid="true"] { border-color: #b3261e; }
.form-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form-check input { margin-top: 0.35em; width: 1.1em; height: 1.1em; accent-color: var(--color-primary); }
.form-help { color: var(--color-muted); font-size: 0.9375rem; }
.field-error { color: #b3261e; font-size: 0.9375rem; }
.field-error:empty { display: none; }
.required { color: #b3261e; }
.form-heading { flex-basis: 100%; }
.form-heading h3 { margin: 12px 0 4px; }
.form-heading p { margin: 0; color: var(--color-muted); }
.form-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status:empty { display: none; }
.form-status { margin-top: 16px; font-weight: 600; }
.form-actions { margin: 20px 0 0; }
.form-actions .button { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.form-actions .button:disabled { opacity: 0.6; cursor: progress; }
.form-note { color: var(--color-muted); font-size: 0.8125rem; margin-top: 12px; }
.form-message { max-width: 720px; padding: 16px 20px; border-radius: var(--radius); margin-top: 8px; }
.form-success { background: color-mix(in srgb, #1e7d34 10%, var(--color-bg)); border: 1px solid color-mix(in srgb, #1e7d34 40%, var(--color-bg)); }
.form-error { background: color-mix(in srgb, #b3261e 8%, var(--color-bg)); border: 1px solid color-mix(in srgb, #b3261e 40%, var(--color-bg)); margin-bottom: 16px; }

/* Search block: the field, the count and the hits. */
.search-form { display: flex; gap: 10px; max-width: 720px; margin-top: 8px; }
.search-form input[type="search"] { flex: 1 1 auto; min-width: 0; font: inherit; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--color-text) 30%, var(--color-bg)); border-radius: var(--radius); background: var(--color-bg); color: var(--color-text); }
.search-form input[type="search"]:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 1px; }
.search-form .button { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.search-count { color: var(--color-muted); margin-top: 20px; }
.search-results { list-style: none; padding: 0; margin: 12px 0 0; max-width: 760px; }
.search-results li { padding: 16px 0; border-bottom: 1px solid color-mix(in srgb, var(--color-text) 12%, var(--color-bg)); }
.search-results a { font-weight: 600; font-size: 1.125rem; }
.search-results p { margin: 6px 0 0; }
.search-results mark { background: color-mix(in srgb, var(--color-primary) 18%, var(--color-bg)); color: inherit; padding: 0 2px; border-radius: 2px; }
.search-results small { color: var(--color-muted); }

/* Newsletter block. */
.newsletter-form { max-width: 560px; }

/* Header and footer from the design settings (Indstillinger > Design) */
.site-header { position: relative; background: var(--header-bg, var(--color-bg)); color: var(--header-fg, var(--color-text)); padding: var(--header-padding, 0); }
.site-header.is-sticky { position: sticky; }

/* A see-through header over a page that starts with a hero or a full-width slider (SiteLayout.HeaderOverHero,
   <LeadHero />): the page is pulled up by the header's height (--header-h, set by a small script), so the image fills
   the space behind the header. Only when the hero or slider is the first thing in main (a block style may wrap it).
   The hero gets the header's height as top padding over its image; the slider's images simply start at the top (its
   heading, if any, is moved down below the header). */
.header-over-hero .site-header { z-index: 5; border-bottom-color: transparent; }
.header-over-hero main:has(> .block-hero:first-child, > .block-style:first-child > .block-hero,
    > .block-slider.is-full:first-child, > .block-style:first-child > .block-slider.is-full) { margin-top: calc(-1 * var(--header-h, 0px)); }
/* Under the header the lead slider starts at the very top; a space above set in the editor would show as a gap. */
.header-over-hero main > .block-slider.is-full:first-child,
.header-over-hero main > .block-style:first-child > .block-slider.is-full { padding-top: 0; }
.header-over-hero main > .block-slider.is-full:first-child > .slider-heading,
.header-over-hero main > .block-style:first-child > .block-slider.is-full > .slider-heading { padding-top: calc(var(--space) / 2 + var(--header-h, 0px)); }
/* Texts placed at the top of such a slider start below the header, unless the slider has a heading above the images. */
.header-over-hero main > .block-slider.is-full:first-child:not(:has(> .slider-heading)) .slider-content[class*="pos-top-"] .slider-content-inner,
.header-over-hero main > .block-style:first-child > .block-slider.is-full:not(:has(> .slider-heading)) .slider-content[class*="pos-top-"] .slider-content-inner { padding-top: calc(clamp(24px, 5vw, 64px) + var(--header-h, 0px)); }
.header-over-hero main > .block-hero:first-child,
.header-over-hero main > .block-style:first-child > .block-hero { padding-top: var(--header-h, 0px); margin-top: 0; min-height: calc(clamp(360px, 60vh, 640px) + var(--header-h, 0px)); }
.header-over-hero main > .block-hero.variant-small:first-child,
.header-over-hero main > .block-style:first-child > .block-hero.variant-small { min-height: calc(clamp(220px, 32vh, 360px) + var(--header-h, 0px)); }
.site-header:not(.is-sticky) { position: relative; }
.site-header .brand, .site-header .menu nav > ul > li > a { color: var(--header-fg, var(--color-text)); }
.brand img { max-height: var(--logo-height, 48px); }
.top-bar { background: var(--color-primary); color: #fff; font-size: 0.875rem; padding: 6px 0; }
.top-bar .wrap { display: flex; justify-content: flex-end; gap: 20px; flex-wrap: wrap; }
.top-bar a { color: inherit; text-decoration: none; }
.top-bar-contact { display: flex; gap: 20px; flex-wrap: wrap; }
.header-search { display: flex; gap: 4px; }
.header-search input { font: inherit; font-size: 0.9375rem; padding: 6px 10px; border: 1px solid var(--color-line); border-radius: var(--radius); width: 11rem; }
.header-search button { font: inherit; font-size: 0.9375rem; padding: 6px 12px; border: 0; border-radius: var(--radius); background: var(--color-primary); color: #fff; cursor: pointer; }
.header-cta { padding: 10px 18px; white-space: nowrap; }
@media (max-width: 899px) {
    .header-search { display: none; }
    .header-cta { padding: 8px 12px; font-size: 0.9375rem; }
}
@media (min-width: 900px) {
    .site-header.layout-centered .header-row { flex-direction: column; justify-content: center; gap: 12px; padding: 16px var(--gutter); }
}

.site-footer { background: var(--footer-bg, transparent); color: var(--footer-fg, var(--color-muted)); }
.site-footer.has-columns { padding-top: 48px; }
.site-footer.has-padding { padding: var(--footer-padding); }
.footer-columns { display: grid; gap: 32px; grid-template-columns: 1fr; margin-bottom: 32px; }
@media (min-width: 700px) {
    .footer-columns.cols-2, .footer-columns.cols-3, .footer-columns.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
    .footer-columns.cols-3 { grid-template-columns: repeat(3, 1fr); }
    .footer-columns.cols-4 { grid-template-columns: repeat(4, 1fr); }
}
.footer-heading { font-size: 1rem; margin: 0 0 12px; color: var(--footer-fg, var(--color-text)); }
.footer-column .footer-company { flex-direction: column; flex-wrap: nowrap; }
.footer-column .footer-company strong { flex-basis: auto; }
.footer-column .footer-social { flex-direction: column; }
.footer-links, .footer-bottom-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 0 0 6px; }
.site-footer a { color: inherit; }
.footer-text.prose { max-width: none; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; font-size: 0.875rem; }
.has-columns .footer-bottom { border-top: 1px solid var(--color-line); padding-top: 20px; }
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
