/**
 * Styles for Special Series post type
 */

#main {
  padding-top: 0;
  margin-top: 0;
}

#page {
  padding: 0;
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
}

.bd-h1 {
  font-family: sans-serif;
  font-weight: 600;
  font-size: 3rem;
  margin: 0;
  padding: 1rem;
}

.series-post-title {
  font-family: sans-serif;
  font-weight: 600;
  font-size: 3rem;
  margin: 0;
  padding: 1rem;
  text-align: center;
}

.series-index-title, .series-index-excerpt {
  text-align: center;
  margin: auto;
}

.series-post-grid {
  display: flex;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.series-post-post-grid {
  display: flex;
  flex-wrap: wrap;
}

.bd-content {
  max-width: 600px;
  margin: auto;
}

.series-post-content-wrapper {
  background-color: black;
  padding: 2rem 0;
}

.series-post-content {
  max-width: 800px;
  margin: auto;
}

.series-content-wrapper {
  color: #ccc;
}

.series-content-wrapper-light {
  background-color: white;
  color: #333;
  padding: 2rem;
}

.series-index-wrapper {
  padding: 0;
  background-color: black;
}

.series-content-wrapper p {
  padding: 0 1rem;
  width: 100%;
  margin: auto;
  box-sizing: border-box;
}

.series-article-link-wrapper {
  width: 100%;
  margin-right: 0;
  margin-bottom: 3rem;
}

.series-article-link-wrapper:nth-child(3) {
  margin-right: 0;
}

.series-post-grid-title {
  padding: 2rem;
  padding-bottom: 0;
}

.series-content-wrapper h2 {
  margin-top: 4rem;
  color: white;
  text-align: center;
}

.series-byline {
  padding: 1rem;
  margin-bottom: 3rem;
  font-family: sans-serif;
  font-size: 1.25rem;
  color: white;
}

.series-post-byline {
  padding: 1rem;
  font-family: sans-serif;
  font-size: 1rem;
  color: white;
  max-width: 600px;
  margin: auto;
  margin-bottom: 3rem;
  padding-left: 3rem;
  text-align: center;
}

.nmid-header {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: white;
  padding: 1rem 0.5rem 0.7rem 0.5rem;
  display: flex; 
  background-color: black;
}

.nmid-header a {
  color: white;
  font-weight: 800;
  font-size: 1.5rem;
}

.nmid-header img {
  width: 200px;
}

.nmid-header div {
  flex-grow: 1;
  width: 33%;
}

.series-head-center {
  text-align: center;
}

.series-page {
  color: white !important;
}

.bd-article-wrapper {
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.series-grid-part-text {
  font-size: 1rem;
}

.bd-index-overlay-text {
  position: absolute;
  padding: 0rem;
  font-size: 2.25rem;
  line-height: 3rem;
  z-index: 999;
  color: white;
  opacity: 1;
  font-family: sans-serif;
  font-weight: 600;
  transition: filter 0.4s;
  bottom: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0) 100%);
  padding: 1rem;
  font-size: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

.series-grid-exerpt {
  padding: 0rem;
  font-size: 1rem !important;
  line-height: 1.25rem;
  z-index: 999;
  color: #ccc;
  opacity: 1;
  font-weight: 400;
  padding: 1rem;
  font-family: Georgia, "Times New Roman", Times, serif;
  text-decoration: none;
}

.series-grid-title-text {
  line-height: 2rem;
}

.series-title-highlight {
  color: white;
  background-color: rgba(0,0,0,0.75);
}

.bd-post-hero {
  width: 100%;
  position: relative;
}

.bd-header-img {
  width: 100%;
}

.bd-post-hero h1 {
  position: absolute;
  top: 1rem;
  max-width: 800px;
}

.bd-post-hero mark {
  background-color: rgba(0,0,0,0.75);
  color: white;
}

.series-footer {
  background: white;
  overflow: auto;
  color: black;
  padding: 1rem;
  box-sizing: border-box;
}

.flourish-embed {
  margin: 2rem 0;
}

@media only screen and (min-width: 768px) {
  .series-post-grid {
    padding: 0 2rem;
    display: flex;
    flex-wrap: wrap;
  }

  .series-post-post-grid {
    width: 600px;
    margin: auto;
  }

  .series-article-link-wrapper {
    width: 30%;
    margin-right: 3%;
    text-decoration: none;
  }

  .series-content-wrapper p {
    width: 600px;
    margin: auto;
  }

  .bd-index-overlay-text {
    font-size: 2rem;
    line-height: 2.5rem;
    margin-top: 0.5rem;
    transition: opacity 1s;
  }

  .bd-article-wrapper:hover .series-grid-title-text {
    opacity: 0.9;
    transition: opacity 0.4s;
    filter: blur(3px);
    transition: filter 0.4s;
  }

  .bd-h1 {
    text-align: center;
  }

  .series-index-excerpt {
    max-width: 600px;
    margin: auto;
  }
}

