/* -- THEME TWEAKS -- */
.site-header {
padding-inline: clamp(1rem, 0.848rem + 0.758vw, 1.5rem);
}

/* Text Balance / Pretty */
:is(h1, h2, h3, h4, h5, h6), .balance {
text-wrap: balance;
}

p, block quote, li {
text-wrap: pretty;
}

p:last-child:last-of-type {
margin-bottom: 0px;
}

/* -- UTILITIES -- */

/* Line Limits */
.line-limit-3, .line-limit-2 {
display: =webkit-box;
-webkit-box-orient:vertical;
overflow: hidden;
}
.line-limit-3 {
-webkit-line-clamp: 3;
}
.line-limit-2 {
-webkit-line-clamp: 2;
}

/* Visually Hidden */
.visually-hidden:not(:focus):not(:active) {
clip: rect(0 0 0 0);
clip-path: inset(50%);
height: 1px;
overflow: hidden;
position: absolute;
white-space: nowrap;
width: 1px;
}

/* Transition */
.transition {
transition: all .25s ease-in-out;
}

/* -- GP MENU ACCESSIBILITY TWEAK -- */
#site-navigation ul.sub-menu {
display: block;
}

#site-navigation li:hover .gp-icon svg {
transform: rotate(180deg);
}

#site-navigation li:hover .sub-menu {
visibility: visible;
}


/* -- Clickable Container UNTESTED -- */
/* https://generate.support/topic/images-as-links-with-floating-text/ */
/* https://generate.support/topic/show-text-when-hover-over-image/#post-57725 */
 .gb-container.clickable-container {
    position: relative;
}
.clickable-container a:before {
    content: '';
    position: absolute;
    inset: 0;
}

/*Animate JS*/
@media (prefers-reduced-motion: no-preference) {
  .animate {
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 1s ease, transform 0.6s ease;
    will-change: opacity, transform;
  }

  .animate.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Disable animation in the editor preview */
  .editor-styles-wrapper .animate {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}