:root {
    --bloembraaden-default-paper-color: #fff;
    --bloembraaden-default-key-color: #000;
}

/**
 * Reset
 */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
main, section, article, nav, figure, figcaption,
header, footer, aside, mark, details, summary, time,
table, caption, tbody, tfoot, thead, tr, th, td {
    border: 0;
    font-size: inherit;
    font-style: inherit;
    font-weight: inherit;
    margin: 0;
    outline: 0;
    padding: 0;
    vertical-align: baseline;
    color: var(--bloembraaden-default-key-color);
}

html, body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6em;
    background-color: var(--bloembraaden-default-paper-color);
}

fieldset, legend {
    display: inline;
    vertical-align: top;
}

img {
    display: block;
    line-height: 0;
    border: 0;
}

em {
    font-style: italic;
}

strong {
    font-weight: 700;
}

s {
    text-decoration: line-through;
}

/**
 * basic margins
 */
p, h2, h3, h4, h5, h6 {
    margin-top: .8rem;
}

h1 + p, h2 + p, h3 + p, h4 + p, h5 + p, h6 + p {
    margin-top: 0;
}

ol li {
    margin-bottom: .6rem;
}

ol label {
    display: block;
}

/* links and wannabe links */
a, .peatcms-link {
    text-decoration: underline;
    cursor: pointer;
}

/**
 * formatting headers
 */
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
    text-decoration: none;
}

h1 {
    font-size: 2em;
    font-weight: bold;
}

h2 {
    font-size: 1.8em;
    font-weight: bold;
}

h3 {
    font-size: 1.6em;
    font-weight: bold;
}

h3 {
    font-size: 1.4em;
    font-weight: bold;
}

h4 {
    font-size: 1.2em;
    font-weight: bold;
}

h5 {
    font-weight: bold;
}

h6 {
    font-weight: bold;
}

[data-peatcms-placeholder] {
    display: none !important;
}

html, body {
    height: 100%;
    width: 100%;
    font-size: 16px;
}

/**
 * handy standard css classes
 */
.nodisplay,
.display-none {
    display: none;
}

/* nice embed https://stackoverflow.com/a/20130011 */
.embed-wrapper {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    background: #CCC
}

.embed-iframe {
    position: relative;
    padding-top: 56.25%; /* 16 × 9 */
}

.embed-iframe iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


.attention-grabber,
.peatcms_attention_grabber {
    animation: peatcms_attention_grabber .2s 6 ease-in-out; /* 6 = iteration count, used to be infinite but removing the class does not stop the animation in IE11 then */
}

@keyframes peatcms_attention_grabber {
    0% {
        transform: translateX(0)
    }
    25% {
        transform: translateX(-6px)
    }
    75% {
        transform: translateX(6px)
    }
    100% {
        transform: translateX(0)
    }
}

.peatcms_signal_change {
    animation: peatcms_pulsating .3s 2 ease-in;
}

/**
 * Messages
 */
#message_wrapper {
    position: fixed;
    width: 80vw;
    top: 0;
    left: 10vw;
    display: block;
    z-index: 101;
}

.message {
    position: relative;
    display: block;
    margin: 5px;
    padding: 5px;
    border-radius: 5px;
    background-color: var(--bloembraaden-default-paper-color);
    box-shadow: 0 .3rem 1rem rgba(0, 0, 0, .28);
}

.log {
    color: rgb(48, 63, 123);
}

.warn {
    color: rgb(216, 136, 16);
}

.error {
    color: rgb(200, 0, 0);
    font-weight: bold;
}

.note {
    background-color: #ffc;
}

.message .button.close::before {
    content: '×';
}

.message .button.close {
    position: absolute;
    right: 0;
    top: 0;
    padding: 5px;
    color: var(--bloembraaden-default-paper-color);
    border-radius: 5px; /* same as message */
    background-color: rgb(90, 90, 90);
    font-weight: bold;
    width: auto;
    height: auto;
}

.message .button.close:hover {
    background-color: rgb(0, 180, 20);
}

/**
 * prompts
 */
#bloembraaden-prompt-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, .4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

#bloembraaden-prompt-wrapper .bloembraaden-prompt {
    background-color: rgb(255, 255, 255);
    padding: 1em;
    border-radius: 1em;
    max-width: 400px;
}

/**
 * from parser
 */
.nowrap {
    white-space: nowrap;
}

/**
 * Form elements
 */
textarea,
button,
input[type="submit"],
input[type="text"],
input[type="search"],
input[type="number"],
input[type="email"],
input[type="date"],
input[type="tel"],
input[type="password"] {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
    border: none;
    background: transparent;
    color: #484844;
    padding: .25em;
    margin-bottom: .25em;
    outline: none;
    outline-offset: -1px;
}

textarea,
input[type="text"],
input[type="search"],
input[type="number"],
input[type="email"],
input[type="date"],
input[type="tel"],
input[type="password"] {
    outline: solid 1px #484844;
}

button,
input[type="submit"] {
    padding: .25em .5em;
}

@keyframes peatcms_pulsating {
    25% {
        opacity: 1;
    }
    75% {
        opacity: .31;
    }
}

.bloembraaden-fade-out {
    animation: bloembraaden_fade_out .5s forwards ease-in-out;
}

@keyframes bloembraaden_fade_out {
    10% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.bloembraaden-fade-in {
    animation: bloembraaden_fade_in .4s forwards ease-in-out;
}

@keyframes bloembraaden_fade_in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/**
 * Pretty select lists
 */
body select {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
    border: none;
    padding: .25em 1.6rem .25em .25em;
    margin-bottom: .25em;
    /* border for select can only be done with outline */
    outline: none;
    outline-offset: -1px;
    /* the arrow image (https://www.filamentgroup.com/lab/select-css.html): */
    /* the color is the 484844 slightly after 'fill' */
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23484844%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    /*linear-gradient(to bottom, #ffffff 0%, #ffffff 100%);*/
    background-repeat: no-repeat, repeat;
    background-position: right .7em top 50%, 0 0;
    background-size: .65em auto, 100%;
}

body select::-ms-expand {
    display: none;
}

/**
 * slider https://cheewebdevelopment.com/boilerplate-vanilla-javascript-content-slider/
 */

.peatcms-slideshow-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
    transition: 300ms;
}

/* ensure that we can adjust z-index or position elements absolutely within the slideshow itself (e.g., navigation) */
.peatcms-slideshow {
    position: relative;
}

/* set all slides as absolute positioning so they will stack on top of each other, and hidden from one another */
.peatcms-slide-entry {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transition: opacity .6s;
}

.peatcms-slide-entry.active { /* this is how we transition the slides in/out */
    opacity: 1;
    visibility: visible;
}

/* set up our basic left/right navigation, would should ideally be vertically centered */

.peatcms-slide-nav {
    list-style: none;
}

.peatcms-slide-nav li {
    position: absolute;
    z-index: 2;
    cursor: pointer;
    color: #333;
    background-color: var(--bloembraaden-default-paper-color);
    font-size: 25px;
}

/* pull our navigation out of the slider container to avoid z-index issues */

#peatcms-prev-slide {
    left: 0;
}

#peatcms-next-slide {
    right: 0;
}

/* src sets */
[data-srcset] {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: 0; /* will be set to 1 by javascript */
    transition: opacity .4s ease;
}

/* carousel */
.carousel {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.carousel .slide {
    flex: 0 0 auto;
    cursor: grab;
    height: 100%;
}

.carousel[data-mouse-is-down] .slide {
    cursor: grabbing;
}

/* just common sense */
[hidden] {
    display: none;
}

/* prevent CLS */
.cf-turnstile {
    height: 72.5px;
}

.cf-turnstile.invisible {
    max-height: 0;
    max-width: 0;
}
:root {
    --color-key: rgb(30, 9, 2);
    --color-accent: #aa2008; /*#f15a29;*/
    --color-paper: rgb(252, 253, 255);
    --color-paper-gradient: rgb(246, 247, 250);
    --padding: 16px;
}

.dark-mode {
    --color-key: rgb(250, 250, 254);
    --color-accent: rgb(150, 199, 255);
    --color-paper: rgb(30, 30, 39);
    --color-paper-gradient: rgb(60, 60, 75);
}

/* Reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 1rem; /* 16px */
    font-family: Cambria, Garamond, serif;
    line-height: 1.6em;
    vertical-align: baseline;
    color: var(--color-key);
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

html, body {
    height: 100%;
    background-image: linear-gradient(to bottom, var(--color-paper), var(--color-paper-gradient));
    background-attachment: fixed;
    background-size: cover;
    background-position: top left;
    background-color: var(--color-paper);
}

html.navigating {
    cursor: wait;
}

#peatcms_loading_bar {
    position: fixed;
    top: 0;
    z-index: 2;
    height: 3px;
    background-color: var(--color-accent);
}

#header,
#footer,
#wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--padding);
    float: none;
    clear: both;
}

img {
    width: 100%;
    height: auto;
    margin: .5rem 0;
}

#main.full-width {
    width: 100%;
    max-width: 100%;
}

#main > section,
#main > ul,
#main > p {
    margin-bottom: 1rem;
}

#main ul {
    margin-left: 1rem;
}

h1, h2, h3, h4, h5, h6 {
    font-style: italic;
    font-family: Didot, serif;
}

h1 {
    font-size: 1.6rem;
}

h2 {
    font-size: 1.4rem;
}

h3, h4 {
    font-size: 1.2rem;
}

strong {
    font-weight: bold;
    letter-spacing: .03em;
}

/* sticky columns */
#main {
    width: calc(70% - var(--padding) - 1px);
    max-width: calc(999px - var(--padding));
    float: left;
}

#side {
    text-align: center;
    width: 30%;
    max-width: 400px;
    float: right;
}

#side .peatcms-current-slug {
    opacity: .74;
}

#side svg {
    fill: var(--color-accent);
    margin-bottom: 2rem;
}

#main,
#side {
    transition: margin-top 102ms ease-in;
}

#header,
#footer {
    text-align: center;
}

#footer {
    padding-bottom: 3rem;
}

#footer > * {
    margin: .5rem auto;
}

#footer svg {
    max-width: 300px;
}

#footer > ul {
    display: flex;
}

#footer li {
    list-style-type: none;
    display: inline-block;
}

#footer h3,
#footer p {
    margin-top: 1.31rem;
}

.cta {
    padding: .21em .29em;
    background-color: var(--color-accent);
    border-radius: 0;
    text-decoration: none;
}

.cta *,
.cta {
    color: var(--color-paper);
    font-size: 1.15rem;
    font-family: Cambria, Garamond, serif;
}

.portfolio-item,
.cta,
img {
    box-shadow: 1px 1px 5px 0 rgba(0, 0, 0, .11);
}

.thumbnail {
    width: calc(33.3333% - .67rem);
    float: left;
    margin-right: 1rem;
}
.thumbnail:nth-of-type(3n) {
    margin-right: 0;
}

@media (max-width: 780px) {
    .thumbnail {
        width: calc(50% - .5rem);
    }
    .thumbnail:nth-of-type(3n) {
        margin-right: 1rem;
    }
    .thumbnail:nth-of-type(2n) {
        margin-right: 0;
    }
}

/* (Contact) form */
.hipster-input {
    white-space: nowrap;
    position: relative;
    height: 3.54rem;
}

.hipster-input textarea,
.hipster-input input {
    position: absolute;
    width: calc(100% - 1.78rem);
    max-width: 500px;
    outline: none;
    height: 1.8rem;
    font-size: 1rem;
    line-height: 1em;
    color: var(--color-key);
    padding: 1rem 4px 1px 11px;
    border: solid 1px var(--color-accent);
}

.hipster-input textarea {
    display: block;
    height: 6rem;
}

#contact-section input:focus,
#contact-section input:active,
#contact-section textarea:focus,
#contact-section textarea:active {
    outline: solid 2px var(--color-accent);
    background: var(--color-paper);
}

#contact-section input[type="submit"] {
    background-color: var(--color-accent);
    color: var(--color-paper);
}

.hipster-input label {
    position: absolute;
    font-size: .69rem;
    margin-left: 4px;
    transition: all .23s ease-in-out;
}

.hipster-input textarea:placeholder-shown:not(:focus) + label,
.hipster-input input:placeholder-shown:not(:focus) + label {
    font-size: 1.11rem;
    margin-top: .6em;
    margin-left: 12px;
}

/* enlarge the hipster input div to the size of the textarea for a textarea */
.hipster-input.textarea {
    height: 7.7rem;
}

/* slideshow / carousel */
.carousel {
    position: relative;
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    /* iOS natural scrolling: */
    -webkit-overflow-scrolling: touch;
    /* remove the scrollbar... */
    scrollbar-width: none; /* Firefox */
}

.carousel::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.carousel[data-mouse-is-down] .slide {
    cursor: grabbing;
}

#blog {
    padding: 3rem 0;
}

#blog.carousel {
    height: 400px;
}

#blog.carousel .slide {
    list-style-type: none;
    height: 100%;
    width: calc(100vw - 4 * (var(--padding)));
    margin-left: var(--padding);
}

#blog.carousel .slide:last-child {
    margin-right: 100px;
}

.carousel .slide img {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#blog.carousel .slide img {
    max-height: 225px;
}

/* always fit some slides but only the beginning of the next one */
@media (min-width: 480px) {
    #blog.carousel .slide {
        width: calc((100vw - 5 * (var(--padding))) / 2)
    }
}

@media (min-width: 800px) {
    #blog.carousel .slide {
        width: calc((100vw - 6 * (var(--padding))) / 3)
    }
}

@media (min-width: 1200px) {
    #blog.carousel .slide {
        width: calc((100vw - 7 * (var(--padding))) / 4)
    }
}

@media (min-width: 1600px) {
    #blog.carousel .slide {
        width: calc((100vw - 8 * (var(--padding))) / 5)
    }
}

@media (min-width: 2000px) {
    #blog.carousel .slide {
        width: calc((100vw - 9 * (var(--padding))) / 6)
    }
}

@media (min-width: 2400px) {
    #blog.carousel .slide {
        width: calc((100vw - 10 * (var(--padding))) / 7)
    }
}

.portfolio-item {
    height: 900px;
    max-height: 90vh;
    width: 96%;
    border: solid 1px #000;
    transform: rotateZ(-1.2deg);
}

.portfolio-item + h2 {
    padding-top: 1rem;
}

#footer svg {
    fill: var(--color-accent); /* ruige hond leiband */
}

#footer .instagram svg {
    fill: var(--color-key);
}

#about svg {
    width: 48px;
    height: 48px;
    fill: var(--color-key);
    stroke-width: 0;
    margin: 12px;
}

#partners a {
    vertical-align: middle;
    line-height: 0;
    margin: .5em;
    text-decoration: none;
}

#partners a svg {
    vertical-align: middle;
}

#partners .umami a b {
    font-family: ui-sans-serif, system-ui, sans-serif;
}

/* logo’s by 2, put them in a straight line when wide enough */
@media (min-width: 1001px) {
    #partners ul {
        display: inline-block;
    }
}

/* logo’s 2 /2, put them in a straight line when wide enough */
@media (min-width: 560px) {
    #about ul {
        display: inline-block;
    }
}

/* no more separate sidebar for small screens */
@media (max-width: 901px) {
    #wrap {
        display: flex;
        flex-wrap: wrap-reverse;
    }

    #main {
        float: none;
        clear: both;
        padding: 0;
        width: 100%;
    }

    #side { /* has become a header */
        float: none;
        padding-bottom: 2rem;
        width: 100%;
        max-width: 100%;
    }

    #side > * {
        display: inline-block;
    }

    #side svg + svg {
        padding-right: 0;
    }

    #side svg {
        margin-bottom: 0;
        margin-right: var(--padding);
        width: 190px;
        max-width: calc(50vw - (2 * var(--padding)));
    }
}

/* table @since 0.26.0 */
table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}

table tr:not(:first-child) {
    border: solid 1px var(--color-key);
}

table td {
    padding: 0 .2em;
}

table td:not(:first-child) {
    text-align: center;
}

#main table input[type="checkbox"] {
    pointer-events: none;
}
