p,
li,
h1,
h2,
h3,
h4,
h5,
h6 {
    text-wrap: balance;
}

p,
li {
    text-wrap: pretty;
}

dialog {
    color: inherit;
}

html * {
    box-sizing: border-box;
}
.align-self-center {
    align-self: center;
}
.align-self-end {
    align-self: flex-end;
}
@media screen and (max-width: 767px) {
    .banner-grid-mobile {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        & .banner-image  {
            grid-row: span 1 !important;
            grid-column: span 1 !important;
            align-self: center;
        }
        & .banner-heading {
            grid-column: span 3 !important;
        }
    }
}
/* header settings */

header.wp-block-template-part {
    position: sticky;
    top: calc(0px + var(--wp-admin--admin-bar--height, 0px));
    z-index: 100;
}

/* Header Spacer */

.wp-block-spacer.is-style-grow-half {
    flex-grow: 0.5 !important;
}

/* Sticky cover settings */

.wp-block-cover.is-style-sticky ~ * {
    position: relative;
}

/* footer colour settings - black is default */
.footer-colour--blue footer.wp-block-template-part {
    background-color: var(--wp--preset--color--blue-light);
}
.footer-colour--orange footer.wp-block-template-part {
    background-color: var(--wp--preset--color--red);
}
.footer-colour--pink footer.wp-block-template-part {
    background-color: var(--wp--preset--color--pink);
}
.footer-text--dark footer.wp-block-template-part {
    color: var(--wp--preset--color--contrast);
    & .wp-block-acf-animated-logo-svg .base {
        fill: var(--wp--preset--color--contrast) !important;
    }
    & .wp-block-acf-animated-logo-svg .inverted {
        fill: var(--wp--preset--color--base) !important;
    }
    & .wp-block-social-link-anchor {
        color: var(--wp--preset--color--contrast) !important;
    }
    & a:hover {
        color: var(--wp--preset--color--contrast);
    }
}

.wp-block-search__input {
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid var(--wp--preset--color--grey-dark);
    background-color: transparent;
    color: var(--wp--preset--color--base);
    &::placeholder {
        color: var(--wp--preset--color--base);
        opacity: 0.7;
    }
}
.wp-block-search__inside-wrapper {
    flex-wrap: wrap;
    gap: 1rem;
}
.wp-block-search__button.has-icon {
    margin: 0;
    flex-basis: 80px;
    border-radius: 30px;
}
@media screen and (max-width: 520px) {
    .wp-block-search__button.has-icon  {
        flex-grow: 1;
    }
}

.wp-block-cover.has-parallax video.wp-block-cover__video-background {
    position: fixed;
    z-index: -1;
}

/* custom button block styles and animations */
.wp-block-button.is-style-arrow .wp-block-button__link,
.wp-block-button.is-style-arrow-outline .wp-block-button__link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.wp-block-button.is-style-arrow .wp-block-button__link .wp-block-button__fx,
.wp-block-button.is-style-arrow-outline .wp-block-button__link .wp-block-button__fx {
    mask-image: url("data:image/svg+xml,%3Csvg width='77' height='12' viewBox='0 0 77 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M76.2679 6.53033C76.5608 6.23744 76.5608 5.76256 76.2679 5.46967L71.4949 0.696699C71.202 0.403806 70.7272 0.403806 70.4343 0.696699C70.1414 0.989593 70.1414 1.46447 70.4343 1.75736L74.6769 6L70.4343 10.2426C70.1414 10.5355 70.1414 11.0104 70.4343 11.3033C70.7272 11.5962 71.202 11.5962 71.4949 11.3033L76.2679 6.53033ZM0.361328 6.75H75.7376V5.25H0.361328V6.75Z' fill='currentColor'/%3E%3C/svg%3E%0A");
    height: 1em;
    width: 0px;
    background-color: currentColor;
    mask-size: initial;
    mask-position: right center;
    mask-repeat: no-repeat;
    display: inline-block;
    transition: width 0.3s ease-out;
}
.wp-block-button.is-style-arrow .wp-block-button__link:hover,
.wp-block-button.is-style-arrow .wp-block-button__link:focus,
.wp-block-button.is-style-arrow-outline .wp-block-button__link:hover,
.wp-block-button.is-style-arrow-outline .wp-block-button__link:focus {
    & .wp-block-button__fx {
        width: 3.5em;
    }
}

/* button hover bubble animation */
.wp-block-button:not(.is-style-arrow, .is-style-arrow-outline, .is-style-underline) {
    overflow: hidden;
    border-radius: 50vw;
}
.wp-block-button:not(.is-style-arrow, .is-style-arrow-outline, .is-style-underline) .wp-block-button__link {
    position: relative;
}

.wp-block-button:not(.is-style-arrow, .is-style-arrow-outline, .is-style-underline) .wp-block-button__link .wp-block-button__label {
    position: relative;
    z-index: 1;
}
.wp-block-button:not(.is-style-arrow, .is-style-arrow-outline, .is-style-underline) .wp-block-button__link .wp-block-button__fx {
    border-radius: 50vw;
    width: 100px;
    height: 100px;
    opacity: 1;
    position: absolute;
    background-color: var(--wp--preset--color--blue);
    transform: translate(-50%, -50%) translate3d(0px,0px,0px) scale(0,0);
    transform-origin: center center;
    pointer-events: none;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.5s ease;
    top: 0;
    left: 0;
    z-index: 0;
}
.wp-block-button:not(.is-style-arrow, .is-style-arrow-outline, .is-style-underline) .wp-block-button__link:hover .wp-block-button__label {
    color: var(--wp--preset--color--contrast);
}
/* no js / mobile alternatives */
.nojs .wp-block-button:not(.is-style-arrow, .is-style-arrow-outline, .is-style-underline) .wp-block-button__link:hover, .nojs .wp-block-button:not(.is-style-arrow, .is-style-arrow-outline, .is-style-underline) .wp-block-button__link:focus {
    background-color: var(--wp--preset--color--blue);
}
@media (pointer: coarse) {
    .wp-block-button:not(.is-style-arrow, .is-style-arrow-outline, .is-style-underline) .wp-block-button__link:hover, .wp-block-button:not(.is-style-arrow, .is-style-arrow-outline, .is-style-underline) .wp-block-button__link:focus {
        background-color: var(--wp--preset--color--blue);
    }
    .wp-block-button:not(.is-style-arrow, .is-style-arrow-outline, .is-style-underline) .wp-block-button__link .wp-block-button__fx {
        display: none;
    }
}
/* remove left/ or right borders on mobile */
@media screen and (max-width: 600px) {
    .hide-border {
        border-left: none;
        border-right: none;
    }
}