/* Grid layout: two cards side by side */
.apd-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  margin-top: 24px;
}
.apd-item {
  border: 1px solid #e5e7eb;
  padding: 12px;
  border-radius: 8px;
}
.apd-item .apd-thumb {
  display: block;
  overflow: hidden;
  border-radius: 8px;
}
.apd-item .apd-thumb img {
  width: 100%;
  height: calc(60vh + 2px) !important;
  min-height: 100% !important;
  border-radius: 8px !important;
  object-fit: cover;
  object-position: center;
  display: block;
}
.apd-item .apd-title { margin: 8px 0; font-size: 1.1rem; }
.apd-item .apd-excerpt { color: #374151; font-size: 0.95rem; }
@media (max-width: 1099px) {
  .apd-item .apd-thumb img {
    height: calc(30vh + 2px) !important;
    min-height: 100% !important;
  }
}

/* Custom modifications: ensure excerpt below title, image bottoms aligned */
.apd-posts {
  display: flex;
  align-items: flex-end;
}
.apd-post {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


/* Enforce vertical layout and bottom-aligned thumbnails */
.apd-item {
  display: flex;
  flex-direction: column;
}
.apd-item .apd-excerpt {
  margin-top: 8px;
}
.apd-item .apd-thumb {
  margin-top: auto;
}
.apd-item .apd-thumb img {
  display: block;
  max-width: 100%;
  height: auto;
}
.apd-wrapper {
  align-items: stretch;
}
