/* works.html — portfolio collections */

.collection-block {
  margin-bottom: 36px;
}

.collection-block h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 12px;
  text-align: center;
}

.collection-block h2 a {
  color: var(--heading);
  text-decoration: none;
}

.collection-block h2 a:hover {
  color: var(--link-hover);
  text-decoration: none;
}

.collection-hero {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.collection-hero a {
  display: block;
  border: 1px solid var(--rule-light);
  overflow: hidden;
  text-decoration: none;
}

.collection-hero a:hover {
  text-decoration: none;
}

.collection-hero img {
  width: 100%;
  display: block;
  transition: transform 0.65s cubic-bezier(0.33, 1, 0.68, 1);
}

.collection-hero a:hover img {
  transform: scale(1.03);
}

.collection-divider {
  border: none;
  border-top: 1px solid var(--rule-light);
  margin: 24px 0 0;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.work-card a.work-card-media {
  display: block;
  text-decoration: none;
  color: inherit;
}

.work-card {
  border: 1px solid var(--rule-light);
  overflow: hidden;
  transition:
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.work-card:hover {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--rule-light));
  box-shadow: 0 12px 28px color-mix(in srgb, var(--brand) 12%, transparent);
}

.work-card img {
  width: 100%;
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.33, 1, 0.68, 1);
}

.work-card:hover img {
  transform: scale(1.04);
}

.work-card figcaption {
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 12px;
  color: var(--heading);
}
