.collection-v51__item {
  position: relative;
}

.collection-v51__item:hover .collection-v51__label {
  background-color: rgba(var(--color-background), 0.4);
}
.collection-v51__item:hover .collection-v51__item-title {
  opacity: 1;
  transform: translateY(-1rem);
}
.collection-v51__item:hover .collection-v51__underline {
  width: 60%;
}
.collection-v51__item:hover .collection-v51__button {
  opacity: 1;
  transform: translateY(0.1rem);
}

.collection-v51__label {
  position: absolute;
  top: 4.5rem;
  left: 4.5rem;
  right: 4.5rem;
  bottom: 4.5rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.collection-v51__item-title {
  margin-bottom: 0;
  font-size: clamp(1.8rem, calc(0.75vw + 1.5rem), 2.4rem);
  opacity: 0;
  position: relative;
  bottom: -1rem;
  transform: translateY(2rem);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.25s, color 0.2s ease;
  text-align: center;
}

.collection-v51__underline {
  margin: 1.2rem auto;
  width: 0;
  height: 0.1rem;
  background-color: rgba(var(--color-foreground));
  transition: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.collection-v51__wrap {
  overflow: hidden;
  display: block;
}

.collection-v51__wrap:hover .collection-v51__item-title {
  color: rgba(var(--color-accent));
}
.collection-v51__wrap:hover .collection-v51__button {
  color: rgba(var(--color-accent));
}

.collection-v51__button {
  position: relative;
  text-transform: uppercase;
  color: rgba(var(--color-foreground));
  transform: translateY(-2rem);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.25s, color 0.2s ease;
  font-size: calc(var(--font-body-scale) * 1.2rem);
  font-weight: 500;
  letter-spacing: calc(var(--font-body-scale) * 0.2rem);
}