.cafels {
    position: relative;
    overflow: hidden;
}

.cafels_wrap {
    padding: calc(var(--spacing-lg)) 0;
    background: var(--color);
    position: relative;
}


.cafels_wrap::before {
    content: url('../../assets/images/logo-small.png');
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}


/* .cafels .container {
    max-width: 100%;
} */

.cafels_items {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.cafels_item {
    overflow: hidden;
    flex-basis: 100%;
    position: relative;
    padding: calc(var(--spacing-lg) * 2) var(--spacing-md);

    @media (min-width: 780px) {
        flex-basis: calc(100% / 2 - var(--spacing-lg) / 2);
    }
}

.cafels_item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--blackDarkTrans);
    z-index: 1;
}

.cafels_item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .3s all;
}

.cafels_item:hover img {
    transform: scale(1.1);
}

.cafels_item_content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

.cafels_item_title {
    font-size: var(--font-size-h4);
    padding-bottom: var(--spacing-sm);
    font-weight: 700;
}

.cafels_item_subtitle {
    color: var(--whiteTrans);
    max-width: calc(var(--spacing-xxl) * 5.7);
    margin: 0 auto;
    padding-bottom: var(--spacing-sm);
}

.cafels_item a.button.button-bottom {
    color: var(--white) !important;
    border-color: var(--white) !important;
}

.cafels_item_square {
    width: var(--square);
    aspect-ratio: 1 / 1;
    position: absolute;
    top: -2px;
    left: -2px;
    z-index: 2;
    background: var(--topLeftColor);
}

.cafels_item>.cafels_item_square:nth-last-of-type(1) {
    right: -2px;
    background: var(--topRightColor);
    left: auto;

    @media (min-width: 780px) {
        top: auto;
        right: auto;
        bottom: -2px;
        left: -2px;
        background: var(--bottomLeftColor);
    }
}

.cafels_items .cafels_item:nth-of-type(odd)>.cafels_item_square {
    top: auto;
    left: -2px;
    bottom: -2px;
    background: var(--bottomLeftColor);

    @media (min-width: 780px) {
        left: auto;
        right: -2px;
        bottom: auto;
        top: -2px;
        background: var(--topRightColor);
    }
}

.cafels_items .cafels_item:nth-of-type(odd)>.cafels_item_square:last-of-type {
    top: auto;
    left: auto;
    right: -2px;
    bottom: -2px;
    background: var(--bottomRightColor);
}

.cafels_item:nth-child(2){
    order: -1;

    @media (min-width: 780px) {
        order: 0;
    }
}

.cafels > svg {
    width: 100%;
    height: auto;
}