
html, body {
    margin: 0;
    min-height: 100%;
    box-sizing: border-box;
}

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

body, div, h1, h2, h3, form, br, img, input, textarea, nav, ul, p {
    padding: 0;
    margin: 0;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background-color: #F9F5F2;
        line-height: 1.7;
    font-size: 13px;
    color: #272D2D;
    font-family: Lucida Sans Unicode, Lucida Grande, sans-serif;
    -webkit-font-smoothing: subpixel-antialiased;
}

/* -----------------------------------------------------
   General
   ----------------------------------------------------- */

blockquote, blockquote a, blockquote a:link, blockquote a:visited, blockquote a:active {
    color: #3E6680;
    transition: 0.5s;
}

blockquote a:hover {
    color: #272D2D;
}

a:link,
a:visited,
a:active,
a:hover {
    text-decoration: none;
}

a:link,
a:visited,
a:active {
    color: #272D2D;
}

a:hover {
    color: #3E6680;
}

#dynamic_content a:hover {
    text-decoration: underline;
    text-decoration-color: #3E6680;
}

.txt a {
    text-decoration: underline;
}

img {
    border-width: 0;
    max-width: 100%;
    height: auto;
}

ul,
ol {
    list-style: none;
    list-style-image: none;
}

video {
    max-width: 100%;
    height: 100%;
}

.clear {
    clear: both;
    margin: 0;
    padding: 0;
    height: 0;
    overflow: hidden;
    line-height: 0;
    font-size: 0;
}

.left {
    float: left;
}

.right {
    float: right;
}

.txtleft {
    text-align: left;
}

.txtright {
    text-align: right;
}

.top {
    vertical-align: top;
}

.hidden {
    visibility: hidden;
    height: 0;
    overflow: hidden;
}

.nowrap {
    white-space: nowrap;
}

.wrap {
    white-space: normal;
    word-wrap: break-word;
}

.balance {
    text-wrap: balance;
}

.big {
    height: 40px;
    font-size: 30px;
}

.small {
    font-size: 70%;
}

/* -----------------------------------------------------
   Headings
   ----------------------------------------------------- */

h1,
.h1,
h1 a,
h1 a:link,
h1 a:visited,
h1 a:hover,
h1 a:active {
    color: #272D2D;
    font-size: 30px;
    font-weight: bold;
    line-height: 1.2;
}

h2,
.h2,
h2 a,
h2 a:link,
h2 a:visited,
h2 a:hover,
h2 a:active {
    color: #272D2D;
    font-size: 24px;
    font-weight: bold;
    line-height: 1.2;
}

h3,
.h3,
h3 a,
h3 a:link,
h3 a:visited,
h3 a:hover,
h3 a:active {
    color: #272D2D;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.2;
}

/* -----------------------------------------------------
   Tables
   ----------------------------------------------------- */

table {
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: left;
}

table tr {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

table td {
    margin: 0;
    padding: 1px;
    vertical-align: top;
}

.odd {
    background-color: rgba(0,0,0,0.05);
}

/* -----------------------------------------------------
   Main page width
   -----------------------------------------------------

   #page and #menubar use exactly the same outer width.
   Do not add horizontal padding to #menubar itself:
   padding would reduce the actual navigation content
   width compared with #page.

   ----------------------------------------------------- */

#menubar,
#vertical-menu,
#page,
footer {
    box-sizing: border-box;
    width: 90vw;
    max-width: 1250px;
    margin-left: auto;
    margin-right: auto;
    padding: 6px;
}

#menubar,
#vertical-menu,
#page {
    height: auto;
}

footer {
    position: static;
    margin-top: auto;
    padding: 1rem;
    background-color: #F9F5F2;
    color: #808080;
    font-size: 11px;
    text-align: center;
}

.mobile-header {
    display: none;
}

#page {
    text-align: left;
    background-color: #F9F5F2;
    min-height: 70vh;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 50px;
}

/* -----------------------------------------------------
   Navigation containers
   ----------------------------------------------------- */

#menubar {
    padding-top: 15px;
    padding-bottom: 35px;
    background-color: #F9F5F2;
}

#navigation {
    width: 100%;
    margin: 0;
    padding: 0;
}

.nav {
    display: flex;
    align-items: flex-start;
    width: 100%;
    margin: 0;
    padding: 0;
}

#submenubar {
    width: 100%;
    margin: 0 auto 12px;
    padding: 0 6px;
    background-color: #F9F5F2;
}

#dynamic_content {
    width: 100%;
    margin: 0 auto;
}

.menu-trigger {
    display: none;
}

/* -----------------------------------------------------
   Navigation links
   ----------------------------------------------------- */

#menu a:link,
#menu a:visited,
#menu a:hover,
#menu a:active,
#menu-languages a:link,
#menu-languages a:visited,
#menu-languages a:hover,
#menu-languages a:active {
    color: #272D2D;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.5s;
}

#menu a:hover,
#menu-languages a:hover {
    color: #3E6680;
}

/* -----------------------------------------------------
   Desktop logo
   ----------------------------------------------------- */

.menulogo {
    flex: 0 0 auto;
    display: block;
    width: 220px;
    margin:
        0
        25px        0        0;
    padding-top: 0;
}

/* -----------------------------------------------------
   Desktop menu lists

   Both menus use the same structure and styling.
   The language menu is pushed to the right by flex.
   ----------------------------------------------------- */

#menu,
#menu-languages {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: auto auto;
    grid-auto-columns: max-content;
    column-gap: 30px;
    margin: 0;
    padding: 5px 15px 5px 5px;
    list-style: none;
}

#menu {
    text-align: left;
}

#menu-languages {
    margin-left: auto;
    text-align: right;
}

#menu li,
#menu-languages li {
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

#menu li a,
#menu-languages li a {
    display: block;
}

/* -----------------------------------------------------
   Desktop swarm menu
   ----------------------------------------------------- */

@media (min-width: 769px) and (hover: hover) and (pointer: fine) {

    .nav {
        position: relative;
        isolation: isolate;
    }

    .menulogo {
        position: relative;
        z-index: 3;
    }

    #menu {
        position: relative;
        z-index: 2;
    }

    /*
     * Closed state
     */

    #menubar.swarm-enabled #menu li {
        position: relative;
        z-index: 1;

        opacity: 0;
        pointer-events: none;

        transform:
            translateX(var(--swarm-x, 0))
            rotate(var(--swarm-rotation, 0deg))
            scale(0.35);

        transform-origin: center;

        transition-property:
            transform,
            opacity;

        transition-duration:
            var(--swarm-travel-duration, 700ms),
            var(--swarm-fade-duration, 280ms);

        /*
         * Reverse of the opening movement:
         * slow departure followed by acceleration
         * towards the logo.
         */

        transition-timing-function:
            cubic-bezier(0.75, 0, 0.78, 0.15),
            linear;

        /*
         * Distant links start first. Closer links wait.
         * The opacity delay is identical for every link,
         * so they all fade out together.
         */

        transition-delay:
            var(--swarm-close-delay, 0ms),
            var(--swarm-fade-delay, 1020ms);

        will-change:
            transform,
            opacity;
    }

    /*
     * Vertical movement is separated from the horizontal
     * movement to create a curved trajectory.
     */

    #menubar.swarm-enabled #menu li > a {
        transform: translateY(var(--swarm-y, 0));

        transition-property: transform;

        transition-duration:
            var(--swarm-travel-duration, 700ms);

        transition-timing-function:
            cubic-bezier(0.85, -0.15, 0.5, 1.15);

        transition-delay:
            var(--swarm-close-delay, 0ms);

        will-change: transform;
    }

    /*
     * Open state
     */

    #menubar.swarm-enabled.swarm-open #menu li {
        opacity: 1;
        pointer-events: auto;

        transform:
            translateX(0)
            rotate(0deg)
            scale(1);

        transition-duration:
            var(--swarm-travel-duration, 700ms),
            280ms;

        transition-timing-function:
            cubic-bezier(0.22, 0.85, 0.25, 1),
            linear;

        transition-delay:
            var(--swarm-open-delay, 0ms),
            var(--swarm-open-delay, 0ms);
    }

    #menubar.swarm-enabled.swarm-open #menu li > a {
        transform: translateY(0);

        transition-duration:
            var(--swarm-travel-duration, 700ms);

        transition-timing-function:
            cubic-bezier(0.5, -0.15, 0.15, 1.15);

        transition-delay: var(--swarm-open-delay, 0ms);
    }

    #menubar.swarm-without-animation #menu li,
    #menubar.swarm-without-animation #menu li > a {
        transition: none !important;
    }

    /*
     * Temporarily remove transforms while JavaScript
     * measures the natural positions of the links.
     */

    #menubar.swarm-measuring #menu li,
    #menubar.swarm-measuring #menu li > a {
        transform: none !important;
        transition: none !important;
    }
}

/* -----------------------------------------------------
   Swarm: reduced motion
   ----------------------------------------------------- */

@media
    (min-width: 769px)
    and (hover: hover)
    and (pointer: fine)
    and (prefers-reduced-motion: reduce) {

    #menubar.swarm-enabled #menu li,
    #menubar.swarm-enabled #menu li > a {
        transition: none;
    }
}
/* -----------------------------------------------------
   Mobile menu controls
   ----------------------------------------------------- */

#responsive-menu-button {
    display: none;
}

#mobile-menu-close {
    display: none;
}

#menu-overlay {
    display: none;
}

/* -----------------------------------------------------
   Submenu
   ----------------------------------------------------- */

/*
 * Project header: title centered, previous arrow at the far left, next
 * arrow at the far right. The arrows sit together in .submenu-navigation
 * (project_navigation() in functions.php); display: contents lets each one
 * take its own column. A missing arrow is an empty span, so the title stays
 * in the middle. A long title wraps instead of pushing the arrows away.
 */
#submenuheader {
    display: grid;
    grid-template-columns: minmax(min-content, 1fr) minmax(0, max-content) minmax(min-content, 1fr);
    align-items: center;
    column-gap: 15px;
    width: 100%;
    padding: 0 5px;
}

#submenuheader .submenu-title {
    grid-column: 2;
    grid-row: 1;
    margin-right: 0;
    text-align: center;
}

#submenuheader .submenu-navigation {
    display: contents;
}

#submenuheader .submenu-navigation > :first-child {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
}

#submenuheader .submenu-navigation > :last-child {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
}

.submenu-title, .submenu-navigation {
    color: #272D2D;
    font-size: 25px;
    font-weight: bold;
}

.submenu-navigation {
    display: flex;
    align-items: center;
    /* gap: 0.45em; */
    margin-left: auto;
}

.submenu-navigation a {
    color: #3E6680;
    font-size: inherit;
    line-height: inherit;
    text-decoration: none;
}

.submenu-navigation a:hover {
    color: #587B7F;
}


#submenu {
    vertical-align: bottom;
    padding: 2px 5px;
    text-transform: uppercase;
}

/* project tabs: a line under all tabs, the open tab underlined */
#submenu:has(.submenuitem) {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 25px;
    margin-bottom: 14px;
    padding-bottom: 0;
    color: #3E6680;
    border-bottom: 1px solid color-mix(in srgb, currentColor 35%, transparent);
}

#submenu .submenuitem {
    margin: 0 0 -1px;
}

#submenu .submenuitem a {
    display: block;
    padding: 4px 0 8px;
    border-bottom: 2px solid transparent;
}

#submenu .submenuitem a:hover {
    border-bottom-color: color-mix(in srgb, currentColor 60%, transparent);
}

#submenu .submenuitem.active a {
    border-bottom-color: currentColor;
    font-weight: bold;
}

/* the open tab keeps its colour on hover */
#submenu .submenuitem.active a:hover {
    color: #3E6680;
    cursor: default;
}

/* with script_tabs.js: one line that slides to the hovered tab */
#submenu.tab-slider {
    position: relative;
}

#submenu.tab-slider .submenuitem a,
#submenu.tab-slider .submenuitem a:hover,
#submenu.tab-slider .submenuitem.active a {
    border-bottom-color: transparent;
}

.tab-indicator {
    position: absolute;
    bottom: -1px;
    left: 0;
    height: 2px;
    background-color: #3E6680;
    pointer-events: none;
    transition:
        transform 0.35s ease,
        width 0.35s ease,
        background-color 0.35s ease;
}

#submenu.tab-hover .tab-indicator {
    background-color: #587B7F;
}

.submenuitem a:link,
.submenuitem a:visited,
.submenuitem a:hover,
.submenuitem a:active {
    color: #3E6680;
    font-size: 15px;
    transition: 0.5s;
}

.submenuitem a:hover {
    color: #587B7F;
}

.submenuitem,
.submenu-title {
    display: inline-block;
    margin-right: 25px;
}

.subsubmenu {
    float: right;
    margin: 5px 0 5px 10px;
    padding: 3px 20px;
    font-size: 12px;
    background-color: rgba(255, 255, 255, 0.8);
    border: 0.5px solid #272D2D;
    border-radius: 5px;
    color: #272D2D;
}

.subsubmenu:link,
.subsubmenu:visited,
.subsubmenu:hover,
.subsubmenu:active {
    color: #272D2D;
    font-size: 12px;
    background-color: rgba(255, 255, 255, 0.8);
    border: 0.5px solid #272D2D;
    border-radius: 5px;
}

.subsubmenu > a:link,
.subsubmenu > a:visited,
.subsubmenu > a:hover,
.subsubmenu > a:active {
    background-color: rgba(255, 255, 255, 0.8);
    border: 0.5px solid #272D2D;
    border-radius: 5px;
    color: #272D2D;
}

.subsubmenu:hover {
    background-color: rgba(255, 255, 255, 0.8);
    border-color: #587B7F;
    color: #3E6680;
}

.maintxt {
    margin: 15px 15px 0 5px;
    color: #272D2D;
}

.center {
    text-align: center;
}

.padded {
    padding: 15px 0;
}

.padded_all {
    padding: 10px;
}

.padded_sides {
    padding: 2px 4px;
}

.padded_left {
    padding-left: 2px;
    padding-top: 4px;

}
.padded_right {
    padding-right: 2px;
    padding-top: 4px;

}
/* -----------------------------------------------------
   Content boxes
   ----------------------------------------------------- */

.boxcontent {
    display: flex;
    flex-direction: column;
}

.newsbox {
    width: 100%;
    height: auto;
    margin: 5px;
    padding: 2px;
    background-color: rgba(256,256,256,0.55);
    vertical-align: middle;
}

.boxtitle {
    float: left;
    display: inline;
    width: auto;
    max-width: 100%;
    margin: 5px;
    padding: 0 2px;
    overflow: hidden;
    background-color: rgba(256,256,256,0.55);
    white-space: nowrap;
}

.newsbox,
.boxtitle {
    opacity: 0;
    color: #272D2D;
}

.boxtitle {
    opacity: 1;
    text-align: center;
    border: 1px solid rgba(39, 45, 45, 0.9);
}

@media screen and (min-width: 765px) {
    .boxcontent:hover .newsbox,
    .boxcontent:hover .menu_pictitle {
        opacity: 1;
    }
}

/* -----------------------------------------------------
   Picture titles
   ----------------------------------------------------- */

.main_pictitle,
.menu_pictitle,
.extra_pictitle,
.short_pictitle,
.search_picbutton {
    z-index: 3;
    margin: 0 5px;
    padding: 0 2px;
    color: #F9F5F2;
    text-shadow: 0 0 5px #121212;
    font-size: 25px;
}


.search_picbutton {
    bottom: 0;
    left: 50%;
    translate: -50%;
    position: absolute;
}

.menu_pictitle {
    font-size: 19px;
}

.extra_pictitle,
.short_pictitle,
.search_picbutton{
    font-size: 11px;
}

.short_pictitle {
    position: absolute;
    white-space: normal;
    word-wrap: break-word;
    background-color: rgba(0,0,0,0.3);
    height: 100%;
    width: 100%;
    z-index: 2;
    top: 0;
    left: -5px;
    padding: 8px;
    align-content: center;
}

.menu_pictitle,
.extra_pictitle,
.short_pictitle {
    opacity: 0;
    transition: opacity 0.8s;
}

.extra_pictitle {
    opacity: 0;
    transition: opacity 2s;
}

.boxcontent:hover .menu_pictitle,
.boxcontent:hover .extra_pictitle,
.boxcontent:hover .short_pictitle {
    opacity: 1;
}

.box25 .menu_pictitle,
.box33 .menu_pictitle {
    font-size: 15px;
}

.box25 .extra_pictitle,
.box33 .extra_pictitle {
    font-size: 10px;
}

a:link .boxcontent .boxtitle,
a:active .boxcontent .boxtitle,
a:visited .boxcontent .boxtitle {
    color: #272D2D;
}

a:hover .boxcontent .boxtitle {
    color: #272D2D;
}

.extratitlediv {
    margin: 10px 0 30px;
}

@media screen and (min-width: 765px) {
    .textuldiv {
        float: left;
        width: 20%;
        margin-top: 10px;
        padding: 0 8px 0 0;
    }

    .textcontent {
        float: left;
        width: 80%;
    }
}

.bw {
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
}

.bw:hover {
    -webkit-filter: grayscale(0%);
    filter: grayscale(0%);
}

.page {
    width: 96vw;
    max-width: 1100px;
    margin: 0 auto;
}

.p100 {
    float: left;
    width: 100%;
}

.p50 {
    float: left;
    width: 50%;
}

.p30 {
    float: left;
    width: 33%;
}

.p70 {
    float: left;
    width: 62%;
    padding-left: 10px;
}

.p75text {
    float: left;
    width: 75%;
    padding-right: 20px;
}

.p25credits {
    float: left;
    width: 25%;
    font-size: 80%;
}

/* -----------------------------------------------------
   Box grid
   ----------------------------------------------------- */

.box6,
.box6s {
    width: 6.25%;
}

.box10,
.box10s {
    width: 10%;
}

.box12,
.box12s {
    width: 12.5%;
}

.box10,
.box10s {
    width: 10%;
}

.box20,
.box20s {
    width: 20%;
}

.box25,
.box25s {
    width: 25%;
}

.box33,
.box33s {
    width: 33.33%;
}

.box50,
.box50s {
    width: 50%;
}

.box100,
.box100index,
.box100main,
.box100s {
    width: 100%;
}

.box6,
.box10,
.box12,
.box20,
.box25,
.box33,
.box50,
.box100 {
    position: relative;
    float: left;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.box6s,
.box10s,
.box12s,
.box20s,
.box25s,
.box33s,
.box50s,
.box100s {
    position: relative;
    float: left;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.box100index,
.box100main {
    position: relative;
    float: left;
    overflow: hidden;
    aspect-ratio: 16 / 7;
}

.box100index {
    aspect-ratio: 16 / 5;
}

.boxcontent {
    position: absolute;
    inset: 0;
    margin: 2px;
    padding: 0;
    box-shadow: 0 0 0 0 #000;
    background-position: center center;
    background-size: cover !important;
    background-repeat: no-repeat;
}

.withvideo {
    background-position: center center, center center;
    background-size: auto, cover !important;
    background-repeat: no-repeat, no-repeat;
}

.indextxt,
a.indextxt:link,
a.indextxt:visited,
a.indextxt:hover {
    color: #272D2D;
}

/* -----------------------------------------------------
   Image containers
   ----------------------------------------------------- */

.plus-container {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 5;
    transform: translate(-50%, -50%);
    color: white;
    text-shadow: 1px 1px black;
    font-size: 30px;
    text-align: center;
}

.image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.image-container .bg-blur {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px);
    transform: scale(1.1);
}

.image-container .main-img {
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.6);
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.image-container .portrait {
    transform: scale(2);
}

/*
 * scripts/script_crop.js moves cropped pictures to their best spot. Until
 * that is done they stay hidden, so they don't visibly jump (grid pictures
 * show their blurred background meanwhile). includes/head.php removes
 * .crop-pending after 3 seconds in any case.
 */
.crop-pending .boxcontent[style*="url("]:not(.smartcrop-done),
.crop-pending .image-container .main-img:not(.smartcrop-done) {
    opacity: 0;
}

@media screen and (min-width: 765px) {
    .image-container:hover .main-img {
        transform: scale(1);
    }
}

iframe {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: none;
}

/* Bunny video: local poster frame, player loaded on click (scripts/script_video.js) */
.bunny-poster {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    background-color: black;
    cursor: pointer;
    overflow: hidden;
}

.bunny-poster img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bunny-poster-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    padding: 0;
    border: 1px solid white;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.bunny-poster-play::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -12px 0 0 -7px;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent black;
}

.bunny-poster:hover .bunny-poster-play,
.bunny-poster-play:focus-visible {
    transform: scale(1.1);
}

/* the title also has class menu_pictitle (size, colour, shadow, margins);
   -2px: the video sits 2px lower in its box than the pictures */
.bunny-poster-title {
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    pointer-events: none;
}

@media screen and (min-width: 765px) {
    .bunny-poster:hover .bunny-poster-title {
        opacity: 1;
    }
}

/* privacy statement (includes/privacy.php) */
.privacy h3 {
    margin: 24px 0 8px;
}

/* placeholder for embeds from other services (Google Drive), loaded on click */
.embed-consent {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 250px;
    padding: 20px;
    border: 0px solid currentColor;
    text-align: center;
}

.embed-consent p {
    max-width: 480px;
    margin: 0;
}

.embed-consent-button {
    padding: 8px 16px;
    border: 1px solid currentColor;
    border-radius: 2px;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.embed-consent-button:hover,
.embed-consent-button:focus-visible {
    opacity: 0.6;
}

.rest25 {
    margin-left: 25%;
    padding-left: 15px;
}

.mobile {
    display: none;
}

.cancelled {
    text-decoration: line-through;
}

.past,
.past a:link,
.past a:active,
.past a:hover,
.past a:visited {
    color: #3E6680;
}

.media-pics {
    padding-left: 0;
}

.media-video {
    padding: 0;
    padding-right: 4px;
}

/*
 * Pictures next to a video (desktop): rectangles instead of squares, so the
 * two rows of four form one block with the same top, bottom and aspect ratio
 * as the video.
 * Video height = (column - 8px) * 9/16, offset 4px; picture inset 2px.
 * 1cqw = 1% of the picture column width.
 */
@media (min-width: 769px) {
    .media-video + .media-pics {
        container-type: inline-size;
        padding-top: 2px;
    }

    .media-video + .media-pics > .box25s {
        aspect-ratio: auto;
        height: calc(28.125cqw - 1.25px);
    }
}

/*
 * 1 to 4 pictures next to a video (includes/txtmedia.php adds
 * .media-count-N): together they fill a block as big as the video.
 * 1 = full frame, 2 = two halves, 3 or 4 = upright bars.
 * The pictures fill their frame (cover) instead of the zoomed grid view.
 */
.media-video + .media-pics[class*="media-count-"] {
    container-type: inline-size;
    display: flex;
}

.media-video + .media-pics[class*="media-count-"] > div {
    flex: 1 1 0;
    float: none;
    width: auto;
    min-width: 0;
    aspect-ratio: auto;
    height: 56.25cqw;
}

.media-pics[class*="media-count-"] .main-img {
    object-fit: cover;
    transform: none;
}

.media-pics[class*="media-count-"] .image-container:hover .main-img {
    transform: scale(1.05);
}

@media (min-width: 769px) {
    .media-video + .media-pics[class*="media-count-"] > div {
        height: calc(56.25cqw - 2.5px);
    }
}

/*
 * 2 to 8 pictures without a video: halves or bars, filling a 32:9 block
 * (as wide as video + pictures together). 16:9 on mobile, where 5 or more
 * pictures go in two rows.
 */
.p100.media-pics[class*="media-count-"] {
    container-type: inline-size;
    display: flex;
}

.p100.media-pics[class*="media-count-"] > div {
    flex: 1 1 0;
    float: none;
    width: auto;
    min-width: 0;
    aspect-ratio: auto;
    height: 28.125cqw;
}

/* the big picture at the top of a project: also 32:9, 16:9 on mobile */
#project .box100main {
    aspect-ratio: 32 / 9;
}

@media (max-width: 768px) {
    .p100.media-pics[class*="media-count-"] > div {
        height: 56.25cqw;
    }

    .p100.media-pics:is(.media-count-5, .media-count-6, .media-count-7, .media-count-8) {
        flex-wrap: wrap;
    }

    .p100.media-pics:is(.media-count-5, .media-count-6, .media-count-7, .media-count-8) > div {
        flex-basis: 25%;
        height: 28.125cqw;
    }

    #project .box100main {
        aspect-ratio: 16 / 9;
    }
}

/* -----------------------------------------------------
   Miscellaneous
   ----------------------------------------------------- */

#counter,
#counter a:link,
#counter a:visited,
#counter a:active {
    padding-top: 25px;
    color: rgba(0, 0, 0, 0.03);
    font-size: 18px;
    font-weight: 300;
    text-align: center;
    transition: 0.5s;
}


#counter a:hover {
    color: rgba(0, 0, 0, 0.1);
}

.drive {
    width: 100%;
    height: 600px;
    background-color: #FFF;
}

.creditlogo {
    float: left;
    height: 35px;
    margin: 30px 30px 30px 0;
    opacity: 50%;
    transition: opacity 2s;
}

.creditlogo:hover {
    opacity: 100%;
}

.search,
.submit {
    display: inline-block;
    height: 32px;
    margin: 0 auto;
    border: 1px solid #ABB0B2;
    border-radius: 3px;
    font: 16px Helvetica, Arial, sans-serif;
    line-height: 32px;
}

.search {
    width: 50%;
    margin-bottom: 5px;
    text-indent: 2%;
}

.search_prev {
    width: 50%;
    margin: 0 auto;
    padding: 5px;
    font-size: 11px;
    text-align: center;
}

.invisible {
    color: #F9F5F2;
}

.submit {
    padding: 0 22px;
    border-color: #000;
    background-color: #111;
    color: #FFF;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    vertical-align: top;
    transition: all 0.23s ease-in-out;
}

.submit:hover {
    background-color: #090;
}

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

#popup {
    position: fixed;
    inset: 0;
    z-index: 9;
    background: rgba(0, 0, 0, 0.85);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: 0.8s;
}

#popup.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#popupbox {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#theaterframe {
    display: none;
    width: min(900px, 90vw);
    height: min(600px, 70vh);
    border: 0;
    border-radius: 8px;
    background: white;
}

#popupimage {
    display: none;
    width: auto;
    height: auto;
    max-width: 80vw;
    max-height: 90vh;
    opacity: 1;
    touch-action: pan-y;
    -webkit-user-drag: none;
    user-select: none;
    transition: opacity 0.18s ease;
}

#closepopup {
    position: absolute;
    top: -14px;
    right: 5px;
    z-index: 1000;
    color: rgba(255, 255, 255, 0.5);
    font-size: 30px;
    cursor: pointer;
    user-select: none;
}

#previmage,
#nextimage {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 48px;
    cursor: pointer;
    user-select: none;
}

#previmage {
    left: -60px;
}

#nextimage {
    right: -60px;
}

/* -----------------------------------------------------
   Mobile
   ----------------------------------------------------- */

@media screen and (max-width: 768px) {

    body {
        font-size: 18px;
    }

    h1,
    .h1,
    h1 a,
    h1 a:link,
    h1 a:visited,
    h1 a:hover,
    h1 a:active {
        font-size: 26px;
    }

    h2,
    .h2,
    h2 a,
    h2 a:link,
    h2 a:visited,
    h2 a:hover,
    h2 a:active {
        font-size: 20px;
    }

    h3,
    .h3,
    h3 a,
    h3 a:link,
    h3 a:visited,
    h3 a:hover,
    h3 a:active {
        font-size: 12px;
    }

    iframe {
        height: 100vw;
    }

    .mobile-header {
        position: relative;
        display: flex;
        align-items: center;
        width: 90vw;
        max-width: 1250px;
        height: 73px;
        padding-bottom: 15px;
        margin: 0 auto;
    }

    #vertical-menu {
        display: none;
    }

    #menubar,
    #vertical-menu,
    #page,
    footer {
        padding: 0;
    }

    #closepopup {
        top: -7px;
        font-size: 17px;
    }

    #previmage,
    #nextimage {
        font-size: 24px;
    }

    #previmage {
        left: -20px;
    }

    #nextimage {
        right: -20px;
    }

    .textuldiv {
        display: none;
    }

    .textcontent {
        width: 100%;
    }

    .no_mobile {
        display: none;
    }

    .mobile {
        display: block;
    }

    .p50 {
        width: 100% !important;
    }

    .box12,
    .box12s {
        width: 50% !important;
    }

    .box25 {
        width: 100% !important;
    }

    .box33,
    .box33s {
        width: 100% !important;
    }

    .box50,
    .box50s {
        width: 100% !important;
    }

    .box10,
    .box10s {
        width: 20%;
    }

    .box100index,
    .box100,
    .box50,
    .box33,
    .box25 {
        margin-bottom: 4px;
    }

    .box100index,
    .box100main {
        aspect-ratio: 16 / 9;
    }

    .p75text {
        float: left;
        width: 100%;
        padding-right: 0;
    }

    .p25credits {
        float: left;
        width: 100%;
        padding-top: 30px;
        font-size: 90%;
    }

    .rest25 {
        display: none;
    }

    .creditlogo {
        height: 25px;
    }

    .main_pictitle {
        font-size: 15px;
    }

    .menu_pictitle {
        font-size: 15px;
    }

    .extra_pictitle,
    .short_pictitle {
        font-size: 10px;
    }

    .menu_pictitle {
        opacity: 1;
    }

    .boxcontent:hover .menu_pictitle,
    .boxcontent:hover .extra_pictitle,
    .boxcontent:hover .short_pictitle {
        opacity: 0;
    }

    .newsbox {
        opacity: 1;
    }

    .padded_left {
        padding-left: 0;
    }
    .padded_right {
        padding-right: 0;
    }

    /* -------------------------------------------------
       Mobile menu button
       ------------------------------------------------- */

    #menu a:link,
    #menu a:visited,
    #menu a:hover,
    #menu a:active,
    #menu-languages a:link,
    #menu-languages a:visited,
    #menu-languages a:hover,
    #menu-languages a:active {
        font-size: 28px;
    }

    #responsive-menu-button {
        position: absolute;
        right: 0;
        top: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 58px;
        margin: 0;
        padding: 8px 10px;
        border: 0;
        background: #F9F5F2;
        color: #272D2D;
        font-family: inherit;
        font-size: 16px;
        line-height: 1.2;
        cursor: pointer;
        z-index: 1100;
    }

    /* -------------------------------------------------
       Hamburger
       ------------------------------------------------- */

    .menu-icon {
        position: absolute;
        right: 10px;
        left: auto;
        width: 22px;
        height: 2px;
        background: currentColor;
    }

    .menu-icon::before,
    .menu-icon::after {
        content: "";
        position: absolute;
        left: 0;
        width: 22px;
        height: 2px;
        background: currentColor;
        transition:
            transform 0.75s ease,
            opacity 0.75s ease;
    }

    .menu-icon::before {
        top: -7px;
    }

    .menu-icon::after {
        top: 7px;
    }

    body.menu-open .menu-icon {
        background: transparent;
    }

    body.menu-open .menu-icon::before {
        transform: translateY(7px) rotate(45deg);
    }

    body.menu-open .menu-icon::after {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* -------------------------------------------------
       Mobile logo
       ------------------------------------------------- */

    .mobile-logo {
        display: block;
        max-width: 250px;
        max-height: 60px;
    }

    .mobile-logo img {
        display: block;
        width: auto;
        max-width: 250px;
        max-height: 60px;
        height: auto;
    }

    .mobile-title {
        display: block;
        font-size: 16px;
        line-height: 1.2;
    }

    .mobile-home {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        align-items: center;
        text-decoration: none;
    }

    /* -------------------------------------------------
       Off-canvas menu

       The desktop #menubar width is overridden here
       intentionally. Mobile menu is a fixed panel.
       ------------------------------------------------- */

    #menubar {
        position: fixed;
        inset: 0;
        width: 100%;
        max-width: none;
        height: 100dvh;

        margin: 0;
        padding: 0;

        overflow: hidden;

        -webkit-transform: translateY(-100%);
        transform: translateY(-100%);

        -webkit-transition: -webkit-transform 0.75s ease-in-out;
        transition: transform 0.75s ease-in-out;

        will-change: transform;

        z-index: 1050;
    }

    body.menu-open #menubar {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }

    #menubar .menulogo {
        display: none;
    }

    #navigation {
        width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        margin: 0;
        padding: 0;
    }

    .nav {
        display: block;
        width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        box-sizing: border-box;
        padding: 70px 0 30px;
    }

    /* -------------------------------------------------
       Mobile menu lists
       ------------------------------------------------- */

    #menu,
    #menu-languages {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0 25px 30px;
        text-align: left;
    }

    #menu-languages {
        padding: 0px 25px 30px;
    }

    #menu li,
    #menu-languages li {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    #menu li a,
    #menu-languages li a {
        display: block;
        width: 100%;
        padding: 7px 0;
        line-height: 1.3;
    }

    /* -------------------------------------------------
       Mobile close button
       ------------------------------------------------- */

    #mobile-menu-close {
        display: block;
        position: absolute;
        top: 12px;
        right: 18px;
        width: 36px;
        height: 36px;
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
        color: #272D2D;
        font-family: Arial, sans-serif;
        font-size: 32px;
        font-weight: 300;
        line-height: 32px;
        cursor: pointer;
        z-index: 10;
    }

    /* -------------------------------------------------
       Overlay
       ------------------------------------------------- */

    #menu-overlay {
        display: block;
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        z-index: 1040;
        background: rgba(0, 0, 0, 0.55);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition:
            opacity 0.35s ease,
            visibility 0s linear 0.35s;
    }

    body.menu-open #menu-overlay {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition:
            opacity 0.35s ease,
            visibility 0s linear 0s;
    }

    body.menu-open {
        overflow: hidden;
    }
}

/* -----------------------------------------------------
   Reduced motion
   ----------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    #menubar,
    #menu-overlay,
    .menu-icon,
    .menu-icon::before,
    .menu-icon::after {
        transition: none;
    }
}

/* -----------------------------------------------------
   Edit / admin
   ----------------------------------------------------- */

form {
    width:95%;
    margin: 0 auto;
}

#divContainer {
    padding: 25px 0;
}

#sortable {
    list-style: none;
}

#tabs > ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

#tabs > ul > li {
    margin: 0;
    padding: 0;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-bottom: none;
}

#tabs > ul > li:first-child {
    border-radius: 6px 0 0 0;
}

#tabs > ul > li:last-child {
    border-radius: 0 6px 0 0;
}

#tabs > ul > li > a {
    display: block;
    padding: 8px 20px;
    color: #555;
    text-decoration: none;
}

#tabs > ul > li > a > div {
    margin: 0;
}

#tabs > ul > li.active {
    background: #fff;
    position: relative;
    z-index: 2;
    border-bottom: 1px solid #fff;
    margin-bottom: -1px;
}

#tabs > ul > li.active > a {
    color: #000;
    font-weight: bold;
}

#tabs > div[id^="tab_"] {
    display: none;
}

#tabs > div[id^="tab_"].active {
    display: block;
}

#tabs li.active {
    /* your active-tab styling */
}

.admin {
    clear: both;
    margin: 10px 0;
    padding: 2px 5px;
    border-right: 1px #888 solid;
    border-bottom: 1px #888 solid;
    border-radius: 2px;
    background: #ffa;
    color: #000;
    font-size: 11px;
    line-height: 2.4;
    text-align: center;
}

.admin_picbutton {
    bottom: 0;
    left: 50%;
    translate: -50%;
    z-index: 2;
    position: absolute;
    margin: 5px;
    line-height: 1.2;
    opacity: 0.5;
}

.admin_picbutton:hover {
    opacity: 1;
}

a.admin:link,
a.admin:hover,
a.admin:active,
a.admin:visited {
    color: #000;
}

.hide {
    display: none;
}

#centered_admin {
    margin: 0;
    padding: 2px;
    border-right: 1px #888 solid;
    border-bottom: 1px #888 solid;
    border-radius: 2px;
    background: #ffa;
    color: #000;
    font-size: 11px;
    text-align: left;
}

#centered_admin a:hover,
#centered_admin a:active,
#centered_admin a:visited {
    color: #000;
}

#footer {
    line-height: 2;
    text-align: center;
}

.footer a:link,
.footer a:visited,
.footer a:active,
.footer a:hover {
    color: #808080;
    text-decoration: none;
}

.settings_left {
    float: left;
    width: 20%;
    padding-right: 5px;
    text-align: right;
}

.settings_right {
    float: left;
    width: 500px;
    padding: 0;
}

.settings_text {
    width: 500px;
}

.settings_textarea {
    width: 500px;
    height: 90px;
}


.progress {
    display: none;
    width: 100%;
    height: 4px;
    margin: 15px 0;
    overflow: hidden;
    background: #eee;
}

.progress.show {
    display: block;
}

.progress .bar {
    width: 0;
    height: 100%;
    transition: width .1s linear;
}

.editor {
    width: 75%;
    min-height: 250px;
    padding: 5px;
    border: 1px solid #ccc;
    overflow-y: auto;
    background-color: white;
}

input, textarea, select {
    padding: 8px 18px;
    line-height: 1.3;
    margin: 0 5px 5px 0;
}

input[type="submit"],
button[type="submit"],
.all_options {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid #c8c8c8;
    border-radius: 5px;
    background: #f7f7f7;
    color: #333;
    font: inherit;
    font-size: 0.95em;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="submit"]:hover,
button[type="submit"]:hover,
.all_options:hover {
    background: #eaeaea;
    border-color: #aaa;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

input[type="submit"]:active,
button[type="submit"]:active,
.all_options:active {
    background: #ddd;
    box-shadow: none;
}

input[type="submit"]:focus-visible,
button[type="submit"]:focus-visible,
.all_options:focus-visible {
    outline: 2px solid #888;
    outline-offset: 2px;
}

input[type="submit"][value="DELETE"] {
    color: #b00020;
    border-color: #e0b0b0;
    background: #fff5f5;
}

input[type="submit"][value="DELETE"]:hover {
    color: #fff;
    border-color: #c00;
    background: #c00;
}


input[type="submit"][value="SUBMIT"] {
    color: #00b020;
    border-color: #b0e0b0;
    background: #f5fff5;
}

input[type="submit"][value="SUBMIT"]:hover {
    color: #fff;
    border-color: #0c0;
    background: #0c0;
}

#sortable {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 75%;
}

#sortable li {
    padding: 10px 15px;
    margin: 4px 0;
    border: 1px solid #ccc;
    cursor: grab;
}

#sortable li:hover {
    background: rgba(255, 255, 255, 0.05);
}

#sortable li:active {
    cursor: grabbing;
}

.sortable-ghost {
    opacity: 0.4;
}

/* -----------------------------------------------------
   Vertical menu
   ----------------------------------------------------- */

#vertical-menu {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 500;
    margin: 0;
    padding: 3%;
    text-transform: uppercase;
}

#vertical-menu > ul {
    padding: 28px 0 0;
}

#vertical-menu ul li ul li:last-child {
    padding-bottom: 1em;
}

#vertical-menu a {
    text-decoration: none;
}

#vertical-menu ul li ul li {
    text-transform: none;
}

#vertical-menu .logo {
    width: 100%;
    padding: 0;
    text-align: left;
}


/* -----------------------------------------------------
   Light theme: quotes, credits, credit logos, logo
   ----------------------------------------------------- */

.p75text em,
.p75text i {
    color: #557A92;
}

.p75text strong,
.p75text b {
    color: #3E6680;
}

.p25credits {
    color: #272D2D;
}

.p25credits strong {
    color: #3E6680;
}

/* the light credit logos are black: tint them blue-grey */
.creditlogo {
    filter: invert(18%) sepia(30%) saturate(500%) hue-rotate(175deg) brightness(95%);
}

/* logo: "kwaad bloed" runs from blue at the top to red at the bottom */
.kb-logo-sub {
    background-image: linear-gradient(to bottom, var(--kb-logo-blue) 50%, var(--kb-logo-red) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* -----------------------------------------------------
   Dark theme
   ----------------------------------------------------- */

@media (prefers-color-scheme: dark) {

    body {
        background-color: #2C3639;
        color: #DCD7C9;
    }

    blockquote, blockquote a, blockquote a:link, blockquote a:visited, blockquote a:active {
        color: #A27B5C;
        transition: 0.5s;
    }

    blockquote a:hover {
        color: #DCD7C9;
    }

    h1,
    .h1,
    h1 a,
    h1 a:link,
    h1 a:visited,
    h1 a:hover,
    h1 a:active {
        color: #A27B5C;
    }

    h2,
    .h2,
    h2 a,
    h2 a:link,
    h2 a:visited,
    h2 a:hover,
    h2 a:active {
        color: #A27B5C;
    }

    h3,
    .h3,
    h3 a,
    h3 a:link,
    h3 a:visited,
    h3 a:hover,
    h3 a:active {
        color: #A27B5C;
    }

    a:hover {
        color: #A27B5C;
    }

    #menubar {
        background-color: #2C3639;
    }

    #submenubar {
        background-color: #2C3639;
    }

    #page {
        background-color: #2C3639;
    }

    footer {
        background-color: #2C3639;
        color: #A27B5C;
    }

    #footer {
        border-top-color: #A27B5C;
    }

    .footer a:link,
    .footer a:visited,
    .footer a:active,
    .footer a:hover {
        color: #A27B5C;
    }

    #menu a:link,
    #menu a:visited,
    #menu a:hover,
    #menu a:active,
    #menu-languages a:link,
    #menu-languages a:visited,
    #menu-languages a:hover,
    #menu-languages a:active {
        color: #A27B5C;
    }

    #menu a:hover,
    #menu-languages a:hover {
        color: #DCD7C9;
    }

    #counter,
    #counter a:link,
    #counter a:visited,
    #counter a:active {
        color: rgba(255, 255, 255, 0.03);
    }

    #counter a:hover {
        color: rgba(255, 255, 255, 0.1);
    }

    .subsubmenu {
        border-color: #DCD7C9;
        color: #DCD7C9;
    }

    .subsubmenu:link,
    .subsubmenu:visited,
    .subsubmenu:hover,
    .subsubmenu:active {
        border-color: #DCD7C9;
        color: #DCD7C9;
    }

    .subsubmenu > a:link,
    .subsubmenu > a:visited,
    .subsubmenu > a:hover,
    .subsubmenu > a:active {
        border-color: #DCD7C9;
        color: #DCD7C9;
    }

    .subsubmenu:hover {
        border-color: #DCD7C9;
        color: #A27B5C;
    }

    .submenu-title {
        color: #DCD7C9;
        text-transform: none;
    }

    .submenuitem a:link,
    .submenuitem a:visited,
    .submenuitem a:hover,
    .submenuitem a:active {
        color: #A27B5C;
    }

    #submenu:has(.submenuitem) {
        color: #A27B5C;
    }

    /* the arrow to the next project, in the colour of the tabs */
    .submenu-navigation a {
        color: #A27B5C;
    }

    .submenu-navigation a:hover {
        color: #DCD7C9;
    }

    #submenu .submenuitem.active a:hover {
        color: #A27B5C;
    }

    .tab-indicator {
        background-color: #A27B5C;
    }

    #submenu.tab-hover .tab-indicator {
        background-color: #DCD7C9;
    }

    .submenuitem a:hover {
        color: #DCD7C9;
    }

    .maintxt {
        color: #DCD7C9;
    }

    /* palette A1: reading text, quotes, credits and open chapter */
    .p75text em,
    .p75text i {
        color: #C4A183;
    }

    .p75text strong,
    .p75text b {
        color: #A27B5C;
    }

    .p25credits {
        color: #DCD7C9;
    }

    .p25credits strong {
        color: #A27B5C;
    }

    .creditlogo {
        filter: brightness(0.74) sepia(1) hue-rotate(175deg) saturate(0.7);
    }

    #menu li a b,
    #menu li a b .type {
        color: #DCD7C9;
    }

    /* logo: in the dark theme the red starts lower */
    .kb-logo-sub {
        background-image: linear-gradient(to bottom, var(--kb-logo-blue) 63%, var(--kb-logo-red) 100%);
    }

    a:link,
    a:visited,
    a:active {
        color: #DCD7C9;
    }

    #dynamic_content a:hover {
        text-decoration-color: #A27B5C;
    }

    .bar {
        background-color: #A27B5C;
    }

    a:link .boxcontent .boxtitle,
    a:active .boxcontent .boxtitle,
    a:visited .boxcontent .boxtitle {
        color: #2C3639;
    }

    a:hover .boxcontent .boxtitle {
        color: #2C3639;
    }

    .indextxt,
    a.indextxt:link,
    a.indextxt:visited,
    a.indextxt:hover {
        color: #2C3639;
    }

    .main_pictitle,
    .menu_pictitle,
    .extra_pictitle,
    .short_pictitle {
        color: #DCD7C9;
    }

    .newsbox,
    .boxtitle {
        background-color: rgba(256,256,256,0.55);
    }

    .odd {
        background-color: rgba(0,0,0,0.05);
    }

    .past,
    .past a:link,
    .past a:active,
    .past a:hover,
    .past a:visited {
        color: #A27B5C;
    }

    .invisible {
        color: #2C3639;
    }

    @media screen and (max-width: 768px) {
        #responsive-menu-button {
            background: #2C3639;
            color: #DCD7C9;
        }
    }
}

/* -----------------------------------------------------
   Animated logo (scripts/script_logo.js)

   The symbol is drawn live; the name is plain text.
   --kb-logo-*  colour the text and its shadow,
   --kb-tube-*  colour the liquid in the animated tube.
   ----------------------------------------------------- */

:root {
    --kb-logo-blue: #3E6680;
    --kb-logo-red: #3E6680;
    --kb-tube-blue: rgba(0, 44, 104, 1);
    --kb-tube-red: rgba(160, 24, 20, 1);
}

@media (prefers-color-scheme: dark) {
    :root {
        --kb-logo-blue: #A27B5C;
        --kb-logo-red: #DCD7C9;
        --kb-tube-blue: rgba(58, 96, 136, 1);
        --kb-tube-red: rgba(194, 39, 45, 1);
    }
}

/* The symbol is sized from the logo width (--kbw), the text from its own
   scale (--kbt) and offset (--kby); proportions are those of the original
   1000 x 328 logo image. */
.kb-logo {
    --kbw: 220px;
    --kbt: var(--kbw);
    --kby: 0px;
    position: relative;
    display: block;
    width: var(--kbw);
    height: calc(var(--kbw) * 0.328);
}

.menulogo .kb-logo {
    --kbt: 285.6px;
    --kby: -14.7px;
    width: calc(var(--kbw) * 0.338 + var(--kbt) * 0.59);
}

.menulogo:has(> .kb-logo) {
    width: auto;
}

.kb-logo.mobile-logo {
    --kbw: 183px;
    max-width: none;
    max-height: none;
}

.kb-logo-symbol {
    position: absolute;
    left: calc(var(--kbw) * 0.034);
    top: calc(var(--kbw) * 0.016);
    width: calc(var(--kbw) * 0.27);
    height: calc(var(--kbw) * 0.27);
}

.kb-logo-symbol img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
}

.kb-logo-text {
    position: absolute;
    left: calc(var(--kbw) * 0.338);
    top: var(--kby);
    width: calc(var(--kbt) * 0.572);
    font-family: Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-style: normal;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    text-align: center;
    white-space: nowrap;
    color: var(--kb-logo-blue);
    /* no red shadow: it made the name look a different colour than the menu
    text-shadow: calc(var(--kbt) * 0.0045) calc(var(--kbt) * 0.0045) 0 var(--kb-logo-red); */
}

.kb-logo-name,
.kb-logo-sub {
    position: absolute;
    left: 0;
    right: 0;
}

.kb-logo-name {
    top: calc(var(--kbt) * 0.0813);
    font-size: calc(var(--kbt) * 0.1048);
}

.kb-logo-sub {
    top: calc(var(--kbt) * 0.1894);
    font-size: calc(var(--kbt) * 0.0515);
}
