/*
 Theme Name:   Wally Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Wally
 Author URI:   https://hellowally.com.au
 Template:     bricks
 Version:      1.4.2
 Text Domain:  bricks
*/

.wally-responsive-h-stack {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.wally-margin-breaker-section {
    display: flex;
    flex-direction: column;
    max-width: 100%;

    .wally-margin-breaker-container {
        --extra-width: max(calc((100vw - var(--brxe-default-container-width)) / 2), 0px);
        width: calc(var(--brxe-default-container-width) + var(--extra-width));
        max-width: calc(100vw - var(--brxe-default-section-padding) - var(--brxe-default-container-padding));
    }
}

.wally-margin-breaker-container-left {
    align-items: flex-start;
}

.wally-margin-breaker-container-right {
    align-items: flex-end;
}

.wally-svg-text {

    svg {
        display: block;
        width: 100%;
    }
}

.wally-fixed-image {

    background-size: cover;
    background-position: center;
    mask-repeat: no-repeat;

    &.fixed {
        background-attachment: fixed;
    }
}

.animation-delay-0 {
  animation-delay: 0s;
}

.animation-delay-1 {
  animation-delay: 0.2s;
}

.animation-delay-2 {
  animation-delay: 0.4s;
}

.animation-delay-3 {
  animation-delay: 0.6s;
}

.animation-delay-4 {
  animation-delay: 0.8s;
}

.animation-delay-5 {
  animation-delay: 1s;
}

.background-position-n {
    background-position: top;
}

.background-position-ne {
    background-position: top right;
}

.background-position-e {
    background-position: right;
}

.background-position-se {
    background-position: bottom right;
}

.background-position-s {
    background-position: bottom;
}

.background-position-sw {
    background-position: bottom left;
}

.background-position-w {
    background-position: left;
}

.background-position-nw {
    background-position: top left;
}

.background-position-center {
    background-position: center;
}

.object-position-pan-down {
    object-position: 50% 80%;
}

.object-position-pan-up {
    object-position: 50% 20%;
}

.object-position-pan-left {
    object-position: 20% 50%;
}

.object-position-pan-right {
    object-position: 80% 50%;
}

.wally-single-character {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-text-truncate-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0px;
    flex: 1 1 0px;
    white-space: nowrap;
    width: 0px;
}

.wally-responsive-h-stack {
    display: flex;
    flex-direction: var(--stack-direction);
}

.wally-responsive-grid, .wally-card-grid {
    display: grid;
    width: 100%;
}

.wally-card-grid,  .wally-responsive-grid {

    &.grid-cols-1 {
        grid-template-columns: repeat(var(--grid-cols-1), 1fr);
    }

    &.grid-cols-2 {
        grid-template-columns: repeat(var(--grid-cols-2), 1fr);
    }
 
    &.grid-cols-3 {
        grid-template-columns: repeat(var(--grid-cols-3), 1fr);
    }
    
    &.grid-cols-4 {
        grid-template-columns: repeat(var(--grid-cols-4), 1fr);
    }

    &.grid-cols-6 {
        grid-template-columns: repeat(var(--grid-cols-6), 1fr);
    }
}

.wally-card-grid {
    > div {
        display: flex;
        flex-direction: column;
        align-items: center;
        z-index: 1;
        text-align: center;
        gap: 0.5em;
        border-radius: var(--radius, 6px);

        h2 {
            font-size: 1.4em;
        }

        h3 {
            font-size: 1.2em;
        }
		
		p {
			line-height: 1.2em;
		}

        .card-content {
            padding: var(--gutter, 1em);
        }

        .icon-wrapper {
            margin-top: var(--gutter, 1em);
        }
        
        .card-image {
            width: 100%;
            aspect-ratio: 2 / 1;
        }
    }
}

.wally-social-list {

    display: grid;
    grid-template-columns: 1em min-content;
    gap: var(--gutter, 0.5em);
    align-items: center;
    padding: 0px;
    margin: 0px;
    white-space: nowrap;

    li {
        list-style-type: none;
        display: contents;

        a {
            display: contents;
        }
    }
}

.wally-background-section {

    position: relative;

    .wally-fixed-image {

        position: absolute;
        top: 0px;
        left: 0px;
        width: 100%;
        height: 100%;

        &:not(.not-fixed) {
            background-attachment: fixed;
        }
    }

    .wally-background-section-content {
        position: relative;
        z-index: 1;
    }
}


.component-top-margin-overlap {
    padding-top: 0px !important;
    > div {
        margin-top: calc(0px - (var(--responsive-l) / 2));
    }
}

.component-bottom-margin-overlap {
    padding-bottom: 0px !important;
    > div {
        margin-bottom: calc(0px - (var(--responsive-l) / 2));
    }
}

.component-top-margin-double {
    padding-top: calc(var(--responsive-l) * 2) !important;
}

.component-top-margin-none {
    margin-top: 0px;
    padding-top: 0px !important;
}

.component-bottom-margin-double {
    padding-bottom: calc(var(--responsive-l) * 2) !important;
}

.component-bottom-margin-none {
    margin-bottom: 0px;
    padding-bottom: 0px !important;
}

.component-shape-section {
    
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;

    > .component-shape-section-shape {
        position: absolute;
        top: 0px;
        left: 0px;
        width: 100%;
        height: 100%;
    }

    &.component-shape-section-shape-angle > .component-shape-section-shape {
        clip-path: shape(from 0% 0%, line to var(--shape-width) 0%, line to calc(var(--shape-width) + var(--responsive-m)) 30%, line to calc(var(--shape-width) - var(--responsive-m)) 100%, line to 0% 100%);
    }

    &.component-shape-section-shape-slant > .component-shape-section-shape {
        clip-path: shape(from 0% 0%, line to var(--shape-width) 0%, line to calc(var(--shape-width) - var(--responsive-xl)) 100%, line to 0% 100%);
    }

    &.component-shape-section-shape-straight > .component-shape-section-shape {
        clip-path: shape(from 0% 0%, line to var(--shape-width) 0%, line to var(--shape-width) 100%, line to 0% 100%);
    }

    &.component-shape-section-shape-curve > .component-shape-section-shape {
        clip-path: shape(from 0 0, line to var(--shape-width) -50%, arc to calc(var(--shape-width) - var(--responsive-m)) 100% of 750% cw, line to 0% 100%);
    }
}

.dark {
    h1, h2, h3, h4, h5, h6, p, nav, a, .brxe-text-basic, .brxe-shortcode {
        color: white;
    }
}

p.brxe-text-basic {
	margin: 0px;
}

.wally-column-section > div {

    gap: var(--gutter, 1em);
    display: var(--column-section-display);

    &.component-columns-narrow-wide {
        grid-template-columns: 1fr 2fr;
    }

    &.component-columns-wide-narrow {
        grid-template-columns: 2fr 1fr;
    }

    &.component-columns-equal-equal {
        grid-template-columns: 1fr 1fr;
    }
}