* {
  padding: 0;
  margin: 0;
}

body {
  display: grid;
  grid-template-columns: 1fr min(60rem, 95%) 1fr;
}

body > * {
  grid-column: 2;
}

a {
  color: var(--text);
  text-decoration: none;
}

body > header {
  text-align: center;
  grid-column: 1 / -1;
  border-bottom: 1px solid #000;
  background-color: #111;
  color: #fff;
  margin-bottom: 1rem;
}

header nav {
  font-size: 1.3rem;
  line-height: 2;
}

/* Use flexbox to allow items to wrap, as needed */
header nav ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  list-style-type: none;
}

/* List items are inline elements, make them behave more like blocks */
header nav ul li {
  display: inline-block;
}

header nav a {
  color: var(--text);
  display: inline-block;
  padding: 0.1rem 1rem;
  text-decoration: none;
}

header nav a:hover,
header nav a.current,
header nav a[aria-current="page"],
header nav a[aria-current="true"] {
  color: var(--accent);
  cursor: pointer;
}

header nav a:hover {
  color: #ddd;
}

img {
  max-width: 100%;
  height: auto;
}

div#main-intro {
  font-size: 1.3em;
  margin-bottom: 1em;
  font-style: italic;
  text-align: center;
}

.category-title {
  margin-bottom: 0.3rem;
  font-size: 1.3rem;
  font-weight: bold;
}

.category-title a:hover {
  text-decoration: underline;
}

.image-container {
  position: relative;
  border: 0.5rem solid #303030;
  border-radius: var(--standard-border-radius);
}

.image-container img {
	display: block;
}

/* Top left text */
.image-title {
  position: absolute;
  bottom: 0px;
  left: 0px;
  padding: 0.3rem 1rem 0.1rem 1rem;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.6);
}

.image-container {
  background: #000;
}

.image-container + .image-container {
	margin-top: 0.7rem;
}

.image-container img {
  display: block;
  margin: 0 auto;
}

.image-description {
  margin-top: 0.3rem;
}

div#categories-tree {
  margin-top: 1em;
  padding-left: 1em;
  font-size: 1.5em;
}

div#categories-tree ul {
  list-style: none;
}

div#categories-tree  ul ul {
  margin-left: 1rem;
  list-style: square;
  list-style-position: inside;
}

.pagination {
  margin: 1em 0;
  text-align: center;
  font-weight: bold;
  font-size: 1.5em;
}