/* --- SCSS Variables --- */
/* These are the default WordPress Breakpoints */
/* Custom Breakpoints */
.htgf-block-carpet-of-posts {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgb(0, 0, 0) 30%, rgb(0, 0, 0) 70%, rgba(0, 0, 0, 0) 100%);
  margin-top: -4rem !important;
  position: relative;
  z-index: 0;
  justify-content: center;
  display: flex;
}
@media (min-width: 601px) {
  .has-global-padding > .htgf-block-carpet-of-posts.alignfull {
    margin-left: calc(var(--wp--style--root--padding-left) * -1);
    width: calc(100% + var(--wp--style--root--padding-right) + var(--wp--style--root--padding-left));
  }
}
@media (min-width: calc(89.125rem + 75px)) {
  .has-global-padding > .htgf-block-carpet-of-posts.alignfull {
    width: 100vw;
    margin-left: calc((100vw - var(--wp--style--global--content-size)) * -0.5);
  }
}
.htgf-block-carpet-of-posts__container {
  opacity: 0.5;
  position: relative;
  transform: rotate(21deg) skewX(-30deg);
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: flex-start;
  height: 70vh;
  max-height: 800px;
  min-width: 700px;
}
.htgf-block-carpet-of-posts__list {
  --animation-duration: calc(var(--maximum-posts) * 3s);
  will-change: transform;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  position: relative;
  width: min(35%, 17rem);
  animation: roll var(--animation-duration) infinite linear;
}
.htgf-block-carpet-of-posts .htgf-portfolio-card {
  position: relative;
  box-sizing: border-box;
  aspect-ratio: 1/0.8;
}
@keyframes roll {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-80%);
  }
  100% {
    transform: translateY(0);
  }
}

div:has(+ .htgf-block-carpet-of-posts) {
  position: relative;
  z-index: 2;
}

/* Special cases */
.wp-block-cover__inner-container:has(.htgf-block-carpet-of-posts) {
  height: 100%;
}
.wp-block-cover__inner-container:has(.htgf-block-carpet-of-posts) .htgf-block-carpet-of-posts {
  height: 100%;
  max-height: none;
  margin-top: 0 !important;
  mask-image: none;
}
