/* already defined for custom recipe cards */
.plp-container {
    padding: 30px 50px;
    margin: 0 auto;
    max-width: 1400px;
}

.recipes-container {
    display: grid;
    margin: 20px auto;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    column-gap: 30px;
    row-gap: 40px;
}

.recipe-card {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
    border-radius: 15px;
    position: relative;
    max-width: 250px;
    min-width: 230px;
}

.recipe-card-divider {
    display: none;
}

.recipe-card > a {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
}

.recipe-card-img {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    height: 160px;
    width: 100%;
    object-fit: cover;
    -webkit-object-fit: cover;
}

.recipe-card-favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.recipe-card-title {
    font-size: 1.1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.recipe-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.recipe-card-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #53CE6A;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 17px;
    color: white;
    font-size: 2.3rem;
    margin: 0;
    padding-bottom: 3px;
    z-index: 2;
}

.recipe-card-add-btn-home {
    background-color: #EEEEFF;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    z-index: 2;
}

.cooking-time {
    font-weight: 300;
}

.cooking-time-mobile {
    display: none;
}

@media screen and (max-width: 1460px) {
    .plp-container {
        padding: 30px 20px;
        max-width: 1090px;
    }

    .recipes-container {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

@media screen and (max-width: 1070px) {
    .plp-container {
        max-width: 810px;
    }

    .recipes-container {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media screen and (max-width: 790px) {
    .plp-container {
        padding-left: 43px;
        padding-right: 43px;
        max-width: 530px;
    }

    .recipes-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 575px) {
    .plp-container {
        padding: 10px 10px;
        margin: 0;
    }

    .recipes-container {
        margin-top: 10px;
        grid-template-columns: 1fr;
        row-gap: 5px;
        width: 100%;
    }

    .recipe-card.portrait {
        width: 230px;
    }

    .recipe-card.landscape {
        display: flex;
        box-shadow: none;
        max-width: 100%;
    }

    .recipe-card-divider {
        display: block;
        width: 100%;
        border-bottom: 1px solid #D9D7FF;
    }

    .recipe-card-divider:last-child {
        display: none;
    }

    .recipe-card.landscape .recipe-card-img {
        width: 45vw;
        max-width: 230px;
        height: 130px;
        object-fit: cover;
        -webkit-object-fit: cover;
        border-radius: 15px;
    }
    
    .recipe-card-header {
        position: relative;
    }

    .recipe-card.landscape .recipe-card-content {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 100%;
    }

    .recipe-card.landscape .recipe-card-body {
        padding: 5px 10px;
    }

    .recipe-card-title {
        font-size: 1rem;
    }

    .recipe-card.landscape .recipe-card-footer {
        padding: 5px 10px;
        justify-content: end;
    }

    .recipe-card.landscape .recipe-card-add-btn {
        padding-left: 0;
        padding-right: 0;
    }

    .recipe-card.landscape .cooking-time {
        display: none;
    }

    .recipe-card.portrait .cooking-time {
        font-size: 0.95rem;
    }
    
    .recipe-card.landscape .cooking-time-mobile {
        display: block;
        position: absolute;
        background: #ffffffbe;
        padding: 0px 4px;
        border-radius: 14px;
        bottom: 5px;
        left: 5px;
        font-size: 0.8rem;
    }

    .recipe-card.landscape .cooking-time-icon {
        height: 16px;
    }
}