.section-projects {
  margin: 7rem 0;
}
.section-projects .container .content h1, .section-projects .container .content h2 {
  max-width: 800px;
  margin: 0 auto 25px;
  text-align: center;
}
.section-projects .container .content .text {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
}
.section-projects .container .posts {
  margin-top: 50px;
}
.section-projects .container .posts .no-results {
  text-align: center;
  margin: 0 auto;
}
.section-projects .container .posts .post {
  transition: all 0.4s;
  background-color: var(--primary-brighter);
}
.section-projects .container .posts .post a h3 {
  transition: all 0.1s;
  color: var(--black);
}
.section-projects .container .posts .post a h3:hover {
  color: var(--primary);
}
.section-projects .container .posts .post a.button.plain-text {
  color: var(--primary);
}
.section-projects .container .posts .post a.button.plain-text:hover {
  color: var(--black);
}
.section-projects .container .posts .post:has(a:hover) {
  box-shadow: 0 0 50px rgba(var(--primary-rgb), 0.4);
}
.section-projects .container .posts .post:has(a.button:hover) {
  box-shadow: 0 30px 50px rgba(var(--primary-rgb), 0.4);
}
.section-projects .container .posts .pagination {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  grid-gap: 10px;
  margin-top: 15px;
}
.section-projects .container .posts .pagination a {
  padding: 2px;
  font-weight: 400;
}
.section-projects .container .posts .pagination a.active {
  font-weight: 600;
}
.section-projects .container .posts .pagination a svg {
  width: 8px;
  opacity: 0.75;
}
.section-projects .container .posts .pagination a:hover svg {
  opacity: 1;
}

/*

Posts

*/

.section-projects .posts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  grid-gap: 20px;
}
.section-projects .posts .post {
  width: calc(33% - 14px);
  background-color: var(--primary-brighter);
  padding: 5px;
  border-radius: 20px;
  padding: 8px;
  box-shadow: none !important;
  display: flex;
  flex-wrap: wrap;
}
.section-projects .posts .post .image {
  width: 100%;
  height: 175px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--white);
  align-self: stretch;
  border-radius: 15px 15px 0 0;
}
.section-projects .posts .post .image img {
  margin: 0 auto;
  max-width: 225px;
  max-height: 75px;
}
.section-projects .posts .post .content {
  padding: 20px 12px 12px;
  display: flex;
  flex-wrap: wrap;
  height: calc(100% - 175px);
}
.section-projects .posts .post .content *:first-child { margin-top: 0; }
.section-projects .posts .post .content h3 {
  margin: 0 0 20px;
  font-size: 2em;
  font-weight: 600;
}
.section-projects .posts .post .content p {
  width: 100%;
}
.section-projects .posts .post .content .buttons {
  justify-content: flex-start;
  margin-top: 25px;
  align-self: flex-end;
}
.section-projects .posts .post .content .buttons a {
  cursor: pointer;
  padding: 8px 20px;
  font-size: .84em;
}
.section-projects .posts .post .modal-content {
  display: none;
}
@media (max-width: 900px) {
  .section-projects .posts .post { width: calc(50% - 10px); }
}
@media (max-width: 700px) {
  .section-projects .posts .post { width: 100%; }
  .section-projects .posts .post .image img { max-width: 250px; max-height: 100px; }
}

/*

Modal

*/

.project-modal {
  background-color: rgba(0,0,0,.5);
  backdrop-filter: blur(5px);
}
.project-modal .close {
  position: absolute;
  top: 0;
  right: 0;
  padding: 10px 20px;
  cursor: pointer;
}
.project-modal .close svg {
  width: 35px;
}
.project-modal .close svg path {
  fill: var(--white);
}
.project-modal .container {
  background-color: var(--black);
  display: flex;
  max-width: 90vw;
  grid-gap: 200px;
  position: relative;
  flex-wrap: wrap;
  overflow-y: auto;
}
.project-modal .col {
  width: calc(40% - 100px);
  position: relative;
}
.project-modal .col ~ .col {
  width: calc(60% - 100px);
}
.project-modal .col-centered {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.project-modal .rounded-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.project-modal .rounded-bg {
  position: absolute;
  height: 180%;
  width: calc(40% + 50px);
  top: -40%;
  overflow: hidden;
  border-radius: 0 50% 50% 0;
  z-index: 1;
}
.project-modal .rounded-bg::after {
  content: '';
  background-color: rgba(255,255,255,.9);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 300%;
  aspect-ratio: 1;
  right: 0;
}
.project-modal .rounded-bg img {
  display: block;
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.project-modal .logo {
  display: none;
  position: relative;
  z-index: 2;
  margin: 40px 0 40px 30px;
  max-width: 200px;
}
.project-modal .description {
  color: var(--black);
  position: relative;
  z-index: 2;
  margin-left: 30px;
}
.project-modal .description h3 {
  color: var(--black);
  position: relative;
  z-index: 2;
  font-size: 1.1em;
  line-height: 1.5em;
}
.project-modal .headline {
  background-color: var(--primary);
  color: var(--white);
  padding: 30px;
  text-align: right;
  width: 200%;
  margin-left: -100%;
}
.project-modal .headline h3 {
  margin: 0;
  font-size: 2em;
}
.project-modal .details {
  color: var(--white);
  position: relative;
  z-index: 2;
  padding: 30px 30px 30px 0;
}
.project-modal .details .button {
  width: max-content;
  margin: -50px 0 0 auto;
}
@media (max-width: 1200px) {
  .project-modal .container { grid-gap: 100px; }
  .project-modal .col { width: calc(40% - 50px); }
  .project-modal .col ~ .col { width: calc(60% - 50px); }
  .project-modal .rounded-bg { width: 40%; }
  .project-modal .headline h3 { font-size: 1.5em; }
}
@media (max-width: 800px) {
  .project-modal .container { grid-gap: 25px; background-color: var(--white); }
  .project-modal .col { width: 100% !important; }
  .project-modal .rounded-bg-container { display: none; }
  .project-modal .headline { width: 100%; margin-left: unset; text-align: left; }
  .project-modal .description { margin-left: unset; padding: 0 30px; }
  .project-modal .details { color: var(--black); padding: 30px; }
  .project-modal .details .button { margin-top: 40px; }
}

/*

Options - Background Primary

*/
.section-projects[options~=background-primary] {
  background-color: var(--primary);
  margin: 0;
  padding: 7rem 0;
  color: var(--white);
}
.section-projects[options~=background-primary] .subheading {
  color: var(--white);
  background-color: rgba(var(--black-rgb), 0.2);
}
.section-projects[options~=background-primary] .container .posts .post {
  background-color: var(--white);
}
.section-projects[options~=background-primary] .container .posts .post:has(a:hover) {
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.2);
}
.section-projects[options~=background-primary] .container .posts .post:has(a.button:hover) {
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.2);
}

/*

Options - Background Secondary

*/
.section-projects[options~=background-secondary] {
  background-color: var(--secondary);
  margin: 0;
  padding: 7rem 0;
  color: var(--white);
}
.section-projects[options~=background-secondary] .subheading {
  color: var(--white);
  background-color: rgba(var(--black-rgb), 0.2);
}
.section-projects[options~=background-secondary] .container .posts .post {
  background-color: var(--white);
}
.section-projects[options~=background-secondary] .container .posts .post:has(a:hover) {
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.2);
}
.section-projects[options~=background-secondary] .container .posts .post:has(a.button:hover) {
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.2);
}

/*

Options - Background Gradient

*/
.section-projects[options~=background-gradient] {
  background-image: var(--background-gradient-primary);
  margin: 0;
  padding: 7rem 0;
}
.section-projects[options~=background-gradient] .container .posts .post {
  background-color: var(--white);
}

/*

Options - Background Gradient Secondary

*/
.section-projects[options~=background-gradient-secondary] {
  background-image: var(--background-gradient-secondary);
  margin: 0;
  padding: 7rem 0;
}
.section-projects[options~=background-gradient-secondary] .subheading {
  color: var(--secondary);
  background-color: rgba(var(--secondary-rgb), 0.2);
}
.section-projects[options~=background-gradient-secondary] .container .posts .post {
  background-color: var(--white);
}

/*

Scroll Animations (applied to all)

*/
.section-projects {
  opacity: 0;
  transition: all 1s;
}
.section-projects :is(.block, .post) {
  opacity: 0;
}
.section-projects.scrolled-to {
  opacity: 1;
}
.section-projects.scrolled-to :is(.block, .post) {
  animation: projects 1s forwards;
}
.section-projects.scrolled-to :is(.block, .post):nth-child(1) {
  animation-delay: 0s !important;
}
.section-projects.scrolled-to :is(.block, .post):nth-child(2) {
  animation-delay: 0.2s !important;
}
.section-projects.scrolled-to :is(.block, .post):nth-child(3) {
  animation-delay: 0.4s !important;
}
.section-projects.scrolled-to :is(.block, .post):nth-child(4) {
  animation-delay: 0.6s !important;
}
.section-projects.scrolled-to :is(.block, .post):nth-child(5) {
  animation-delay: 0.8s !important;
}
.section-projects.scrolled-to :is(.block, .post):nth-child(6) {
  animation-delay: 1s !important;
}
.section-projects.scrolled-to :is(.block, .post):nth-child(7) {
  animation-delay: 1.2s !important;
}
.section-projects.scrolled-to :is(.block, .post):nth-child(8) {
  animation-delay: 1.4s !important;
}
.section-projects.scrolled-to :is(.block, .post):nth-child(9) {
  animation-delay: 1.6s !important;
}
.section-projects.scrolled-to :is(.block, .post):nth-child(10) {
  animation-delay: 1.8s !important;
}
.section-projects.scrolled-to :is(.block, .post):nth-child(11) {
  animation-delay: 2s !important;
}
.section-projects.scrolled-to :is(.block, .post):nth-child(12) {
  animation-delay: 2.2s !important;
}
@keyframes projects {
  to {
    margin: 0;
    opacity: 1;
  }
}