

/* - RESET + GENERAL - */

* {
	box-sizing: border-box; 
}

ul, ol, li {
	padding: 0;
	margin: 0;
	list-style: none;
}

html {
  /* scroll-behavior: smooth; */
}

html, body { 
/*	overflow: hidden; */
/* NOT YET */
}

body {
	position: relative;
	background-color: #fff;
	width: 100%;
	height: 100%;
/*	height: 100vh; */
/* NOT YET */
	padding: 0;
	margin: 0;
	font-size: 16px;
}

body, td, input, textarea, button, a {
	font-family: 'Roboto', sans-serif; 
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-weight: 300;
	-webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
	color: #222;
}


@media (min-width: 600px) {
	body .narrow { 
		display: none;
	}
}
@media (max-width: 599px) {
	body .wide { 
		display: none;
	}
}

body .init-offset {
	display: none !important;
}


/* SCROLLBARS */
/*
body.has-js {
	overflow: hidden;
	height: 100vh;
}
*/
.scrollable {
	position: relative;
	width: 100%;
	height: 100%;
}


/* NO SPAM */

.js-mail span:first-child:after { content: "@"; }
.js-mail span:nth-child(2):after { content: "."; }




/* - TOP BLACK/WHITE - */

.over-background {
	transition: color .2s ease;
	-webkit-transition: color .2s ease;
}

.white-top .over-background {
	color: #fff;
}

/*body:not(.top-loaded) .over-background, */
body.has-js.top-loading .over-background,
.black-top .over-background,
.black-top .top-bar {
	color: #000;
}




/* - TOP BAR - */


.top-bar {
	position: fixed;
	top: 0; left: 0; right: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	z-index: 10;
	transition: background-color .2s ease;
	-webkit-transition: background-color .2s ease;
}

.top-bar .part.part-left {
	position: relative;
	height: 100%;
	padding-left: .55em;
}
.top-bar .part.part-right {
	position: absolute;
	height: 100%;
	right: 0;
	padding-right: .55em;
	text-align: right;
}

.top-bar .nav-link {
	height: 100%;
	display: inline-block;
	vertical-align: top;
}
/*body.at-home .top-bar .nav-link.to-top {
	pointer-events: none;
	opacity: 0;
}
*/

/* to-top / to-bottom */
.top-bar .nav-link.mini-link {
	overflow: hidden;
	opacity: 1;
	transition: opacity .2s ease;
	-webkit-transition: opacity .2s ease;
}
body.on-top .top-bar .nav-link.to-top,
body.off-top .top-bar .nav-link.to-bottom,
body.at-home .top-bar .nav-link.to-bottom {
	pointer-events: none;
	opacity: 0;
	width: 0% !important;
}
.top-bar .nav-link.mini-link a span {
	width: 100%;
	user-select: none; -moz-user-select: none; -webkit-user-select: none;
	font-size: 150%;
}
.top-bar .nav-link.to-top a span {
	transform: translate(4px, 2px) rotate(90deg);
	-webkit-transform: translate(4px, 2px) rotate(90deg);
}
.top-bar .nav-link.to-bottom a span {
	transform: translate(-4px, 2px) rotate(-90deg);
	-webkit-transform: translate(-4px, 2px) rotate(-90deg);
}



.top-bar .nav-link a {
	color: inherit;
	outline: none;
	display: inline-block;
	letter-spacing: 90%;
	font-size: .75em;
	font-weight: 600;
	transition: color 200ms ease;
	-webkit-transition: color 200ms ease;
	text-decoration: none;
	padding: 0 0.65em;
	height: 100%;
	display: flex;
	align-items: center;
	height: 50px;
}
.top-bar .nav-link a span {
	letter-spacing: normal;
}
.top-bar .nav-link.mini-link a {
	text-align: center;
	padding: 0;
	width: 20px;
}

.top-bar.on-body {
	background-color: #fff;
	color: #222;
}

.top-bar .nav-link.current a {
    color: #68B;
}
.top-bar .nav-link a:hover {
	color: #416293;
}

.top-bar .nav-link .narrow {
	font-size: 1.1em;
}

@media (min-width: 768px) {
	.top-bar .part {
		padding: 0 1.0em;
	}
	.top-bar .nav-link a {
		height: 80px;
		font-size: .80em;
		padding: 0 .8em;
	}
	.top-bar .nav-link.mini-link a {
		width: 30px;
	}
}

@media (min-width: 1048px) {
	.top-bar .nav-link a {
		font-size: .9em;
		padding: 0 1.0em;
	}
	.top-bar .nav-link.mini-link a {
		width: 35px;
	}
}




/* - BACKGROUND-CONTAINER - */


.background-container {
	position: relative;
	height: 100vh;
	width: 100%;
}
.background-container .background-object,
.background-container .background-object noscript {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	z-index: 0;
}

.background-object .media {
	position: absolute;
	min-width: 100%;
	min-height: 100%;
	pointer-events: none;
}

.background-object .main-title {
	text-transform: uppercase;
	text-align: center;
	font-size: 6.0vmin;
	line-height: 200%;
	font-weight: 400;
	letter-spacing: .1em;
	z-index: 1;
	transition: color 1s;
}
body.black-top .background-object .main-title {
	text-shadow: 0 0 1.5px rgba(0,0,0,0.15);
}

.background-container.loaded {
	transition: color .2s ease;
}

.background-object {
	opacity: 0;
	transition: opacity 1s ease;
}

.background-object.visible {
	opacity: 1;
}
.background-object .background-image {
	position: absolute;
	width: 100%;
    height: 100%;
    object-fit: cover;
/*	background-size: cover;
	background-position: center center; */
}

.background-loader {
	position: absolute;
	top: 50%;
	left: 50%;
	margin-left: -30px;
	margin-top: -30px;
	width: 60px;
	height: 60px;
    background-position: center center;
    background-size: cover;
    transition: opacity .5s ease;
    opacity: 0;
    visibility: hidden;
}
.has-js.top-waiting .background-loader {
	visibility: visible;
	animation-timing-function: linear;
	animation-duration: 3s;
	animation-name: spinner;
	animation-iteration-count: infinite;
	opacity: .5;
    transition: opacity .5s ease;
}



/* - CONTENT - */

main {
	padding-bottom: 1.0em;
	display: flex;
    flex-direction: column;
    align-items: center;
}

.project-wrapper {
	position: relative;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
}

article {
	position: relative;
	display: block;
	width: 100%;
	z-index: 1;
	font-size: 14px;
	padding-top: 2.5em;
	max-width: 1400px;
	text-align: center;
}

article h1 {
	text-transform: uppercase;
    letter-spacing: .1em;
   	margin: 1.2em 0;
    word-break: break-word;
	font-weight: 400;
	font-size: 1.8em;
	letter-spacing: .15em;
	text-align: center;
}

article h2 {
	text-transform: uppercase;
	text-align: center;
	font-weight: 400;
}

article h3 {
	text-transform: uppercase;
	text-align: center;
	font-weight: 500;
	font-size: 1.0em;
	letter-spacing: .1em;
	display: inline-block;
}

article figure {
	position: relative;
	padding: 0;
	margin: 0;
}

article .fixed {
	/* The point of this, is precalc image size and use padding-bottom to give the fixed relative size. So lazyloading wont affect scrolling. */
	width: 100%;
	position: relative;
	overflow: hidden;
	display: inline-block;
}

article .fixed img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: auto;
}


article .main-text,
article .main-image {
	width: 100%;
}

article .main-text {
	display: inline-block;
	font-weight: 400;
	line-height: 170%;
	padding: 1.0em;
}

article .main-image {
	padding: 1.0em;
}

article .embedded {
	width: 100%;
	height: 400px;
	display: inline-block;
	margin: 1.5em 0;
}
article .embedded > iframe {
	width: 100%;
	height: 100%;
}

article a {
	display: inline-block;
	color: #68b;
	outline: none;
	text-decoration: none;
	transition: color 200ms ease;
	-webkit-transition: color 200ms ease;
}
article a:hover {
	color: #416293;
	text-decoration: underline;
}


article div.info {
	font-size: .9em;
	font-weight: 500;
	margin: 1.5em 0;
}

article.hidden {
	display: none;
}


@media (min-width: 768px) {

	main {
		padding: 1.5em 0;
	}
	article {
		font-size: 16px;
		/* padding: 1.5em 1.0em; */
		padding-top: 3.5em;
	}
    article h1 {
	    margin: 1.0em 0 1.5em;
    }
    article .main-text,
    article .main-image {
    	width: 700px;
    }
	article .embedded {
		width: 700px;
		height: 440px;
	}
	article div.info {
		font-weight: 700;
	}

}

@media (min-width: 1048px) {
    article .main-text,
	article .main-image {
		width: 850px;
	}
	article .embedded {
		width: 850px;
		height: 460px;
	}
}

@media (min-width: 1420px) {
	article .main-image {
		width: 1000px;
	}
	article .embedded {
		width: 1000px;
		height: 500px;
	}

}





/* - PROJECTS FILTERS - */

.no-js .projects-filters {
	display: none;
}

.projects-filters {
	margin: 2.0em 0 1.0em;
}

.projects-tags {
	display: block;
}
.projects-filters .tag {
	display: inline-block;
	border-radius: .5em;
	font-size: .9em;
	padding: .2em .4em .25em;
	margin: .3em;
	border: 1px solid currentColor;
	background-color: currentColor;
	cursor: pointer;
	user-select: none; -moz-user-select: none; -webkit-user-select: none;
	transition: border-color .2s ease, background-color .2s ease;
}
.projects-filters .tag:hover {

}

.projects-filters .tag span {
	color: #fff;
	font-weight: 500;
	transition: color .2s ease;
}

.projects-filters .tag.tag-off {
	background-color: transparent;
	border-color: currentColor;
}
.projects-filters .tag.tag-off span {
	color: inherit;
}

/* PROJECTS TEXT FILTER */

.projects-text-filter {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100px;
}
.projects-text-filter-input {
	outline: none;
	background: none;
	border: none;
	border-bottom: 1px solid currentColor;
	padding: 0 5px 2px;
	flex-grow: 1;
	max-width: 400px;
	min-width: 150px; 
	font-size: 130%;
	font-style: italic;
	font-weight: 400;
	text-align: center;
	display: inline-block;
}
.projects-text-filter-icon,
.projects-text-filter-clear {
	display: inline-block;
	flex-grow: 0;
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	margin: 0 .5em;
}
.projects-text-filter-icon {
	width: 25px;
	height: 25px;
	transition: opacity .2s;
	color: #777;
}
/*.projects-text-filter.inactive .projects-text-filter-icon {
	opacity: .5;
}
*/
.projects-text-filter-clear {
	padding: 0;
	background: none;
	outline: none;
	border: none;
	overflow: hidden;
	transition: opacity .2s, width .2s;
	cursor: pointer;
}
.projects-text-filter-clear svg {
	width: 100%;
	height: 100%;
}
.projects-text-filter-clear.hide {
	width: 0;
	opacity: 0;
}


/* - PROJECTS GALLERY - */

.projects-gallery {
/*	margin: 2.0em 0; */
	position: relative;
	overflow: hidden;
}

.project-item {
	position: relative;
	display: inline-block;
	text-align: center;
	width: 100%;
	padding: 1.0em 1.0em 0;
	vertical-align: top;
}
.project-item a {
	position: relative;
	display: inline-block;
	text-decoration: none;
	font-weight: 400;
	color: #222;
	width: 100%;
}
.project-item .project-thumb,
.project-item .project-thumb noscript {
	position: relative;
    background-color: #416293;
    width: 100%;
    height: 100%;
	max-height: 50vw;
	overflow: hidden;
	/* just in case loads up wrong size (bigger) pic */
	display: flex;
	align-items: center;
	justify-content: center;
}

.project-item .project-thumb img {
	display: block;
	width: 100%;
	min-height: 100%;
	height: auto;
	transition: opacity 500ms ease;
	-webkit-transition: opacity 500ms ease;
}

.project-item a:hover .project-thumb img {
    opacity: .25;
	transition: opacity 200ms ease;
	-webkit-transition: opacity 200ms ease;
}

.project-item.hidden { 
	display: none;
}

.project-item .project-thumb.loading {

}
.project-item .project-thumb.loading img {
	opacity: .25;
}
.project-item .project-thumb .loader {
	display: inline-block;
	visibility: hidden;
	opacity: 0;
	position: absolute;
	left: 50%;
	top: 50%;
	margin-left: -21px;
	margin-top: -21px;
	width: 42px;
	height: 42px;
	background-size: contain;
	background-repeat: no-repeat;
	transition: opacity 1s;
}
.project-item .project-thumb.loading .loader {
/*	content: url(icons/spinner.png); */
	visibility: visible;
	animation-timing-function: linear;
	animation-duration: 3s;
	animation-name: spinner;
	animation-iteration-count: infinite;
	opacity: 1;
	transition: opacity 1s;
}

.projects-gallery .project-title {
	margin: .7em 0;
	font-weight: 400;
}

@media (min-width: 600px) {
	.projects-gallery {
		margin: 0 1.5em;
	}
	.project-item {
		width: 260px;
/*		width: auto; */
		padding: 5px;
	}
	.project-item .project-thumb {
		height: 160px;
	}
}



/* PROJECTS.. Show more / less */


.projects-gallery .projects-buttons {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	z-index: 1;
}
.no-js .projects-gallery .projects-buttons {
	display: none;
}

.projects-gallery .projects-button {
	outline: none;
	background: none;
	border: none;
	border-bottom: 1px solid transparent;
	color: currentColor;
	display: inline-block;
	font-size: 130%;
	font-style: italic;
	padding: 0;
	margin: 0;
	cursor: pointer;
	overflow: hidden;
	transition: opacity .5s, border .2s;
	width: 0;
	opacity: 0;
}
.projects-gallery .projects-button:hover {
	border-bottom-color: currentColor;
}
.projects-gallery.show-all:not(.has-more) .projects-button.show-less,
.projects-gallery.has-more .projects-button.show-more {
	width: auto;
	opacity: 1;
}




/* - PROJECT PAGE - */

.project {

}
.project-tags {
	margin: 2.0em 0;
}
.project-tags .project-tag {
	display: inline-block;
	border-radius: .3em;
	font-size: .9em;
	padding: .15em .3em .2em;
	margin: .4em .5em;
	border: 1px solid currentColor;
}
.project-tags .project-tag span {
	color: currentColor;
}

.image-gallery {
	margin-top: 2.0em;
	display: block;
}

.image-gallery .gallery-item {
	position: relative;
	display: inline-block;
	margin: 0.0em;
	vertical-align: top;
	width: 100%;
/*padding: .5em 1.0em; */
    padding: 7px 14px;
    font-size: 0;
}

.image-gallery .gallery-item a {
	position: relative;
	width: 100%;
}

body .gallery-item figcaption {
	display: none;
}


@media (min-width: 768px) {
	article .image-gallery {
		width: 746px;
		display: inline-block;
	}
	article .gallery-thumb figure {
		width: 345px;
/*		margin: 1.0em; */
	}
	.image-gallery .gallery-item {
		width: auto;
		padding: 14px;
	    font-size: 100%;
	}
	.image-gallery .gallery-item a {
		width: auto;
	}

}



@media (min-width: 1048px) {
	article .image-gallery {
		width: 986px;
	}
	article .gallery-thumb figure {
		width: 465px;
	}
}


@media (min-width: 1420px) {
	article .image-gallery {
		width: 1226px;
	}
	article .gallery-thumb figure {
		width: 585px;
	}
}


/* VERY SIMPE MASONRY SUPPORT */

.gridify-column[grid-columns="2"] {
	width: 50%;
	float: left;
}


/* - PEOPLE - */

.people {
	position: relative;
	display: inline-block;
	width: 100%;
}
.person {
	text-align: center;
	display: inline-block;
	margin: .9em 0;
	width: 49%;
	vertical-align: top;
}
.person-picture {
	display: inline-block;
	width: 120px;
	height: 120px;
	border-radius: 60px;
	overflow: hidden;
	max-width: 30vw;
	max-height: 30vw;
}
.person-picture img {
	width: 100%; height: auto;
}


.details {
	font-size: .9em;
	margin: .5em 0;
	line-height: 150%;
}

.details-main {
	font-weight: 700;
}
.details-sub {
	font-weight: 500;
}



@media (min-width: 768px) {
	.people {
		width: 750px;
		text-align: left;
	}
	.person {
		margin: 1.3em 0;
		width: 250px;
		box-sizing: border-box;
	}
}


@media (min-width: 1150px) {
	.people {
		width: 1000px;
	}
}


@media (min-width: 1420px) {
	.people {
		width: 1250px;
	}
}





.media-box {
	color: #ccc;
	font-weight: 400;
}

/* - LAZY LOADING - */

.no-js img.lazyload {
	display: none;
}

source.lazyload,
source.lazyloading,
img.lazyload,
img.lazyloading {
	opacity: 0;
}
img.lazyloading {
	transform: scale(.8);
	-webkit-transform: scale(.8);
/* background: #f7f7f7 url(loader.gif) no-repeat center; */
}
source.lazyloaded {
	opacity: 1;
	transition: opacity 1s;
}
img.lazyloaded {
	opacity: 1;
	transition: opacity 1s, transform .5s;
/*	-webkit-transition: opacity 1s, -webkit-transform 1s; */
	transform: none;
	-webkit-transform: none;
}




@keyframes spinner {
	from { transform: rotate(0deg); -webkit-transform: rotate(0deg); }
	to { transform: rotate(360deg); -webkit-transform: rotate(360deg); }
