/* libre-franklin-300 - latin */
@font-face {
	font-family: 'Libre Franklin';
	font-style: normal;
	src: url('libre-franklin-v6-latin-300.eot'); /* IE9 Compat Modes */
	src: local(''),
	url('libre-franklin-v6-latin-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
	url('libre-franklin-v6-latin-300.woff2') format('woff2'), /* Super Modern Browsers */
	url('libre-franklin-v6-latin-300.woff') format('woff'), /* Modern Browsers */
	url('libre-franklin-v6-latin-300.ttf') format('truetype'), /* Safari, Android, iOS */
	url('libre-franklin-v6-latin-300.svg#LibreFranklin') format('svg'); /* Legacy iOS */
}


@font-face {
    font-family: 'Chloe';
    src: url('./fonts/Chloe-Regular.eot');
    src: url('./fonts/Chloe-Regular.eot?#iefix') format('embedded-opentype'),
        url('./fonts/Chloe-Regular.woff2') format('woff2'),
        url('./fonts/Chloe-Regular.woff') format('woff'),
        url('./fonts/Chloe-Regular.ttf') format('truetype'),
        url('./fonts/Chloe-Regular.svg#Chloe-Regular') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mansory';
    src: url('./fonts/Mansory-Regular.eot');
    src: url('./fonts/Mansory-Regular.eot?#iefix') format('embedded-opentype'),
        url('./fonts/Mansory-Regular.woff2') format('woff2'),
        url('./fonts/Mansory-Regular.woff') format('woff'),
        url('./fonts/Mansory-Regular.ttf') format('truetype'),
        url('./fonts/Mansory-Regular.svg#Mansory-Regular') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

	
* {
	box-sizing: border-box;
}


.with-sidebar {
	overflow: hidden;
}

.with-sidebar > * {
	display: flex;
	flex-wrap: wrap;
	margin: calc(1em / 2 * -1);
}

.with-sidebar > * > * {
	margin: calc(1em / 2);
	flex-grow: 1;
}

.with-sidebar > * > :last-child {
	flex-basis: 0;
	flex-grow: 999;
	min-width: calc(70% - (1em / 2));
}

html {
	min-height: 100%;
}

body {
	font-family: "Libre Franklin",sans-serif;
	font-weight: 300;
	line-height: 1.5;
	margin: 1em; auto;
	max-width: 62em;
	padding: 0 1em;
	color: #7c877d;
	margin-left: auto;
	margin-right: auto;
}

.gras {
	font-weight: 900;
}

nav {
	flex-basis: 17ch;
	flex-grow: 1;
}

nav > a {
	font-family: "Mansory",sans-serif;
	font-weight: 100;
	font-size: 0.85em;
	line-height: 1.5;
	display: block;
}
nav > a + a {
	margin-top: 0.1em;
}

.page {
	text-align: justify;
	background: white;
	padding: 0 1em;
}

.overlay {
	position: relative;
}

.overlay img {
	width: 100%;
}

.overlay .center {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: white;
	font-size: 25px;
}

.overlay .hover {
		position: absolute;
		top: 0;
		height: 100%;
		width: 100%;
		opacity: 0;
		transition: .5s ease;
		background-color: rgba(0,0,0,.5)
}

.overlay:hover .hover {
	opacity: 1;
}

.page img {
	max-width: 100%;
}

h1:first-of-type {
	margin-top: 0em;
}

h1 {
	font-family: "Chloe",sans-serif;
	font-weight: 300;
	margin-top: 2.5em;
	font-size: 1.7em;
	color: #516953;
	font-weight: 400;
}

.mansory {
	font-family: "Mansory",sans-serif;
	font-weight: 300;
}


.contact {
	width: 1em;
	margin-right: 0.5em;
	display: inline;
}

@media screen and (min-width: 1024px) {
	nav {
		position: -webkit-sticky;
		position: sticky;
		top: 0;
		align-self: flex-start;
	}
	.with-sidebar {
		overflow: visible;
	}

	
}

@supports (display: grid){
	.arti {
		display: grid;
		grid-gap: 0.5em;
		grid-template-columns: repeat(auto-fit, minmax(300px, 400px));
		justify-content: center;
	}

	.portfolio {
			max-width: 980px;
			display: grid;
			grid-gap: 0.5em;
			justify-content: center;
			grid-template-columns: repeat(auto-fit, minmax(190px, 190px));
	}

	.portfolio a {
		height: 190px;
	}

	.column {
		display: grid;
		margin-bottom: 1em;
		grid-gap: 1em;
		grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
	}

	.column p {
		align-self: center;
	}
}

a:link, a:visited {
	color: #03c;
	text-decoration: none;
}
a:hover, a:active, a:focus {
	color: #03f;
	text-decoration: underline;
}
img {
	display: block;
	margin-left: auto;
	margin-right: auto;
	max-width: 60%;
	border-radius: 10px;
}

img.col {
	max-width: 100%;
}

.portfolio img {
	display: inline;
	margin-left: 0;
	margin-right: 0;
	max-width: 100%;
	border-radius: 0px;
}
