:root {
	--color-article:#b85c7e;
	--color-bookreview:#7a5da7;
	--color-essay:#5ca4ba;
	--color-recording:#5eb86e;
	--color-podcast:#b9845c;
}

.library-container {
	display:flex;
	flex-direction: row;
	width:100%;
	max-width: 1160px;
	margin:0 auto;
}
.library-sidebar {
	width:25%;
	padding-right:3rem;
	box-sizing:border-box;
	font-size: 0.75rem; /* 9px */
}
.library-sidebar h3, 
.library-wrapper h3 {margin-top:0;}
.library-sidebar ul {
	list-style-type: none;
	padding:0
}
.library-sidebar li {
	margin-bottom:0.25rem;
}
.library-wrapper {
	display:flex;
	flex-direction: column;
	width:75%;
}
.tile-container {
	display:flex;
	flex-wrap: wrap;
	width:75%;
	align-items: flex-start;
	justify-content: flex-start;
	row-gap: 3rem;
	column-gap: 3%;
}
.library-wrapper .tile-container {
	width:100%;
}
.library-tile {
	font-family: "poppins", sans-serif;
	font-weight: 400;
	font-style: normal;
	width:30%;
	position: relative;
	line-height:1;
}
.tile-topic {
	position:absolute;
	left:0;
	top:0;
	width:100%;
	background-color: rgba(0,0,0,0.6);
	color:white;
	padding:5px 10px;
	box-sizing: border-box;
	font-size:0.5625rem /* 9px */;
	border-radius: 12px 12px 0 0;
}
.tile-thumbnail {
	width:100%;
	background:#c8c8c8;
	background-size: cover;
	border-radius: 12px;
	/* aspect-ratio: 16 /9; */
	height:0;
	padding-top:56.25%;
	/* let's move the above height and padding-top to the contained a, see below */
	height:auto;
	padding-top:0;
}
.tile-thumbnail a {
	display:block;
	width:100%;
	height:0;
	padding-top:56.25%;
}
.tile-author {font-size:0.625rem /* 10px */}
.tile-title {
	line-height: 1.2;
	font-size:0.8126rem /* 13px */;
	font-weight:600;
}
.tile-meta {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	font-size:0.625rem; /* 10px */
	padding-bottom:6px;
	border-width: 0 0 1px 0;
	border-style: solid;
}
.tile-author, .tile-title, .tile-meta {margin-top:0.75rem;}
.tile-type {text-transform: uppercase;}
.library-tile.tile-type-article .tile-meta {color:var(--color-article); border-color: var(--color-article);}
.library-tile.tile-type-essay .tile-meta {color:var(--color-essay)}
.library-tile.tile-type-book-review .tile-meta {color:var(--color-bookreview)}
.library-tile.tile-type-book-book-chapter .tile-meta {color:var(--color-recording)}
.library-tile.tile-type-other-materials .tile-meta {color:var(--color-podcast)}

/* make tiles all the same height in a row
.tile-container {align-items: stretch;}
.library-tile {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	justify-content: space-between;
} */


.pagination-links {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: center;
	width: 100%;
	gap: 1rem;
}


/* Filter tiles by publication type */
/* https://www.w3schools.com/howto/howto_js_filter_elements.asp */
.page-id-7482 #main, 
.tax-writer #main,
.tax-topic #main {padding-top:0 !important}
.page-id-7482 .publication-filter, 
.tax-writer .publication-filter,
.tax-topic .publication-filter {
	padding-bottom: var(--main_padding-top);
	padding-left:25%;
}

.library-tile {display:none;}
.library-tile.show {display:block;}

/* Style the buttons */
.btn {
  border: none;
  outline: none;
  padding: 12px 16px;
  background-color: #f1f1f1;
  cursor: pointer;
}

/* Add a light grey background on mouse-over */
.btn:hover {
  background-color: #ddd;
}

/* Add a dark background to the active button */
.btn.active {
  background-color: #666;
  color: white;
}


@media (max-width:480px) {
	.library-sidebar {display:none;}
	.tile-container {
		width:100%;
		padding:0 1rem;
	}
	.library-tile {width:100%;}
}

@media (max-width:1024px) {
	.library-container {
		padding: 1rem;
		box-sizing: border-box;
	}
}
