* {
    --border-radius-large: 1.3rem;
    --border-radius-small: 0.75rem;
}

.sq-hero--default img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    width: 100%;
    margin-top: 2rem;
    border-radius: var(--border-radius-large, 1.3rem);
}

.sq-hero--default__container {
    display: flex;
    flex-direction: column;
}

.sq-hero--double {
    display: grid;
    grid-template-columns: 7fr 1.5fr 1.5fr;
    grid-template-rows: auto auto 51dvw 10dvw 10dvw;
}

.sq-hero--double .h-group {
    grid-column: 1 / span 3;
    grid-row: 1 / span 1;
}

.sq-hero--double .sq-hero--double__main-image-container {
    grid-column: 1 / span 2;
    grid-row: 3 / span 2;
}

.sq-hero--double [class*=image-container] svg {
    position: absolute;
}

.sq-hero--double__main-image-container svg:nth-child(1) {
    top: 0;
    right: 0;
    width: 26%;
    fill: var(--tertiary, black);
    transform: scaleX(-100%) translate(-21%, -50%);
}

.sq-hero--double__main-image-container svg:nth-child(2) {
    bottom: 0;
    left: 0;
    width: 10%;
    fill: var(--primary, black);
    transform: translate(108%, 50%);
}

.sq-hero--double__sub-image-container svg:nth-child(1) {
    width: 26%;
    bottom: 0;
    right: 0;
    fill: var(--tertiary, black);
    transform: translate(17%, 20%);
}

.sq-hero--double__sub-image-container svg:nth-child(2) {
    width: 13%;
    top: 0;
    left: 0;
    fill: var(--primary, black);
    transform: translate(-50%, 40%);
}

.sq-hero--double .sq-hero--double__sub-image-container {
    grid-column: 2 / span 2;
    grid-row: 4 / span 2;
}

.sq-hero--double .sq-hero__content {
    grid-column: 1 / span 3;
    grid-row: 2 / span 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.2rem;
    align-items: center;
    margin-bottom: 13dvw;
}

.sq-hero--double__main-image-container,
.sq-hero--double__sub-image-container {
    position: relative;
}

:is(.sq-hero--double__main-image-container, .sq-hero--double__sub-image-container) img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-large, 1.3rem);
}

.sq-hero--centre.sq-hero {
    display: grid;
    grid-template-rows: auto auto auto;
}

.sq-hero--centre.sq-hero>svg {
    grid-row: 1 / span 1;
    max-width: 25rem;
    margin: 0 auto;
}

.sq-hero--centre .sq-hero__title-section {
    grid-row: 2 / span 1;
    margin-top: 1.75rem;
}

.sq-hero--centre .sq-hero__content {
    grid-row: 3 / span 1;
}

.sq-hero--centre .sq-hero__title-section h1 {
    margin-top: 0;
    margin-bottom: 2rem;
}

.sq-hero--centre .sq-hero__content-inner {
    margin-bottom: 1.75rem;
}

/* Hero White padding thing */

.sq-hero .h-main {
    line-height: calc(3.1rem*var(--scale));
    overflow-x: unset;
    overflow-y: unset;
    padding-bottom: 0;
    margin-top: 0.8rem;
}

.sq-hero .h-main h1 {
    background-color: #fff;
    border-radius: .5rem;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    /* font-size: calc(2.5rem*var(--scale, 1)); */
    line-height: 3.2rem;
    line-height: calc(3rem*var(--scale));
    margin: 0;
    max-width: calc(100% - 2rem);
    padding-bottom: .5rem;
}

.sq-hero--double .h-main h1 {
    background-color: var(--background, white);
    color: var(--text, black);
}

.sq-hero .subheading {
    overflow-x: unset;
    overflow-y: unset;
    padding-bottom: 0;
    border-left: none;
    padding-left: 0;
}

.sq-hero .subheading p {
    background-color: #fff;
    border-radius: .5rem;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    margin: 0;
    padding-bottom: .5rem;
    box-shadow: 0.625rem 0 0 var(--background, #fff), -0.625rem 0 0 var(--background, #fff);
}

.next-steps.next-steps--sq .promo {
    border-radius: 1.3rem;
}

.next-steps.next-steps--sq :is(.promo__inner, img) {
    border-radius: inherit;
}

.next-steps.next-steps--sq .promo__inner {
    padding: 1.5rem;
}

.next-steps.next-steps--sq .button {
    border-radius: 0.75rem;
    margin: 0;
}

.next-steps--underlay .inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    margin-top: 2rem;
}

.next-steps--underlay .inner>* {
    position: relative;
    z-index: inherit;
}

.next-steps--underlay .inner::before {
    content: '';
    position: absolute;
    top: -2.5rem;
    left: 1.25rem;
    width: calc(100% - 2.5rem);
    height: 80%;
    background: var(--primary, blue);
    z-index: 0;
    border-radius: var(--border-radius-large, 1.3rem);
}

.next-steps--underlay h2 {
    padding: 0.5rem 1.25rem 0.25rem 1.25rem;
    background-color: var(--tertiary, rgb(223, 125, 125));
    width: auto;
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--border-radius-small, 0.75rem);
    max-width: calc(100% - 5rem);
    padding-bottom: 1.3rem;
}

.next-steps--underlay .cols {
    padding: 0 1.25rem;
    margin: 0 auto;
}

.next-steps--underlay .row {
    margin-top: 1.25rem;
}

.panel-columns--sq .panel img {
    border-radius: var(--border-radius-large, 1.3rem);
}

.panel-columns--sq .col {
    padding: 0 1.55rem;
}

.panel-columns--sq .button {
    border-radius: var(--border-radius-small, 0.75rem);
}

.panel-columns--sq .panel__img-container {
    position: relative;
    margin: 1.75rem auto;
}

.panel-columns--sq .panel__img-overlay svg {
    position: absolute;
    width: 35%;
    fill: var(--primary, blue);
}

.panel-columns--sq .panel__img-overlay svg:first-child {
    fill: var(--tertiary, blue);
}

.panel-columns--sq .panel:nth-child(3n-2) .panel__img-overlay svg:first-child {
    bottom: 0;
    left: 0;
    transform: translate(-9%, 9%);
}

.panel-columns--sq .panel:nth-child(3n-2) .panel__img-overlay svg:last-child {
    top: 0;
    right: 0;
    width: 29%;
    transform: translate(8%, -42%) rotate(180deg);
}

.panel-columns--sq .panel:nth-child(3n-1) .panel__img-overlay svg:first-child {
    top: 0;
    left: 0;
    transform: translate(-10%, -29%) scaleX(-100%);
}

.panel-columns--sq .panel:nth-child(3n-1) .panel__img-overlay svg:last-child {
    bottom: 0;
    right: 0;
    width: 29%;
    transform: translate(6%, 34%) scaleX(-100%);
}

.panel-columns--sq .panel:nth-child(3n) .panel__img-overlay svg:first-child {
    bottom: 0;
    right: 0;
    transform: translate(9%, 9%) scaleX(-100%);
}

.panel-columns--sq .panel:nth-child(3n) .panel__img-overlay svg:last-child {
    top: 0;
    left: 0;
    width: 29%;
    transform: translate(-6%, -48%) scaleY(-100%);
}

.panel__wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(20rem, 100%), 1fr));
    gap: 2.5rem;
    margin-top: 2.5rem;

    max-width: 19rem;
    margin: 0 auto;
}

.panel__wrapper--wide-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(25rem, 100%), 1fr));
    gap: 2.5rem;
}

.panel__wrapper--three-or-one, .panel__wrapper--four-or-one, .panel__wrapper--four-two-one {
    grid-template-columns: 1fr;
    
}

.next-steps.has-title:not(.next-steps--underlay) h2 {
    margin-bottom: 2.5rem;
}

.panel-columns--sq h2 {
    margin-bottom: 2.5rem;
}

.next-steps--underlay .panel__wrapper {
    padding: 0 2.5rem;
    margin-top: 1.25rem;
}

.promo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.svg-accent-primary {
    fill: var(--primary, blue);
}

.svg-accent-tertiary {
    fill: var(--tertiary, blue);
}

.next-steps.next-steps--sq + .next-steps.next-steps--sq {
    padding: 3.75rem 0;
}

@media screen and (min-width: 768px) {

    /* Hero */
    .sq-hero.sq-hero--centre {
        display: grid;
        grid-template-columns: 1.4fr 1.6fr 1.8fr 2fr;
        grid-template-rows: 1fr 0.8fr 0.9fr 0.4fr;
        align-items: center;
    }

    .sq-hero--centre .sq-hero__title-section {
        margin-top: 0;
        z-index: 2;
        grid-row: 2 / span 2;
        grid-column: 1 / span 2;
        text-align: left;
        max-width: unset;
    }

    .sq-hero--centre .sq-hero__title-section h1 {
        text-align: left;
        margin-bottom: 0;
    }

    .sq-hero--centre.sq-hero>svg {
        object-fit: contain;
        width: 100%;
        grid-column: 2 / span 2;
        grid-row: 1 / span 5;
        /* max-height: 88%; */
        max-width: unset;
    }

    .sq-hero--centre .sq-hero__content {
        z-index: 2;
        grid-row: 1 / span 2;
        grid-column: 4 / span 1;
        align-self: end;
    }

    .sq-hero--centre .sq-hero__content-inner {
        padding-left: 1rem;
        border-left: 2px solid var(--primary, black);
        margin-bottom: 1.75rem;
    }


    /* Basic 3Up */

    .next-steps--underlay .inner::before {
        left: 2.5rem;
        width: calc(100% - 5rem);
        height: 80%;
    }

    .panel__wrapper {
        max-width: unset;
        margin: unset;
    }

    .panel__wrapper--three-or-one {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .panel__wrapper--four-two-one {
        grid-template-columns: 1fr 1fr;
    }

}

@media screen and (min-width: 1024px) {


    .sq-hero :is(.h-group, .sq-hero__title-section) .h-alt {
        margin-bottom: 0.75rem;
    }


    .sq-hero--default img {
        /* transform: scale(1.5);
        transform-origin: right; */
        margin: 0;
        max-width: unset;
    }

    .sq-hero--default__content-container {
        z-index: 2;
    }

    .sq-hero--default__container {
        display: grid;
        grid-template-columns: 1fr 0.4fr 1.4fr;
        grid-template-rows: 1fr;
    }

    .sq-hero--default__content-container {
        grid-column: 1 / span 2;
        grid-row: 1 / span 1;
        align-self: center;
    }

    .sq-hero--default__image-container {
        grid-column: 2 / span 2;
        grid-row: 1 / span 1;
      
      	z-index: 0;
    }

    .sq-hero--double {
        display: grid;
        padding-top: 3dvw;
        /* grid-template-columns: 0.9fr 5fr 0.9fr 3fr 1fr;
        grid-template-rows: 6fr 5fr 1fr; */

        grid-template-columns: 5dvw 47dvw 5dvw 25dvw auto;
        grid-template-rows: 6fr 20dvw 3dvw;
    }

    .sq-hero--double .h-group {
        grid-column: 1 / span 2;
        grid-row: 1 / span 1;
        position: relative;
        z-index: 2;
        margin: 0;
        align-self: end;
        max-width: 35rem;
    }



    .sq-hero--double .sq-hero--double__main-image-container {
        grid-column: 2 / span 2;
        grid-row: 1 / span 2;
    }

    .sq-hero--double .sq-hero--double__sub-image-container {
        grid-column: 3 / span 2;
        grid-row: 2 / span 2;
    }

    .sq-hero--double .sq-hero__content {
        grid-column: 4 / span 2;
        grid-row: 1 / span 1;
        min-height: 17rem;
        align-items: start;
        margin: 1.75rem;
        display: flex;
        flex-direction: column;
        justify-content: end;
        padding-top: 2.5rem;
    }

    .sq-hero--double .sq-hero__content .sq-hero__content-inner {
        padding-left: 1.5rem;
        border-left: 3px solid var(--primary, black);
    }

    .next-steps.next-steps--sq + .next-steps.next-steps--sq {
        padding: 6.25rem 0;
    }
}

@media screen and (min-width: 1400px) {
    .panel__wrapper--four-or-one, .panel__wrapper--four-two-one {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

@media screen and (min-width: 1725px) {
    .sq-hero--double {
        display: grid;
        grid-template-columns: 0.9fr 5fr 0.9fr 3fr 1fr;
        grid-template-rows: 6fr 6fr 1fr;
        padding-top: 3rem;
    }
}

