/* --- SCSS Variables --- */
/* These are the default WordPress Breakpoints */
/* Custom Breakpoints */
.htgf-block-deck-of-posts {
  position: relative;
}
.htgf-block-deck-of-posts.is-sliding {
  pointer-events: none;
}

/* ---
   Highlights slider
*/
.htgf-block-deck-of-posts__slider {
  display: flex;
  justify-content: center;
  width: 75%;
  max-width: 23rem;
  aspect-ratio: 1/1;
  margin: 0 auto 4rem;
  z-index: 1;
  position: relative;
}
@media (max-width: 600px) {
  .htgf-block-deck-of-posts__slider {
    margin-bottom: 15vw;
  }
}
.htgf-block-deck-of-posts__slider .slide:not(.is-top-slide) {
  pointer-events: none;
}
.htgf-block-deck-of-posts__slider .slide {
  max-width: 21rem;
}

/* The CSS for the cards slider java script. */
@keyframes animation {
  from {
    opacity: 0;
    transform: scale(1.2) rotateX(45deg);
  }
}
@keyframes animation2 {
  from {
    opacity: 0;
    transform: scale(1.2) rotateX(45deg);
  }
}
.slider {
  animation: animation ease 1s;
  animation-delay: 0.8s;
  animation-fill-mode: backwards;
  perspective: 1000px;
  transition: ease-in-out 0.2s;
}

.slide {
  user-select: none;
  position: absolute !important;
  transform-style: preserve-3d;
  box-sizing: border-box;
}

.transition {
  transition: cubic-bezier(0, 1.95, 0.49, 0.73) 0.4s;
}

/* The skip button. */
.htgf-block-deck-of-posts__nav-button {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-radius: 9999px;
  border: none;
  box-shadow: inset 0 0 0 var(--button-border-width) var(--wp--preset--color--contrast);
  width: 3rem;
  height: 3rem;
  font-size: 0;
  line-height: 0;
  z-index: 0;
  background: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
@media (max-width: 600px) {
  .htgf-block-deck-of-posts__nav-button {
    display: none;
  }
}
.htgf-block-deck-of-posts__nav-button::after {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
}
.htgf-block-deck-of-posts__nav-button--next {
  right: calc(50% - 17rem);
}
.htgf-block-deck-of-posts__nav-button--next::after {
  content: url('data:image/svg+xml,<svg width="8" height="14" viewBox="0 0 8 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1.42188 12.625L6.57812 7L1.42188 1.375" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>');
}

/* The listed navigation for the posts. */
.htgf-block-deck-of-posts__posts-nav {
  --grid-gap: var(--grid-gap-1, 1rem);
  --content-transition-duration: .5s;
  display: flex;
  flex-direction: row-reverse;
  box-sizing: border-box;
  justify-content: space-between;
  gap: calc(var(--grid-gap) / 2);
  padding: 0 var(--grid-gap);
  width: 75%;
  max-width: 23rem;
  margin: 0 auto;
  z-index: 1;
  position: relative;
}
.htgf-block-deck-of-posts__posts-nav li {
  list-style: none;
  background: var(--wp--preset--color--base);
  height: 0.375rem;
  border-radius: 0.1875rem;
  width: 100%;
  transition: width 0.5s ease, background-color 0.25s ease;
  transition-delay: 0s, 0s;
  cursor: pointer;
  position: relative;
}
.htgf-block-deck-of-posts__posts-nav li button {
  position: absolute;
  left: 0 !important;
  top: 0 !important;
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  box-shadow: none;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
}
.htgf-block-deck-of-posts__posts-nav li.active {
  width: 200%;
  background-color: var(--wp--preset--color--contrast);
}

/* ---
   Portfolio Animation
*/
