.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3,
.editor-styles-wrapper h4,
.editor-styles-wrapper h5,
.editor-styles-wrapper h6 {
  line-height: 1.4;
  font-weight: bold;
  margin-top: 1.5em;
  margin-bottom: var(--heading-margin);
}

.editor-styles-wrapper h1,
.editor-styles-wrapper .font-size-h1 {
  font-size: var(--wve-h1-size);
}

.editor-styles-wrapper h2,
.editor-styles-wrapper .font-size-h2 {
  font-size: var(--wve-h2-size);
}

.editor-styles-wrapper h3,
.editor-styles-wrapper .font-size-h3 {
  font-size: var(--wve-h3-size);
}

.editor-styles-wrapper h4,
.editor-styles-wrapper .font-size-h4 {
  font-size: var(--wve-h4-size);
}

.editor-styles-wrapper h5,
.editor-styles-wrapper .font-size-h5 {
  font-size: var(--wve-h5-size);
}

.editor-styles-wrapper h6,
.editor-styles-wrapper .font-size-h6 {
  font-size: var(--wve-h6-size);
}


/* POSTS LIST */

.wve-block-posts-list {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: flex-start;
  gap: 1em;
}
.wve-block-posts-list.show-excerpt,
.wve-block-posts-list.show-date,
.wve-block-posts-list.show-images {
  gap: 2em;
}

.wve-block-posts-list .wve-post-item {
  width: 100%;
  position: relative;
  transition: all 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.wve-block-posts-list.simple-list {
  padding-left: 18px;
}
.wve-block-posts-list.simple-list .wve-post-item::before {
  content: "\2022";
  position: absolute;
  left: -18px;
}

.wve-post-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}


.wve-block-posts-list .wve-post-title {
  font-size: var(--wve-heading-font-size);
}


.wve-block-posts-list.side-image .wve-post-item {
  flex-direction: row;
}
.wve-block-posts-list.columns-1 .wve-post-item,
.wve-block-posts-list.columns-2 .wve-post-item,
.wve-block-posts-list.columns-3 .wve-post-item {
  width: 100%;
}

@media (min-width: 768px) {
  .wve-block-posts-list {
    gap: 0.5em;
  }
  .wve-block-posts-list.columns-2 .wve-post-item {
    width: calc((100% - 2em)/2);
  }
  .wve-block-posts-list.columns-3 .wve-post-item {
    width: calc((100% - 2em)/2);
  }
}

@media (min-width: 1280px) {
  .wve-block-posts-list.columns-3 .wve-post-item {
    width: calc((100% - 4em)/3);
  }
}


/* FEATURED IMAGE */

:where(figure) {
  margin: 0;
}

.wve-featured-image {
  position: relative;
  line-height: 1;
  height: auto;
  overflow: visible;
  margin-bottom: 2em;
}

.wve-featured-image img {
  border-radius: var(--wve-border-radius);
  height: 100%;
  width: auto;
}

.wve-featured-image .wve-post-categories {
  position: absolute;
  bottom: 14px;
  left: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.wve-featured-image .wp-post-image {
  width: 100%;
  max-height: 470px;
  -o-object-fit: cover;
  object-fit: cover;
}

.wve-featured-image .wp-caption-text {
  color: var(--wve-secondary-text-color);
  font-size: 14px;
  margin-top: 0.3em;
}

.wve-block-posts-list .wve-featured-image {
  margin-bottom: 0;
  overflow: hidden;
}
.wve-block-posts-list .wve-featured-image,
.wve-block-posts-list .wve-featured-image .wp-post-image {
  height: 200px;
  max-height: 200px;
}

.wve-block-posts-list.side-image .wve-featured-image,
.wve-block-posts-list.side-image .wve-featured-image .wp-post-image {
  width: 100px;
  max-width: 100px;
  min-width: 100px;
  height: 80px;
  max-height: 80px;
}

.wve-block-posts-list .wve-featured-image::before {
  content: "";
  position: absolute;
  border-radius: var(--wve-border-radius);
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    rgba(255, 0, 0, 0),
    rgba(0, 0, 0, 0.3) 80%
  );
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  pointer-events: none;
}

.wve-block-posts-list .post:hover .wve-featured-image::before {
  opacity: 1;
}

.home .wve-featured-image {
  height: 140px;
}
.home .wve-featured-image .wp-post-image {
  max-height: 140px;
}

/* BADGE CATEGORIES */

.wve-block-posts-list .wve-post-categories a {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.editor-styles-wrapper .wve-block-posts-list .wve-post-categories a {
  color: var(--wve-white);
  text-decoration: none;
  font-weight: normal;
}



/* TITLE */

.wve-post-title,
.editor-styles-wrapper .wve-post-title {
  font-size: var(--wve-h6-size, 16px);
  font-weight: bold;
  line-height: 1.2;
  color: var(--wve-primary-text-color, #000000);
  text-decoration: none;
  margin: 0;
  display: block;
}

a.wve-post-title:hover, a.wve-post-title:focus,
.editor-styles-wrapper a.wve-post-title:hover,
.editor-styles-wrapper a.wve-post-title:focus {
  color: var(--wve-primary-color);
  text-decoration: underline;
}


/* EXCERPT */

.wve-post-excerpt {
  color: var(--wve-secondary-text-color);
  font-size: var(--wve-secondary-font-size);
}

.wve-post-excerpt p {
  margin-bottom: 0;
}

/* META */

.wve-post-meta {
  color: var(--wve-secondary-text-color);
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  font-size: var(--wve-secondary-font-size);
  gap: 1em;
}

.wve-post-meta li {
  margin: 0;
  padding: 0;
}

.wve-post-meta img.icon {
  filter: var(--wve-filter-green);
}

.wve-post-meta a {
  font-weight: normal;
  color: var(--wve-secondary-text-color) !important;
  text-decoration: none;
}
.wve-post-meta a:hover, .wve-post-meta a:focus {
  color: var(--wve-primary-color) !important;
  text-decoration: underline;
}

/* READ MORE */

.btn-read-more {
  color: var(--wve-primary-color) !important;
}

.btn-read-more img.icon {
  filter: var(--wve-filter-green);
}


/* HIGHLIGHT */

.wve-block-posts-list.highlight .wve-post-item .wve-post-inner {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 40px;
  width: 60%;
}

.wve-block-posts-list.highlight .wve-featured-image,
.wve-block-posts-list.highlight .wve-featured-image .wp-post-image {
  height: 500px;
  max-height: 500px;
}

.wve-block-posts-list.highlight .wve-featured-image::before {
  background:rgba(0, 0, 0, 0.4);
  opacity: 1;
}

.wve-block-posts-list.highlight .wve-post-title,
.editor-styles-wrapper .wve-block-posts-list.highlight .wve-post-title {
  font-size: var(--wve-h1-size);
  color: var(--wve-white);
}

.editor-styles-wrapper .wve-block-posts-list.highlight a.wve-post-title:hover,
.editor-styles-wrapper .wve-block-posts-list.highlight a.wve-post-title:focus {
  color: var(--wve-white);
  text-decoration: underline;
}


.wve-block-posts-list.highlight .wve-post-meta {
  color: var(--wve-white);
}

.wve-block-posts-list.highlight .wve-post-meta img.icon {
  filter: var(--wve-filter-white);
}



/* YOAST SEO */

ul.wp-block-yoast-seo-related-links {
  padding: 15px 20px;
  border-radius: var(--wve-border-radius);
  border: 1px solid var(--wve-gray);
}

.wp-block-yoast-seo-related-links li {
  margin-left: 25px;
  margin-bottom: 0.5em;
}

.wp-block-yoast-seo-related-links li:first-child {
  list-style: none;
  padding: 0px;
  margin: 0px;
  margin-bottom: 0.5em;
  font-weight: 700;
  font-size: var(--wve-primary-text-font-size);
}

.wp-block-yoast-seo-related-links a {
  text-decoration: underline;
}

ul.wp-block-yoast-seo-related-links.yoast-seo-related-links {
  margin: 30px 0px;
}


