
/* ====== PROJECTS ARCHIVE (Astra friendly) ====== */
body.post-type-archive-projects .site-content .ast-container{
  display:block;
}

.projects-archive{
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 18px 64px;
}

/* CENTER header area */
.projects-archive__top{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-bottom: 16px;
  text-align:center;
}

.projects-archive__title{
  margin:0;
  font-size: 20px;
  font-weight: 600;
}

.projects-sort{
  font-size: 13px;
  white-space: nowrap;
}

.projects-sort__link{
  text-decoration:none;
  color:#222;
  opacity:.75;
}

.projects-sort__link:hover{ opacity:1; text-decoration:underline; }
.projects-sort__link.is-active{ opacity:1; font-weight:600; text-decoration:underline; }

.projects-sort__sep{
  margin: 0 6px;
  opacity:.5;
}

/* GRID */
.projects-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 6px;
  
}

/* CARD */
.project-card{
  border:1px solid #1A1F2A;
  background:#fff;
}

.project-card__link{
  display:block;
  color:inherit;
  text-decoration:none;
}

.project-card__media{
  padding-top: 20px;

}

/*
  IMPORTANT:
  Use a fixed "frame height" + object-fit:cover.
  This prevents blur from odd aspect-ratio scaling and keeps consistent cards.
*/
.project-card__img{
  width: 100%;
  aspect-ratio: 4 / 5;  /* portrait frame */
  height: auto;
  object-fit: cover;     /* crop to fill frame */
  display: block;
  background: #f2f2f2;
}


.project-card__img--placeholder{
  height:420px;
}

/* CENTER card content */
.project-card__body{
  padding: 12px 12px 10px;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
}

.project-card__title{
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
}

.project-card__excerpt{
  font-size: 13px;
  line-height: 1.6;
  opacity: .85;
  margin-top: 6px;
  min-height: 72px;
  max-width: 46ch;
}

.project-card__footer{
  margin-top: 10px;
}

.project-card__pill{
  display:inline-block;
  border:1px solid #1A1F2A;
  padding: 2px 6px;
  font-size: 9px;
  border-radius: 2px;
  opacity: .85;
  margin-right: 12px;
}

/* Load more button */
.projects-pagination{
  display:flex;
  justify-content:center;
  margin-top: 26px;
  margin-bottom: 30px;
}

.projects-loadmore a{
  display:inline-block;
  border:1px solid #1A1F2A;
  padding: 10px 18px;
  font-size: 11px;
  text-decoration:none;
  color:#111;
  background:#fff;
}

.projects-loadmore a:hover{
  background:#111;
  color:#fff;
}

.ast-article-post:last-child{
border-bottom: 1px solid #1A1F2A;
}

/* Responsive */
@media (max-width: 980px){
  .projects-grid{ grid-template-columns: repeat(2, 1fr); }
  .project-card__img,
  .project-card__img--placeholder{
    height: 380px;
  }
}
@media (max-width: 640px){
  .projects-grid{ grid-template-columns: 1fr; }
  .project-card__img,
  .project-card__img--placeholder{
    height: 260px;
  }
}
