.brands-overview-block {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;

    @media (width >= 992px) {
        flex-direction: row;
    }
}

.brands-overview-block--item {
    flex: 1;
    display: block;
}

.brands-overview-block--item-inner {
    display: block;
    position: relative;
    aspect-ratio: 1 auto;

    .gradient {
        overflow: hidden;
        height: 100%;
        width: 100%;
        display: block;
        background-image: linear-gradient(0deg, rgb(0 0 0 / 0%) 60%, rgb(0 0 0 / 20%) 70%, rgb(0 0 0 / 40%) 80%, rgb(0 0 0 / 60%) 90%, rgb(0 0 0 / 80%) 100%);
        position: absolute;
        top: 0;
        z-index: 1;
        transition: all 0.2s ease-in-out;
    }

    .image-background--wrapper {
        overflow: hidden;
        height: 100%;
        width: 100%;
        display: block;
        position: absolute;
        top: 0;
        z-index: -1;
    }

    .image-background {
        height: 100%;
        width: 100%;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center bottom;
        transition: all 0.2s ease-in-out;
    }

    .logo-wrapper {
        top: 1.875rem;
        left: 0;
        right: 0;
        width: fit-content;
        position: absolute;
        margin-left: auto;
        margin-right: auto;
        aspect-ratio: 4/1;
        z-index: 2;
        display: flex;
        place-content: center center;

        @media (width >= 992px) {
            top: 3.75rem;
        }
    }

    .logo-item-image {
        width: 100%;
        object-fit: contain;
        filter: brightness(0) invert(1);
    }

    &:hover, &:focus {
        .image-background {
            transform: scale(1.075);
        }
    }
}

.brands-overview-block--buttons .wp-element-button {
    transform: skewX(-35deg) translateX(-1rem) translateY(-50%);
}

.brands-overview-block--buttons .wp-element-button::before {
    background-position-x: 105%;
    background-repeat: no-repeat;
    background-size: 200%;
    background-image: var(--wp--preset--gradient--button-gradient-black);
    inset: 0;
    content: ' ';
    position: absolute;
    transition: background-position .15s ease-in-out;
}

.brands-overview-block--item:hover .brands-overview-block--buttons .wp-element-button::before {
    background-position-x: 0;
}