/* === Grid Layout for Post Listings === */
.post-grid {
  display: grid;
  justify-content: space-evenly;
  grid-template-columns: repeat(auto-fill, 40vw);
  gap: 2vmin;
  background: white;
  margin-top: 3rem;
  padding-inline: 5vmin;
  width: 100vw;
}
.post-grid-item {
  position: relative;
  overflow: hidden;
  background: white;
  height: 55vh;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--silver);
}

/* === Post Card Components === */
.post-thumb {
  width: 100%;
  height: 80%;
  background-size: cover;
  background-position: center;
}
.post-info {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  gap: 0.8rem;
}
.post-title {
  margin: 0;
  font-size: 1.6rem;
  font-family: var(--post-title-font);
  line-height: 1.5;
  font-weight: 400;
}
.post-excerpt {
  letter-spacing: 0;
}
.post-date {
  color: var(--dark-blue);
}
.post-date,
.post-excerpt {
  font-size: 1.2rem;
  font-family: var(--post-content-font);
}
.post-excerpt,
.post-title a {
  color: var(--gray);
  text-decoration: none;
  text-overflow: ellipsis;
  overflow: hidden;
  display: -webkit-box;
  line-clamp: 1;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.post-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-decoration: none;
  font-size: 2rem;
  font-family: var(--title-font);
}
.post-grid-item:hover .post-overlay {
  opacity: 1;
}

/* === Single Post Display === */
article {
  margin-bottom: 2rem;
  margin-top: 2rem;
  border-bottom: 1px solid white;
  padding-bottom: 1rem;
}
.entry-display h1 {
  text-align: center;
  font-weight: bold;
  font-size: 2rem;
  font-family: var(--title-font);
}
.entry-content {
  font-size: 1.6rem;
  padding-inline: 4rem;
  font-family: var(--body-font);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.entry-content p {
  margin-block: 0;
}
.entry-content img {
  max-height: 75vh;
  width: auto;
  margin-top: 1rem;
  margin-bottom: 1rem;
  display: block;
  margin-inline: auto;
}

/* === Responsive (Mobile) === */
@media (max-width: 768px) {
  .entry-content {
    font-size: 1.2rem !important;
    padding-inline: 2rem !important;
  }
  .post-grid {
    grid-template-columns: repeat(1, 85vw);
  }
  .post-grid-item {
    height: 60vh;
  }
}