
#header {
	box-sizing: border-box;
	position: fixed;
	transition: transform 300ms ease-out;
	width: 100%;
	z-index: 1;
}

/* menu bars */

.top-bar {
	background-color: #fefefe;
	border-bottom: 1px solid #d3d3d3;
	box-sizing: border-box;
	height: 3.8rem;
	left: 0;
	top: 0;
	width: 100%;
	z-index: 2;
}

.top-bar-inner {
	box-sizing: border-box;
	display: flex;
	height: 100%;
	justify-content: center;
	margin: 0 auto;
	max-width: 1140px;
}

.top-bar-left {
	align-content: center;
	display: flex;
	flex: 1;
	justify-content: flex-start;
	padding-left: 5px;
}

.top-bar-center {
	align-content: center;
	display: flex;
	flex: 2;
	justify-content: center;
}

.top-bar-right {
	align-content: center;
	display: flex;
	flex: 1;
	justify-content: flex-end;
	padding-right: 5px;
}

/* app */

.logo {
	align-self: stretch;
	background: no-repeat center;
	background-size: contain;
	box-sizing: border-box;
	display: block;
	width: 3rem;
}

.main {
	box-sizing: border-box;
	min-height: 90vh;
	position: relative;
	padding: 7rem 10px 40px 10px;
}

.main-inner {
	margin: 0 auto;
	max-width: 1060px;
	position: relative;
}

.tabs {
	background-color: #fefefe;
	border-bottom: 1px solid #d3d3d3;
	box-sizing: border-box;
	height: 3rem;
	overflow: auto;
	padding-top: 3px;
	position: relative;
}

.tabs-inner {
	box-sizing: border-box;
	display: flex;
	flex: 1;
	height: 100%;
	/*justify-content: space-around;*/
	/*margin: 0 auto;*/
	max-width: 1140px;
	white-space: nowrap;
}

.tab {
	align-items: center;
	border-bottom: 3px solid transparent;
	box-sizing: border-box;
	color: #222;
	display: flex;
	flex: 1;
	font-size: 0.9em;
	/*font-weight: bold;*/
	justify-content: center;
	min-width: 140px;
	overflow: hidden;
	text-decoration: none;
	text-transform: uppercase;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tab.selected {
	border-bottom: 3px solid #31a8f0;
}

.filter-panel {
	display: flex;
	padding: 1.5rem 0.5rem 0.1rem 0.5rem;
}

.filter-left {
	display: flex;
	flex: 2;
}

.filter-right {
	display: flex;
	flex: 1;
	justify-items: flex-end;
	justify-content: flex-end;
}

.location-filter {
	align-items: center;
	box-sizing: border-box;
	display: flex;
	flex: 1;
	text-decoration: none;
}

.location-label {
	font-size: 0.9rem;
	padding-right: 0.6rem;
}

.location-edit-link {
	align-items: center;
	color: #999;
	display: flex;
	justify-content: flex-start;
	text-decoration: none;
}

.location-edit-link > .material-icons {
	color: #999;
	font-size: 1rem;
	margin-right: 0.1rem;
}


/* brochure grid */

.publication-grid {
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	justify-content: start;
	margin: 0 auto;
}

.publication-grid-cell {
	box-sizing: border-box;
	display: block;
	flex: 0 0 100%;
	overflow: hidden;
	position: relative;
	text-decoration: none;
}

@media (min-width: 320px) and (max-width: 519px) {
	.publication-grid-cell {
		flex: 0 0 50%;
	}
}

@media (min-width: 520px) and (max-width: 799px) {
	.publication-grid-cell {
		flex: 0 0 33.3333%;
	}
}

@media (min-width: 800px) {
	.publication-grid-cell {
		flex: 0 0 25%;
	}
}

.publication-grid-item {
	background-color: #f9f9f9;
	box-shadow: 1px 1px 4px rgba(0,0,0,0.2);
	box-sizing: border-box;
	margin: 6% 4%;
	padding: 0.6rem;
	position: relative;
}

@media screen and (max-width: 460px) {
	.publication-grid-item {
		margin: 5% 3%;
	}
}

.bg-item-cover {
	box-sizing: border-box;
	overflow: hidden;
	padding-top: 150%;
	position: relative;
	width: 100%;
}

.bg-item-cover-image {
	bottom: 0;
	box-sizing: border-box;
	display: block;
	left: 0;
	margin: auto;
	opacity: 0.5;
	position: absolute;
	right: 0;
	max-width: 100%;
	/*max-height: 150%;*/
	width: 100%;
	top: 0;
}

.bg-item-title, .bg-item-subtitle {
	overflow: hidden;
	text-decoration: none;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 100%;
}

.bg-item-title {
	font-size: 0.9rem;
	font-weight: bold;
	padding: 0.5em 0.1em 0 0.1em;
	position: relative;
}

.bg-item-subtitle {
	color: #555;
	font-size: 0.8rem;
	padding: 0.5em 0.1em 0 0.1em;
	position: relative;
}

/* footer */

.footer {
	/*align-content: center;*/
	/*display: flex;*/
	/*flex-wrap: wrap;*/
	/*justify-content: center;*/
}

.footer-brand {
	color: #999;
	text-align: center;
	padding: 30px 0;
}

.footer-links {
	align-content: center;
	border-top: 1px solid #ddd;
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	font-size: 0.8em;
	justify-content: center;
	min-height: 30px;
	padding: 1.5rem 0.5rem;
	position: relative;
	text-align: center;
}

.footer-link-item {
	display: block;
	padding: 0.3rem 0;
}

.footer-link {
	padding: 0 0.5rem;
	text-decoration: none;
}