/* --- SCSS Variables --- */
/* These are the default WordPress Breakpoints */
/* Custom Breakpoints */
.wp-block-button {
  position: relative;
  border-radius: 9999px;
  overflow: hidden;
}

.wp-element-button {
  padding: calc(0.667em + 3px) calc(1.333em + 2px) calc(0.667em + 1px) calc(1.333em + 2px) !important;
  color: var(--wp--preset--color--base);
  background-color: var(--wp--preset--color--contrast);
  border-radius: 9999px;
  transition: padding 0.5s ease;
  font-weight: 500;
}

.wp-block-buttons .wp-block-button:has(.wp-element-button:focus-visible),
.wp-block-buttons .wp-block-button:not(:first-child):has(.wp-element-button:focus-visible),
.wp-block-buttons .wp-block-button:first-child:has(.wp-element-button:focus-visible),
.navigation-header .wp-block-buttons .wp-block-button:has(.wp-element-button:focus-visible) {
  border-radius: 9999px;
}
.wp-block-buttons .wp-block-button:has(.wp-element-button:focus-visible) a,
.wp-block-buttons .wp-block-button:has(.wp-element-button:focus-visible) button,
.wp-block-buttons .wp-block-button:not(:first-child):has(.wp-element-button:focus-visible) a,
.wp-block-buttons .wp-block-button:not(:first-child):has(.wp-element-button:focus-visible) button,
.wp-block-buttons .wp-block-button:first-child:has(.wp-element-button:focus-visible) a,
.wp-block-buttons .wp-block-button:first-child:has(.wp-element-button:focus-visible) button,
.navigation-header .wp-block-buttons .wp-block-button:has(.wp-element-button:focus-visible) a,
.navigation-header .wp-block-buttons .wp-block-button:has(.wp-element-button:focus-visible) button {
  color: var(--wp--preset--color--contrast);
  box-shadow: inset 0 0 0 var(--button-border-width) var(--wp--preset--color--contrast--opacity--20);
  background-color: var(--wp--preset--color--base);
  padding: calc(0.667em + 3px) calc(1.333em + 2px) calc(0.667em + 1px) calc(1.333em + 2px) !important;
  border-color: rgba(0, 0, 0, 0) !important;
  border-radius: 9999px;
  font-weight: 500;
}
.wp-block-buttons .wp-block-button:has(.wp-element-button:focus-visible) a::after,
.wp-block-buttons .wp-block-button:has(.wp-element-button:focus-visible) button::after,
.wp-block-buttons .wp-block-button:not(:first-child):has(.wp-element-button:focus-visible) a::after,
.wp-block-buttons .wp-block-button:not(:first-child):has(.wp-element-button:focus-visible) button::after,
.wp-block-buttons .wp-block-button:first-child:has(.wp-element-button:focus-visible) a::after,
.wp-block-buttons .wp-block-button:first-child:has(.wp-element-button:focus-visible) button::after,
.navigation-header .wp-block-buttons .wp-block-button:has(.wp-element-button:focus-visible) a::after,
.navigation-header .wp-block-buttons .wp-block-button:has(.wp-element-button:focus-visible) button::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: url(../../images/HTGF-Mastergradient.webp);
  background-size: 110% 110%;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.6;
  mix-blend-mode: multiply;
  animation: button-bg-hover-animation 1s ease;
}

@media (hover: hover) {
  .wp-block-buttons .wp-block-button:hover,
  .wp-block-buttons .wp-block-button:not(:first-child):hover,
  .wp-block-buttons .wp-block-button:first-child:hover,
  .navigation-header .wp-block-buttons .wp-block-button:hover {
    border-radius: 9999px;
  }
  .wp-block-buttons .wp-block-button:hover a,
  .wp-block-buttons .wp-block-button:hover button,
  .wp-block-buttons .wp-block-button:not(:first-child):hover a,
  .wp-block-buttons .wp-block-button:not(:first-child):hover button,
  .wp-block-buttons .wp-block-button:first-child:hover a,
  .wp-block-buttons .wp-block-button:first-child:hover button,
  .navigation-header .wp-block-buttons .wp-block-button:hover a,
  .navigation-header .wp-block-buttons .wp-block-button:hover button {
    color: var(--wp--preset--color--contrast);
    box-shadow: inset 0 0 0 var(--button-border-width) var(--wp--preset--color--contrast--opacity--20);
    background-color: var(--wp--preset--color--base);
    padding: calc(0.667em + 3px) calc(1.333em + 2px) calc(0.667em + 1px) calc(1.333em + 2px) !important;
    border-color: rgba(0, 0, 0, 0) !important;
    border-radius: 9999px;
    font-weight: 500;
  }
  .wp-block-buttons .wp-block-button:hover a::after,
  .wp-block-buttons .wp-block-button:hover button::after,
  .wp-block-buttons .wp-block-button:not(:first-child):hover a::after,
  .wp-block-buttons .wp-block-button:not(:first-child):hover button::after,
  .wp-block-buttons .wp-block-button:first-child:hover a::after,
  .wp-block-buttons .wp-block-button:first-child:hover button::after,
  .navigation-header .wp-block-buttons .wp-block-button:hover a::after,
  .navigation-header .wp-block-buttons .wp-block-button:hover button::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url(../../images/HTGF-Mastergradient.webp);
    background-size: 110% 110%;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.6;
    mix-blend-mode: multiply;
    animation: button-bg-hover-animation 1s ease;
  }
}
@media (hover: none) {
  .wp-block-buttons .wp-block-button:active,
  .wp-block-buttons .wp-block-button:not(:first-child):focus,
  .wp-block-buttons .wp-block-button:first-child:focus,
  .navigation-header .wp-block-buttons .wp-block-button:focus {
    border-radius: 9999px;
  }
  .wp-block-buttons .wp-block-button:active a,
  .wp-block-buttons .wp-block-button:active button,
  .wp-block-buttons .wp-block-button:not(:first-child):focus a,
  .wp-block-buttons .wp-block-button:not(:first-child):focus button,
  .wp-block-buttons .wp-block-button:first-child:focus a,
  .wp-block-buttons .wp-block-button:first-child:focus button,
  .navigation-header .wp-block-buttons .wp-block-button:focus a,
  .navigation-header .wp-block-buttons .wp-block-button:focus button {
    color: var(--wp--preset--color--contrast);
    box-shadow: inset 0 0 0 var(--button-border-width) var(--wp--preset--color--contrast--opacity--20);
    background-color: var(--wp--preset--color--base);
    padding: calc(0.667em + 3px) calc(1.333em + 2px) calc(0.667em + 1px) calc(1.333em + 2px) !important;
    border-color: rgba(0, 0, 0, 0) !important;
    border-radius: 9999px;
    font-weight: 500;
  }
  .wp-block-buttons .wp-block-button:active a::after,
  .wp-block-buttons .wp-block-button:active button::after,
  .wp-block-buttons .wp-block-button:not(:first-child):focus a::after,
  .wp-block-buttons .wp-block-button:not(:first-child):focus button::after,
  .wp-block-buttons .wp-block-button:first-child:focus a::after,
  .wp-block-buttons .wp-block-button:first-child:focus button::after,
  .navigation-header .wp-block-buttons .wp-block-button:focus a::after,
  .navigation-header .wp-block-buttons .wp-block-button:focus button::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url(../../images/HTGF-Mastergradient.webp);
    background-size: 110% 110%;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.6;
    mix-blend-mode: multiply;
    animation: button-bg-hover-animation 1s ease;
  }
}
/* Variant: Outline
 * There is the default WP variant "outline" that we style here.
 * Additionally, in a button group, only the first button is not of this style.
*/
.wp-block-buttons .wp-block-button:not(:first-child) .wp-element-button,
.wp-block-buttons .wp-block-button.is-style-outline .wp-element-button {
  background: transparent;
  color: var(--wp--preset--color--contrast);
  box-shadow: inset 0 0 0 var(--button-border-width) var(--wp--preset--color--contrast);
  border: 0;
}

/* Variant: Small
 * There's a smaller button style used in the navigation header.
 * We can later add it as a block option style "small".
*/
.wp-block-buttons .wp-block-button.is-style-small .wp-element-button {
  font-size: var(--htgf--preset--font-size--caption-small);
  font-weight: 500;
  color: var(--wp--preset--color--contrast);
  background-color: transparent;
  box-shadow: inset 0 0 0 var(--button-border-width) var(--wp--preset--color--contrast);
  padding: calc(0.667em + 3px) calc(1.333em + 2px) calc(0.667em + 1px) !important;
  white-space: nowrap;
}

/* Layout: Center on mobile
 * This is a helper that aligns button center on mobile when attached on teh .wp-buttons element
*/
@media (max-width: 600px) {
  .wp-block-buttons.is-style-center-mobile {
    justify-content: center;
  }
}

/* Variant: Button List
 * Buttons can beselected to look more like a list than like buttons.
*/
.wp-block-buttons.is-style-listed {
  gap: 0;
}
.wp-block-buttons.is-style-listed .wp-block-button {
  border-radius: 0;
  width: 100%;
}
.wp-block-buttons.is-style-listed .wp-block-button .wp-element-button {
  border-radius: 0;
  background: transparent;
  color: var(--wp--preset--color--contrast);
  font-weight: 700;
  box-shadow: none;
  border-bottom: solid 1px var(--wp--preset--color--contrast);
  width: 100%;
  text-align: left;
  font-weight: 700;
  padding: calc(1.167em + 3px) 0 calc(1.167em + 1px) 0 !important;
}
.wp-block-buttons.is-style-listed .wp-block-button .wp-element-button:hover {
  padding: calc(1.167em + 3px) calc(1.333em + 2px) calc(1.167em + 1px) calc(1.333em + 2px) !important;
}
.wp-block-buttons.is-style-listed .wp-block-button .wp-element-button::before {
  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>');
  position: relative;
  float: right;
}
.wp-block-buttons.is-style-listed .wp-block-button:first-child .wp-element-button {
  border-top: solid 1px var(--wp--preset--color--contrast);
}
.wp-block-buttons.is-style-listed .wp-block-button:has(+ .wp-block-button:hover) .wp-element-button {
  border-bottom-color: rgba(0, 0, 0, 0);
}

/* The animation of the hover background. Used by all variants. */
@keyframes button-bg-hover-animation {
  0% {
    background-size: 110% 1000%;
  }
  100% {
    background-size: 110% 110%;
  }
}
/* Design single character links.
 * If an element with class .wp-block-button__link has only one character, add a class "is-style-single-character-link"
*/
.wp-block-buttons .wp-block-button a.is-style-single-character-link,
.wp-block-buttons .wp-block-button a.is-style-single-character-link:hover {
  padding: calc(0.667em + 3px) calc(0.667em + 6px) !important;
  aspect-ratio: 1;
}

.pagination span.pagination__current-page,
.pagination.wp-block-buttons .wp-block-button a.pagination__button,
.pagination.wp-block-buttons .wp-block-button a.pagination__button:hover {
  padding: 2px 0 0 0 !important;
  aspect-ratio: 1;
  width: 2.625rem;
  align-items: center;
  justify-content: center;
  display: flex !important;
}
