@font-face {
    font-family: Avenir-Fallback;
    src: url(fonts/Avenir.ttf);
}

/* CSS Reset */
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, sub, sup, 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;
}

article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}



html {
	background-color: #f1eee9;
	font-size: 16px;
}

body {
	font-family: 'Avenir', 'Avenir-Fallback', Arial, sans-serif;
	line-height: 1.45rem;
	color: #373333;
}

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

h1 {
	font-size: 3.157rem;
	line-height: 3.157rem;
}

h2 {
	font-size: 2.369rem;
	line-height: 2.5rem;
}

h3 {
	font-size: 1.777rem;
}

h4 {
	font-size: 1.333rem;
}

p {
	line-height: 1.5rem;
}

em {
	font-style: italic;
}

a {
	color: #FF686C;
	font-weight: bold;
	line-height: 1.1rem;
	text-decoration: none;
	border-bottom: 2px solid #FF686C;
	display: inline-block;
	transition: color 0.1s linear, border-color 0.1s linear;
}

a:hover {
	color: #373333;
	border-color: #373333;
}

.container {
	max-width: 900px;
	height: auto;
	display: flex;
	margin: 0 auto;
	flex-direction: column;
	padding-left: 1rem;
	padding-right: 1rem;
}

.header {
	width: 100%;
	height: auto;
	margin-top: 6rem;
	margin-bottom: 2rem;
}

.header__title {
	text-align: center;
	margin-bottom: 1rem;
}

.header__subtitle {
	text-align: center;
}

.content {
	width: 100%;
}

.project {
	height: auto;
	display: flex;
	flex-direction: row;
	margin-top: 1.5rem;
	margin-bottom: 1.5rem;
	border: 0.25rem solid #373333;
	transition: border-color 0.1s linear;
}

.project__titleText-wrapper {
	width: 100%;
	display: flex;
	flex-direction: column;
	padding: 1rem;
	box-sizing: border-box;
}

.project__title {
	margin-top: 0.5rem;
	margin-bottom: 0.5rem;
}

.gallery-wrapper {
	width: 100%;
	max-width: 300px;
	height: 255px;
	padding: 1rem;
	box-sizing: border-box;
	flex-grow: 1;
}

.gallery__image {
	width: 100%;
	height: 100%;
	border: 0.25rem solid #373333;
	box-sizing: border-box;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
	position: relative;
	transition: border-color 0.1s linear;
}

.gallery__imageHover {
	position: absolute;
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	line-height: 2.25rem;
	font-style: italic;
	font-size: 2rem;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(241, 238, 233, 0.95);
	color: #FF686C;
	z-index: 1;
	opacity: 0;
	transition: opacity 0.1s linear;
}

.gallery__image:hover .gallery__imageHover {
	opacity: 1;
}

.gallery__image:hover {
	border-color: #FF686C;
}

.gallery__image--hidden {
	display: none;
}

footer {
	height: 6rem;
}

/* Media Queries */
@media only screen and (max-width: 900px) {

    .project {
        flex-direction: column;
    }

    .gallery-wrapper {
    	max-width: none;
    	max-height: none;
    	max-height: 190px;
    }

    .gallery__image {
    	max-height: 20vh;
    }

    .project__titleText-wrapper {
    	padding-top: 0;
    }

}