/* Space out content a bit */
body {
  padding-top: 20px;
  padding-bottom: 20px;
}

/* Everything but the jumbotron gets side spacing for mobile first views */
.header,
.marketing,
.footer {
  padding-right: 15px;
  padding-left: 15px;
}

/* Custom page header */
.header {
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e5e5;
}
/* Make the masthead heading the same height as the navigation */
.header h3 {
  margin-top: 0;
  margin-bottom: 0;
  line-height: 40px;
}

/* Custom page footer */
.footer {
  padding-top: 19px;
  color: #777;
  border-top: 1px solid #e5e5e5;
}

/* Customize container */
@media (min-width: 768px) {
  .container {
    max-width: 730px;
  }
}
.container-narrow > hr {
  margin: 30px 0;
}

/* Main marketing message and sign up button */
.jumbotron {
  text-align: center;
  border-bottom: 1px solid #e5e5e5;
}
.jumbotron .btn {
  padding: 14px 24px;
  font-size: 21px;
}

/* Supporting marketing content */
.marketing {
  margin: 40px 0;
}
.marketing p + h4 {
  margin-top: 28px;
}

/* Responsive: Portrait tablets and up */
@media screen and (min-width: 768px) {
  /* Remove the padding we set earlier */
  .header,
  .marketing,
  .footer {
    padding-right: 0;
    padding-left: 0;
  }
  /* Space out the masthead */
  .header {
    margin-bottom: 30px;
  }
  /* Remove the bottom border on the jumbotron for visual effect */
  .jumbotron {
    border-bottom: 0;
  }
}

/* One continuous responsive grid for all project listing fragments. */
#project-placeholder > .col-md-10 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding-bottom: 24px;
}
#project-placeholder > .col-md-10 > .row {
  display: contents;
}
#project-placeholder > .col-md-10 > .row::before,
#project-placeholder > .col-md-10 > .row::after {
  display: none;
}
#project-placeholder > .col-md-10 > .row > .col-md-3 {
  float: none;
  width: auto;
  min-width: 0;
  padding: 0;
  display: flex;
}
#project-placeholder .thumbnail {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 0;
}
#project-placeholder .thumbnail > img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #f5f7f9;
}
#project-placeholder .thumbnail > .caption {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px;
  overflow-wrap: break-word;
}
#project-placeholder .caption > h5,
#project-placeholder .caption > p > h5 {
  margin-top: 0;
  font-size: 16px;
  line-height: 1.4;
}
#project-placeholder .caption > p:last-child {
  margin-top: auto;
  padding-top: 10px;
  margin-bottom: 0;
}
@media (min-width: 600px) {
  #project-placeholder > .col-md-10 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  #project-placeholder > .col-md-10 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
#project-placeholder .caption > p:empty {
  display: none;
}
#project-placeholder .caption > .btn {
  align-self: flex-start;
  margin-top: auto;
}
@media (max-width: 991px) {
  .col-md-2 > .nav-stacked {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 20px;
  }
  .col-md-2 > .nav-stacked > li + li {
    margin-top: 0;
  }
}

.project-era { color: #666; font-size: 13px; margin-bottom: 12px; }
.project-era .label { display: inline-block; margin-right: 5px; }
