
div#recipe-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;

    width: 100%;
    height: 450px;
    padding-top: 50px;
    overflow-y: hidden;
    font-size: 0.8rem;
}

@media screen and (max-width: 759px) {
    div#recipe-grid {
        height: 1830px;
    }
}

a.recipe {
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 300px;
    height: 440px;
    outline: 4px solid white;
    border-radius: 20px;
    padding: 0;
    margin: 0;
}

a.recipe>div.preview {
    width: 100%;
    height: 220px;
}

a.recipe>div.preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 13px 13px 0 0;
}

a.recipe>div.description {
    font-size: 1em;
    padding-inline: 20px;
    display: flex;
    flex-direction: column;
    height: 150px;
    overflow: hidden;
}

a.recipe>div.description h2 {
    font-size: 2em;
    margin: 0;
    margin-top: 10px;
    align-self: center;
}

a.recipe>div.description>div {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
a.recipe>div.description h3 {
    font-size: 1.1em;
    margin: 0;
    margin-bottom: 10px;
    text-decoration: underline;
    font-weight: normal;
}

a.recipe>div.description p {  
    display: -webkit-box;
    max-width: 260px;
    padding-block: 0px;
    margin-block: 0px;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

a.recipe>ul.metadata {
    height: 40px;
    padding-block: 0px;
    margin-block: 0px;
    border-top: 1px solid rgb(63, 63, 63);
    list-style-type: none;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding-inline: 20px;
}

a.recipe>ul.metadata li {
    display: inline-block;
    width: 50%;
}

a.recipe>ul.metadata li>span.identifier {
    font-weight: bold;
}