.project-list {
  padding-top: 30px;
}

.project-list .project {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.project-list .project .title {
  position: absolute;
  bottom: 0;
  width: 100%;
  display: flex;
  z-index: 6;
  transition: 0.3s all;
  box-sizing: border-box;
  padding-right: 120px;
}

.project-list .project .title p {
  color: #fff;
  padding-left: 15px;
  margin-bottom: 20px;
  font-weight: 800;
  font-size: 20px;
  /* +line(2) cần thay bằng CSS thực tế */
}

.project-list .project .btn-skew {
  z-index: 7;
}

.project-list .project .img {
  display: block;
  position: relative;
  padding-top: 100%;
}

.project-list .project .img img {
  -o-object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-list .project .caption-wrapper {
  color: #333;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  bottom: -100%;
  left: 0;
  right: 0;
  padding: 20px 20px 50px 20px;
  z-index: 5;
  transition: 0.4s all;
  background-image: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 1) 80%
  );
  box-sizing: border-box;
}

.project-list .project .name {
  font-size: 25px; /* r(25px) */
  line-height: 20px; /* r(20px) */
  color: var(--main-color); /* Thay $main-color */
  font-weight: 800;
  margin-bottom: 20px;
}

.project-list .project .content {
  font-size: 14px;
}

.project-list .project .content p {
  margin: 0;
}

.project-list .project:before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  left: 0;
  background-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.5) 80%
  );
  transition: 0.3s all;
  z-index: 4;
}

.project-list .project:hover:before,
.project-list .project:hover .title {
  opacity: 0;
}

.project-list .project:hover .caption-wrapper {
  bottom: 0;
}

/* Project section */
.project-section .modulepager {
  padding-bottom: 0;
  margin-top: 30px;
}
