.gs-portfolio-top {
  padding-top: 120px;
  padding-bottom: 64px;
}

.gs-portfolio-intro {
  max-width: 42rem;
}

.gs-portfolio-intro h1 {
  margin-top: 12px;
  font-size: clamp(36px, 5vw, 52px);
}

.gs-portfolio-intro p {
  margin-top: 16px;
  color: var(--muted-foreground);
}


/* =========================================================
   PORTFOLIO GRID
   ========================================================= */

.gs-portfolio-grid,
.gs-home-portfolio-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}


/* =========================================================
   PORTFOLIO CARD
   ========================================================= */

.gs-home-portfolio-item {
  position: relative;

  display: flex;
  flex-direction: column;

  width: 370px;
  height: auto;
  min-height: 0;

  overflow: visible;

  border-radius: 10px;

  background: transparent;

  color: inherit;
  text-decoration: none;

  box-sizing: border-box;
}


/* =========================================================
   PROJECT IMAGE
   ========================================================= */

.gs-home-portfolio-item img {
  display: block;

  width: 100%;
  height: auto;

  aspect-ratio: 1 / 1;

  object-fit: cover;

  border-radius: 10px 10px 0px 0px;

  transition: transform 0.45s ease;
}

.gs-home-portfolio-item:hover img {
  transform: scale(1.03);
}


/* =========================================================
   PROJECT BADGE
   ========================================================= */

.gs-home-portfolio-item > span {
  position: absolute;

  left: 12px;
  top: 12px;

  z-index: 5;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: auto;
  height: auto;

  margin: 0;
  padding: 6px 10px;

  border-radius: 5px;

  background: rgba(255, 255, 255, 0.92);

  color: #163d2b;

  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   PROJECT META
   ========================================================= */

.gs-home-portfolio-item .gs-eyebrow-dark {
  position: static;

  display: block;

  width: 100%;

  margin: 14px 0 0;
  padding: 0;

  color: var(--foreground);

  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;

  letter-spacing: 0.18em;
  text-transform: uppercase;

  box-sizing: border-box;
}


/* =========================================================
   PROJECT TITLE
   ========================================================= */

.gs-home-portfolio-item h2 {
  position: static;

  display: block;

  width: 100%;

  height: 40%;

  margin: 8px 0 0;
  padding: 0;

  color: var(--foreground);

  font-size: 24px;
  font-weight: 500;
  line-height: 1.15;

  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;

  box-sizing: border-box;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.gs-portfolio-empty,
.noProjectsShow {
  margin-top: 36px;
  color: var(--muted-foreground);
}


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 768px) {

  .gs-portfolio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .gs-home-portfolio-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
  }

  .gs-home-portfolio-item h2 {
    font-size: 24px;
  }

  .gs-home-portfolio-item .gs-eyebrow-dark {
    font-size: 11px;
  }

  .gs-home-portfolio-item > span {
    font-size: 12px;
  }

}