.wp-block-latest-posts.is-style-travaux-neufs {
  display: flex;
  list-style: none;
  margin-block: 2rem;
  gap: 1rem;
  margin-inline: auto;
  overflow: auto;
  scrollbar-width: thin;
  scroll-snap-type: x mandatory;
  padding: 1rem 0;
}

@media screen and (max-width: 1080px) {
  .wp-block-latest-posts.is-style-travaux-neufs {
    padding: 1rem;
  }
}

.wp-block-latest-posts.is-style-travaux-neufs li {
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  width: 18rem;
  aspect-ratio: 3 / 4;
  flex-shrink: 0;
  scroll-snap-align: center;
  position: relative;
  border-radius: 0.25rem;
  overflow: hidden;
}

.wp-block-latest-posts.is-style-travaux-neufs
  .wp-block-latest-posts__featured-image {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.wp-block-latest-posts.is-style-travaux-neufs
  .wp-block-latest-posts__featured-image
  a {
  height: 100%;
}

.wp-block-latest-posts.is-style-travaux-neufs
  .wp-block-latest-posts__featured-image
  a::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
}

.wp-block-latest-posts.is-style-travaux-neufs
  .wp-block-latest-posts__featured-image
  a
  img {
  height: 100%;
  object-fit: cover;
  transition: 0.4s;
}

.wp-block-latest-posts.is-style-travaux-neufs
  .wp-block-latest-posts__featured-image
  a:hover
  img {
  transform: scale(1.1);
}

.wp-block-latest-posts.is-style-travaux-neufs li > a {
  color: white;
  font-weight: bold;
  text-decoration: none;
  pointer-events: none;
  position: relative;
  z-index: 2;
}
