.wp-block-post:not(.kofile_team)>.wp-block-group>.wp-block-group:last-child {
  flex: 100%;
  display: flex;
  flex-direction: column;
}

.archive .wp-block-post>.wp-block-group:first-child {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.wp-block-create-block-custom-post-url a,
.wp-block-post-title a {
  text-decoration: none;
  font-weight: inherit;
  font-family: inherit;
}

.wp-block-post-excerpt {
  display: flex;
  align-items: end;
  text-align: right;
}

.wp-block-post-excerpt .wp-block-post-excerpt__excerpt {
  max-width: 80%;
}

.is-vertical .wp-block-post-excerpt,
.archive .wp-block-post-excerpt {
  align-items: start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 100%;
}

.wp-block-post-excerpt__excerpt {
  text-align: left;
}

.wp-block-post:not(.type-kofile_team) .wp-block-post-excerpt__more-text {
  margin-top: 0;
}

.is-vertical .wp-block-post-excerpt__more-text {
  align-self: end;
}

.wp-block-post-excerpt__more-link {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  text-align: left;
  text-indent: -9999px;
  overflow: hidden;
  background-color: var(--wp--preset--color--bright-green);
  transform-origin: center;
  transition: var(--transition);
}

.wp-block-post-excerpt__more-link:hover {
  background-color: #279c5d;
  transform: rotate(-45deg);
}

.wp-block-post-excerpt__more-link::before {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 14 14'%3E%3Cpath stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M.75 6.75h12m0 0-6 6m6-6-6-6'/%3E%3C/svg%3E");
  width: 12px;
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-indent: 0;
}

.wp-block-post:not(.type-kofile_team) .wp-block-post-featured-image {
  aspect-ratio: 386/240 !important;
  height: auto;
}

.wp-block-post:not(.type-kofile_team) .wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
}

/** POST GRID */
.post-grid-with-featured ul li>.wp-block-group {
  height: 100%;
}

.post-grid-with-featured ul li:first-child .wp-block-post-featured-image {
  aspect-ratio: 610/343 !important;
}

.post-grid-with-featured ul li:not(:first-child) .wp-block-post-featured-image {
  flex: 1 0 42%;
  aspect-ratio: 16/9 !important;
}

.post-grid-with-featured ul li:not(:first-child) .wp-block-post-excerpt {
  justify-content: end;
  margin: 0 !important;
}

.post-grid-with-featured ul li:not(:first-child) .wp-block-post-excerpt__more-text {
  margin: 0 !important;
}

@media screen and (min-width: 768px) {
  .post-grid-with-featured ul {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, auto);
  }

  .post-grid-with-featured ul li:first-child {
    grid-column: 1/2;
    grid-row: 1/-1;
  }

  .post-grid-with-featured ul li:not(:first-child) {
    grid-column: 2/3;
    grid-row: span 1;
  }

  .post-grid-with-featured ul li:first-child>.wp-block-group,
  body:not(.blog) .wp-block-query .wp-block-post:not(.kofile_team):not(:first-child)>.wp-block-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .post-grid-with-featured ul li:first-child .wp-block-post-featured-image,
  .archive .wp-block-query ul li:first-child .wp-block-post-featured-image {
    width: 100%;
    aspect-ratio: 630/354 !important;
  }

  .archive .wp-block-query ul li:first-child .wp-block-post-title {
    font-size: var(--wp--preset--font-size--content-head-01) !important;
  }

  .archive .wp-block-query ul li:first-child .post-card-content {
    padding-left: var(--wp--preset--spacing--regular);
  }

  .wp-block-post>.wp-block-group>.is-vertical {
    padding-left: var(--wp--preset--spacing--regular);
    margin-top: 20px;
  }

  .archive .wp-block-query ul li:first-child .post-card-content>.wp-block-group:last-child {
    margin-top: 56px;
  }

  .post-grid-with-featured ul li:not(:first-child) .wp-block-post-featured-image+.wp-block-group {
    margin: 0 !important;
  }

  .post-grid-with-featured .wp-block-post:not(.kofile_team)>.wp-block-group>.wp-block-group:last-child,
  .archive .wp-block-post:not(.kofile_team) .post-card-content>.wp-block-group:last-child {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .post-grid-with-featured ul li:not(:first-child)>.wp-block-group {
    display: flex;
    align-items: start;
    gap: 20px;
  }

  .post-grid-with-featured ul li:not(:first-child) .wp-block-post-title,
  .post-grid-with-featured ul li:not(:first-child) .wp-block-create-block-custom-post-url {
    font-size: var(--wp--preset--font-size--content-head-03) !important;
  }

  .post-grid-with-featured ul li:not(:first-child) .wp-block-post-excerpt__excerpt {
    display: none;
  }

  .post-grid-with-featured .wp-block-post:not(:first-child) .wp-block-post-excerpt__more-link {
    width: 36px;
    height: 36px;
  }
}

@media screen and (max-width: 767px) {
  .featured-post-content {
    padding: 0 !important;
    gap: 24px !important;
  }

  .wp-block-query .is-vertical>.is-vertical {
    gap: 24px !important;
  }

  .wp-block-post:not(.kofile_team) .wp-block-post-title {
    font-size: 1.375rem !important;
  }

  .post-grid-with-featured ul li:not(:first-child) .wp-block-post-excerpt {
    margin-top: 24px !important;
  }
}