/* Inline post container styles for ArchiveCards */
.archive-inline-container {
  margin-bottom: var(--spacing-6);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  background: var(--color-neutral-100);
  border: var(--border-width) solid var(--border-color);
  overflow: hidden; /* Changed overflow to hidden to prevent overshooting */
  position: relative;
  z-index: 10;
}
.archive-inline-banner {
  background: yellow;
  color: #222;
  font-weight: bold;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between; /* Ensures proper alignment of close label and icon */
  position: sticky;
  top: 0;
  z-index: 99; /* Just below header's z-index of 100 */
  width: 100%;
  min-height: 2.5rem;
  cursor: pointer;
  border-bottom: 1px solid #e2e200;
  padding: 0.5rem 0.75rem;
}
.archive-inline-close-label {
  flex-grow: 1; /* Ensures the label takes up available space */
  text-align: center;
}
.archive-inline-close-icon {
  margin-left: auto;
  padding-right: calc(0.5rem + 5px); /* Adds 5px additional padding to the right of the icon */
  font-size: 1.5rem;
  line-height: 1;
  color: #222;
  padding-left: 1rem;
}
.archive-inline-post {
  padding: var(--spacing-6);
  background: var(--color-neutral-100);
  border-radius: var(--border-radius-lg);
  min-height: 200px;
  box-shadow: var(--shadow-md);
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}
.archive-inline-post img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius-md);
  display: block;
  margin: var(--spacing-4) auto;
  object-fit: contain;
  box-shadow: none;
}
.archive-inline-post .post-featured-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius-md);
  display: block;
  margin: var(--spacing-4) auto;
  object-fit: contain;
  box-shadow: none;
}
.archive-inline-post h1,
.archive-inline-post h2,
.archive-inline-post h3,
.archive-inline-post h4,
.archive-inline-post h5,
.archive-inline-post h6 {
  margin-top: var(--spacing-6);
  margin-bottom: var(--spacing-4);
  color: var(--color-neutral-900);
}
.archive-inline-post p {
  margin-bottom: var(--spacing-4);
}
.archive-inline-post a {
  color: var(--color-primary-500);
  text-decoration: underline;
}
.archive-inline-post a:hover {
  color: var(--color-primary-700);
}
.post-image {
  max-width: 100%; /* Ensures the figure does not exceed the container width */
  overflow: hidden; /* Prevents content from spilling */
  margin: 0 auto; /* Centers the figure */
}
@media (max-width: 600px) {
  .archive-inline-banner {
    position: sticky;
    top: 0;
    z-index: 999;
  }
  .post-image img {
    max-width: 100%; /* Ensures the image does not exceed the container width */
    height: auto; /* Maintains aspect ratio */
    display: block; /* Prevents inline display issues */
    margin: 0 auto; /* Centers the image */
  }
}
