/*RECIPES  */

.page-title {
    text-align: center;
    margin: 40px auto 20px;
}

.loader {
    position: absolute;
    top: 50px;
    left: calc(50% - 20px);
    z-index: 3;
    width: 40px;
    height: 40px;
    border: 5px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 40px auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.post-thumbnail.recipe-thumbnail {
    border-radius: 24px;
    overflow: hidden;
    max-width: 70%;
    height: 420px;
    margin: 0 auto 40px;
}

.post-thumbnail.recipe-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#recipes-list {
    min-height: 400px;
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.recipe-thumb__wrapper {
    width: 100%;
    height: 350px;
    display: block;
    overflow: hidden;
    border-radius: 10px;
}

.recipe-thumb__wrapper:hover img {
    transform: scale(1.2);
}

article.recipe {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#category-filter {
    display: flex;
    gap: 10px;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
}

#category-filter li a {
    border: 1px solid var(--theme-text-color);
    color: var(--theme-text-color);
    border-radius: 30px;
    padding: 6px 18px 6px;
    display: block;
    text-decoration: none;
    transition: all .5s linear;
}

#category-filter li a:hover,
#category-filter li a.active {
    background: #ff9000;
    color: #fff;
    border-color: #ff9000;
}

.recipe-thumb__wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all .5s ease-in-out;
}