.projects__list {
  padding: 60px 40px;
  background-color: white;
}
.projects__list--inner-container {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1200px;
  margin: 0 auto;
}
@media screen and (max-width: 820px) {
  .projects__list--inner-container {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (max-width: 500px) {
  .projects__list--inner-container {
    grid-template-columns: 1fr;
  }
}
.projects__list--sort {
  grid-column: 1/-1;
  max-width: 490px;
  width: 100%;
  margin: 0 0 10px auto;
}
.projects__list--sort label {
  position: relative;
  display: grid;
  align-items: center;
  grid-template-columns: 170px auto;
  border: 1px solid #636466;
  font-size: 18px;
  font-weight: 600;
  line-height: normal;
  padding: 0 0 0 20px;
}
.projects__list--sort label select {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: none;
  border-radius: 0;
  background-color: white;
  width: 100%;
  min-height: 45px;
  text-align: center;
  border-left: 1px solid #636466;
  padding: 0 45px 0 20px;
}
.projects__list--sort label:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 45px;
  height: 100%;
  background-color: #EFF0F1;
  background-image: url(../../images/icons/right-arrow.svg);
  background-size: 18px 18px;
  background-position: center center;
  background-repeat: no-repeat;
  pointer-events: none;
}
.projects__list--single {
  position: relative;
  display: grid;
}
.projects__list--single:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #1E1E1E 5.28%, rgba(82, 82, 82, 0.93) 18.32%, rgba(106, 106, 106, 0.8) 28.57%, rgba(255, 255, 255, 0) 64.6%);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.projects__list--single img {
  grid-column: 1/-1;
  grid-row: 1/-1;
  aspect-ratio: 39/32;
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
}
.projects__list--single div {
  position: relative;
  grid-column: 1/-1;
  grid-row: 1/-1;
  display: flex;
  gap: 10px;
  flex-direction: column;
  color: white;
  padding: 30px;
}
@media screen and (max-width: 820px) {
  .projects__list--single div {
    padding: 20px;
  }
}
.projects__list--single div p {
  font-size: 26px;
  font-weight: 600;
  margin: 0;
}
.projects__list--single div svg {
  display: block;
  width: 40px;
  fill: white;
}
.projects__list--single div a {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-align: center;
  width: 100%;
  margin: auto 0 0 auto;
}
.projects__list--single div a:hover > span, .projects__list--single div a:focus > span {
  opacity: 1;
  pointer-events: all;
}
.projects__list--single div a:after {
  content: "";
  flex: 0 0 45px;
  width: 45px;
  min-height: 45px;
  height: 100%;
  background-color: #EFF0F1;
  background-image: url(../../images/icons/right-arrow.svg);
  background-size: 18px 18px;
  background-position: center center;
  background-repeat: no-repeat;
}
.projects__list--single div a > span {
  display: flex;
  justify-content: center;
  background-color: #E41B23;
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
  color: white;
  min-height: 45px;
  width: 100%;
  padding: 12px 45px 11px 45px;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease-in-out;
}
.projects__list--pagination {
  grid-column: 1/-1;
  margin: 40px 0 0;
}
.projects__list--pagination .nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
}
.projects__list--pagination .nav-links:not(:has(.page-numbers.prev)):before {
  content: "";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 45px;
  border: none;
  overflow: hidden;
  color: transparent;
  text-indent: -9999px;
  background-image: url(../../images/icons/right-arrow.svg);
  background-size: 25px 25px;
  background-color: #D9D9D9;
  background-repeat: no-repeat;
  background-position: center;
  transform: scale(-1);
  opacity: 0.25;
}
.projects__list--pagination .nav-links:not(:has(.page-numbers.next)):after {
  content: "";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 45px;
  border: none;
  overflow: hidden;
  color: transparent;
  text-indent: -9999px;
  background-image: url(../../images/icons/right-arrow.svg);
  background-size: 25px 25px;
  background-color: #D9D9D9;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.25;
}
.projects__list--pagination .nav-links .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "adobe-garamond-pro", serif;
  font-size: 26px;
  font-weight: 600;
  line-height: normal;
  color: black;
  border: 1px solid black;
  width: 60px;
  height: 45px;
  text-align: center;
  text-decoration: none;
}
.projects__list--pagination .nav-links .page-numbers.current {
  background-color: #D9D9D9;
  border: none;
}
.projects__list--pagination .nav-links .page-numbers.prev, .projects__list--pagination .nav-links .page-numbers.next {
  border: none;
  overflow: hidden;
  color: transparent;
  text-indent: -9999px;
  display: flex;
  background-image: url(../../images/icons/right-arrow.svg);
  background-size: 25px 25px;
  background-color: #D9D9D9;
  background-repeat: no-repeat;
  background-position: center;
}
.projects__list--pagination .nav-links .page-numbers.prev {
  transform: scale(-1);
}
