.wp-block-firsttracks-page-section.is-post-carousel {
  padding: 3rem 1rem;
  overflow: hidden;
}
.is-post-carousel .wp-block-heading {
  font-size: 1.8125rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 1rem;
  padding: 0;
}
.is-post-carousel .wp-block-query>.wp-block-group {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  padding-top: 0;
}
.is-post-carousel .wp-block-query>.wp-block-group .wp-element-button {
  font-size: 0;
  display: inline-block;
  width: 2.5rem;
  height: 2.5rem;
  padding: .75rem 0;
  text-align: center;
}
.is-post-carousel .wp-block-query>.wp-block-group .wp-element-button span {
  font-size: 1rem;
}
.is-post-carousel .wp-block-post-template {
  display: flex;
  grid-auto-flow: column;
  grid-auto-columns: 280px;
  overflow: visible;  
  grid-template-rows: auto;
  white-space: nowrap;
  width: 100%;
  gap: 1.5rem;
  grid-template-columns: unset !important;
  scroll-snap-type: x mandatory;
  max-width: var(--wide-size);
  margin: 0 auto;
  padding: 0;
  scroll-behavior: smooth; /* Enables smooth sliding */
}

.is-post-carousel .wp-block-post-template li {
  display: block;
  scroll-snap-align: start;
  /* padding-bottom: 1.75rem; */
}
.is-post-carousel .wp-block-post-template figure {
  margin: 0 0 1rem 0;
  border-radius: 0.25rem;
  overflow: hidden;
}
.is-post-carousel .wp-block-post-template li .wp-block-post-title {
  font-size: 1.25rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1.4;
  margin: 1rem 0 0 0;
}

@media (min-width: 48em) {
  .wp-block-firsttracks-page-section.is-post-carousel {
    padding: 6.5rem 2.5rem 4rem 2.5rem;
  }
  .is-post-carousel .wp-block-query>.wp-block-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    padding-bottom: 0;
  }
  .is-post-carousel .wp-block-heading {
    font-size: 3.375rem;
    margin: 0;
    line-height: 1.2;
  }
  .is-post-carousel .wp-block-query>.wp-block-group .wp-element-button {
    width: 3rem;
    height: 3rem;
    line-height: 3rem;
  }
  .is-post-carousel .wp-block-post-template {
    grid-auto-columns: 28.75rem;
    gap: 2.5rem;
  }
  .is-post-carousel .wp-block-post-template figure {
    margin: 0 0 1.5rem 0;
  }
  .is-post-carousel .wp-block-post-template li .wp-block-post-title {
    font-size: 1.625rem;
    line-height: 1.25;
  }
}

@media (min-width: 64em) {
  .is-post-carousel .wp-block-post-template {
    grid-auto-columns: 39.5rem;
  }
}

@media (min-width: 1400px) {
  .is-post-carousel .wp-block-query>.wp-block-group {
    max-width: var(--wide-size);
  }
}

.is-post-carousel {
  display: flex;
  flex-direction: column; /* Ensures pagination stays below the slider */
  gap: 1rem; /* Adjust spacing between slider and pagination */
}

.is-post-carousel .wp-block-query {
  max-width: 100%;
}

.is-post-carousel .wp-block-post-template > li {
  flex: 0 0 100%; /* Each post takes full width */
  list-style: none;
  transition: transform 0.5s ease-in-out;
}

.is-post-carousel li.wp-block-post > .wp-block-group {
  --block-gap: 1rem;
  padding: 0;
}

.is-post-carousel .wp-block-query-pagination {
  display: flex;
  justify-content: flex-start;
  gap: 1rem; /* Spacing between navigation buttons */
}

.is-post-carousel .wp-block-query-pagination > * {
  background-color: var(--antech-rgb-white);
  color: var(--antech-rgb-antech-heritage);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 400;
  padding: 0.5rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.5s ease;
  width: 40px;
}

.is-post-carousel .wp-block-query-pagination > *:hover {
  background-color: var(--antech-rgb-antech-heritage);
  color: var(--antech-rgb-white);
}

.is-post-carousel .wp-block-query-pagination > * > span {
  margin: 0;
}

@media (min-width: 768px) {
  .is-post-carousel .wp-block-query-pagination > * {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    width: 48px;
}
}

@media (min-width: 1024px) {
  .is-post-carousel .wp-block-post-template > li {
    flex: 0 0 36%;
  }
}

@media (min-width: 1400px) {
  .is-post-carousel > .wp-block-query {
    max-width: var(--wide-size);
  }
}
