.section-blog_posts {
  margin: 5rem 0;
}
.section-blog_posts .container .content img.heading-icon {
  width: 30px;
  margin: 0 auto 25px;
  display: block;
}
.section-blog_posts .container .content h1, .section-blog_posts .container .content h2 {
  max-width: 600px;
  margin: 0 auto 25px;
  text-align: center;
  font-size: 3.5em;
  font-weight: 700;
}

/*

Posts

*/
.section-blog_posts .blog-posts {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 4rem;
  grid-gap: 32px;
}
.section-blog_posts .blog-posts p.no-results {
  text-align: center;
  font-style: italic;
  margin: 0 auto 1rem;
}
.section-blog_posts .blog-posts .post {
  color: var(--black);
  background-color: var(--white);
  text-decoration: none;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  padding: 5px;
  flex: 1 0 calc(33% - 20px);
}
.section-blog_posts .blog-posts .post .image {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.section-blog_posts .blog-posts .post .image img {
  width: 100%;
  display: block;
  aspect-ratio: 1.2;
  -o-object-fit: cover;
     object-fit: cover;
  transition: all 1s;
  max-height: 300px;
}
.section-blog_posts .blog-posts .post .text {
  padding: 30px;
  text-align: left;
}
.section-blog_posts .blog-posts .post .text *:first-child {
  margin-top: 0;
}
.section-blog_posts .blog-posts .post .text *:last-child {
  margin-bottom: 0;
}
.section-blog_posts .blog-posts .post .text .date {
  display: flex;
  align-items: center;
  color: var(--gray);
  margin: 0 0 15px;
  position: relative;
  font-size: 0.8em;
  font-weight: 500;
  color: var(--primary);
}
.section-blog_posts .blog-posts .post .text .date img {
  margin-right: 10px;
  width: 15px;
}
.section-blog_posts .blog-posts .post .text p.title {
  font-size: 1.3em;
  margin: 0 0 15px;
  transition: all 0.5s;
  font-weight: 600;
}
.section-blog_posts .blog-posts .post .text p.description {
  font-size: 0.9em;
}
.section-blog_posts .blog-posts .post .text p.button {
  margin: 20px 0 0 0;
  width: -moz-max-content;
  width: max-content;
  padding: 0;
  color: var(--primary);
}
.section-blog_posts .blog-posts .post:hover .image img {
  transform: scale(1.2);
}
.section-blog_posts .blog-posts .post:hover .text p.title {
  color: var(--primary);
}

@media (max-width: 820px) {
  .section-blog_posts .blog-posts .post {
    flex: 1 0 calc(50% - 20px);
  }
}
@media (max-width: 600px) {
  .section-blog_posts .blog-posts .post {
    flex: 1 0 100%;
  }
}
/*

Posts - More than 1

*/
.section-blog_posts .blog-posts[count=All] {
  justify-content: space-between;
}
.section-blog_posts .blog-posts[count=All] .post {
  width: calc(33% - 15px);
  flex-direction: column;
  margin-bottom: 30px;
}
.section-blog_posts .blog-posts[count=All] .post .image {
  width: 100%;
}
.section-blog_posts .blog-posts[count=All] .post .text {
  width: 100%;
  padding: 40px;
}
.section-blog_posts .blog-posts[count=All] .post .text .inner p.title {
  font-size: 1.6em;
}

@media (max-width: 1000px) {
  .section-blog_posts .blog-posts[count=All] .post {
    width: calc(50% - 15px);
  }
}
@media (max-width: 750px) {
  .section-blog_posts .blog-posts[count=All] .post {
    width: 100%;
  }
  .section-blog_posts .blog-posts[count=All] .post .image {
    max-height: 300px;
  }
}
/*

Posts - Pagination

*/
.section-blog_posts .pagination {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}
.section-blog_posts .pagination .inner {
  display: flex;
  justify-content: center;
  align-items: center;
  grid-gap: 10px;
  position: relative;
  padding: 1rem;
}
.section-blog_posts .pagination .inner:before, .section-blog_posts .pagination .inner:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background-color: #f2f2f2;
  border-radius: 100%;
}
.section-blog_posts .pagination .inner:after {
  top: unset;
  bottom: 0;
}
.section-blog_posts .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-blog_posts .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-blog_posts .pagination a:hover {
  background-color: var(--secondary);
  border: 1px solid var(--secondary);
  color: var(--white);
}
.section-blog_posts .pagination :is(a.next, a.prev) {
  background: none;
  border: 1px solid #e9e9e9;
}
.section-blog_posts .pagination :is(a.next, a.prev) svg path {
  fill: var(--primary);
}
.section-blog_posts .pagination :is(a.next, a.prev):hover {
  border: 1px solid var(--primary);
}

/*

Blog page

*/
.section-blog_posts[blog-page] h2 {
  text-align: center;
}
.section-blog_posts[blog-page] .container {
  max-width: 900px;
}

/*

Loading transitions

*/
/* Posts */
.section-blog_posts .container .content .blog-posts {
  margin-top: -5rem;
  margin-bottom: 7rem;
  opacity: 0;
}

.section-blog_posts.scrolled-to .container .content .blog-posts {
  animation: blogPosts 1.5s forwards;
}

@keyframes blogPosts {
  0%, 30% {
    margin-top: -5rem;
    margin-bottom: 7rem;
    opacity: 0;
  }
  100% {
    margin-top: 1rem;
    margin-bottom: 0;
    opacity: 1;
  }
}