* {padding: 0; margin: 0; box-sizing: border-box;}
html {font-size: 16px; line-height: 1.5; min-height: 100%; scroll-behavior: smooth;}
body {font-size: 0.875rem; color: #020202; font-family: 'Roboto', sans-serif; min-height: 100%; font-weight: 300;}
img {max-width: 100%; width: 100%; height: auto;}
.container {margin: 0 auto; max-width: 65rem; padding-inline: 2rem;}
.container.small {max-width: 42rem;}
h1,h2,h3 {font-weight: 500; font-size: 2rem; color: #444; line-height: 1.2;}
h2 {font-size: 1.5rem;}
h3 {font-size: 1rem;}
a {color: #020202;}
ul.grid, footer .container {display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); grid-gap: 1.5rem;}
ul.grid li {list-style: none;}
ul.grid li a {display: block; text-decoration: none; padding-bottom: 1rem;}
ul.grid li a img {display: block;}
ul.grid li a h3 {font-size: 1rem; padding-block: 0.75rem 0.5rem;}
ul.grid.large {grid-template-columns: repeat(auto-fill, minmax(23rem, 1fr));}
p:not(:last-child) {margin-bottom: 1.5em;}


/* HEADER */

header {padding-top: 1.5rem; box-shadow: 0rem 0rem 0.5rem rgba(0,0,0,0.2); position: sticky; top: 0; background: white; z-index: 2;}
header .container {display: flex; justify-content: space-between; align-items: center;}
header .container > div {display: flex; gap: 1.5rem; font-size: 0.8125rem; }
header a {text-decoration: none; color: rgb(136, 136, 136);}
header a.mail, header a.phone {display: flex; align-items: center;}
header a.mail::before, header a.phone::before {
    content: ""; 
    display: block; 
    width: 0.8rem; 
    height: 0.8rem; 
    background: url(/img/mail.svg) center center / contain no-repeat;
    margin-right: 0.35rem;
    opacity: 0.7;
}
header a.phone::before {background: url(/img/phone.svg) center center / contain no-repeat;}
header a.logo {color: rgb(136, 136, 136);}
header a.logo span {display: block;}
header a.logo span:nth-child(1) {font-size: 2.75rem; color: #020202; font-family: 'Crimson Pro'; line-height: 1.1; font-style: italic;}

header select.menu {
    display: none; 
    margin: 1.25rem 0 1rem; 
    width: 100%;
    border: 1px solid rgba(0,0,0,0.15);
    padding: 0.45rem;
    font-size: 0.8125rem;
    font-family: 'Roboto', sans-serif; 
    font-weight: 300;
    color: #020202; 
    background: rgba(0,0,0,0.08);
}
header ul.menu {display: flex; width: 100%; justify-content: space-between;}
header ul.menu li {list-style: none; text-align: center;}
header ul.menu li a {
    display: block; 
    padding: 1.75rem 0 0.65rem; 
    text-decoration: none; 
    color: #444; 
    border-bottom: 0.15rem solid transparent;
}
header ul.menu li.active a {border-color: #020202; color: #020202; font-weight: normal;}
@media only screen and (max-width: 60rem) {
    header .container {flex-direction: column-reverse; align-items: flex-start;}
    header .container > div {position: relative; bottom: 1rem;}
    header a.logo {margin-top: 0.75rem;}
}


/* MAIN */
main, main a {color: #444;}
main .slider {background: url() center center / 100% 100% no-repeat; margin-bottom: 2.5rem;}
body:not(.home) main .slider {opacity: 0.1;}
main .slider > div {backdrop-filter: blur(5rem); overflow: auto; min-height: 2rem;}
main .slider > div img {
    display: block; 
    margin: 2rem auto; 
    width: 80rem; 
    height: 20rem; 
    object-fit: cover; 
}
@media only screen and (max-width: 80rem) {
    main .slider > div img {margin-block: 0;} 
}
main .slider > div .panel {
    position: absolute; 
    background: white;
    z-index: 2;
    top: 50%;
    right: 2rem;
    width: calc(100% - 4rem);
    max-width: 20rem;
    transform: translateY(-50%);
    padding: 1.45rem;
}
main .slider > div .panel h3 {margin-bottom: 0.5rem;}    
@media only screen and (min-width: 94rem) {
    main .slider > div .panel {right: auto; left: 50%; margin-left: 25rem;}
}

main h1, main h2 {
    display: flex; 
    align-items: center; 
    gap: 0.6rem; 
    font-size: 1.05rem;
    margin-block: 3rem 1rem;
}
main h1::after, main h2::after {content: ""; height: 1px; flex-grow: 1; background: #ddd;}
main ul:not(.grid,.olderblogposts,.image-gallery) {margin-left: 1rem;}
main ul.olderblogposts {margin-bottom: 1.5em;}
main ul.olderblogposts li {list-style: none;}
main ul.olderblogposts li a {text-decoration: none;}
main div[data-date]::before {content: attr(data-date); display: inline;}
main div[data-date] > p:first-child {display: inline;}
main div[data-date] > p:first-child::after {content: ""; display: block; height: 1.5em;}
main div[data-date] > :last-child {margin-bottom: 1.5em;}

main dl {display: flex; flex-wrap: wrap; margin-bottom: 1.5em; margin-top: -0.35rem;}
main dl dt {width: 3.5rem;}
main dl dd {width: calc(100% - 3.5rem);}

hr {height: 1px; background: #ddd; width: 100%; border: 0; margin-bottom: 1.5em;}
dl + hr {margin-top: -0.45rem;}

img[alt="Wim van Klaveren Portrait"] {float: right; width: 40vw; max-width: 15rem; margin: 0 0 0.75rem clamp(0.5rem, 3vw, 2rem);}

a {text-decoration-color: rgba(2, 2, 2, 0.5); text-underline-offset: 0.1rem;}
a[href^="mailto:"], a[href^="tel:"] {text-decoration: none;}

#loadmoreposts {cursor: pointer; color: #999;}

.featured_gallery {display: flex; gap: 1.7%; align-items: flex-start;}
.featured_gallery .image-gallery {width: 14%; position: relative; display: block;}
.featured_gallery .image-gallery li {display: none; margin-bottom: 11%;}
.featured_gallery .image-gallery li:nth-child(1),
.featured_gallery .image-gallery li:nth-child(2),
.featured_gallery .image-gallery li:nth-child(3),
.featured_gallery .image-gallery li:nth-child(4),
.featured_gallery .image-gallery li:nth-child(5) {display: block;}
.featured_gallery .image-gallery li:nth-child(5) {position: absolute; bottom: 0; width: 100%; aspect-ratio: 1; pointer-events: none;}
.featured_gallery .image-gallery li:nth-child(5) a {display: none;}
.featured_gallery .image-gallery li:nth-child(5)::before {
    content: attr(data-content);
    position: absolute;
    background: rgba(0,0,0,0.5);
    width: 100%;
    height: 100%;
    color: white;
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 150%;
}

.featured_image {position: relative; background: url() center center / 100% 100% no-repeat; margin-bottom: 1.5em; width: 84%;}
.featured_image > a {backdrop-filter: blur(5rem); width: 100%; aspect-ratio: 1.385; display: block;}
.featured_image > a img {width: 100%; height: 100%; object-fit: contain; display: block;}
.featured_image:first-child:last-child {width: 100%;}
.featured_image:first-child:last-child > a {aspect-ratio: 1.649;}

.image-gallery {display: grid; grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr)); grid-gap: .5rem;}
.image-gallery li {list-style: none;}
.image-gallery li a, .image-gallery li a img {display: block;}

/* FOOTER */

footer {background: #020202; color: #999; font-size: 0.8125rem; line-height: 1.8; font-weight: normal; margin-top: 5rem; padding-top: 1.75rem;}
footer h3 {font-size: 0.9rem; color: white; margin-bottom: 0.4rem;}
footer a {color: #999;}
footer .container {padding-bottom: 2rem;}
footer .container:first-child > div {padding-block: 0.5rem;}
footer .container:last-child {padding-block: 1.25rem; display: flex; justify-content: space-between;}
footer .container:last-child > span:last-child {opacity: 0.5;}
footer .container .menu li {list-style: none;}
footer .container .menu li a {color: #999; text-decoration: none;}

form > div {display: flex; flex-direction: column; margin-bottom: 0.5rem;}

input, textarea {
    border: 1px solid rgba(0,0,0,0.15); 
    font-size: 0.875rem;
    font-family: 'Roboto', sans-serif; 
    font-weight: 300;
    color: #020202;
    margin-block: 0.25rem;
    width: 100%;
    padding: 0.35rem 0.25rem;
    border-radius: 0;
}
textarea {resize: vertical;}
form.search input {
    background: transparent url(/img/search_black.svg) 0.35rem center / auto 0.7rem no-repeat; 
    padding: 0.35rem 0.25rem 0.35rem 1.4rem;
}
footer form.search input {
    background: transparent url(/img/search.svg) 0.35rem center / auto 0.7rem no-repeat; 
    color: #999;
    border: 1px solid rgba(255,255,255,0.3); 
    font-size: 0.8125rem;
    font-weight: 400;
    padding: 0.25rem 0.25rem 0.25rem 1.4rem;
}
input[type="submit"] {
    width: auto;
    padding-inline: 1rem;
    background: #020202;
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
}

@media only screen and (max-width: 45rem) {
    .container {padding-inline: 1rem;}
    header {position: relative; box-shadow: none;}
    header ul.menu {display: none;}
    header select.menu {display: block;}
    body:not(.home) main .slider {margin-top: -1rem}
    main .slider > div {min-height: 0;}
    main .slider > div .panel {right: auto; left: 1rem; margin: 0; width: calc(100% - 2rem);}
    footer .container:last-child > span:last-child {display: none;}
}
@media only screen and (max-width: 25rem) {
    footer .container:last-child > span:first-child > span {display: block;}
    footer .container:last-child > span:first-child > span:nth-child(2) {display: none;}
}