.counting-numbers {
    position: relative;
    display: flex;
    min-height: 280px;
    flex-direction: column;
}

.counting-numbers:has(figure.image img):has(h2){
    min-height: 450px;
}

.counting-numbers .counting-numbers-background {
    position: absolute;
    left: -50vw;
    right: -50vw;
    height: 100%;
    overflow: hidden;
}

.counting-numbers .counting-numbers-background .background {
    height: 100%;
    width: 100vw;
    position: absolute !important;
    top: 0;
    left: 0;
    margin: 0 auto;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    right: 0;
}

.counting-numbers h2{
    color: #fff;
    z-index: 10;
    text-align: center;
    padding-top: 60px;
}

.counting-numbers .image-overlay {
    background-color: var(--color-sherpa-blue-80);
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    opacity: .65;
    touch-action: none;
    mix-blend-mode: multiply;
}
.counting-numbers:has(.background.empty) .image-overlay{
    opacity: 1;
}

.counting-numbers .image-overlay.light{
    background-color: var(--color-sherpa-blue-10);
}

.counting-numbers:has(.image-overlay.light) h2, .counting-numbers:has(.image-overlay.light) .counting-number-toptext {
    color: var(--color-sherpa-blue-80);
}

.counting-numbers:has(.image-overlay.light) .counting-number-bottomtext {
    color: #000;
}

.counting-numbers .image-overlay.dark {
    background-color: var(--color-sherpa-blue-80);

}


.counting-numbers .counting-number figure.image {
    height: 0;
    align-content: center;
    margin-bottom: 10px;
}

.counting-numbers:has(figure.image img) figure.image{
    height: 100px;
}
.counting-numbers .counting-number figure.image img {
    height: 100%;
    width: auto;
    max-width: 100px;
    max-height: 90px;
}

.counting-numbers ul {
    position: relative;
    list-style: none;
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    height: 100%;
    align-items: center;
    margin: auto;
    z-index: 2;
    gap: 30px;
}
.counting-numbers ul li::before{
    content: none !important;
}

.counting-numbers .counting-number {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0;
    padding-left: 0;
}

.counting-numbers ul:has(li:nth-child(3)) .counting-number{
    flex: 1 1 0px;
}

.counting-numbers .counting-number .counting-number-toptext {
    color: #FFF;
    font-size: 24pt;
    font-weight: 600;
    line-height: 1;
    display: flex;
    flex-direction: row;
    gap: 25px;
}

.counting-numbers .counting-number .image + .counting-number-bottomtext {
    margin-top: 30px;
}

.counting-numbers .counting-number .counting-number-bottomtext {
    color: #FFF;
    font-weight: 500;
    text-align: center;
}

@media screen and (max-width: 767px) {
    .counting-numbers ul {
        flex-direction: column;
        padding: 50px 30px;
        gap: 50px;
    }

    .counting-numbers .counting-number .counting-number-toptext {
        gap: 10px;
    }

    .counting-numbers .counting-number figure.image img {
        max-height: 90px;
        width: 100px;
    }

    .counting-numbers .counting-number .counting-number-toptext{
        font-size: 50px;
        margin-bottom: 0;
    }

    .counting-numbers .counting-number .counting-number-bottomtext {
        font-size: 20px;
    }

    .counting-numbers:has(figure.image img) figure.image {
        height: auto;
        margin-bottom: 25px;
    }

    .counting-numbers.two-col ul{
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-end;
        justify-content: space-between;
        gap: 40px;
    }

    .counting-numbers.two-col .counting-number {
        flex: calc(50% - 27px) !important;
    }

    .counting-numbers.two-col:has(img) .counting-number{
        min-height: 225px;
        max-height: 225px;
        justify-content: space-between;
    }
}
