.page-template-template_lpdf_recipes .grid__wrapper {
    padding: 60px 5%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4%;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px 4%;
}

.page-template-template_lpdf_recipes .grid__item {
    position: relative;
    width: calc(50% - 4%); 
    aspect-ratio: 546/548;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.page-template-template_lpdf_recipes .grid__item:nth-child(6n-1),
.page-template-template_lpdf_recipes .grid__item:first-child {
    margin-top: 40px;
}
.page-template-template_lpdf_recipes .grid__item:before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 40%;
    width: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.80) 0.07%, rgba(0, 0, 0, 0.00) 99.84%);
    z-index: 1;
}
.page-template-template_lpdf_recipes .grid__item-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transform: scale(1);
    transition: transform 600ms ease-in-out;
    will-change: transform;
}
.page-template-template_lpdf_recipes .grid__item-content {
    color: white;
    position: relative;
    z-index: 2;
    padding: 0 5% 20px;
}

.page-template-template_lpdf_recipes .grid__item-content {
    color: white;
    position: relative;
    z-index: 2;
    padding: 0 5% 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.page-template-template_lpdf_recipes .grid__item-title,
.page-template-template_lpdf_recipes .grid__item-company {
    font-family: 'LouvreSansMedium';
    margin-bottom: 0;
}
.page-template-template_lpdf_recipes .grid__content-arrow {
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid white;
    flex: none;
    width: 50px;
    height: 50px;
    background: transparent;
    border-radius: 50%;
    transition: background 500ms ease-in-out;
}

.page-template-template_lpdf_recipes .grid__content-arrow svg {
    fill: white;
    transition: fill 500ms ease-in-out;
}

.page-template-template_lpdf_recipes .grid__item:hover .grid__item-img {
    transform: scale(1.1);
}
.page-template-template_lpdf_recipes .grid__item:hover  .grid__content-arrow {
    background: white;
}
.page-template-template_lpdf_recipes .grid__item:hover .grid__content-arrow svg {
    fill: black;
}

@media screen and (max-width: 768px) {
    .page-template-template_lpdf_recipes .grid__wrapper {
        padding: 30px 5%;
        gap: 20px;
        flex-direction: column;
        flex-wrap: wrap;
        max-width: inherit;
        margin: 0 auto;
    }
    
    .page-template-template_lpdf_recipes .grid__item {
        position: relative;
        width: 100%;
        aspect-ratio: 546/548;
        overflow: hidden;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }
    
    .page-template-template_lpdf_recipes .grid__item:nth-child(6n-1),
    .page-template-template_lpdf_recipes .grid__item:first-child {
        margin-top: 0;
    }
}