body {
  padding-top: 70px;
  padding-bottom: 70px;
  background-color: #ffffff;
  color: #414141;
  font-family: 'Roboto Slab', serif;
}

body a,
body a:hover,
body a:visited,
body a:active {
  color: #414141;
}

[data-current-template="about"].pw-container.pw-width,
[data-current-template="credits"].pw-container.pw-width {
  min-width: 320px;
}

/* fixed 290px columns snap the layout to whole cards, like the old resize JS did ~ colin */
.pw-container {
  position: relative;
  margin: 0px auto;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(auto-fill, 290px);
  gap: 0 20px;
  justify-content: center;
}

.pw-container>#view {
  grid-column: 1 / -1;
}

#list-region {
  display: grid;
  grid-template-columns: repeat(auto-fill, 290px);
  gap: 20px;
  justify-content: center;
  min-height: 100vh;
  align-content: start;
}

article {
  line-height: 28px;
  font-size: 18px;
  /*max-width: 670px;*/
}

article p {
  margin-bottom: 24px;
}

.about,
.credits {
  background-color: #fff;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 10px;
  padding-top: 20px;
}

.about-img {
  width: 100%;
  margin-bottom: 10px;
}

.about-img img {
  width: 100%;
  height: auto;
}

.panel-legal {
  max-width: 580px;
}

.panel-legal p {
  font-size: 13px;
  line-height: 18px;
  margin-bottom: 10px;
}

#pw-mob-title {
  padding-left: 0px;
}

nav.navbar {
  border: 0;
  background-color: #a4a4a4;
  color: #fff;
  font-family: "Raleway", serif;
  font-size: 18px;
}

nav.navbar a.navbar-brand {
  color: #000;
}

nav.navbar .navbar-nav>li>a {
  color: #464646;
  padding-left: 20px;
  padding-right: 10px;
}

.navbar-header {
  margin-left: 10px;
}

.pw-wrap {
  position: relative;
  width: 100%;
  height: 50px;
}

/* same column template as the card grid so the nav aligns with it ~ colin */
.navbar-text {
  position: relative;
  margin: 0px auto;
  float: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, 290px);
  gap: 0 20px;
  justify-content: center;
}

.navbar-text>* {
  grid-column: 1 / -1;
}

nav.navbar .navbar-nav>.active>a,
nav.navbar .navbar-nav .active>a:focus,
nav.navbar .navbar-nav .active>a:hover {
  background-color: inherit;
  color: #f2f2f2;
}

.book {
  overflow: hidden;
  background-color: white;
}

.book .book-data {
  padding: 5px 10px;
}

.book-thumb {
  position: relative;
  height: 0;
  padding-bottom: 56.25%;
  overflow: visible;
}

.book-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
}

.book img {
  width: 100%;
  height: 100%;
  background-color: white;
}

@media screen and (max-width: 481px) {
  nav.navbar .pw-width {
    display: block;
    width: 100% !important;
  }
}

.modal {
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-header {
  font-size: 1.2em;
  min-height: 44px;
  border: none;
  padding: 0;
}

.modal-content {
  background-color: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0 auto;
  width: min-content;
}

.modal-body {
  padding: 0;
}

.modal-body>* {
  z-index: 2;
  position: relative;
}

/* fit 16:9 within the viewport with 36px margins, max 1600px wide ~ colin */
.modal-body iframe {
  display: block;
  border: 0;
  width: min(1600px, 100vw - 72px, calc((100vh - 72px) * 16 / 9));
  aspect-ratio: 16 / 9;
  height: auto;
}

.modal-body .modal-spinner {
  clear: left;
  margin: 0px auto;
  text-align: center;
  position: absolute;
  top: 46%;
  left: 48%;
  z-index: 0;
}

/* 44px minimum touch target; negative margin optically aligns the X
   (centered in the hit area + svg whitespace) with the video edge ~ colin */
.modal-close {
  background: none;
  color: #fff;
  float: right;
  border: none;
  box-shadow: none;
  padding: 0;
  min-width: 44px;
  min-height: 44px;
  margin-right: -12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
