/* Gallery — a salon hang: each work keeps its own proportions in flowing columns */

.gallery {
  list-style: none;
  columns: 1;
  column-gap: clamp(1rem, 3vw, 2.25rem);
}
.gallery__item {
  break-inside: avoid;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

@media (min-width: 640px) {
  .gallery {
    columns: 2;
  }
}
@media (min-width: 1024px) {
  .gallery {
    columns: 3;
  }
}

.work__open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.work__image {
  width: 100%;
  height: auto;
  box-shadow:
    0 1px 2px rgba(36, 28, 24, 0.12),
    0 14px 30px -12px rgba(36, 28, 24, 0.35);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}
.work__open:hover .work__image,
.work__open:focus-visible .work__image {
  transform: translateY(-4px);
  box-shadow:
    0 1px 2px rgba(36, 28, 24, 0.12),
    0 24px 40px -14px rgba(36, 28, 24, 0.45);
}

.work__caption {
  display: grid;
  gap: 0.15rem;
  margin-top: 0.8rem;
}
.work__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--ink);
}
.work__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.work--tall .work__open {
  width: 40%;
}
