@media (min-width: 1400px) {
	:root {
		--div-width: 1300px;
	}
}

@media (min-width: 1100px) {
	:root {
		--div-width: 80%;
	}
}

header {
	position: sticky;
	top: 0;
	transition: font-size 0.5s;
	z-index: 5;
}
body.homepage header {
	position: static;
	height: 10vh;
}

main {
	margin: 0 10%;
}

div.primary-menu {
	display: block;
	margin-top: 0;
}

body.scrolled div.primary-menu {
	transform: translateY(-30px);
}

#menu-bars {
	display: none;
}

ul#primary-menu,
header #titles,
footer > *,
#crumbs ul {
	margin: var(--space) 10%;
}

main.map-main {
	display: flex;
}

#crumbs li:after {
	content: "\2022";
	font-size: 125%;
	font-weight: 600;
	line-height: 125%;
	margin-left: var(--space);
	visibility: visible;
}

ul#primary-menu {
	flex-direction: row;
	align-items: center;
	justify-content: center;
	transition: all 0.4s ease-in;
}

ul#primary-menu.scrolled {
	font-size: 60%;
}

ul#primary-menu li a {
	font-weight: 500;
	text-transform: uppercase;
	line-break: strict;
	white-space: nowrap;
	text-align: center;
	display: inline-block;
}

ul#primary-menu li a span {
	font-size: 130%;
	display: block;
	font-weight: bold;
}

ul#primary-menu li:before {
	content: "\2022";
	font-size: 175%;
	margin-left: 2rem;
	margin-right: 2rem;
}
ul#primary-menu li:first-of-type:before {
	content: "";
	margin: 0;
}

div.primary-menu.smaller {
	padding: 0;
	padding-top: var(--space);
}
div.primary-menu.smaller #primary-menu {
	font-size: 70%;
	margin: 0;
}

#home {
	height: 90vh;
}

.blogs,
.blog-post {
	margin: 20px 15%;
	width: unset;
}
.blog-post img,
.blog-post iframe {
	width: auto;
	margin: auto;
}

hr.full-width {
	width: 100%;
}

main > h1 {
	font-size: 3rem;
}

.main-heading {
	font-size: 3vw;
	margin: var(--doublespace);
}

.second-heading {
	font-size: 2.5vw;
}

.parented-squares > li {
	display: grid;
	grid-template-columns: 1fr 9fr;
	height: fit-content;
}

.parented-squares > li.class-row {
	grid-template-columns: 1fr 8fr;
}

.parented-squares > li > div {
	height: 100%;
	min-height: 150px;
}
.parented-squares > li > div:first-of-type {
	width: 150px;
}

.parented-squares > li > div > div {
	min-height: 250px;
	height: 100%;
}

.parented-squares > li > div > ul.youtube-video {
	grid-column: 1/4;
	padding: 0;
	grid-row: 1/3;
}

.grid-container {
	margin-top: 2.5px;
}

.parented-squares > li > div > ul.class-grid {
	grid-template-columns: 1fr 1fr;
}

.class-data > div:first-of-type {
	height: 5rem;
}

.premium-content p {
	font-size: 135%;
	line-height: 135%;
}

@media (min-width: 1600px) {
	.parented-squares > li > div > ul {
		grid-template-columns: 1fr 1fr 1fr;
	}
}

.speaking-map {
	margin: auto;
	height: 500px;
	width: 1100px;
	border: 2px solid var(--grey);
	flex-basis: 85%;
}

#marker-list {
	height: 500px;
}

.justice-thumbs img {
	width: 80px;
}

#places-map {
	display: block;
}

#popup {
	min-width: 300px;
	min-height: 100px;
	background-color: var(--tan);
	display: block;
	position: absolute;
	border: 2px solid #fff;
	border-radius: 15px;
	padding: var(--space);
	box-sizing: content-box;
	box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.35);
	font-family: Oswald, serif;
	font-size: 80%;
	color: var(--white);
	text-transform: uppercase;
}

#popup h1,
#popup h2 {
	font-weight: 600;
	margin-bottom: var(--space);
}

#popup ul li {
	margin-bottom: var(--space);
}
#popup .places a {
	color: #fff;
}
#popup a:hover {
	font-weight: normal;
}

#popup span {
	float: right;
	font-weight: 700;
	font-size: 125%;
	cursor: pointer;
}
#case-places {
	display: none;
}

#video-box {
	top: 10%;
	width: var(--div-width);
	height: calc(var(--div-width) * 9 / 16);
}

.parented-squares > li > div h2 {
	max-width: 100%;
	padding: 38px;
}

.soundcloud-box > div {
	display: flex;
	flex-direction: column;
	text-align: left;
}

.soundcloud-link {
	max-width: 325px;
}

.outlet-date-display {
	margin-right: 10px;
	visibility: visible;
	width: auto;
	height: auto;
}

.book-content {
	flex-direction: row;
	flex-wrap: wrap;
}

.selected-link {
	font-size: 1.2em;
}

.class-card {
	flex-direction: row;
}

.class-link-box {
	width: 175px;
}
.class-link-box > a {
	margin: 0 0 10px 20px;
	padding: 7.5px 15px 7.5px 15px;
	width: 90%;
}

.class-row iframe.yt-iframe {
	margin-left: 50px;
	min-width: 400px;
}

@media (min-width: 1920px) {
	.soundcloud-link {
		max-width: 1000px;
	}

	.outlet-date-display {
		margin-left: auto;
	}

	.soundcloud-box > div {
		flex-direction: row;
	}

	.speaking-map {
		margin: auto;
		height: 900px;
		width: 1600px;
	}

	#marker-list {
		height: 900px;
	}
}

.speech-filter {
	flex-direction: row;
}

.year-grid,
.year-select div,
.year-select a {
	flex-basis: 10%;
}
.classes-page .year-select div {
	flex-basis: 20%;
}

#homepage {
	flex-direction: row;
}

#nav-menu {
	flex-direction: column;
}
.nav-item {
	justify-content: initial;
	align-items: center;
}
.nav-item span {
	display: block;
	margin-left: 10px;
}

#slides #intro img {
	bottom: 0;
	width: unset;
	height: 100%;
}
#slides #intro div {
	right: 10%;
	top: 15%;
	width: 30%;
	font-size: 250%;
}
#slides .slide-content video {
	width: 87.5%;
	max-height: 75vh;
}
#slides .slide-content.radio div:first-of-type {
	margin: 5% auto 2.5%;
	width: fit-content;
	max-width: 60%;
}
#slides .slide-content .dark-text-background {
	font-size: 150%;
}
#slides .slide-content .dark-text-background.professor {
	top: 20%;
	bottom: unset;
	max-width: 30%;
}
#slides .slide-content .dark-text-background.policy,
#slides .slide-content .dark-text-background.tv {
	bottom: 15%;
	top: unset;
	left: 20%;
	text-align: center;
	width: 60%;
}
#slides .slide-content .dark-text-background.scotus {
	bottom: 20%;
	text-align: center;
}

#slides .slide-content.radio div.logo-grid {
	width: 50%;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
}
#slides .logo-grid img {
	margin: 20px auto;
	width: auto;
	max-width: unset;
}
#slides .slide-content.social {
	background-color: white;
	width: 90%;
	height: 85%;
	margin: 1rem auto;
	border-radius: 20px;
	border: 1px solid rgb(134, 134, 134);
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	grid-template-areas: "twitter youtube" "blog youtube";
}

.twitter {
	padding: 10px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}
.twitter div {
	justify-content: space-between;
	flex-direction: column;
}
.twitter div:first-of-type > span {
	margin-right: 15px;
}
iframe#twitter-widget-0 {
	margin: 1rem;
	font-size: 120%;
}
.twitter img,
.youtube img {
	width: 100px;
	height: 100px;
}

div.rss-box {
	padding: 20px;
	font-size: 90%;
	height: 100%;
}
.powr-youtube-gallery.powrLoaded {
	display: flex;
	align-items: center;
	padding: 20px;
}

@media (max-width: 1500px) {
	.speech-card > *:first-child {
		height: 14rem;
	}
}
