/*
 Theme Name:	Harlan Institute
 Theme URI:		https://harlaninstitute.org
 Description:	2021 Theme for Harlan Institute
 Author:	   	Dynamic Array Ltd
 Author URI:	https://dynamicarray.co.uk/
 Version:	  	1.2.2
 Text Domain:	harlan-institute
*/

:root {
	box-sizing: border-box;
	--hi-black: #0e0e0e;
	--hi-red: #8b0000;
	--hi-darkred: #500000;
	--hi-white: #fff;
	--hi-grey: #999;
	--hi-lightgrey: #ddd;
	--hi-background: #f0efef;
	--hi-space: 0.75rem;
	--hi-doublespace: 1.5rem;
	--hi-scale-speed: 1s;
}

::-webkit-scrollbar {
	width: 10px;
}
::-webkit-scrollbar-track {
	background: var(--hi-lightgrey);
}
::-webkit-scrollbar-thumb {
	background: var(--hi-red);
}
::-webkit-scrollbar-thumb:active {
	background: var(--hi-darkred);
}

#front-page-loader {
	position: fixed;
	top: 0;
	width: 100vw;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--hi-darkred);
	z-index: 999;
}

* {
	box-sizing: border-box;
	border-collapse: separate;
}

body {
	font-family: "EB Garamond", serif;
	font-weight: 400;
	font-size: 120%;
	margin: 0;
	color: var(--hi-black);
	overflow-x: hidden;
	min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: "Oswald", sans-serif;
	font-weight: 300;
}

a {
	text-decoration: none;
	word-wrap: break-word;
	color: var(--hi-darkred);
}
a:visited {
	color: var(--hi-darkred);
}

header {
	background-color: var(--hi-white);
	position: sticky;
	top: 0;
	width: 100%;
	z-index: 25;
	height: 7.5vh;
}

main {
	width: 90%;
	margin: auto;
}
body.home main#home {
	width: 100%;
}

img,
iframe {
	width: 100%;
	height: auto;
	max-height: 80vw;
	margin: var(--hi-space) auto;
	display: block;
}

small {
	font-style: italic;
	color: var(--hi-grey);
}

table {
	max-width: 90%;
	margin: auto;
}

footer {
	border-top: 1px solid var(--hi-grey);
	margin-top: var(--hi-doublespace);
	font-size: 0.9rem;
}

header #menu-burger {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem;
	background-color: var(--hi-black);
	height: 7.5vh;
}
header #menu-burger svg {
	width: auto;
	height: 100%;
	color: var(--hi-white);
}

.hidden {
	display: none !important;
}

.primary-menu {
	-webkit-transition: height var(--hi-scale-speed) ease-in-out;
	-moz-transition: height var(--hi-scale-speed) ease-in-out;
	-o-transition: height var(--hi-scale-speed) ease-in-out;
	transition: height var(--hi-scale-speed) ease-in-out;
	overflow: hidden;
	height: 0;
	background-color: var(--hi-black);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-evenly;
}
body.menu-down .primary-menu {
	height: 92.5vh;
}
.primary-menu img {
	width: 4rem;
	height: auto;
}
.primary-menu ul,
.primary-menu li {
	list-style-type: unset;
	padding: 0;
}
.primary-menu li::marker {
	content: "";
	margin: 0;
}
.primary-menu #primary-menu {
	color: var(--hi-white);
	padding: 0 var(--hi-doublespace) var(--hi-space);
	height: 100%;
	margin-top: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-evenly;
}
.primary-menu #primary-menu li {
	text-align: center;
	font-size: 75%;
}
.primary-menu #primary-menu li a {
	font-family: "Oswald", sans-serif;
	color: var(--hi-white);
	text-transform: uppercase;
}
.primary-menu #primary-menu ul.sub-menu li {
	font-weight: 300;
	margin: 0.75rem 0.5rem;
}

.yt-iframe {
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	align-self: center;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
.yt-iframe svg {
	width: 20%;
	height: auto;
	cursor: pointer;
}

#homepage {
	width: 100%;
	height: 92.5vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

#nav-menu {
	position: sticky;
	top: 0;
	display: flex;
	flex-basis: 15%;
	align-items: center;
	justify-content: space-between;
	box-shadow: #acacac87 10px 0 10px 0px;
	font-family: "Oswald", sans-serif;
	width: 100%;
	box-sizing: unset;
	background-color: white;
	z-index: 5;
}
#nav-menu .nav-item {
	display: flex;
	justify-content: center;
	width: 80%;
	font-size: 120%;
	font-weight: 300;
	margin: 0;
	cursor: pointer;
	padding: 0.5em 0;
	border-radius: 1em;
	box-sizing: unset;
}
#nav-menu .nav-item div {
	border: solid 1px black;
	border-radius: 50%;
	padding: 0.25em 0;
	width: 1.5em;
	height: 1.5em;
	text-align: center;
	margin: 0 0.1em;
	display: flex;
	align-items: center;
	justify-content: center;
}
#nav-menu .nav-item span {
	display: none;
}
#nav-menu .nav-item:hover {
	opacity: 0.4;
}
#nav-menu .nav-item:focus {
	outline: none;
}
#nav-menu .swiper-pagination-bullet-active {
	opacity: 0.4;
	cursor: auto;
}
#nav-menu .swiper-pagination-bullet-active:hover {
	background-color: unset;
	color: unset;
}
#nav-menu .nav-item svg {
	height: 1.5em;
	width: auto;
	margin: 0;
	margin-right: 1em;
}

#slides {
	flex-basis: 85%;
	height: 90vh;
}
#slides .swiper-slide {
	display: flex;
	flex-direction: column;
}
#slides .slide-title {
	background-color: var(--hi-red);
	color: var(--hi-white);
	font-size: 120%;
	width: 100%;
	padding: 0.5rem;
	flex-basis: 17.5%;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	text-align: center;
}
#slides .slide-content {
	background-position: center center;
	background-size: cover;
	flex-basis: 82.5%;
	position: relative;
}
#slides .slide-content video,
#video-cover {
	width: 100%;
	height: auto;
}
#slides .slide-content .dark-text-background {
	font-size: 125%;
	line-height: 1.15em;
	position: absolute;
	z-index: 50;
	text-align: center;
	width: 90%;
	left: 5%;
	bottom: 35%;
	margin: 0;
}
#slides .slide-content .dark-text-background mark {
	background-color: #000;
	color: white;
	line-height: 1.6em;
	padding: 2px 5px;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}
#slides .slide-content.video {
	background-color: black;
}
#slides .slide-content.slideshow .images {
	position: relative;
	height: 82.5%;
	width: 100%;
}
#slides .slide-content.slideshow img {
	margin: auto;
	height: 37.125vh;
	width: 50%;
	max-height: unset;
	max-width: unset;
	object-fit: cover;
	position: absolute;
	top: 0;
	left: 0;
	opacity: 1;
	-webkit-transition: opacity 3s;
	-moz-transition: opacity 3s;
	-o-transition: opacity 3s;
	transition: opacity 3s;
}
#slides .slide-content.slideshow img.fade-out-image {
	opacity: 0;
}
#slides .slide-content.slideshow img.two-a,
#slides .slide-content.slideshow img.two-b,
#slides .slide-content.slideshow img.four-a,
#slides .slide-content.slideshow img.four-b {
	left: 50%;
}
#slides .slide-content.slideshow img.three-a,
#slides .slide-content.slideshow img.three-b,
#slides .slide-content.slideshow img.four-a,
#slides .slide-content.slideshow img.four-b {
	top: 37.125vh;
}
#slides .slide-content.signup,
#slides .slide-content #video-cover {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}
#slides .slide-content #video-cover {
	background-repeat: no-repeat;
	background-position: center;
	height: 50%;
}
#slides .slide-content #video-cover svg {
	width: 25%;
	height: auto;
}

.main-heading {
	color: var(--hi-red);
	font-family: "EB Garamond", serif;
	font-size: 2rem;
	font-weight: 500;
	text-align: center;
	text-transform: uppercase;
}

.crumbs {
	border-top: 1px solid var(--hi-grey);
	border-bottom: 1px solid var(--hi-grey);
	color: var(--hi-grey);
	font-family: "Oswald", sans-serif;
	font-weight: 300;
	text-transform: uppercase;
	margin: var(--hi-doublespace) 0;
	text-align: center;
	position: relative;
	left: calc(-5% - 2px);
	width: 100vw;
}
.crumbs ul {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	list-style-type: none;
	padding: 0;
	margin: 0.5rem auto;
}

.crumbs ul a,
.crumbs ul a:visited {
	color: var(--hi-grey);
	font-size: 0.75rem;
}
.crumbs ul a:hover,
.crumbs ul a.selected-link,
.crumbs ul a.selected-link:visited {
	color: var(--hi-red);
}
.crumbs ul a.selected-link,
.crumbs ul a.selected-link:visited {
	font-size: 1rem;
}

.letter-links {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 1rem;
	flex-wrap: wrap;
}
.letter-links > div {
	color: var(--hi-darkred);
	font-size: 150%;
	padding-left: 1rem;
	cursor: pointer;
}
.letter-links > div:hover {
	color: var(--hi-red);
}
.letter-links > div:not(:last-of-type)::after {
	margin-left: 1rem;
	content: "|";
	cursor: auto;
	color: var(--hi-black);
}

div.archive-links {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	border: none;
	font-family: "Oswald", sans-serif;
	margin: 1rem auto 3rem;
}
div.archive-links a {
	border: 2px solid var(--hi-darkred);
	font-weight: 500;
	font-size: 120%;
	padding: 0.75rem;
	margin: 0.5rem;
	flex-basis: 12.5%;
	text-align: center;
}
div.archive-links a:hover,
div.archive-links a.selected {
	background-color: var(--hi-grey);
	color: var(--hi-white);
}

form.filter-form {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	width: fit-content;
	margin: auto;
	max-width: 100%;
}
form.filter-form select {
	margin: 10px;
	padding: 0.5em;
	font-size: 100%;
	font-family: "EB Garamond", serif;
	display: flex;
	justify-content: center;
	text-align-last: center;
	cursor: pointer;
	border-radius: 10px;
	border: 1px solid #000;
}

ol.parented-squares,
.parented-squares ul,
.parented-squares li,
.student-page ul,
.student-page ol,
.student-page li {
	list-style: none;
	margin: 0;
	padding: 0;
}
.parented-squares > li {
	display: flex;
	flex-direction: column;
	padding-bottom: var(--hi-doublespace);
	margin-bottom: var(--hi-doublespace);
	border-bottom: 1px solid var(--hi-grey);
	color: var(--hi-white);
	min-height: 7.5rem;
	height: min-content;
}
.parented-squares > li > a:first-of-type {
	background-color: var(--hi-black);
}
.parented-squares > li > div.grid-container {
	background-color: white;
	height: fit-content;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-top: var(--hi-doublespace);
}
.parented-squares > li > div > div {
	background-color: var(--hi-red);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center top;
	height: 100%;
}
.parented-squares > li > div h2 {
	padding: 2rem 10rem 2rem 0.5rem;
	background-color: var(--hi-black);
	max-width: 15%;
	margin: 0;
	font-size: 110%;
	white-space: nowrap;
}
.parented-squares > li > div > ul {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	height: auto;
}
.parented-squares > li > div > ul > li {
	flex-basis: calc(50% - var(--hi-space));
	margin: var(--hi-space);
	height: 100%;
}

div.data strong {
	font-size: 110%;
}
div.data a span,
div.data span a {
	color: black;
}

a.image {
	display: block;
}

div.school-page {
	display: flex;
	flex-direction: column;
}
div.school-page div.student-column {
	border: 2px solid var(--hi-red);
	background-color: var(--hi-lightgrey);
	text-align: center;
}
div.school-page div.student-column > a.image {
	width: 100%;
	padding-bottom: 80%;
	background-size: cover;
	margin-bottom: 1rem;
}
div.school-page div.student-column > div:nth-of-type(2) {
	font-size: 130%;
	margin-bottom: 2.5rem;
}
div.school-page div.student-column h3,
div.school-page div.student-column h4 {
	margin: 0.5rem auto 0;
}
div.school-page div.student-column span {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
}
div.school-page div.student-column span span {
	flex-basis: 100%;
	font-size: 90%;
}
div.school-page div.student-column span i {
	display: block;
	margin: 0.1rem 0.2rem;
}
div.school-page div.student-column div.student-card {
	border: 0;
	width: 100%;
	margin-bottom: 1rem;
}
div.school-page div.student-column div.student-card a.image {
	width: 70%;
	margin: auto;
	padding-top: 70%;
}
div.school-page ul.students-grid {
	display: grid;
	grid-template-columns: 1fr;
	grid-gap: 1rem;
	padding: 0;
	list-style-type: none;
}

div.student-card > div.data span span {
	margin: 0 0.25rem;
}

.rounds li.youtube-card div.data span,
.post-type-archive-student div.student-card,
div.student-card,
li.youtube-card,
.schools.parented-squares > li {
	color: var(--hi-black);
	background-color: var(--hi-lightgrey);
	border: 2px solid var(--hi-red);
	display: block;
	height: 100%;
}
.rounds li.youtube-card div.data span {
	width: fit-content;
	margin: auto;
	border: 0;
}
div.student-card > a.image,
.post-type-archive-student div.student-card > a.image {
	width: 100%;
	height: 0;
	padding-top: 100%;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
}
div.student-card > a.image.teams {
	padding-top: 40%;
}
div.student-card > div.data,
li.youtube-card > div.data,
.schools.parented-squares > li > div.data {
	display: flex;
	flex-direction: column;
	padding: 0.75rem;
	text-align: center;
}

.parented-squares.teams div.student-card > div.data > span {
	justify-content: center;
	display: flex;
}
.parented-squares.teams div.student-card > div.data > span a {
	display: block;
}
.parented-squares.teams div.student-card > div.data > span a:nth-of-type(2) {
	margin-left: 0.25rem;
}

.single-student div.student-card > div.data div.single-student-badges {
	margin: 1rem 0;
}
.single-student div.student-card > div.data div.single-student-badges a {
	color: black;
	margin-bottom: 0.5rem;
	display: block;
}
.single-student div.student-card > div.data div.single-student-badges span {
	display: flex;
	align-items: center;
	justify-content: space-around;
	flex-wrap: wrap-reverse;
}
.single-student div.student-card > div.data div.single-student-badges span i {
	height: 7.5rem;
	margin: 0 0.25rem;
}

div.student-page {
	display: flex;
	flex-direction: column;
	margin-top: 5vh;
	justify-content: space-between;
}
div.student-page div.student-card,
div.student-page li.youtube-card {
	height: auto;
	width: 100%;
	font-size: 150%;
}
div.student-page > ul.team-column > li.student-team > div > iframe {
	min-height: 35rem;
	width: 100%;
}
div.student-page li.student-team a h1 {
	font-size: 150%;
	text-align: center;
}

div.team-page {
	text-align: center;
}
div.team-page > div.team-badges {
	margin: 1.5rem auto;
	display: flex;
	justify-content: space-around;
}
div.team-page > div.team-badges i {
	height: 7.5rem;
	width: auto;
}
div.team-page ol {
	padding: 0;
}
div.team-page ol > li {
	margin: 0.5rem auto;
}
div.team-page iframe {
	height: 60vh;
	max-height: unset;
}

a.brief-download {
	display: flex;
	align-items: center;
	justify-content: space-around;
	padding: 0.75rem;
	border: 1px solid var(--hi-lightgrey);
	margin-bottom: 1rem;
}
a.brief-download svg {
	height: 2rem;
}
iframe.brief-iframe {
	display: none;
}

.schools.parented-squares {
	display: grid;
	grid-template-columns: 1fr;
	grid-gap: 1rem;
}
.schools.parented-squares > li {
	margin: 1rem;
	padding: 0;
	height: auto;
}
.schools.parented-squares > li > div {
	min-height: unset;
}
.schools.parented-squares > li > a:first-of-type,
.schools.parented-squares > li > div > div {
	background-color: var(--hi-lightgrey);
	min-height: unset;
	width: auto;
}
.schools.parented-squares > li > a:first-of-type {
	background-size: cover;
	height: 15rem;
}
.schools.parented-squares > li > div.data {
	height: auto;
}

#tabs {
	display: flex;
	justify-content: space-evenly;
	margin-bottom: 1rem;
	border-bottom: 0.1rem solid var(--hi-grey);
}
#tabs > * {
	padding: 1rem;
	border-top-left-radius: 0.5rem;
	border-top-right-radius: 0.5rem;
	border: 1px solid var(--hi-grey);
	border-bottom: 0;
	background-color: var(--hi-white);
	font-family: Oswald, sans-serif;
	font-weight: 600;
	text-transform: uppercase;
	flex-basis: 40%;
	text-align: center;
	color: var(--hi-red);
	position: relative;
	top: 0.2rem;
}
#tabs > a.inactive {
	background-color: var(--hi-background);
	border-bottom-style: none;
	margin-top: 0.25rem;
	cursor: pointer;
	bottom: 0;
}

i.small-badge-2 {
	content: url("/wp-content/themes/harlan-institute/assets/images/badges/small/badge-2.png");
}
i.small-badge-3 {
	content: url("/wp-content/themes/harlan-institute/assets/images/badges/small/badge-3.png");
}
i.small-badge-4 {
	content: url("/wp-content/themes/harlan-institute/assets/images/badges/small/badge-4.png");
}
i.big-badge-2 {
	content: url("/wp-content/themes/harlan-institute/assets/images/badges/big/badge-2.png");
}
i.big-badge-3 {
	content: url("/wp-content/themes/harlan-institute/assets/images/badges/big/badge-3.png");
}
i.big-badge-4 {
	content: url("/wp-content/themes/harlan-institute/assets/images/badges/big/badge-4.png");
}
i.text-small-badge-2 {
	content: url("/wp-content/themes/harlan-institute/assets/images/badges/small/text-badge-2.png");
}
i.text-small-badge-3 {
	content: url("/wp-content/themes/harlan-institute/assets/images/badges/small/text-badge-3.png");
}
i.text-small-badge-4 {
	content: url("/wp-content/themes/harlan-institute/assets/images/badges/small/text-badge-4.png");
}
i.text-big-badge-2 {
	content: url("/wp-content/themes/harlan-institute/assets/images/badges/big/text-badge-2.png");
}
i.text-big-badge-3 {
	content: url("/wp-content/themes/harlan-institute/assets/images/badges/big/text-badge-3.png");
}
i.text-big-badge-4 {
	content: url("/wp-content/themes/harlan-institute/assets/images/badges/big/text-badge-4.png");
}

article {
	width: 90%;
	margin: 1rem auto;
}
article * {
	font-size: 110%;
}
article h2 {
	margin: 5% 0 1rem;
	font-size: 2rem;
}
article h2 a {
	color: black;
}
article p a {
	text-decoration: underline;
}

div.wp-block-media-text {
	grid-template-columns: 15rem auto;
	margin: 1rem 0;
}
figure.wp-block-media-text__media img {
	width: auto;
}

.content blockquote {
	background: #e9e9df url(assets/images/ico-quote-trans.png) no-repeat 1rem
		1.5rem;
	width: 80%;
	height: auto;
	padding: 1rem 4rem;
}

.alignleft {
	float: left;
}
.alignright {
	float: right;
}
img.alignright,
img.alignleft {
	display: inline;
}

div.school-map {
	display: flex;
	flex-direction: column-reverse;
}
div.school-map > div {
	width: 100%;
	height: 70vh;
}
div.school-map > div img {
	max-height: unset;
	max-width: unset;
}
div.school-map > ul {
	list-style-type: none;
	padding: 0;
	margin: 0;
}
div.school-map > ul li {
	background-color: var(--hi-lightgrey);
	border: 1px solid var(--hi-red);
	text-align: center;
	padding: 1rem;
	font-weight: 600;
}
div.school-map div.gm-style-iw.gm-style-iw-c {
	max-width: unset !important;
	max-height: unset !important;
}
div.school-map div.student-card {
	font-size: 200%;
	position: relative;
}
div.school-map div.student-card div.data > a {
	font-size: 75%;
	position: absolute;
	top: 30%;
	left: 0;
	width: 100%;
	text-align: center;
	color: white;
}

#paginate-links {
	margin: 2.5rem auto 1.5rem auto;
	font-size: 125%;
	width: fit-content;
}
#paginate-links * {
	margin: 0 1rem;
}
#paginate-links .current {
	font-weight: 700;
}

#footer-copyright {
	text-align: center;
	margin: var(--hi-doublespace);
}
