/* Portfolio + case studies — scoped to .sm-projects-* (GO-REAL-JOBS-FIX-1) */
body.sm-projects-page #main,
body.sm-project-case #main,
body.sm-ab-flyer.sm-projects-page #main,
body.sm-ab-flyer.sm-project-case #main {
  max-width: 1080px;
  margin: 12px auto 28px;
}

body.sm-ab-flyer .page-hero__cta.sm-projects-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

body.sm-ab-flyer .page-hero__cta.sm-projects-hero-cta .btn {
  margin: 0;
}

.sm-projects-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .sm-projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sm-projects-card {
  margin: 0;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sm-projects-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding-bottom: 14px;
}

.sm-projects-card__img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.sm-projects-card__title {
  margin: 12px 14px 6px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #1a1a1a;
}

.sm-projects-card__teaser {
  margin: 0 14px 8px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #333;
}

.sm-projects-card__service {
  margin: 0 14px 6px;
  font-size: 0.82rem;
  line-height: 1.4;
}

.sm-projects-card__service a {
  color: #9a3412;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sm-projects-card__cta {
  margin: 0 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #e85d00;
}

.sm-projects-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  justify-content: center;
}

.sm-projects-gallery img {
  max-width: min(100%, 340px);
  height: auto;
  border-radius: 10px;
  border: 1px solid #e4e4e7;
}

.sm-projects-ba {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

@media (min-width: 640px) {
  .sm-projects-ba {
    grid-template-columns: 1fr 1fr;
  }
}

.sm-projects-ba figure {
  margin: 0;
}

.sm-projects-ba img,
.sm-projects-wide img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid #e4e4e7;
}

.sm-projects-ba figcaption {
  margin-top: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5c5c5c;
}

.sm-projects-wide {
  margin: 12px 0 0;
}