/* Work portfolio refresh — light case-study rows and replaceable industry graphics. */
.portfolio-list {
  background: #edf3f8;
  color: #102321;
}

.portfolio-piece {
  background: #f8fafc;
  border-top-color: rgba(15, 35, 50, .12);
}

.portfolio-piece:nth-child(even) {
  background: #eef4f8;
}

.portfolio-copy > div {
  min-width: 0;
}

.portfolio-number,
.portfolio-copy .eyebrow {
  line-height: 1.65rem;
}

.portfolio-number {
  color: #0173e3;
}

.portfolio-copy p {
  color: #536773;
}

.portfolio-scope {
  border-top-color: rgba(15, 35, 50, .14);
  color: #687b87;
}

.portfolio-copy .text-link {
  color: #0173e3;
}

/* WordPress adds this paragraph around the visual link. Give it the grid height. */
.portfolio-piece-inner > p {
  min-width: 0;
  min-height: 620px;
  margin: 0;
}

.portfolio-piece-inner > p > .portfolio-art {
  width: 100%;
  height: 100%;
  min-height: 620px;
}

.portfolio-art {
  color: #0f3151;
  background-color: #dcecff;
  background-image:
    linear-gradient(rgba(1, 115, 227, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1, 115, 227, .12) 1px, transparent 1px),
    linear-gradient(135deg, #eaf3ff, #cfe4ff);
  background-size: 48px 48px, 48px 48px, auto;
}

.portfolio-piece:nth-child(2) .portfolio-art {
  color: #5c321e;
  background-color: #fff0e7;
  background-image:
    radial-gradient(circle at 75% 25%, rgba(244, 122, 60, .22) 0 13%, transparent 13.5%),
    radial-gradient(circle at 75% 25%, transparent 0 23%, rgba(244, 122, 60, .18) 23.5% 24%, transparent 24.5%),
    linear-gradient(145deg, #fff8f3, #ffe2d2);
}

.portfolio-piece:nth-child(3) .portfolio-art {
  color: #233f57;
  background-color: #e7eef5;
  background-image:
    linear-gradient(35deg, transparent 0 45%, rgba(43, 90, 128, .12) 45.5% 46%, transparent 46.5%),
    linear-gradient(145deg, #f4f7fa, #dbe6ef);
}

.portfolio-piece:nth-child(4) .portfolio-art {
  color: #174c63;
  background-color: #e4f5fa;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 54px, rgba(22, 129, 164, .12) 55px 56px),
    linear-gradient(145deg, #f1fbfd, #d4eef5);
}

.portfolio-piece:nth-child(5) .portfolio-art {
  color: #3d3766;
  background-color: #eeeafb;
  background-image:
    radial-gradient(ellipse at 25% 75%, rgba(105, 86, 190, .15) 0 18%, transparent 18.5%),
    linear-gradient(145deg, #f8f6ff, #e2dcf8);
}

.portfolio-piece:nth-child(6) .portfolio-art {
  color: #554328;
  background-color: #f7efe1;
  background-image:
    linear-gradient(30deg, rgba(151, 113, 49, .1) 12%, transparent 12.5% 87%, rgba(151, 113, 49, .1) 87.5%),
    linear-gradient(150deg, #fcf8f0, #eee1ca);
  background-size: 84px 48px, auto;
}

.portfolio-art::before {
  inset: 9%;
  border-color: rgba(1, 79, 153, .25);
  border-radius: 50% 50% 8% 50%;
}

.portfolio-art::after {
  background: rgba(1, 115, 227, .1);
}

.portfolio-art span {
  color: rgba(1, 70, 143, .16);
}

.portfolio-art i {
  background: #f47a3c;
  box-shadow: 0 16px 38px rgba(27, 54, 77, .16);
}

.portfolio-piece:nth-child(2n) .portfolio-art i {
  background: #0173e3;
}

.portfolio-art small {
  color: currentColor;
}

.portfolio-art:hover span {
  color: rgba(1, 70, 143, .24);
}

@media (max-width: 900px) {
  .portfolio-piece-inner > p {
    min-height: 430px;
    grid-row: 1;
  }

  .portfolio-piece-inner > p > .portfolio-art {
    min-height: 430px;
  }
}

@media (max-width: 560px) {
  .portfolio-piece-inner > p,
  .portfolio-piece-inner > p > .portfolio-art {
    min-height: 320px;
  }

  .portfolio-number,
  .portfolio-copy .eyebrow {
    line-height: 1.45rem;
  }
}
