@font-face {
	font-family: "Roboto Mono";
	src: url("../font/RobotoMono-Regular.ttf") format("truetype");
	font-style: normal;
	font-weight: 400;
	text-rendering: optimizeLegibility;
}

@font-face {
	font-family: "Roboto Mono";
	src: url("../font/RobotoMono-Italic.ttf") format("truetype");
	font-style: italic;
	font-weight: 400;
	text-rendering: optimizeLegibility;
}

@font-face {
	font-family: "Roboto Mono";
	src: url("../font/RobotoMono-Bold.ttf") format("truetype");
	font-style: normal;
	font-weight: 700;
	text-rendering: optimizeLegibility;
}

@font-face {
	font-family: "Roboto Mono";
	src: url("../font/RobotoMono-BoldItalic.ttf") format("truetype");
	font-style: italic;
	font-weight: 700;
	text-rendering: optimizeLegibility;
}

@font-face {
    font-family: "Raleway";
    src: url("../font/Raleway-VariableFont_wght.ttf") format("truetype");
    font-style: normal;
}

@font-face {
    font-family: "Raleway";
    src: url("../font/Raleway-Italic-VariableFont_wght.ttf") format("truetype");
    font-style: italic;
}

:root {
	--global-font-color: #444;
	--global-line-height: 1.6em;
}

body {
	color: #222;
	font-family: Roboto Mono;
	line-height: 1.5;
	margin: 0;
	max-width: 95vw;
	margin-left: 2.5vw;
	margin-right: 2.5vw;
    min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

header {
	border-bottom: 1px solid #222;
	margin-bottom: 1rem;
	height: 9vh;
}

header h1 {
    font-family: Roboto Mono;
    weight: 600;
}

h1, h2, h3 {
    font-weight: 600;
}

ul.grid {
    display: grid;
    grid-gap: 8px;
    grid-template-columns: repeat(3, 1fr);
    list-style-type: none;
    padding-left: 0;
}

ul.grid li {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1 1 1;
    justify-content: space-between;
    height: 100%;
  }

ul.grid li a {
    color: black;
    flex-shrink: 1;
    display: inline-block;
}

ul.grid li:hover > a h3 {   
    color: #0000cd;
    text-shadow: 1px 0 #0000cd; 
}

ul.grid li a h3 {
    margin-bottom: 0;
}

ul.grid li figure {
    margin: 0;
}

ul.grid li a img {
    object-fit: cover;
	border-radius: 3px;
    height: 90%;
    width: 90%;
    aspect-ratio: 1;
}

ul.grid li h4 {
    margin-top: 4px;
    font-weight: 300;
}

div#work-specs {
	display: flex;
	justify-content: start;
	gap: 17px;
	margin-bottom: 1rem;
}

div#work-specs>* {
	margin-top: auto;
	margin-bottom: auto;
}

.documentation h1 {
	margin-bottom: 3vw;
}

/* Masonry layout styling */
.documentation {
	column-count: 3;
	column-gap: 15px;
	margin-top: 4.5vh;
	padding-left: 0;
}

.documentation-item {
	display: inline-block;
	width: 100%;
	margin-bottom: 15px;
	break-inside: avoid;
}

.documentation img {
	width: 100%;
	height: auto;
	border-radius: 3px;
	transition: transform 0.2s ease;
}

.documentation img:hover {
	transform: scale(1.02);
}

a#youtube-link {
    display: inline-block;
    position: relative;
}

a#youtube-link .play-icon {
    cursor: pointer;
    position: absolute;
    top : 50%;
    left : 50%;
    transform: translate(-50%, -50%);
}

svg:hover #play-svg{
  fill: #CC181E;
}

small#fotograaf {
    font-size: .95em;
}

div#home {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	height: 100%;
}

li h2:hover {
    text-shadow: 1px 0 #0000cd;
}

small#reclame, small#reclame > a {
    color: #777777;
}

small#reclame > a:hover {
    color: #0000cd;
}


@media (max-width: 500px) {
	.grid {
		grid-template-columns: 1fr;
	}
}

ul h2#key {
    margin-top: 56px;
    font-family: Roboto Mono;
    font-weight: 400;
}


main h1 {
	margin-bottom: 0;
}

main h4 {
	margin-top: 0;
}

footer {
	height: auto;
	border-top: 1px solid #222;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

footer small {
	font-size: 0.95em;
    padding-top: 21px;
    padding-bottom: 21px;
}

footer small a:hover {
    text-shadow: 1px 0 #0000cd; 
}

h2,
h3,
h4,
h5,
h6,
p,
td,
blockquote {
	max-width: 69ch;
}

a {
	color: #0000cd;
	text-decoration: none;
}

li a {
	vertical-align: middle;
}

nav,
footer {
	display: flex;
	text-align: start;
}

header {
	display: flex;
	justify-content: space-between;
	align-items: center;
    margin-bottom: 4vh;
}

header h1 a {
	color: #241f31;
}

header h1 a:hover {
    font-weight: 500;
}

/*
header > * {
    height: 3em;
}
*/

nav > a {
	flex: 1;
	text-align: center;
	text-decoration: none;
	padding: 16px;
}

nav > a:hover > h2 {
    text-shadow: 1px 0 #0000cd; 
}

h1,
h2,
h3,
h3>a,
h4,
nav>a {
	font-family: Raleway;
}

h4,
p {
	font-family: "Roboto Mono";
}

main {
    margin-bottom: 4vh;
}

.over-madelon main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.over-madelon main div#kunstenaar {
	display: flex;
	justify-content: center;
	gap: 9vw;
    align-items: stretch;
    margin-top: 4vh;
    margin-bottom: 7vh;
}

.over-madelon main div#kunstenaar div.gallery {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.over-madelon main div#kunstenaar div.gallery h1 {
    margin: 0;
}

.over-madelon main div#kunstenaar div.gallery img  {
    height: 300px;
    width: auto;
}

.over-madelon div#cv section {
    width: calc(95vw - 9vw);
    margin-bottom: 9vw;
}

.over-madelon div#cv section > div {
	display: flex;
}

.over-madelon div#cv section > div > * {
    flex-grow: 1;
	max-width: 50%;
	wrap: 1;
}

/* Responsive adjustments */
@media (max-width: 992px) {
	.documentation {
		column-count: 2;
	}
}

@media (max-width: 820px) {
	div#work-specs {
		display: block;
	}

ul.grid {
        grid-gap: 8px;
        grid-template-columns: repeat(2, 1fr);
    }

    .over-madelon div#kunstenaar img {
        margin-top: 100%;
    }


    .over-madelon div#cv section > div {
        display: block;
    }

    .over-madelon div#cv section > div > p {
        text-align: left;
    }    
}


@media (max-width: 576px) {

    body {
        margin-left: 14px;
        margin-right: 14px;

    }

    .hide-on-mobile {
        display: none;
    }

	header {
		display: block;
		height: 9em;
	}

	header>h1 {
		margin-bottom: 0;
	}

	nav>a:first-child {
		padding-left: 3px;
	}

	nav>a {
		flex: 0;
		padding-top: 0;
		padding-bottom: 0;
	}

    ul.grid {
        grid-gap: 8px;
        grid-template-columns: repeat(1, 1fr);
    }
    

    div#kunstenaar {
        display: block !important;
    }

    .over-madelon main {
        align-content: center;
    }        

.over-madelon main div#kunstenaar div.gallery img  {
    margin: 14px;
    flex: 0;
    width: 65%;
}


	.documentation {
		column-count: 1;
	}

    footer {
        display: block;
        padding: 7px;
    }
}

#lightbox {
	width: 100%;
	height: 100%;
	position: fixed;
	top: 0;
	left: 0;
	background: rgba(0, 0, 0, 0.85);
	z-index: 9999999;
	line-height: 0;
	cursor: pointer;
	display: none;
}

#lightbox .img {
	position: relative;
	top: 50%;
	left: 50%;
	-ms-transform: translateX(-50%) translateY(-50%);
	-webkit-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
	max-width: 100%;
	max-height: 100%;
}

#lightbox .img img {
	opacity: 0;
	pointer-events: none;
	width: auto;
}

@media screen and (min-width: 1200px) {
	#lightbox .img {
		max-width: 1200px;
	}
}

@media screen and (min-height: 1200px) {
	#lightbox .img {
		max-height: 1200px;
	}
}

#lightbox span {
	display: block;
	position: fixed;
	bottom: 13px;
	height: 1.5em;
	line-height: 1.4em;
	width: 100%;
	text-align: center;
	color: white;
	text-shadow:
		-1px -1px 0 #000,
		1px -1px 0 #000,
		-1px 1px 0 #000,
		1px 1px 0 #000;
}

#lightbox span {
	display: none;
}

#lightbox .videoWrapperContainer {
	position: relative;
	top: 50%;
	left: 50%;
	-ms-transform: translateX(-50%) translateY(-50%);
	-webkit-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
	max-width: 900px;
	max-height: 100%;
}

#lightbox .videoWrapperContainer .videoWrapper {
	height: 0;
	line-height: 0;
	margin: 0;
	padding: 0;
	position: relative;
	padding-bottom: 56.333%;
	/* custom */
	background: black;
}

#lightbox .videoWrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

#lightbox #prev,
#lightbox #next {
	height: 50px;
	line-height: 36px;
	display: none;
	margin-top: -25px;
	position: fixed;
	top: 50%;
	padding: 0 15px;
	cursor: pointer;
	text-decoration: none;
	z-index: 99;
	color: white;
	font-size: 60px;
}

#lightbox.gallery #prev,
#lightbox.gallery #next {
	display: block;
}

#lightbox #prev {
	left: 0;
}

#lightbox #next {
	right: 0;
}

#lightbox #close {
	height: 50px;
	width: 50px;
	position: fixed;
	cursor: pointer;
	text-decoration: none;
	z-index: 99;
	right: 0;
	top: 0;
}

#lightbox #close:after,
#lightbox #close:before {
	position: absolute;
	margin-top: 22px;
	margin-left: 14px;
	content: "";
	height: 3px;
	background: white;
	width: 23px;
	-webkit-transform-origin: 50% 50%;
	-moz-transform-origin: 50% 50%;
	-o-transform-origin: 50% 50%;
	transform-origin: 50% 50%;
	/* Safari */
	-webkit-transform: rotate(-45deg);
	/* Firefox */
	-moz-transform: rotate(-45deg);
	/* IE */
	-ms-transform: rotate(-45deg);
	/* Opera */
	-o-transform: rotate(-45deg);
}

#lightbox #close:after {
	/* Safari */
	-webkit-transform: rotate(45deg);
	/* Firefox */
	-moz-transform: rotate(45deg);
	/* IE */
	-ms-transform: rotate(45deg);
	/* Opera */
	-o-transform: rotate(45deg);
}

#lightbox,
#lightbox * {
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
