/* Artwork presentation only; the page owns the work-wall grid. */
.ui-v2 .work-tile {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--color-surface-selected);
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
}

.ui-v2 .work-tile:focus-visible {
  outline: 2px solid var(--color-border-active);
  outline-offset: -3px;
}

.ui-v2 .work-tile__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ui-v2 .work-tile__fallback {
  display: grid;
  height: 100%;
  place-items: center;
  padding: 48px 24px 24px;
  font-family: var(--font-sans);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.15;
  text-align: center;
  overflow-wrap: anywhere;
}

.ui-v2 .work-tile__label {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  min-height: 32px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 22px;
  background: color-mix(in srgb, var(--color-surface) 72%, transparent);
  backdrop-filter: blur(6px);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  line-height: 16px;
  text-transform: uppercase;
}

.ui-v2 .work-tile__type {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-v2 .work-tile__year { flex: none; }

@media (max-width: 640px) {
  .ui-v2 .work-tile__label { gap: 8px; padding-inline: 12px; }
  .ui-v2 .work-tile__fallback { padding-inline: 16px; font-size: 26px; }
}
