.refs {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-pad-y) var(--section-pad-x);
}

.refs-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.refs-link {
  font-size: 0.85rem;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.refs-link svg {
  width: 14px;
  height: 14px;
}

.refs-link:hover {
  color: var(--amber);
  border-color: var(--amber);
}

.refs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(140px, 22vw, 220px), 1fr));
  gap: clamp(8px, 1.4vw, 14px);
}

.refs-grid .photo-placeholder,
.refs-grid .photo-frame {
  aspect-ratio: 1 / 1;
  border-radius: 3px;
}

.refs-grid .photo-frame {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.refs-grid .photo-frame:hover,
.refs-grid .photo-frame:focus-visible {
  opacity: 0.85;
}