.project-artifact-link {
  aspect-ratio: auto;
  text-decoration: none;
}

.project-artifact-link img {
  height: auto;
  aspect-ratio: var(--art-ratio);
}

.project-artifact-category {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
}

.gallery-category {
  position: absolute;
  top: calc(100% + 6px);
  right: 5%;
  color: #192123;
  font-size: clamp(13px, 0.83vw, 17px);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  visibility: hidden;
}

@media (hover: hover) and (pointer: fine) {
  .artifact-stage:not(.is-dragging) .gallery-panel.is-hovered .gallery-category,
  .gallery-panel:focus-visible .gallery-category {
    visibility: visible;
  }
}

/* Hover reveals the category without shifting the card. */
.gallery-panel.is-hovered .gallery-slide {
  transform: none;
}
