/*------------------------------------------------------------*\
 # Projects (project_page)
\*------------------------------------------------------------*/
.content-area.projects {
  margin: 2rem 0;
}

.content-area.projects .site-main {
  display: flex;
  flex-wrap: wrap;
  margin-left: auto;
  margin-right: auto;
}

.projects .grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  grid-template-rows: auto;
  grid-auto-flow: dense;
  margin: 0 1rem;
  width: 100%;
}

.projects article.square,
.projects article.wide {
  padding: 0;
}

.projects article.square .thumbnail,
.projects article.wide .thumbnail {
  min-height: 280px;
}

.projects article .entry-header {
  position: absolute;
  color: var(--white-pure);
  padding: 24px 2rem;
  background: linear-gradient(to bottom, rgba(0,0,0,0.75) 0%,rgba(0,0,0,0.25) 75%,rgba(0,0,0,0) 100%);
}

.projects article .entry-header > * {
  margin: 0;
  max-width: 100%;
  color: var(--white);
}

.projects article.square .thumbnail::after {
  padding-top: 100%;
}

.projects article.wide .thumbnail::after {
  padding-top: 48%;
}

@media (min-width: 900px) and (max-width: 1200px) {
  .projects .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects article.square .thumbnail::after {
    padding-top: 48%;
  }

}

@media (min-width: 1200px) {
  /* .projects .grid {
    grid-template-columns: repeat(4, 1fr);
  } */

  .projects article.wide {
    grid-column: span 2;
  }
}

.content-section:last-of-type {
  margin-bottom: 3rem;
}

.content-section article {
  width: 100%;
}

.section-title {
  width: 100%;
  padding: 0 1rem;
  margin: 2rem 0;
}

.section-title > * {
  margin: 0;
}

.project article > .entry-header,
.single-portfolio_page .entry-header,
.single-experience_page .entry-header {
  margin: 2rem auto 0;
  text-align: center;
}

@media (min-width: 900px) {
  .project article .entry-header > .entry-title,
  .single-portfolio_page .entry-header > .entry-title,
  .single-experience_page .entry-header > .entry-title {
    max-width: 30ch;
  }
}

@media (max-width: 600px) {
  .section-title {
    padding: 0 1rem;
  }

  .project article > .entry-header {
    max-width: 100%;
    margin: 1rem 1rem 0;
  }

}

.type-project_page .entry-header .tag-container {
  margin-top: 1rem;
}

.type-project_page .entry-header .tag-container .tag {
  color: var(--white-pure);
}

.related-posts {
  padding: 2rem 0;
  background: var(--grey-95);
}

.related-posts .content-section {
  margin-bottom: 0;
}

.related-posts .content-section .grid {
  margin: 0 1rem;
}

@media (min-width: 1200px) {
  .related-posts .content-section .grid {
    grid-template-columns: repeat(4, 1fr);
  }
  #content-section-news .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.related-posts article .entry-header {
  position: absolute;
  color: var(--white-pure);
  padding: .75rem;
  text-align: left;
  background: linear-gradient(to bottom, rgba(0,0,0,0.75) 0%,rgba(0,0,0,0.25) 75%,rgba(0,0,0,0) 100%);
}

.related-posts article .entry-title {
  padding: 0;
}

@media (max-width: 900px) {
  .content-area.projects article {
    max-width: 100%;
    width: 100%;
  }

  .projects article.square .thumbnail::after {
    padding-top: 56.25%;
  }
}

/* hide filter on Creator Stories page */
.page-creator-stories .page-filter {
  display: none;
}

/*------------------------------------------------------------*\
 # Experience (experience_page)
\*------------------------------------------------------------*/

.content-area.experience {
  padding: 2rem 0;
}

.experience article {
  border-radius: 4px;
  padding: 8px 8px 40px;
  background: var(--white-pure);
}

.experience .thumbnail::after {
    content: '';
    display: block;
    padding-top: 100%;
}

.experience .entry-body {
  margin-top: 24px;
  padding: 0 1rem;
  /* height: 100%; */
}

.experience .entry-title {
  margin-top: 0;
  margin-bottom: 2rem;
}

.experience .entry-body span {
  display: block;
  font-size: .875rem;
  color: var(--grey-50);
  margin: 0;
}

@media (max-width: 600px) {
  .experience article {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
  }
}

.experience .grid {
  display: grid;
  grid-template-rows: auto;
  grid-auto-flow: dense;
  margin: 0 1rem;
}

/*------------------------------------------------------------*\
 # Page Filter
\*------------------------------------------------------------*/

.page-filter select {
  border-color: var(--white-pure);
  border-bottom: 1px solid var(--grey-95);
  color: var(--black-pure);
  font-size: 1.5rem;
  font-weight: 200;
  line-height: 1.5em;
  padding: .5rem;
}

.page-filter select[name="when"] {
  display: none;
}

option:disabled {
  color: var(--grey-70);
}

@media (max-width: 600px) {
  .content-area .page-filter.grid {
    margin: 0 1rem 2rem;
  }


  .page-filter select {
    margin: 0;
    width: 100%;
  }
}

.case-studies .not-found {
  width: 100%;
  padding: 2rem 0;
}

/*------------------------------------------------------------*\
 # Case Studies (portfolio_page)
\*------------------------------------------------------------*/
.content-area.case-studies {
  margin: 2rem 0;
}
