/* works.html — portfolio collections */

/* Paintings index: two cards per row */
.works-index-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 640px) {
  .works-index-grid {
    grid-template-columns: 1fr;
  }
}

.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;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.work-card-title-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  margin: 0;
  padding: 12px 14px 28px;
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.35;
  color: #fff;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.85),
    0 1px 3px rgba(0, 0, 0, 0.55);
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.22) 55%,
    transparent 100%
  );
  pointer-events: none;
}

.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-video-preview {
  width: 100%;
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
  background: #111;
  transition: transform 0.65s cubic-bezier(0.33, 1, 0.68, 1);
}

.work-card:hover .work-card-video-preview {
  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);
}

.work-card figcaption a {
  color: inherit;
  text-decoration: none;
}

.work-card figcaption a:hover {
  color: var(--link-hover);
}
