/* Angjelo V4.2 Section 5. Homepage Portfolio & Projects only.
   Three complete cards on desktop, two on tablet, one on phone.
   Database content and existing project URLs remain unchanged. */
body.ab112-public .ab42-home .ab42-portfolio-section {
  width:min(1780px,calc(100% - 48px));
  max-width:1780px;
  margin:20px auto 24px;
  padding:clamp(22px,2.5vw,42px);
  display:block;
  background:linear-gradient(130deg,#fff8e9 0%,#fffdf5 55%,#f9efdb 100%);
  border:1px solid #e9dac0;
  border-radius:24px;
  box-shadow:0 12px 35px rgba(65,55,30,.05);
}
body.ab112-public .ab42-home .ab42-portfolio-head {
  display:flex;align-items:flex-end;justify-content:space-between;
  gap:22px;min-width:0;margin-bottom:22px;
}
body.ab112-public .ab42-home .ab42-portfolio-heading {min-width:0;flex:1}
body.ab112-public .ab42-home .ab42-portfolio-heading h2 {
  font:700 clamp(31px,3.15vw,46px)/1.09 Georgia,'Times New Roman',serif;
  letter-spacing:-.042em;color:#173d29;margin:10px 0 7px;
}
body.ab112-public .ab42-home .ab42-portfolio-heading p {
  font-size:clamp(13px,.9vw,15px);line-height:1.6;color:#606a57;margin:0;
}
body.ab112-public .ab42-home .ab42-view-all {
  min-height:44px;white-space:nowrap;flex:none;font-size:12px;padding:10px 17px;
}
body.ab112-public .ab42-home .ab42-view-all svg {width:17px;height:17px}
body.ab112-public .ab42-home .ab42-portfolio-cards {
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(14px,1.3vw,23px);overflow:visible;min-width:0;
}
body.ab112-public .ab42-home .ab42-project {
  min-width:0;min-height:100%;width:100%;display:flex;flex-direction:column;
  border-radius:19px;border:1px solid #e8d9bd;
  background:#fffef9;overflow:hidden;
  box-shadow:0 9px 23px rgba(67,52,32,.075);
  transition:transform .18s ease,box-shadow .18s ease;
}
@media(hover:hover) and (pointer:fine) {
  body.ab112-public .ab42-home .ab42-project:hover {
    transform:translateY(-3px);box-shadow:0 16px 32px rgba(67,52,32,.12)
  }
}
body.ab112-public .ab42-home .ab42-project-photo {
  display:block;position:relative;aspect-ratio:16/9;height:auto;flex:none;
  background:linear-gradient(125deg,#315a40,#b58d58);overflow:hidden;
}
body.ab112-public .ab42-home .ab42-project-photo img {
  width:100%;height:100%;display:block;object-fit:cover;
  transition:transform .3s ease;
}
@media(hover:hover) and (pointer:fine) {
  body.ab112-public .ab42-home .ab42-project:hover .ab42-project-photo img {transform:scale(1.035)}
}
body.ab112-public .ab42-home .ab42-project-number {
  position:absolute;right:13px;top:13px;display:grid;place-items:center;
  min-width:34px;height:34px;padding:4px 8px;border-radius:12px;
  color:#27462e;background:#fff7e4;border:1px solid #eadbbd;
  font-size:12px;font-weight:850;box-shadow:0 3px 9px rgba(0,0,0,.08);
}
body.ab112-public .ab42-home .ab42-project-content {
  padding:clamp(16px,1.65vw,24px);display:flex;flex-direction:column;
  gap:9px;flex:1;min-width:0;
}
body.ab112-public .ab42-home .ab42-project-category {
  display:flex;align-items:center;gap:7px;
  color:#967037;font-size:11px;font-weight:850;
  letter-spacing:.09em;text-transform:uppercase;
}
body.ab112-public .ab42-home .ab42-project-category svg {width:15px;height:15px;flex:none}
body.ab112-public .ab42-home .ab42-project-content h3 {
  margin:2px 0 0;color:#173e29;
  font:700 clamp(19px,1.5vw,24px)/1.18 Georgia,'Times New Roman',serif;
  min-height:2.36em;
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;
  line-clamp:2;overflow:hidden;overflow-wrap:anywhere;
}
body.ab112-public .ab42-home .ab42-project-content h3 a {
  color:inherit!important;text-decoration:none;
}
body.ab112-public .ab42-home .ab42-project-content h3 a:hover {text-decoration:underline;text-underline-offset:3px}
body.ab112-public .ab42-home .ab42-project-description {
  margin:0;color:#637060;font-size:13px;line-height:1.6;
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;
  line-clamp:2;overflow:hidden;min-height:3.2em;
}
body.ab112-public .ab42-home .ab42-project-open {
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin-top:auto;padding:12px 0 0;border-top:1px solid #ece2d0;
  font-size:13px;font-weight:800;color:#12492c!important;
  text-decoration:none;min-height:44px;
}
body.ab112-public .ab42-home .ab42-project-arrow {
  display:grid;place-items:center;flex:none;
  background:#155031;color:#fff;border-radius:12px;
  width:34px;height:34px;font-size:18px;
}
body.ab112-public .ab42-home .ab42-portfolio-empty {
  grid-column:1/-1;padding:35px;border-radius:18px;
}
body.ab112-public .ab42-home .ab42-project-cta {
  display:flex;flex-direction:row;justify-content:space-between;align-items:center;
  gap:22px;margin-top:20px;padding:clamp(19px,2.15vw,32px);
  background:linear-gradient(115deg,#a0525a 0%,#9b4d55 52%,#7f3543 100%);
  color:#fff9ea;border:1px solid #a86968;border-radius:19px;
}
body.ab112-public .ab42-home .ab42-project-cta-copy {flex:1;min-width:0}
body.ab112-public .ab42-home .ab42-project-cta .ab3-kicker {color:#f9e1ab}
body.ab112-public .ab42-home .ab42-project-cta .ab3-kicker::before {background:#f0d09c}
body.ab112-public .ab42-home .ab42-project-cta h3 {
  color:#fffaf0;font:700 clamp(25px,2.3vw,34px)/1.1 Georgia,'Times New Roman',serif;
  margin:7px 0 5px;
}
body.ab112-public .ab42-home .ab42-project-cta p {
  color:#fff1dc;font-size:clamp(12px,1vw,14px);line-height:1.55;margin:0;
}
body.ab112-public .ab42-home .ab42-project-cta .ab3-button {
  min-height:48px;white-space:nowrap;background:#fff5dc;
  color:#17402a!important;border:1px solid #f5deaf;
  box-shadow:none;padding:10px 19px;font-size:13px;
}
body.ab112-public .ab42-home .ab42-project-cta .ab3-button svg {width:17px;height:17px}
body.ab112-public .ab42-home .ab42-project-cta .ab3-button:hover {background:#fffdf3}

@media(max-width:1023px) {
  body.ab112-public .ab42-home .ab42-portfolio-cards {grid-template-columns:repeat(2,minmax(0,1fr))}
  body.ab112-public .ab42-home .ab42-portfolio-cards .ab42-project:last-child:nth-child(odd) {
    grid-column:1/-1;display:grid;grid-template-columns:minmax(0,43fr) minmax(0,57fr);
    min-height:0;
  }
  body.ab112-public .ab42-home .ab42-portfolio-cards .ab42-project:last-child:nth-child(odd) .ab42-project-photo {
    height:100%;aspect-ratio:auto;min-height:215px;
  }
}
@media(max-width:699px) {
  body.ab112-public .ab42-home .ab42-portfolio-section {
    width:calc(100% - 20px);border-radius:19px;
    padding:18px 14px;margin:12px auto 18px;
  }
  body.ab112-public .ab42-home .ab42-portfolio-head {
    display:flex;flex-direction:column;align-items:flex-start;gap:15px;margin-bottom:17px;
  }
  body.ab112-public .ab42-home .ab42-view-all {width:100%;justify-content:center}
  body.ab112-public .ab42-home .ab42-portfolio-cards {grid-template-columns:minmax(0,1fr);gap:15px}
  body.ab112-public .ab42-home .ab42-portfolio-cards .ab42-project:last-child:nth-child(odd) {
    display:flex;grid-column:auto;
  }
  body.ab112-public .ab42-home .ab42-portfolio-cards .ab42-project:last-child:nth-child(odd) .ab42-project-photo {
    aspect-ratio:16/9;height:auto;min-height:0;
  }
  body.ab112-public .ab42-home .ab42-project-content {padding:17px 18px 14px}
  body.ab112-public .ab42-home .ab42-project-content h3 {font-size:21px;min-height:0}
  body.ab112-public .ab42-home .ab42-project-description {min-height:0}
  body.ab112-public .ab42-home .ab42-project-cta {flex-direction:column;align-items:stretch;gap:16px}
  body.ab112-public .ab42-home .ab42-project-cta .ab3-button {width:100%;min-height:46px}
}
@media(prefers-reduced-motion:reduce) {
  body.ab112-public .ab42-home .ab42-project,
  body.ab112-public .ab42-home .ab42-project-photo img {transition:none}
}
