/* ============================================================
   TTCC — LATEST
   "See latest projects" — a 12-column grid, each card spanning
   4 or 8 columns with its own aspect ratio. Cards are built by
   JS from PROJECTS.
   ============================================================ */
/* Mirrors .hero-slider-wrap/.featured-wrap: same gutter at every
   width, no full-bleed override — edges stay aligned with the
   rest of the page. */
.latest-wrap {
  margin-top: 90px;
  padding: 0 var(--gutter);
}

.latest {
  max-width: 2000px;
  margin: 0 auto;
  padding: 0 0 120px;
}

.latest__header {
  margin-top: 90px;
  text-align: center;
}

.latest__title {
  font-size: 15px;
  font-weight: 400;
  color: #666666;
}

.latest__arrow {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  color: #666666;
}

/* ----- Card grid ----- */
.latest__grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  row-gap: 90px;
  align-items: start;
}

.latest-card__media-wrap {
  overflow: hidden;
  background: #ececec;          /* shows through until the media lands */
  border-radius: 0;
}

.latest-card__media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.latest-card:hover .latest-card__media {
  transform: scale(1.03);
}

.latest-card__body {
  margin-top: 16px;
}

.latest-card__title {
  font-size: 16px;
  font-weight: 500;
  color: #111111;
}

.latest-card__desc {
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.4;
  color: rgba(17, 17, 17, 0.65);
}

@media (max-width: 900px) {
  .latest__grid {
    grid-template-columns: repeat(4, 1fr);
    row-gap: 56px;
  }

  .latest-card {
    grid-column: span 4 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .latest-card__media {
    transition: none !important;
  }

  .latest-card:hover .latest-card__media {
    transform: none;
  }
}
