.reference-collections {
  margin-top: 42px;
}

.collection-type {
  margin-top: 32px;
}

.collection-type > h3 {
  margin: 0 0 15px;
  color: var(--maroon-dark);
  font: 500 25px/1.25 var(--serif);
}

.collection-type > h3 a:hover {
  color: var(--gold);
}

.reference-collection-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
}

.reference-collection-card {
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #eee3d5;
  background: #fff;
  text-align: center;
  transition: transform .25s, box-shadow .25s;
}

.reference-collection-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.reference-collection-image {
  display: grid;
  height: 250px;
  place-items: center;
  background: #fff;
}

.reference-collection-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.reference-collection-card > h4 {
  margin: 0;
  padding: 13px 10px;
  color: #403238;
  font-size: 12px;
  letter-spacing: .035em;
}

.published-designs {
  margin-top: 64px;
}

@media (max-width: 800px) {
  .reference-collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .reference-collection-image {
    height: 220px;
  }
}

@media (max-width: 420px) {
  .reference-collection-image {
    height: 180px;
  }
}
