/* CSS Properties */

:root {
	--primary-font: "Source Sans Pro";
	--primary-font: 'Roboto', sans-serif;
	--primary-font-size: 16px;
	--secondary-font: "Times";
/*	--primary-color: rgb(213, 216, 198); */
	--primary-color: rgb(83,86,91);
	/* --primary-color: rgb(192, 197, 179); */
	--primary--text-color: rgb(72, 74, 76);
	--primary--link-color:  rgb(103, 108, 80);
	--primary--link-color--hover: rgb(160, 160, 160);
	--navigation--link-color: rgb(210, 210, 210);
	--navigation--link-color--hover: rgb(255, 255, 255);
	--navigation--link-color--active: rgb(255, 255, 255);

/*	--navigation--link-color: var(--primary--text-color);
	--navigation--link-color--hover: rgb(35, 36, 40);
	--navigation--link-color--active: rgb(35, 36, 40);
*/
}



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, 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: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}

blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: separate;
	*border-collapse: collapse;
	border-spacing: 0;
}

a:hover,
label[for]:hover {
	cursor: pointer;
}

.hide {
	display: none;
}

/* a11y */
.a11y-skip {
	position: absolute;
	visibility: hidden;
}
.a11y-skip::focus {
	display: inline-block;
	visibility: unset;
}


body {
	background-color: var(--primary-color);
	color: var(--primary--text-color);
	font-family: var(--primary-font);
	font-size: var(--primary-font-size);
}

a {
	color: var(--primary--link-color);
}

a:hover {
	color: var(--primary--link-color--hover);
}

p, ul {
	line-height: 1.5;
	margin: 0 0 1rem 0;
}

strong {
	font-weight: 700;
}

em {
	font-style: italic;
}

ul {
	margin-left: 1rem;
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'Slabo 27px', serif;
	font-family: 'Arvo', serif;
	margin: 0 0 0.75rem 0;
	padding: 0 0 0.25em 0;
}

h1 {
	/* border-bottom: 1px solid var(--primary-color); */
	background: rgb(255, 255, 255);
	border-top: 5px solid var(--primary-color);
	font-size: 2.5rem;
	margin: 0 0 0.75em 0;
	padding: 0.25em;
}

h2 {
	font-size: 1.7rem;
	/* font-style: italic; */
	font-weight: 600;
	line-height: 1.4;
}

h3 {
	font-size: 1.3rem;
	font-weight: 500;
	line-height: 1.2;
}

@media screen and (min-width: 500px) {
	h1 {
		font-size: 3rem;
		margin-left: -0.1em;
	}
	h2 {
		font-size: 2.2rem;
	}
	h3 {
		font-size: 1.8rem;
	}
}

.nav {
	display: flex;
	/* font-family: 'Slabo 27px', serif; */
	height: 5em;
	margin: 0 auto;
	max-width: 1200px;
	/* padding: 0 0 10px 0; */
	padding: 0 1em;
	/* justify-content: space-evenly; */
}

.nav__item {
	border-top: 10px solid var(--primary-color);
	color: var(--navigation--link-color);
	align-items: center;
	align-self: center;
	display: flex;
	height: 100%;
	margin: 0 1em 0 0;
	text-decoration: none;
}
.nav__item:last-of-type {
	margin-right: 0;
}

.nav__item:hover {
	color: var(--navigation--link-color--hover);
}

.nav__item--active {
	border-top: 10px solid white;
	color: var(--navigation--link-color--active);
}

.nav__item--home {
	align-self: baseline;
	background: white;
	border-top: none;
	border-bottom: 5px solid var(--primary-color);
	box-shadow: 1px 8px 5px -5px rgb(100, 100, 100);
	padding: 0 0.5em 2.5em 0.5em;
	position: relative;
}

.nav__item--home-image {
	max-width: 105px;
}

@media screen and (min-width: 500px) {
	.nav__item {
		margin: 0 2em 0 0;
	}
	.nav__item--home {
		padding: 1.6em 1em 3em 1em;
	}

	.nav__item--home-image {
		max-width: 125px;
	}
}

@media screen and (min-width: 800px) {
	.nav {
		/* width: 75%; */
	}

	.nav__item--home {
		padding: 1.6em 1.5em 5em 1.5em;
		position: relative;
	}

	.nav__item--home-image {
		max-width: 175px;
	}
}

main {
	background-color: white;
}

.container {
	align-items: center;
	display: inline-block;
	justify-items: center;
	margin: 0 auto;
	max-width: 1200px;
	padding: 0 0.5em;
}

.content {
	margin: -4.5em 0 0 0;
	padding: 1em 0.2em;
}

@media screen and (min-width: 800px) {
	.content {
		padding: 1em;
	}
}

.aside {
	background: rgb(239, 243, 237);
	border-bottom: 5px solid var(--primary-color);
	padding: 0.5em 0.5em 0 0.5em;
}

@media screen and (min-width: 800px) {
	.container {
		display: flex;
	}
	.aside {
		align-self: flex-start;
		margin-top: 5em;
	}
}

.hero--small {
	background-position: center;
	background-size: cover;
	height: 400px;
	max-height: 35vh;
	overflow: hidden;
}

.hero__image {
	height: auto;
	width: 100%;
}

.portfolio {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
}

.portfolio__item {
	background-color: rgb(243, 243, 243);
	border-bottom: 2px solid var(--primary-color);
	margin: 0 0 2% 0;
	padding: 1%;
	text-align: right;
}

@media screen and (min-width: 500px) {
	.portfolio__item {
		max-width: 47%;
	}
}

@media screen and (min-width: 800px) {
	.portfolio__item {
		max-width: 30%;
	}
}

.portfolio__item-image img {
	width: 100%;
}

.portfolio__item-summary {
	padding: 0.5em;
}

.portfolio__item-summary-title {
	font-size: 1.3rem;
	text-align: left;
}

.portfolio__item-summary-text {
	text-align: left;
}

.portfolio__item-link {
	border-bottom: 2px solid var(--primary-color);
	text-decoration: none;
}

.portfolio-viewer {
	display: flex;
	flex-wrap: wrap;
}

.portfolio-viewer a {
	padding: 1%;
	width: 98%;
}

@media screen and (min-width: 500px) {
	.portfolio-viewer a {
		width: 48%;
	}
}

@media screen and (min-width: 800px) {
	.portfolio-viewer a {
		width: 23%;
	}
}

.portfolio-viewer img {
	height: auto;;
	width: 100%;
}

.header,
.footer {
	/* background-color: var(--primary-color); */
}

.header {
	border-bottom: 10px solid white;
}

.footer {
	border-top: 10px solid white;
color: white;
	padding: 2em 1em;
}

@media screen and (min-width: 800px) {
	.footer {
		padding: 3em 1em;
	}
}


.gallery-modal {
	background: rgba(50, 50, 50, 0.5);
	height: 100%;
	left: 0;
	position: fixed;
	text-align: center;
	top: 0;
	width: 100%;
	z-index: 100000;
}

.gallery-modal img {
	max-height: 90vh;
	position: relative;
	top: 50%;
	transform: translateY(-50%);
	-webkit-transform: translateY(-50%);
	//width: 90%;
	max-width: 90%;
}