:root {
	--backgroundColour: #181818;
	--textColour: #ffffff;
	--highlightColour: #3baf7d;
	--highlightColourDark: #2d7085;
}

/*! Sitewide rules */
body {
	background-color: var(--backgroundColour);
	color: var(--textColour);
	font-family: 'Open Sans', sans-serif;
	font-weight: 300;
}

@media screen and (orientation: landscape) {
	body {
		font-size: 22px;
	}

	#main {
		width: 60%;
		margin: 0 auto;
	}

	#header {
		flex-direction: row;
	}

	#linksDiv {
		font-size: 24px;
	}

		#linksDiv a {
			font-size: 1.75rem;
		}

	.recentWorkThumb {
		flex: 0 1 calc(50% - 0.5em);
	}

	.recentWorkImg {
		max-width: 100%;
	}

	.recentWorkCaption {
		font-size: 24px;
	}
}

@media screen and (orientation: portrait) {
	body {
		font-size: 20px;
	}

	#main {
		width: 100%;
	}

	#header {
		flex-direction: column;
	}

	#linksDiv {
		text-align: left;
	}

		#linksDiv a {
			font-size: 1.25rem;
		}

	.recentWorkThumb {
		flex: 0 1 calc(100% - 0.5em);
	}

	.recentWorkImg {
		width: 100%;
		height: 56vw;
		object-fit: cover;
	}

	.recentWorkCaption {
		font-size: 20px;
	}
}

@media screen and (orientation: landscape) and (max-width: 1200px) {
	#main {
		width: 80%;
	}
}

@media screen and (orientation: landscape) and (max-width: 930px) {
	#main {
		width: 100%;
	}
}

h1 {
	font-family: 'Raleway', sans-serif;
	font-size: 3.5rem;
	color: var(--highlightColour);
	margin: 0;
	padding: 0;
}

h2 {
	font-family: 'Open Sans', sans-serif;
	font-size: 2.5rem;
	font-weight: 300;
	margin: 0;
	padding: 0;
	width: 100%;
	border-bottom: 1px solid var(--highlightColour);
}

hr {
	border: none;
	border-bottom: 1px solid var(--highlightColour);
}

a {
	font-weight: 700;
	color: var(--highlightColour);
	text-decoration: none;
}

	a:hover {
		color: var(--highlightColourDark);
	}

strong {
	font-weight: 700;
}

figure {
	margin: 0;
}

footer {
	font-size: 80%;
	text-align: center;
}

select {
	background: transparent;
	border: 0;
	color: var(--textColour);
	font-family: 'Open Sans', sans-serif;
	font-weight: 300;
	font-size: 100%;
}

option {
	background-color: var(--backgroundColour);
	font-size: 80%;
}

label {
	color: var(--highlightColour);
}

ul {
	list-style-type: square;
}

li {
	display: list-item;
	color: var(--textColour);
}

#main {
	position: relative;
	transition: ease width 1s;
}

#header {
	position: relative;
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	width: 100%;
	justify-content: space-between;
}

#titleDiv {
	flex: none;
}

#linksDiv {
	display: inline-block;
	align-items: flex-end;
}

	#linksDiv a {
		font-family: 'Raleway', sans-serif;
	}

		#linksDiv a:hover {
			text-decoration: underline;
			text-decoration-thickness: 1px;
			text-decoration-color: var(--highlightColour);
			text-underline-offset: 0.2em;
		}

.currentPageHighlight {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-decoration-color: var(--highlightColour);
	text-underline-offset: 0.2em;
	color: var(--textColour);
}

#content {
	position: relative;
	max-width: 100%;
	margin-top: 1em;
}

.spacingFromDivAbove {
	margin-top: 64px;
}

/*! Recent work page rules */
#recentWorkGrid {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	margin-top: 1em;
	justify-content: space-between;
}

.recentWorkThumb {
	
}

.recentWorkImg {
	display: block;
	margin: 0 auto;
}

.recentWorkCaption {
	margin-top: 0.25em;
	margin-bottom: 0.5em;
	text-align: center;
	font-weight: 300;
	overflow: hidden;
	text-overflow: ellipsis;
}

/*! All work page rules */
#allWorkFilterDiv {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	justify-content: space-between;
}

.allWorkFilterElement {
}

.thinLink {
	font-weight: 300;
	color: var(--highlightColour);
}

#allWorkYearThumbs {
	display: grid;
	width: 100%;
	grid-template-columns: repeat(auto-fill, minmax(7em, 1fr));
	margin: 0 auto;
	margin-top: 0.5em;
	grid-gap: 0.5em;
	justify-items: center;
}

.allWorkThumb {
	max-width: 100%;
}

.allWorkThumbImg {
	max-width: 100%;
}

.allWorkCaption {
	margin-top: 0.25em;
	margin-bottom: 0.25em;
	text-align: center;
	font-weight: 300;
	overflow: hidden;
	text-overflow: ellipsis;
}

/*! Individual work page rules */
#workMainImg {
	display: block;
	width: 100%;
	margin: 0 auto;
	margin-top: 0.5em;
}

#workThumbs {
	display: grid;
	width: 100%;
	grid-template-columns: repeat(auto-fill, minmax(6em, 1fr));
	margin: 0 auto;
	margin-top: 0.5em;
	grid-gap: 0.5em;
	justify-items: center;
}

.workThumbImg {
	display: block;
	max-width: 100%;
	cursor: pointer;
}

.centredVideo {
	position: relative;
	margin: 0 auto;
	width: 80%;
	padding-bottom: 45%; /*45% == 80% of 56.25%*/
	height: 0;
}
	.centredVideo iframe {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
	}

.centredContent {
	position: relative;
	margin: 0 auto;
	width: 100%;
	text-align: center;
}

	.centredContent iframe {
		display: block;
		margin: 0 auto;
		max-width: 100%;
	}
