.section-projects .background {
  position: absolute;
  inset: 0;
  background-color: var(--white);
}
.section-projects .background img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  opacity: 0.1;
}
.section-projects:has(.background) {
  margin: 0;
  padding: 5em 0;
}
.section-projects .container {
  position: relative;
}
.section-projects .container h1, .section-projects .container h2 {
  text-align: center;
}
.section-projects .container .projects {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  grid-gap: 20px;
}
.section-projects .container .projects a.proj {
  width: calc(33% - 14px);
  border-top: 5px solid var(--primary);
  text-decoration: none;
  position: relative;
}
.section-projects .container .projects a.proj > div {
  border-radius: 0 0 0 10px;
  position: relative;
  padding: 20px;
  overflow: hidden;
  aspect-ratio: 1.2;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}
.section-projects .container .projects a.proj > div .bg {
  position: absolute;
  inset: 0;
  background-color: var(--black);
}
.section-projects .container .projects a.proj > div .bg img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  opacity: 0.75;
  transition: all 0.2s;
}
.section-projects .container .projects a.proj > div h3 {
  color: var(--white);
  font-size: 1.5em;
  transition: all 0.1s;
  margin: 0;
  padding-right: 50px;
  position: relative;
}
.section-projects .container .projects a.proj > div h3:after {
  content: "";
  position: absolute;
  top: 5px;
  left: 90%;
  height: 20px;
  width: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  background-image: url("/wp-content/uploads/2026/05/arrow.png");
  transition: all 0.2s;
  filter: brightness(0) invert(1);
}
.section-projects .container .projects a.proj > div .keywords {
  align-self: flex-end;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  grid-gap: 5px;
}
.section-projects .container .projects a.proj > div .keywords span {
  color: var(--white);
  font-size: 0.8em;
  padding: 3px 6px;
  border-radius: 20px;
  border: 1px solid var(--white);
  font-weight: 400;
  white-space: nowrap;
  opacity: 0.8;
}
.section-projects .container .projects a.proj > .link {
  position: relative;
  margin: 12px 20px 0;
  font-weight: 500;
  font-size: 1.1em;
  color: var(--black);
}
.section-projects .container .projects a.proj > .link:after {
  content: "";
  position: absolute;
  top: 5px;
  left: 90%;
  height: 20px;
  width: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  background-image: url("/wp-content/uploads/2026/05/arrow.png");
  transition: all 0.2s;
}
.section-projects .container .projects a.proj:hover > div .bg img {
  opacity: 0.5;
}
.section-projects .container .projects a.proj:hover > div h3:after {
  left: 92%;
}
.section-projects .container .projects a.proj:hover > .link:after {
  left: 92%;
}
.section-projects .container .pagination {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}
.section-projects .container .pagination .inner {
  display: flex;
  justify-content: center;
  align-items: center;
  grid-gap: 10px;
  position: relative;
  padding: 1rem;
}
.section-projects .container .pagination .inner:before, .section-projects .container .pagination .inner:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background-color: #f2f2f2;
  border-radius: 100%;
}
.section-projects .container .pagination .inner:after {
  top: unset;
  bottom: 0;
}
.section-projects .container .pagination span {
  width: 40px;
  height: 40px;
  border-radius: 100%;
  background-color: var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--white);
  font-weight: 500;
}
.section-projects .container .pagination a {
  width: 35px;
  height: 35px;
  border-radius: 100%;
  background-color: #f2f2f2;
  border: 1px solid #f2f2f2;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--black);
  text-decoration: none;
  transition: all 0.1s;
}
.section-projects .container .pagination a:hover {
  background-color: var(--secondary);
  border: 1px solid var(--secondary);
  color: var(--white);
}
.section-projects .container .pagination :is(a.next, a.prev) {
  background: none;
  border: 1px solid #e9e9e9;
}
.section-projects .container .pagination :is(a.next, a.prev) svg path {
  fill: var(--primary);
}
.section-projects .container .pagination :is(a.next, a.prev):hover {
  border: 1px solid var(--primary);
}
.section-projects .container .buttons {
  justify-content: center;
  margin-top: 75px;
}

@media (max-width: 1100px) {
  .section-projects .container .projects a.proj {
    width: calc(50% - 10px);
  }
}
@media (max-width: 700px) {
  .section-projects .container .projects a.proj {
    width: 100%;
  }
  .section-projects .container .projects a.proj > div {
    aspect-ratio: 2;
  }
}
@media (max-width: 500px) {
  .section-projects .container .projects a.proj > div {
    aspect-ratio: 1.5;
  }
}
/*

Options > Show as cat page list, show as carousel

*/
.section-projects[options~=show-as-cat-page-list] .container .projects a.proj,
.section-projects[options~=show-as-carousel] .container .projects a.proj {
  border-top: 0;
}
.section-projects[options~=show-as-cat-page-list] .container .projects a.proj .image,
.section-projects[options~=show-as-carousel] .container .projects a.proj .image {
  padding: 0;
  background-color: var(--primary);
  border-radius: 10px;
  overflow: hidden;
}
.section-projects[options~=show-as-cat-page-list] .container .projects a.proj .image img,
.section-projects[options~=show-as-carousel] .container .projects a.proj .image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: all 0.2s;
}
.section-projects[options~=show-as-cat-page-list] .container .projects a.proj .content,
.section-projects[options~=show-as-carousel] .container .projects a.proj .content {
  padding: 20px 40px 0 20px;
  aspect-ratio: unset;
  position: relative;
}
.section-projects[options~=show-as-cat-page-list] .container .projects a.proj .content:after,
.section-projects[options~=show-as-carousel] .container .projects a.proj .content:after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 5%;
  height: 20px;
  width: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  background-image: url("/wp-content/uploads/2026/05/arrow.png");
  transition: all 0.2s;
  filter: brightness(0);
  opacity: 0.5;
}
.section-projects[options~=show-as-cat-page-list] .container .projects a.proj .content h3,
.section-projects[options~=show-as-carousel] .container .projects a.proj .content h3 {
  color: var(--black);
  margin-bottom: 10px;
  padding-right: 0;
}
.section-projects[options~=show-as-cat-page-list] .container .projects a.proj .content h3:after,
.section-projects[options~=show-as-carousel] .container .projects a.proj .content h3:after {
  display: none;
}
.section-projects[options~=show-as-cat-page-list] .container .projects a.proj .content p,
.section-projects[options~=show-as-carousel] .container .projects a.proj .content p {
  margin-bottom: 0;
  color: var(--black);
  width: 100%;
}
.section-projects[options~=show-as-cat-page-list] .container .projects a.proj:hover .image img,
.section-projects[options~=show-as-carousel] .container .projects a.proj:hover .image img {
  transform: scale(1.05);
  opacity: 0.5;
}
.section-projects[options~=show-as-cat-page-list] .container .projects a.proj:hover .content:after,
.section-projects[options~=show-as-carousel] .container .projects a.proj:hover .content:after {
  right: 0;
  filter: unset;
  opacity: 1;
}

/*

Options > Show as carousel

*/
.section-projects[options~=show-as-carousel] .container .projects {
  overflow: hidden;
  justify-content: flex-start;
}
.section-projects[options~=show-as-carousel] .container .projects .inner {
  display: flex;
  align-items: flex-start;
  grid-gap: 20px;
  transition: all 1s;
}
.section-projects[options~=show-as-carousel] .container .projects .inner a.proj {
  width: 50vw;
}
.section-projects[options~=show-as-carousel] .container .projects .inner a.proj .image {
  aspect-ratio: 2;
}
.section-projects[options~=show-as-carousel] .container .projects .inner a.proj .content h3 {
  width: 100%;
}
.section-projects[options~=show-as-carousel] .container .projects .arrows > div {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--white);
  border: 1px solid var(--black);
  width: 25px;
  height: 25px;
  border-radius: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s;
}
.section-projects[options~=show-as-carousel] .container .projects .arrows > div.prev {
  left: -12px;
}
.section-projects[options~=show-as-carousel] .container .projects .arrows > div.next {
  right: -12px;
}
.section-projects[options~=show-as-carousel] .container .projects .arrows > div svg {
  width: 18px;
}
.section-projects[options~=show-as-carousel] .container .projects .arrows > div:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/*

Options > Show filters

*/
.section-projects[options~=show-filters] .container .filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  grid-gap: 10px;
  max-width: 900px;
  margin: 0 auto 25px;
}
.section-projects[options~=show-filters] .container .filters a {
  color: var(--black);
  font-weight: 400;
  border: 1px solid;
  padding: 8px 12px;
  font-size: 0.9em;
}
.section-projects[options~=show-filters] .container .filters a:hover {
  text-decoration: none;
  background-color: var(--gray);
}
.section-projects[options~=show-filters] .container .filters a.active {
  background-color: var(--gray);
}

/*

Scroll Animations

*/
.section-projects.scrolled-to .block:nth-child(1) {
  animation: block1 0.5s forwards;
}
.section-projects.scrolled-to .block:nth-child(2) {
  animation: block2 0.6s forwards;
}
.section-projects.scrolled-to .block:nth-child(3) {
  animation: block3 0.7s forwards;
}
.section-projects.scrolled-to .block:nth-child(4) {
  animation: block4 0.8s forwards;
}
.section-projects.scrolled-to .block:nth-child(5) {
  animation: block5 0.9s forwards;
}
.section-projects.scrolled-to .block:nth-child(6) {
  animation: block6 1s forwards;
}
.section-projects.scrolled-to .block:nth-child(7) {
  animation: block7 1.1s forwards;
}
.section-projects.scrolled-to .block:nth-child(8) {
  animation: block8 1.2s forwards;
}
.section-projects.scrolled-to .block:nth-child(9) {
  animation: block9 1.3s forwards;
}
.section-projects.scrolled-to .block:nth-child(10) {
  animation: block10 1.4s forwards;
}
.section-projects.scrolled-to .block:nth-child(11) {
  animation: block11 1.5s forwards;
}
.section-projects.scrolled-to .block:nth-child(12) {
  animation: block12 1.6s forwards;
}
.section-projects.scrolled-to .block:nth-child(13) {
  animation: block12 1.7s forwards;
}
.section-projects.scrolled-to .block:nth-child(14) {
  animation: block12 1.8s forwards;
}
.section-projects.scrolled-to .block:nth-child(15) {
  animation: block12 1.9s forwards;
}
.section-projects.scrolled-to .block:nth-child(16) {
  animation: block12 2s forwards;
}
.section-projects.scrolled-to .block:nth-child(17) {
  animation: block12 2.1s forwards;
}
.section-projects.scrolled-to .block:nth-child(18) {
  animation: block12 2.2s forwards;
}
.section-projects.scrolled-to .block {
  animation: block13 2.3s forwards;
}

@keyframes block1 {
  from {
    margin: -50px 0 50px;
    opacity: 0;
  }
  to {
    margin: 0;
    opacity: 1;
  }
}
@keyframes block2 {
  0%, 20% {
    margin: -50px 0 50px;
    opacity: 0;
  }
  100% {
    margin: 0;
    opacity: 1;
  }
}
@keyframes block3 {
  0%, 33% {
    margin: -50px 0 50px;
    opacity: 0;
  }
  100% {
    margin: 0;
    opacity: 1;
  }
}
@keyframes block4 {
  0%, 43% {
    margin: -50px 0 50px;
    opacity: 0;
  }
  100% {
    margin: 0;
    opacity: 1;
  }
}
@keyframes block5 {
  0%, 50% {
    margin: -50px 0 50px;
    opacity: 0;
  }
  100% {
    margin: 0;
    opacity: 1;
  }
}
@keyframes block6 {
  0%, 55% {
    margin: -50px 0 50px;
    opacity: 0;
  }
  100% {
    margin: 0;
    opacity: 1;
  }
}
@keyframes block7 {
  0%, 60% {
    margin: -50px 0 50px;
    opacity: 0;
  }
  100% {
    margin: 0;
    opacity: 1;
  }
}
@keyframes block8 {
  0%, 64% {
    margin: -50px 0 50px;
    opacity: 0;
  }
  100% {
    margin: 0;
    opacity: 1;
  }
}
@keyframes block9 {
  0%, 67% {
    margin: -50px 0 50px;
    opacity: 0;
  }
  100% {
    margin: 0;
    opacity: 1;
  }
}
@keyframes block10 {
  0%, 70% {
    margin: -50px 0 50px;
    opacity: 0;
  }
  100% {
    margin: 0;
    opacity: 1;
  }
}
@keyframes block11 {
  0%, 72% {
    margin: -50px 0 50px;
    opacity: 0;
  }
  100% {
    margin: 0;
    opacity: 1;
  }
}
@keyframes block12 {
  0%, 74% {
    margin: -50px 0 50px;
    opacity: 0;
  }
  100% {
    margin: 0;
    opacity: 1;
  }
}
@keyframes block13 {
  0%, 75% {
    margin: -50px 0 50px;
    opacity: 0;
  }
  100% {
    margin: 0;
    opacity: 1;
  }
}