/* ==========================================================================
   Site custom styles
   --------------------------------------------------------------------------
   Loaded after assets/css/main.css.
   Keep site-specific additions here instead of editing the HTML5 UP theme CSS.
   ========================================================================== */


/* Blog photo grid
   -------------------------------------------------------------------------- */

.blog-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.blog-photo-grid figure {
  min-width: 0;
  margin: 0;
}

.blog-photo-grid img {
  display: block;
  width: 100%;
  height: 18rem;
  object-fit: cover;
  border-radius: 0.25rem;
}

.blog-photo-grid figcaption {
  margin-top: 0.5rem;
  color: #7f888f;
  font-size: 0.85rem;
  line-height: 1.5;
}


/* Preserve the complete image when cropping would be undesirable.
   Add class="blog-photo-grid blog-photo-grid--contain" to the grid. */

.blog-photo-grid--contain img {
  height: 18rem;
  object-fit: contain;
  background: #f5f6f7;
}


/* Optional large-lead-photo layout:
   first photo spans both columns. */

.blog-photo-grid--lead figure:first-child {
  grid-column: 1 / -1;
}

.blog-photo-grid--lead figure:first-child img {
  height: 28rem;
}


/* Mobile */

@media screen and (max-width: 736px) {
  .blog-photo-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .blog-photo-grid img,
  .blog-photo-grid--contain img,
  .blog-photo-grid--lead figure:first-child img {
    height: auto;
  }

  .blog-photo-grid--lead figure:first-child {
    grid-column: auto;
  }
}
