/* Responsive journal previews. Loaded after the shared site stylesheet. */
#blog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

#blog-grid .blog-card {
  min-width: 0;
}

#blog-grid .blog-card > a:first-child {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

#blog-grid .post-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#blog-grid .post-body {
  min-width: 0;
  overflow-wrap: anywhere;
}

.blog-tools > label {
  min-width: 0;
}

@media (max-width: 1000px) {
  #blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  #blog-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .blog-tools {
    flex-direction: column;
    align-items: stretch;
  }

  .blog-tools input,
  .blog-tools select {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
  }
}
