section.author-portfolio {
  padding: 80px 0;
  background: #f7f7f7;
  scroll-margin-top: 120px;
}

.author-portfolio-head {
  max-width: 760px;
  margin: 0 auto 45px;
  text-align: center;
}

.author-portfolio-head > span {
  color: #8e1515;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.author-portfolio-head h3.heading-three {
  margin: 0 0 14px;
}

.author-portfolio-head p {
  margin: 0 auto;
}

.author-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.author-portfolio-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  color: #181818;
  background: #fff;
  border: 1px solid rgba(24, 24, 24, 0.08);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

a.author-portfolio-card:hover {
  color: #181818;
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(142, 21, 21, 0.16);
}

.author-portfolio-card.is-private {
  cursor: default;
}

.portfolio-preview {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #181818;
}

.portfolio-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease-in-out;
}

a.author-portfolio-card:hover .portfolio-preview img {
  transform: scale(1.04);
}

.portfolio-browser {
  padding: 14px;
  background: #181818;
}

.portfolio-browser-top {
  display: flex;
  gap: 6px;
  padding: 0 0 10px;
}

.portfolio-browser-top span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.85;
}

.portfolio-browser-body {
  min-height: 160px;
  padding: 16px;
  background: #fff;
}

.portfolio-hero-preview {
  height: 54px;
  margin-bottom: 16px;
  border-radius: 6px;
  background: #8e1515;
}

.portfolio-line {
  height: 9px;
  width: 64%;
  margin-bottom: 9px;
  border-radius: 99px;
  background: #e8e8e8;
}

.portfolio-line-wide {
  width: 88%;
}

.portfolio-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.portfolio-preview-grid span {
  height: 38px;
  border-radius: 6px;
  background: #f1dddd;
}

.author-portfolio-card.accent-2 .portfolio-hero-preview {
  background: #284b63;
}

.author-portfolio-card.accent-2 .portfolio-preview-grid span {
  background: #d7e8ee;
}

.author-portfolio-card.accent-3 .portfolio-hero-preview {
  background: #6f5b3e;
}

.author-portfolio-card.accent-3 .portfolio-preview-grid span {
  background: #eadfce;
}

.author-portfolio-card.accent-4 .portfolio-hero-preview {
  background: #315c4a;
}

.author-portfolio-card.accent-4 .portfolio-preview-grid span {
  background: #dcebe4;
}

.portfolio-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.portfolio-status {
  width: fit-content;
  margin-bottom: 14px;
  padding: 6px 10px;
  color: #8e1515;
  background: rgba(142, 21, 21, 0.1);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.author-portfolio-card.is-private .portfolio-status {
  color: #585858;
  background: #eeeeee;
}

.portfolio-card-content h4 {
  min-height: 56px;
  margin: 0 0 10px;
  color: #181818;
  font-size: 22px;
  font-weight: 600;
  line-height: 28px;
}

.portfolio-card-content p {
  flex: 1;
  margin: 0 0 20px;
  color: #585858;
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
}

.portfolio-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #8e1515;
  font-size: 15px;
  font-weight: 700;
}

.author-portfolio-card.is-private .portfolio-action {
  color: #777;
}

@media only screen and (min-width: 825px) and (max-width: 1199px) {
  .author-portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media only screen and (max-width: 824px) {
  section.author-portfolio {
    padding: 42px 0;
  }

  .author-portfolio-head {
    margin-bottom: 25px;
  }

  .author-portfolio-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .portfolio-card-content h4 {
    min-height: auto;
    font-size: 19px;
    line-height: 25px;
  }
}
