.hidden {
    visibility: hidden;
    height: 0;
    width: 0;
}
.home-hero-block {
    --header-height: 119px;
    --mobile-header-height: 105px;
    padding-top: var(--mobile-header-height);
    position: relative;

    @media(min-width: 1024px) {
        padding-left: var(--wp--preset--spacing--60);
        padding-right: var(--wp--preset--spacing--60);
        padding-top: calc(var(--wp--preset--spacing--60) + var(--header-height));
    }
}
.wp-block-group:has(> .home-hero-block) {
    max-width: 413px !important;
    margin: 0 auto;
    position: unset;
    @media(min-width: 782px) {
        max-width: var(--wp--style--global--wide-size) !important;
    }
}
.wp-block-group.home-hero-info {
    max-width: clamp(31.25rem, -12.98rem + 90.50vw, 44.9375rem);
}
.home-hero-block-line-1 {
    margin-bottom: var(--wp--preset--spacing--30);
    @media(max-width: 782px) {
        padding: 0 var(--wp--preset--spacing--40);
        max-width: 300px;
        margin: 0 auto 1rem;
    }
    
}
.home-hero-block-line-1,
.home-hero-block-line-2 {
    justify-content: center;
    align-items: center;
    position: relative;
    @media(min-width: 782px) {
        display: flex;
        gap: calc(var(--wp--preset--spacing--70) + var(--wp--preset--spacing--30));
    }
    .wp-block-image {
        margin-bottom: 0 !important;
        max-height: 124px;
        
        @media(max-width: 782px) {
            max-width: 200px;
            width: 100%;
        }
    }
    .words {
        min-width: 200px;
        @media(min-width: 782px) {
            max-width: clamp(12.5rem, 3.82rem + 17.77vw, 15.1875rem);
        }
        @media(min-width: 1024px) {
            max-width: clamp(15.1875rem, -4.35rem + 30.53vw, 23.125rem);
        }
    }
    .word-municipal {
        min-width: 100%;
        @media(min-width: 782px) {
            min-width: clamp(24.125rem, 9.58rem + 29.75vw, 28.625rem);
        }
        @media(min-width: 1024px) {
            min-width: clamp(27.875rem, -11.20rem + 61.06vw, 43.75rem);
        }
    }
    .word-your,
    .word-move {
        @media(max-width: 781px) {
            min-width: 100% !important;
            text-align: end;
            margin-top: var(--wp--preset--spacing--20);
            img {
                max-width: 200px;
            }
        }
    }
    .word-move {
        @media(max-width: 782px) {
            text-align: center;
        }
    }
}

.home-hero-block-stickers {
    display: flex;
    position: absolute;
    top: var(--mobile-header-height);
    left: 0;
    right: 0;
    bottom: 0;

    @media (min-width: 992px) {
        top: 130px;
    }

    .stickers {
        position: absolute;
        display: flex;
        align-items: center;
        justify-content: center;
        width: clamp(9.375rem, 8.173rem + 5.342vw, 12.5rem);
        height: clamp(6.25rem, 5.048rem + 5.342vw, 9.375rem);
        transition: all 0.2s ease-in-out;
        margin-bottom: 0 !important;

        img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            transition: opacity 0.35s ease;
            will-change: opacity;
            &.is-swapping {
                opacity: 0;
            }
        }

        /* Mobile positioning */
        &:nth-child(1) {
            top: -20px;
            left: 0px;
        }

        &:nth-child(2) {
            top: 130px;
            left: -20px;
        }

        &:nth-child(3) {
            top: 60px;
            right: -50px;
        }

        &:nth-child(4) {
            bottom: -10px;
            left: -70px;
        }

        &:nth-child(5) {
            right: -90px;
            bottom: 100px;
        }

        &:nth-child(6) {
            bottom: -60px;
            right: -60px;
        }

        /* Tablet positioning */
        @media (min-width: 782px) {
            &:nth-child(1) {
                top: -25px;
                left: 10%;
            }

            &:nth-child(2) {
                top: 55px;
                left: 38%;
            }

            &:nth-child(3) {
                right: 0;
            }

            &:nth-child(4) {
                bottom: -100px;
            }

            &:nth-child(5) {
                bottom: -20px;
                right: 30%;
            }

            &:nth-child(6) {
                bottom: -120px;
            }
        }

        /* Desktop positioning */
        @media (min-width: 992px) {
            &:nth-child(1) {
                top: 0px;
                left: 18%;
            }

            &:nth-child(2) {
                top: 95px;
                left: 43%;
            }

            &:nth-child(3) {
                right: 8%;
                top: 130px;
            }

            &:nth-child(4) {
                left: -25px;
            }

            &:nth-child(5) {
                right: 32%;
            }

            &:nth-child(6) {
                
            }
        }
    }
}

.home-hero-block-text {
    .word-make {
        position: relative;
        visibility: hidden;
    }
    .word-make::after {
        content: " ";
        background-image: url('../../assets/images/home-hero/1 Make.png');
        display: block;
        width: 100%;
        max-width: 200px;
        height: 1em;
        background-size: contain;
        background-repeat: no-repeat;
        visibility: visible;
        position: absolute;
        top: 0;
        left: 0;
    }
}
