article h1 {
  /* font-size: 2rem; */
  margin-bottom: 1rem;
  line-height: 2.2rem;
}

article h2 {
  font-size: 1.4rem;
}

article > h2:not(:first-child) {
  margin-top: 1.5rem;
}

article p + figure {
  margin-top: 20px;
}

article figure img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

article video {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

article figure figcaption {
  color: var(--tx-2);
  font-size: 0.8rem;
  margin-top: 0.5rem;
  font-style: italic;
}

article .edit-link {
  font-size: 0.8rem;
  color: var(--tx-2);
}

article p code,
li code {
  background-color: var(--bg-2);
  border: 1px solid var(--bg-3);
  color: var(--tx-2);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.8rem;
}

.posts-navigation {
  display: flex; /* Enables flexbox */
  justify-content: space-between; /* Spaces out the children evenly */
  align-items: stretch; /* Centers items vertically */
  text-align: center; /* Ensures text is centered if needed */
  gap: 1rem;
}

.posts-navigation a {
  color: var(--tx-3);
  flex: 1; /* Allows each link to grow and fill the space */
  padding: 10px; /* Adds some padding for better readability */
  box-sizing: border-box; /* Ensures padding is included in the total width */
  text-decoration: none; /* Optional: Removes underline from links */
  border-radius: 16px;
}

.posts-navigation a:hover {
  color: var(--tx);
  background-color: var(--bg-2);
}

.posts-navigation .older {
  text-align: left;
}

.posts-navigation .newer {
  text-align: right;
}
/* Additional styling for older and newer links if needed */
.older,
.newer {
  display: block; /* Makes each link fill the allocated flex space */
  width: 100%; /* Ensures each link utilizes the full width available to it */
}

.tags {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.15rem;
  margin-top: 1rem;
}

.tags span {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--tx-2);
  padding: 6px 10px;
  line-height: 1;
  border-radius: 30px;
  background-color: var(--bg-2);
}

.tags span a {
  text-decoration: none;
  color: var(--tx-2);
}

.tags span:hover {
  background-color: var(--bg-3);
}
