.section-blog_posts {
  margin: 7rem 0;
}
.section-blog_posts .container {
  max-width: 900px;
}
.section-blog_posts .container .content h1, .section-blog_posts .container .content h2 {
  max-width: 800px;
  margin: 0 auto 25px;
  text-align: center;
}
.section-blog_posts .container .posts .block {
  display: block;
  border-radius: 15px;
  position: relative;
}
.section-blog_posts .container .posts .block.first-block {
  aspect-ratio: 2.2;
}
.section-blog_posts .container .posts .block:before {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  border-radius: 18px;
  border: 1px solid var(--black);
  transition: all 0.3s;
  visibility: hidden;
  opacity: 0;
}
.section-blog_posts .container .posts .block img {
  border-radius: 15px;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}
.section-blog_posts .container .posts .block .icon {
  position: absolute;
  top: 15px;
  right: 15px;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.5);
  background-color: var(--white);
  width: 20px;
  height: 20px;
  border-radius: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.5s;
}
.section-blog_posts .container .posts .block .icon svg {
  width: 10px;
  transition: all 0.5s;
}
.section-blog_posts .container .posts .block .icon.play svg {
  margin-left: 3px;
}
.section-blog_posts .container .posts .block:hover:before {
  visibility: visible;
  opacity: 1;
}
.section-blog_posts .container .posts .block:hover .icon {
  box-shadow: 0 0 0 5px rgb(255, 255, 255);
}
.section-blog_posts .container .posts .block:hover .icon svg {
  transform: scale(1.1);
}
.section-blog_posts .container .posts .block.first-block .icon {
  top: 25px;
  right: 25px;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.5);
  width: 40px;
  height: 40px;
}
.section-blog_posts .container .posts .block.first-block .icon svg {
  width: 20px;
}
.section-blog_posts .container .posts .block.first-block:hover .icon {
  box-shadow: 0 0 0 10px rgb(255, 255, 255);
}
.section-blog_posts .container .posts .carousel {
  margin-top: 20px;
  position: relative;
  width: 100%;
}
.section-blog_posts .container .posts .carousel .carousel-inner {
  display: flex;
  grid-gap: 20px;
  justify-content: flex-start;
  transition: all 0.5s;
}
.section-blog_posts .container .posts .carousel .carousel-inner .block {
  aspect-ratio: 1.25;
}
.section-blog_posts .container .posts .carousel .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #f2f2f2;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 100%;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s;
}
.section-blog_posts .container .posts .carousel .arrow svg {
  width: 10px;
}
.section-blog_posts .container .posts .carousel .arrow.arrow-left {
  left: -20px;
}
.section-blog_posts .container .posts .carousel .arrow.arrow-right {
  right: -20px;
}
.section-blog_posts .container .posts .carousel .arrow:hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.section-blog_posts .container .posts .carousel:not(:has(.arrow)) .carousel-inner {
  margin: 0 auto;
}

@media (max-width: 1000px) {
  .section-blog_posts .container .posts .block.first-block {
    aspect-ratio: 1.75;
  }
}
@media (max-width: 600px) {
  .section-blog_posts .container .posts .block.first-block {
    aspect-ratio: 1.4;
  }
}
/*

Options - Background Primary

*/
.section-blog_posts[options~=background-primary] {
  background-color: var(--primary);
  margin: 0;
  padding: 7rem 0;
  color: var(--white);
}
.section-blog_posts[options~=background-primary] .subheading {
  color: var(--white);
  background-color: rgba(var(--black-rgb), 0.2);
}

/*

Scroll Animations

*/
.section-blog_posts {
  opacity: 0;
  transition: all 1s;
}
.section-blog_posts .carousel .block {
  margin: 0 50px 0 -50px;
  opacity: 0;
}
.section-blog_posts.scrolled-to {
  opacity: 1;
}
.section-blog_posts.scrolled-to .carousel .block {
  animation: blogAppear 1s ease-out forwards;
}
.section-blog_posts.scrolled-to .carousel .block:nth-child(1) {
  animation-delay: 0s;
}
.section-blog_posts.scrolled-to .carousel .block:nth-child(2) {
  animation-delay: 0.2s;
}
.section-blog_posts.scrolled-to .carousel .block:nth-child(3) {
  animation-delay: 0.4s;
}
.section-blog_posts.scrolled-to .carousel .block:nth-child(4) {
  animation-delay: 0.6s;
}
.section-blog_posts.scrolled-to .carousel .block:nth-child(5) {
  animation-delay: 0.8s;
}
.section-blog_posts.scrolled-to .carousel .block:nth-child(6) {
  animation-delay: 1s;
}
.section-blog_posts.scrolled-to .carousel .block:nth-child(7) {
  animation-delay: 1.2s;
}
.section-blog_posts.scrolled-to .carousel .block:nth-child(8) {
  animation-delay: 1.4s;
}
.section-blog_posts.scrolled-to .carousel .block:nth-child(9) {
  animation-delay: 1.6s;
}
.section-blog_posts.scrolled-to .carousel .block:nth-child(10) {
  animation-delay: 1.8s;
}
.section-blog_posts.scrolled-to .carousel .block:nth-child(11) {
  animation-delay: 2s;
}
.section-blog_posts.scrolled-to .carousel .block:nth-child(12) {
  animation-delay: 2.2s;
}

@keyframes blogAppear {
  to {
    margin: 0;
    opacity: 1;
  }
}