/*
  Breakpoints (match other partials)
  sm   40rem  /  640px
  md   48rem  /  768px
  lg   64rem  / 1024px
  xl   80rem  / 1280px
  2xl  96rem  / 1536px
*/

/* ========== BASE (default / mobile) ========== */
.blogintro {
	max-width: 768px;
}
.blogheader {
  padding-left: 24px !important;
  padding-right: 24px !important;
}

.postquery {
  max-width: 1024px;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

.wp-block-post-featured-image {
  max-height: 250px !important;
  max-width: 768px !important;
  overflow: hidden !important;
  border-radius: 16px !important;
  margin-bottom: 24px !important;
}

.post-featured-image {
  margin-top: 24px !important;
}

.wp-block-post-date {
  font-family: 'Spartan', sans-serif !important;
  font-weight: 400;
  font-style: Regular;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 4%;
}

.readmore {
  outline: 0;
  font-family: 'Spartan', sans-serif !important;
}

.is-style-post-terms-1 a {
  font-family: 'Spartan', sans-serif;
  background: rgba(248, 249, 247, 1);
  padding-top: 6px;
  padding-bottom: 6px;
  padding-left: 12px;
  padding-right: 12px;
}

.postmeta {
  font-family: 'Spartan', sans-serif !important;
  font-weight: 400;
  font-style: Regular;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 4%;
  text-decoration-style: solid;
  text-decoration-thickness: 0%;
  text-decoration-skip-ink: auto;
  color: rgba(93, 97, 92, 1);
  gap: 2px;
}

.postmeta > *::after {
  content: "•";
  margin: 0 10px;
}

.postmeta > *:last-child::after {
  content: "";
}

/* Recent posts (footer / section) */
.recentpostscontent {
  flex-direction: column;
  overflow: hidden;
}

.recentpostlist ul {
  list-style: none;
  padding-left: 0;
  gap: 24px;
  display: flex;
  flex-direction: column;
}

.recentpostlist a {
  font-size: 16px;
}

.recentpostlist p {
  font-size: 12px;
  line-height: 18px;
  margin-top: 5px;
}

.recentposts {
  flex-direction: column;
  padding: 20px;
}

.recentpostsfeatured {
  flex-direction: column;
}

.latest-post-image {
  height: 100px;
  overflow: hidden;
  width: 100%;
  border-radius: 16px;
}

.latest-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recentpostsfeatured img {
  width: 100%;
}

/* Latest posts block (front page) */
.blog-section {
  padding-left: 24px;
  padding-right: 24px;
  padding-top: 48px;
  padding-bottom: 48px;
}

.blog-content {
  max-width: 1536px;
  width: 100%;
  margin-left: 24px;
  margin-right: 24px;
}

.wp-block-latest-posts__post-title {
  font-size: 1.6em;
  letter-spacing: 4%;
}

.wp-block-latest-posts__post-excerpt {
  letter-spacing: 4%;
}

.wp-block-latest-posts__list > li:nth-child(1) > a:nth-child(1) {
  font-size: 2.1em;
  letter-spacing: 4%;
}

.wp-block-latest-posts__list > li:nth-child(1) > div:nth-child(2) {
  font-size: 1.3em;
  letter-spacing: 2%;
}

.wp-block-latest-posts__featured-image {
  display: none;
}

.wp-block-latest-posts__featured-image:first-of-type {
  display: block;
  height: 7rem;
  overflow: clip;
  border-radius: 16px;
  position: absolute;
  top: 20px;
  margin-right: var(--wp--preset--spacing--30);
}

.latest-posts {
  position: relative;
}

.wp-block-latest-posts {
  padding-top: 8rem;
}

.wp-block-latest-posts__list li {
  padding-bottom: 20px;
}

.wp-block-latest-posts__featured-image img {
  width: 100%;
  object-fit: cover;
}

.wp-block-latest-posts__read-more {
  display: none;
}

.wp-block-details {
  box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.25);
  border-radius: 8px;
}

summary {
  list-style: none;
  position: relative;
  padding-right: 24px;
  outline: none;
}

/* ========== RESPONSIVE ========== */

/* --- min lg (64rem): latest posts + recent posts layout --- */
@media (min-width: 64rem) {
	.blog-section {
		padding-top: 96px;
		padding-bottom: 96px;
	  }
  .wp-block-latest-posts__post-title {
    font-size: 24px !important;
    font-family: 'Playfair Display', serif;
  }

  .latest-post-image {
    height: 280px;
    width: 280px;
    border-radius: 16px;
    overflow: hidden;
  }

  .latest-post-image img {
    height: 280px;
    width: 280px;
    object-fit: cover;
  }

  .recentpostscontent {
    flex-direction: row;
  }

  .recentposts {
    align-items: flex-start;
    flex-direction: row;
  }

  .recentpostsfeatured {
    flex-direction: row;
    height: 280px;
  }

  .recentpostlist {
    height: 270px;
    width: 50%;
    letter-spacing: 4%;
  }

  .recentpostlist ul {
    list-style: none;
    gap: 0;
  }

  .recentpostlist p {
    font-size: 12px;
    font-family: 'Spartan', sans-serif;
  }

  .recentpostlist a {
    font-size: 16px;
  }
}

