.wp-block-post-title > a {
  color: var(--wp--preset--color--spray-950);
}

.ng1-last-post__title > a:not(.wp-block-button__link):not(.wp-block-navigation-item__content) {
  color: inherit;
  text-decoration: none !important;
  line-height: 1;
}
.ng1-last-post__meta-line {
  text-transform: uppercase;
}
.ng1-last-post__category {
  text-transform: uppercase;
  color: white;
  font-size: 1.125rem;
}
.ng1-last-post__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 750px;
}
.ng1-last-post:before {
  z-index: 1;
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: calc((100vw - var(--wp--style--global--wide-size)) / 2 - 500px);
  transform: translateY(-50%); /* translateX(-50%); */
  display: block;
  height: 100%;
  aspect-ratio: 1/1;
  background-size: contain;
  /* background-image: url(img/circle-blue.svg); */
}

body.blog .ng1-last-post {
  margin-top: var(--header-height);
}

@media (max-width: 768px) {
  body.blog .ng1-last-post {
    margin-bottom: 2rem;
  }
}
body.category .ng1-last-post:after,
body.blog .ng1-last-post:after {
  z-index: 1;
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: calc((100vw - 1500px) / 2 + 325px);
  display: block;
  height: 100%;
  background-size: contain;
  background-color: var(--wp--custom--color--casablanca-300);
}

body.single.single-post .wp-site-blocks header + .wp-block-group,
body.category main,
body.blog main {
  background: linear-gradient(270deg, var(--wp--custom--color--casablanca-300) 12.92%, var(--wp--custom--color--casablanca-400) 79.89%);
}

body.blog .ng1-last-post:before,
body.category .ng1-last-post:before {
  top: 0;
  right: 0;
  left: auto;
  transform: translateY(-50%) translateX(50%);
}

@media (min-width: 768px) {
  body.single .ng1-last-post {
    margin-left: -1rem;
  }
}
body.category a:not(.wp-block-button__link):not(.wp-block-navigation-item__content),
body.blog a:not(.wp-block-button__link):not(.wp-block-navigation-item__content),
body.single a:not(.wp-block-button__link):not(.wp-block-navigation-item__content) {
  text-decoration: none !important;
}

.taxonomy-category {
  position: relative;
  z-index: 3;
}

.taxonomy-category:hover {
  background: var(--wp--preset--color--first-600);
  color: white;
  transition: all 0.5s;
}

.taxonomy-category:hover a {
  color: currentColor;
}

.ng1-last-post__content {
  padding: 2.1rem;
}
.ng1-last-post__title {
  font-size: 40px;
  line-height: 1.25;
  letter-spacing: 0.5px;
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
}
.ng1-last-post__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 960px) and (max-width: 1480px) {
  .ng1-last-post__container {
    grid-template-columns: 1fr 45%;
  }
}
@media (max-width: 960px) {
  .ng1-last-post__container {
    grid-template-columns: 1fr;
  }
}
.ng1-last-post__container {
  gap: clamp(1.5rem, 3vw, 4.5rem);
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, var(--wp--preset--color--contrast) 0%, var(--wp--preset--color--contrast) 90%, var(--wp--preset--color--base) 90%);
}
@media (max-width: 960px) {
  .ng1-last-post__container {
    background: var(--wp--preset--color--contrast);
  }
}
.ng1-last-post__container {
  color: var(--wp--preset--color--base);
  padding: 4.5rem 0;
}
@media (max-width: 960px) {
  .ng1-last-post__container {
    padding-bottom: 0;
  }
}
.ng1-last-post__thumb {
  position: relative;
  z-index: 2;
  font-size: 0;
  display: flex;
}
.ng1-last-post__thumb br {
  display: none;
}
.ng1-last-post__thumb img {
  max-width: 100% !important;
  aspect-ratio: 3/2;
  height: auto;
  -o-object-fit: cover;
     object-fit: cover;
}
.ng1-last-post__date {
  font-size: 1rem;
  color: var(--wp--preset--color--accent);
}
.ng1-last-post__excerpt {
  margin: 0;
  font-size: 1rem;
  line-height: 2;
}
.ng1-last-post__more {
  margin-top: 1.5rem;
  position: relative;
  color: var(--wp--preset--color--base);
  text-decoration: none;
  text-transform: uppercase;
  display: inline-flex;
  flex-direction: row-reverse;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4em;
  line-height: 2;
  font-weight: 600;
  transition: all 0.6s;
}
.ng1-last-post__more:before {
  font-family: piarre;
  content: "A";
}
.ng1-last-post__more:after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 1;
  transition: all 0.6s;
  background: var(--wp--preset--color--base);
}
.ng1-last-post__more:hover {
  transform: var(--scale-btn, translateX(0.6em) scale(1.1));
  color: var(--wp--preset--color--accent-2);
}
.ng1-last-post__more:hover:after {
  background: var(--wp--preset--color--accent-2);
}

body.category .wp-site-blocks .wp-block-button.is-style-outline .wp-block-button__link:hover,
body.blog .wp-site-blocks .wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--wp--preset--color--first-600) !important;
  border-color: var(--wp--preset--color--first-600) !important;
}
body.category .wp-site-blocks .wp-block-button.is-style-outline .wp-block-button__link:before,
body.blog .wp-site-blocks .wp-block-button.is-style-outline .wp-block-button__link:before {
  background-image: url(/wp-content/themes/pixelea/assets/img/fleche-bleu-blanc.svg) !important;
}

body.blog .ng1-last-post--card .ng1-last-post__title,
body.category .ng1-last-post--card .ng1-last-post__title {
  font-size: clamp(2.5rem, 4vw, 4.063rem);
  margin: 0;
  max-width: 858px;
  font-weight: 400;
}

@media (max-width: 768px) {
  body.single .ng1-last-post {
    padding-bottom: 2.5rem;
    padding-top: 1rem;
  }
  .ng1-last-post--card {
    padding-top: 1rem;
    flex-wrap: wrap;
  }
  .ng1-last-post--card .ng1-last-post__thumb img {
    width: 100%;
  }
}
body.single.single-post .is-style-section-single-header .ng1-last-post.ng1-last-post--card {
  align-items: end;
  width: 100%;
}

body.single.single-post .is-style-section-single-header .ng1-last-post.ng1-last-post--card .ng1-last-post__title {
  margin: 0;
}

@media (min-width: 768px) {
  body.single.single-post .is-style-section-single-header .ng1-last-post.ng1-last-post--card .ng1-last-post__title {
    padding-right: 2rem;
  }
}
body.single.single-post .is-style-section-single-header {
  align-items: end;
}

@media (max-width: 768px) {
  body.single.single-post .is-style-section-single-header {
    min-height: auto !important;
  }
}
body.single.single-post .is-style-section-single-header .ng1-last-post.ng1-last-post--card .ng1-last-post__thumb,
body.single.single-post .is-style-section-single-header .ng1-last-post.ng1-last-post--card .ng1-last-post__body {
  flex: 0 0 50%;
}

body.single.single-post .is-style-section-single-header .ng1-last-post.ng1-last-post--card .ng1-last-post__body {
  align-self: center;
}

@media (max-width: 768px) {
  body.single.single-post .is-style-section-single-header .ng1-last-post.ng1-last-post--card .ng1-last-post__thumb,
  body.single.single-post .is-style-section-single-header .ng1-last-post.ng1-last-post--card .ng1-last-post__body {
    flex: 0 0 100%;
  }
}
@media (min-width: 768px) and (max-width: 1768px) {
  body.single.single-post .ng1-last-post__thumb img {
    height: 1000px;
    width: auto;
    overflow: hidden;
    max-width: 50vw;
    text-align: center;
    max-height: 800px;
  }
}
@media (max-width: 768px) {
  body.single.single-post .ng1-last-post__thumb img {
    height: auto;
    -o-object-fit: cover;
       object-fit: cover;
    width: 100%;
    max-height: 800px;
    max-width: 750px;
  }
}
@media (min-width: 1768px) {
  body.single.single-post .ng1-last-post__thumb img {
    height: auto;
    -o-object-fit: cover;
       object-fit: cover;
    width: 100%;
    aspect-ratio: 6/5;
    min-width: 870px;
    max-height: 800px;
    max-width: 100%;
  }
}
.ng1-last-post {
  position: relative;
  overflow: hidden;
}
.ng1-last-post--header-article {
  display: flex;
  gap: clamp(1.5rem, 3vw, 4.5rem);
  align-items: center;
}
.ng1-last-post--header-article__thumb {
  position: relative;
  z-index: 2;
  font-size: 0;
}
.ng1-last-post--header-article__thumb img {
  width: clamp(256px, 50vw, 650px);
  aspect-ratio: 1/1;
  height: auto;
  -o-object-fit: cover;
     object-fit: cover;
}
.ng1-last-post--header-article__date {
  font-size: 0.8rem;
  color: #666;
}
.ng1-last-post--header-article__excerpt {
  margin: 0.5rem 0;
  font-size: 1.25rem;
  line-height: 1.4;
}
.ng1-last-post--header-article__more {
  font-weight: 600;
  color: #0066cc;
  text-decoration: none;
}
.ng1-last-post--header-article__more:hover {
  text-decoration: underline;
}

body.blog .ng1-last-post--header-article .ng1-last-post__title,
body.category .ng1-last-post--header-article .ng1-last-post__title {
  font-size: clamp(2.5rem, 4vw, 4.063rem);
  margin: 0;
  max-width: 858px;
  font-weight: 400;
}

@media (max-width: 768px) {
  .ng1-last-post--header-article {
    flex-wrap: wrap;
  }
  .ng1-last-post--header-article .ng1-last-post__thumb img {
    width: 100%;
  }
}
@media (max-width: 768px) {
  body.single .ng1-last-post {
    padding-bottom: 2.5rem;
    padding-top: 1rem;
  }
  .ng1-last-post--header-article {
    padding-top: 1rem;
    flex-wrap: wrap;
  }
}
.ng1-last-post--inline {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.95rem;
}
.ng1-last-post--inline__date {
  background: #eee;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #333;
}
.ng1-last-post--inline__title {
  color: #111;
  text-decoration: none;
}
.ng1-last-post--inline__title:hover {
  text-decoration: underline;
}

.fit-content {
  width: -moz-fit-content;
  width: fit-content;
}

.ng1-category-post {
  position: relative;
  overflow: hidden;
}
.ng1-category-post__link {
  font-size: 1.25rem;
  font-family: var(--wp--preset--font-family--recoleta);
  font-weight: 400;
  transition: all 0.3s ease;
  padding-right: 1em;
  padding-left: 1em;
  padding-top: var(--wp--custom--button--padding--top) !important;
  padding-bottom: var(--wp--custom--button--padding--bottom) !important;
  background-color: transparent !important;
  position: relative;
  border: 2px solid currentColor;
  text-decoration: none;
  border-radius: 2rem;
  text-wrap: nowrap;
  color: var(--wp--preset--color--first-600);
}
.ng1-category-post__link:hover, .ng1-category-post__link.active {
  background-color: var(--wp--preset--color--first-600) !important;
  border: 2px solid var(--wp--preset--color--first-600);
  color: white;
}
.ng1-category-post__items {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body .ng1-category-post__link.active:hover {
  background-color: var(--wp--custom--color--blue-800) !important;
  border: 2px solid var(--wp--custom--color--blue-800);
  color: white;
}