.projects {
  padding: 8em 1em;
}

.projects__title {
  text-align: center;
  margin-bottom: 4em;
  z-index: 1;
  position: sticky;
  top: 8%;
}

.projects__wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2em;
}

.projects__wrapper .button-01 {
  position: absolute;
  right: 0;
  bottom: 0;
}

.projects__item-link {
  max-width: 38em;
  display: inline-block;
  height: 100%;
}

.projects__item-img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  position: relative;
}

.projects__item-img img {
  object-fit: cover;
  border-radius: 6px;
  width: 100%;
  height: 100%;
}

.projects__item-link {
  position: relative;
  text-decoration: none;
}

.projects__item-btn {
  justify-content: center;
  align-items: center;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0);
  display: flex;
  align-items: center;
  background-color: var(--purple);
  border-radius: 0.3em;
  gap: 0.3em;
  padding: 0.7em 1.3em;
  color: var(--white);
  font-weight: 600;
  opacity: 0;
  visibility: hidden;

  transition: all 0.3s ease-out;
}

.projects-name-wrap {
  grid-column-gap: 8px;
  grid-row-gap: 8px;
  margin-top: 4px;
  display: flex;
  text-decoration: none;
  color: var(--black);
  margin-bottom: 0;
}

.projects-name-wrap p {
  font-size: 16px;
  font-weight: 600;
  line-height: 150%;
  margin-bottom: 0;
}

.projects-name-category {
  margin-bottom: 0;
}

.projects-name-info {
  margin-bottom: 0;
  color: var(--gray-1);
}

.collection-list {
  justify-content: flex-end;
  display: flex;
}

.collection-list .projects__item-link {
  max-width: 32em;
}

.projects__item-link:hover .projects__item-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  visibility: visible;
}

@media only screen and (max-width: 767px) {
  .projects__wrapper .button-01 {
    position: relative;
  }
}
