/* Aligned project portfolio, following the supplied reference. */
#projects { background: #f0f6f9; color: #11265a; padding: 86px 0 64px; }
#projects > .wrap { max-width: 1320px; }
#projects .section-head { align-items: flex-end; gap: 80px; margin-bottom: 40px; }
#projects .eyebrow { color: #4d638b; font-size: 10px; letter-spacing: .09em; margin-bottom: 24px; }
#projects h2 { color: #11265a; font-size: clamp(36px, 3.4vw, 51px); line-height: 1.08; letter-spacing: -.055em; }
#projects h2 em { color: #142476; }
#projects .section-head > p { color: #243b62; max-width: 325px; margin-bottom: 3px; font-size: 13px; line-height: 1.9; }
#projects .project-tools { margin: 0 0 35px; }
#projects .project-filters { gap: 8px; }
#projects .project-filters button { padding: 11px 17px; min-height: 42px; font-size: 11px; border-color: #8b9cba; color: #11265a; }
#projects .project-filters button[aria-pressed="true"] { background: #10265b; border-color: #10265b; color: white; }
#projects .project-filters button:hover:not([aria-pressed="true"]) { background: #e2ebf3; }
#projects #project-results { color: #263e65; font-size: 11px; margin: 13px 0 0; }
#projects .project-grid, #projects.is-filtered .project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 54px 22px; align-items: stretch; }
#projects .project-card, #projects .project-card:nth-child(n), #projects.is-filtered .project-card { display: flex; flex-direction: column; grid-row: auto; grid-column: auto; width: 100%; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; transform: none; text-align: left; }
#projects .project-card .project-image, #projects .project-card:nth-child(n) .project-image, #projects.is-filtered .project-card .project-image { width: 100%; height: auto; min-height: 0; aspect-ratio: 12 / 7; border-radius: 4px; background: #dfe9ee; }
#projects .project-card img, #projects .project-card:nth-child(n) img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
#projects .project-card[data-project="dito"] img { object-position: center 48%; }
#projects .project-card[data-project="alabang"] img { object-position: center 55%; }
#projects .project-card[data-project="k1"] img { object-position: center 55%; }
#projects .project-tag { top: 14px; left: 15px; padding: 5px 10px; font-size: 8px; line-height: 1.5; letter-spacing: 0; color: #233b65; background: #f6f9fcdd; border-radius: 20px; }
#projects .project-arrow { right: 17px; bottom: 17px; width: 38px; height: 38px; font-size: 24px; color: #1c3867; background: #f8fbf9ed; }
#projects .project-info, #projects .project-card:nth-child(n) .project-info { display: block; width: 100%; padding: 15px 0 0; min-height: 74px; }
#projects .project-info h3 { color: #11265a; font-size: 23px; line-height: 1.25; font-weight: 400; letter-spacing: -.04em; margin: 0 0 8px; }
#projects .project-info p { color: #6c7a85; font-size: 10px; line-height: 1.65; margin: 0; }
#projects .project-info > span { display: none; }
#projects .more-projects { margin-top: 54px; border-top: 1px solid #dce6ed; border-bottom: 1px solid #dce6ed; }
#projects .more-projects > summary { padding: 24px 0; color: #193762; font-size: 18px; }
#projects .more-projects small { color: #2e4770; font-size: 10px; margin-left: 22px; }
#projects .portfolio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 22px; padding: 10px 0 32px; }
#projects .portfolio-image { height: auto; aspect-ratio: 12 / 7; border-radius: 4px; background: #dfe9ee; }
#projects .portfolio-image img { width: 100%; height: 100%; object-fit: cover; }
#projects .portfolio-card h3 { color: #11265a; font-size: 19px; line-height: 1.25; margin: 14px 0 7px; }
#projects .portfolio-card p { font-size: 10px; margin: 0; color: #6c7a85; }
#projects .project-foot { margin-top: 0; padding-top: 15px; border: 0; align-items: flex-start; }
#projects .project-foot p { margin: 0; color: #243c65; font-size: 9px; line-height: 1.4; }
#projects .project-foot .text-link { color: #243c65; font-size: 10px; gap: 14px; }
.project-index { display: flex; flex-direction: column; min-width: 0; }
.project-index-heading { font-size: 9px; line-height: 1.5; color: #596a7a; letter-spacing: .1em; margin: 0 0 8px; }
.project-index .project-thumbnails { flex: 1; }
.project-index-label { position: absolute; bottom: 0; left: 0; right: 0; padding: 17px 7px 7px; background: linear-gradient(transparent, #0c1e3eda); color: white; font-size: 9px; line-height: 1.4; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: left; }
.project-thumbnail[aria-current="true"]::after { content: ''; position: absolute; inset: 0; border: 3px solid #11265a; border-radius: inherit; box-shadow: inset 0 0 0 2px white; }
#project-dialog #dialog-image { object-fit: contain; margin: auto; }
@media (max-width: 900px) {
  #projects .section-head { gap: 35px; }
  #projects .section-head > p { max-width: 280px; font-size: 12px; }
  #projects .project-info h3 { font-size: 21px; }
}
@media (max-width: 700px) {
  .project-index-heading { margin-top: 1px; margin-bottom: 6px; font-size: 8px; }
  .project-index-label { font-size: 8px; padding: 12px 5px 5px; }
}
@media (max-width: 650px) {
  #projects { padding-top: 58px; padding-bottom: 45px; }
  #projects .section-head { display: block; margin-bottom: 28px; }
  #projects .eyebrow { font-size: 9px; margin-bottom: 18px; }
  #projects h2 { font-size: 37px; }
  #projects .section-head > p { max-width: 100%; margin: 22px 0 0; font-size: 12px; }
  #projects .project-tools { margin: 0 0 26px; }
  #projects .project-filters { gap: 7px; }
  #projects .project-filters button { font-size: 10px; padding: 10px 12px; }
  #projects .project-grid, #projects.is-filtered .project-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  #projects .project-card .project-image, #projects .project-card:nth-child(n) .project-image, #projects.is-filtered .project-card .project-image { aspect-ratio: 12 / 7; height: auto; }
  #projects .project-info, #projects .project-card:nth-child(n) .project-info { min-height: 0; padding-top: 13px; }
  #projects .project-info h3 { font-size: 22px; margin-bottom: 6px; }
  #projects .project-info p { font-size: 10px; }
  #projects .project-tag { top: 12px; left: 12px; font-size: 7px; }
  #projects .more-projects { margin-top: 35px; }
  #projects .more-projects > summary { font-size: 17px; }
  #projects .more-projects small { display: inline; margin-left: 12px; font-size: 8px; }
  #projects .portfolio-grid { grid-template-columns: 1fr; gap: 30px; padding-bottom: 25px; }
  #projects .project-foot { gap: 17px; padding-top: 18px; }
  #projects .project-foot p { font-size: 9px; }
  #projects .project-foot .text-link { font-size: 10px; }
}
