
#recipegrid {
    scroll-margin-top: 60px;
}

/* Recipe categories thumbnails */
#recipecategory {
    background: url("/img/rostilji/vizual-recipes.webp") no-repeat center;
    width: 100%;
    height: 100%;
    max-height: 1115px;
    margin-top: -121px;
    margin-bottom: 40px;
    padding-top: 170px;
    padding-bottom: 40px;
    background-size: cover;
}

#recipe_thumbgrid {
	display: grid;
	grid-template-rows: 1fr 1fr;
	grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 0 30px;
}

#recipecategory h1 {
    font-family: var(--black);
    color: var(--crveno);
    font-style: normal;
    font-weight: 400;
    font-size: 68px;
    line-height: 82px;
    margin-bottom: 40px;
}

#recipecategory p {
    margin-bottom: 40px;
}

#recipecategory  .recipe_thumbox {
	/*max-height: 280px;
	height: 100%;*/
}

.recipe_thumbox img {
    filter: brightness(1) contrast(0.9);
    transition: filter 0.3s ease;
}

.recipe_thumbox:hover img {
    filter: brightness(1.1) contrast(1);
}

#recipecategory .recipe_thumbox img {
	max-height: 221px;
}

#recipecategory .recipe_thumbtitle {
    font-weight: 500;
    font-size: 20px;
    line-height: 26px;
    padding-top: 15px;
    padding-bottom: 25px;
    text-transform: uppercase;
}

/* Single recipe page */
#receptimage {
	width: 100%;
	position: relative;
	text-align: center;
	background: linear-gradient(180deg, rgb(28 7 7 / 0.8) 0%, rgb(0 0 0 / 0.6) 100%);
	padding: 120px 0 60px 0;
	margin-top: -64px;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-flow: column;
}

#receptimage img {
    width: 73%;
    max-width: 87.5rem;
    border-radius: 1.25rem;
    object-fit: cover;
}

.recipe-excerpt-wrapper {
	display: flex;
	justify-content: center;
	z-index: 2;
	padding: 0 1rem;
	margin-top: -121px;
}

.recipe-excerpt {
	width: 100%;
	max-width: 58rem;
	margin-bottom: 1.875rem;
	box-shadow: 0 0.25rem 1.25rem rgb(0 0 0 / 0.25);
}

.recipe-excerpt .product-page-name {
    text-align: center;
    text-transform: uppercase;
    background: rgb(255 255 255 / 0.8);
    border-top-left-radius: 0.625rem;
    border-top-right-radius: 0.625rem;
    padding: 1.25rem 1rem;
}

.recipe-excerpt h1 {
    margin: 0;
    color: #000;
}

.recipe-background {
    position: relative;

    /*margin-top: -340px;*/
}

.recipe-background > * {
    position: relative;
    z-index: 1;
}

.recipe-sidebar {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.recipe-sidebar::before {
    background: url("/img/rostilji/recipebackground.png") no-repeat center top;
    position: absolute;
    inset: 0 -15px 0 -15px;
    background-size: cover;
    content: "";
    z-index: 0;
    opacity: 0.5;
    pointer-events: none;
}

.recipe-excerpt .recipe-excerpt_content {
	background: #fff;
	border-bottom-left-radius: 0.625rem;
	border-bottom-right-radius: 0.625rem;
	padding: 1.25rem 2rem;
	display: flex;
	flex-flow: column;
	align-items: center;
}

.recipe-excerpt .blog-date {
    font-family: var(--bold);
    font-size: 0.875rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #000;
}

.recipe-excerpt .recipe-intro {
    text-align: center;
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.recipe-sidebar > * {
    width: 100%;
    position: relative;
    z-index: 1;
}

.recipe-ingredients {
	margin-top: 40px;
}

@media (width >= 1200px) {
    .recipe-sidebar > * {
        max-width: 22rem;
    }
}

.recipe-preparing {
    box-shadow: 0 0.25rem 1.25rem rgb(0 0 0 / 0.25);
    border-radius: 0.625rem;
    background: #fff;
    padding: 40px 30px;
    margin: 2.5rem 0;
    width: 100%;
}

.recipe-preparing ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.recipe-preparing ul li {
    font-family: var(--bold);
    font-weight: 400;
    font-size: 1.25rem;
    border-bottom: 1px dashed var(--crveno);
    padding: 0.625rem 0;
}

.recipe-preparing ul li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.recipe-preparing ul li span {
    color: var(--crveno);
}

.recipe-ingredients h3 {
    color: var(--crveno);
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.recipe-ingredients p {
    font-family: var(--bold);
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 1.625;
    margin-bottom: 2rem;
}

.recipe-description img {
    border-radius: 0.625rem;
    max-width: 100%;
}

.recipe-dish {
    font-family: var(--regular);
    font-weight: 500;
    font-size: 1.25rem;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.recipe-description h3 {
    text-align: left;
    margin: 2.5rem 0 2.5rem 0;
    text-transform: uppercase;
    position: relative;
    width: fit-content;
}

.recipe-description h3::after {
    content: "";
    background: url("/img/rostilji/recipe-h3.svg") no-repeat center;
    width: 4.75rem;
    height: 3.4375rem;
    background-size: contain;
    display: inline-block;
    position: absolute;
    left: calc(100% + 0.5rem);
    top: 50%;
    transform: translateY(-50%);
}

.recipe-description ul {
    font-family: var(--bold);
    font-weight: 400;
    font-size: 1.0625rem;
    line-height: 1.375rem;
    counter-reset: recipe-steps-counter;
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 60px;
}

.recipe-description ul li {
    counter-increment: recipe-steps-counter;
    padding-left: 3.25rem;
    position: relative;
}

.recipe-description ul li::before {
    content: counter(recipe-steps-counter, decimal-leading-zero);
    color: var(--crveno);
    font-family: var(--black);
    font-weight: 400;
    font-size: 1.75rem;
    line-height: 1.375rem;
    position: absolute;
    left: 0;
    top: 0;
}

.recipe-description p {
    font-family: var(--bold);
    font-weight: 400;
    font-size: 1.0625rem;
    line-height: 1.375rem;
}


/* Responsive CSS */
@media (width >= 1581px) {
    .recipe-background {
        margin-left: 100px;
    }
}

@media (width >= 1200px) {
    .recipe-description {
        padding-left: 60px;
    }
}

@media (width <= 991px) {
    #receptimage img {
        width: 100%;
        border-radius: 0;
    }

    #receptimage {
        margin-top: -20px;
        padding: 0;
    }
}

@media (width <= 767px) {
    #recipe_thumbgrid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .recipe-excerpt .blog-date {
        font-size: 1rem;
    }

    .recipe-ingredients p {
        font-size: 1rem;
    }

    .recipe-preparing {
        width: 100%;
    }

    .recipe-description h3 {
        margin: 2.5rem 0 1rem 0;
    }
}

@media (width <= 767px) and (width >= 577px) {
    #receptimage img {
        width: 100%;
    }
}

@media (width <= 576px) {
    #recipecategory {
        max-height: none;
        margin-top: -2.5rem;
        margin-bottom: 1.25rem;
        padding-top: 3.125rem;
        padding-bottom: 0;
        background-size: cover;
    }

    #recipe_thumbgrid {
        grid-template-columns: 1fr 1fr;
    }

    .recipe-excerpt .recipe-intro {
        font-size: 1.125rem;
        line-height: 1.6;
    }

    .recipe-description ul {
        gap: 1.25rem;
    }
}