/* Portfolio layout: equal image frames and aligned content on the existing graphite section. */
.project-grid,
.project-grid.is-filtered {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 58px;
  align-items: stretch;
}

.project-grid .project,
.project-grid.is-filtered .project {
  grid-column: auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.project-grid .project[hidden] { display: none; }

.project-image {
  aspect-ratio: 1.38;
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
  flex: none;
}

.project-visual,
.project:nth-child(2n) .project-visual {
  width: 100%;
  height: 100%;
  transform: none;
  will-change: auto;
  border-radius: 0;
}

.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-rental .project-visual { padding: 6%; }
.image-rental .project-visual img { height: auto; max-height: 100%; object-fit: contain; }
.image-certificates .project-visual { background: #0e1014; }
.image-certificates .project-visual img { object-fit: contain; }
.image-modulstroy .project-visual { background: #1e1d1d; }
.image-modulstroy .project-visual img { object-fit: cover; object-position: center 55%; }
.image-standup .project-visual { background: #101a22; }
.image-standup .project-visual img { object-position: center 37%; }

/* Supplied artwork fills the same rounded frame as the other projects. */
.project-image.image-supplied .project-visual { padding: 0; background: #252a28; }
.project-image.image-supplied .project-visual img { height: 100%; max-height: none; object-fit: cover; object-position: center; }

.project-image figcaption {
  bottom: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  padding: 7px 10px;
  border-radius: 5px;
  background: #252a28ed;
  color: #fff;
  font-size: 11px;
  line-height: 1.35;
}

.project-meta { margin: 18px 0 12px; }
.project h3 { min-height: 2.3em; max-width: 100%; }
.project-summary { margin-top: 12px; }
.project-detail { margin-top: auto; padding-top: 18px; }
.project-detail .text-link { margin-top: 14px; }

@media (max-width: 900px) {
  .project-grid,
  .project-grid.is-filtered { column-gap: 22px; row-gap: 44px; }
  .project h3 { font-size: 25px; }
}

@media (max-width: 700px) {
  .project-grid,
  .project-grid.is-filtered { grid-template-columns: 1fr; row-gap: 45px; }
  .project-image { aspect-ratio: 1.38; }
  .project h3 { min-height: 0; font-size: 28px; }
  .project-detail { margin-top: 20px; padding-top: 0; }
}
