/* Home post grid and small-screen content handling. */
html,
body {
  background-color: #fff;
}

.content-outer {
  width: 100%;
}

.content-inner,
#main,
#secondary,
.entry-content,
.entry-summary,
.comment-content {
  min-width: 0;
}

.home-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 2rem;
}
.home-posts-grid .home-post-card {
  min-width: 0;
  margin-bottom: 0;
}
.home-posts-grid .post-thumbnail {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 0;
  background-color: #ededed;
}
.home-posts-grid .post-thumbnail a,
.home-posts-grid .post-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
}
.home-posts-grid .post-thumbnail img {
  object-fit: cover;
}
.home-posts-grid .entry-title {
  font-size: 1.5rem;
  line-height: 1.35;
  margin: 1rem 0 0.75rem;
}
.home-posts-grid .entry-summary {
  margin-bottom: 1rem;
}
.home-posts-grid .entry-summary p {
  margin-bottom: 0.75rem;
}
.home-posts-grid .entry-summary .read-more {
  margin-bottom: 0;
}
.home-posts-grid .entry-meta {
  margin-bottom: 0;
  font-weight: 600;
}
.home-posts-grid + .navigation.pagination {
  display: block;
  margin-top: 2.5rem;
}

.entry-content,
.entry-summary,
.comment-content,
.textwidget,
#main article .entry-title {
  overflow-wrap: anywhere;
  word-break: normal;
}

.entry-content .wp-block-table,
.entry-summary .wp-block-table,
.comment-content .wp-block-table {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
}
.entry-content table,
.entry-summary table,
.comment-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  touch-action: pan-x pan-y;
}
.entry-content .wp-block-table > table,
.entry-summary .wp-block-table > table,
.comment-content .wp-block-table > table {
  display: table;
  width: max-content;
  min-width: 100%;
  max-width: none;
  overflow: visible;
}

@media screen and (max-width: 59.9375rem) {
  .blog .content-outer,
  .archive .content-outer,
  .single .content-outer,
  .page-template-default .content-outer {
    padding: 1rem;
  }
  .blog .content-inner,
  .archive .content-inner,
  .single .content-inner,
  .page-template-default .content-inner {
    width: 100%;
    max-width: 48rem;
    margin-inline: auto;
  }
  .blog #secondary,
  .archive #secondary,
  .single #secondary,
  .page-template-default #secondary {
    margin-top: 2.5rem;
  }
}

@media screen and (max-width: 48rem) {
  .home-posts-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
  .entry-content table,
  .entry-summary table,
  .comment-content table {
    white-space: nowrap;
  }
  .entry-content figure,
  .entry-summary figure,
  .comment-content figure {
    max-width: 100%;
    padding-inline: 0;
  }
  .entry-content .alignleft,
  .entry-content .alignright,
  .entry-summary .alignleft,
  .entry-summary .alignright {
    float: none;
    display: block;
    max-width: 100%;
    margin-inline: auto;
  }
}
