:root {
    --gh-main-color: #0ea1ac;
}

div.hero {
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    flex-direction: column;
    align-self: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: fit-content;
    padding: calc(30vh - 10%) calc(10vw - 10%);
    margin-bottom: 20px;
}

.gastrohobbi_recipe_hero .hero {
    padding: calc(50vh - 10%) calc(10vw - 10%);
}

.gastrohobbi_recipe_hero .hero h4.hero_title {
    text-transform: uppercase;
}

.gastrohobbi_recipe_hero .hero h4.hero_title::after {
    content: "";
    display: block;
    margin: auto;
    width: 30%;
    border-bottom: 3px solid var(--gh-main-color);
}

div.hero .overlay {
    background-image: linear-gradient(rgba(255, 255, 255, 0.1), rgba(50, 50, 50, 0.5));
    height: 100%;
    width: 100%;
    z-index: 0;
    position: absolute;
    top: 0;
    left: 0;
}

div.hero .banner,
.single-recipe-header .banner {
    align-items: center;
    background-color: #FFF;
    display: flex;
    flex-flow: column;
    justify-content: center;
    text-align: center;
    z-index: 1;
}

div.hero .banner h3,
.single-recipe-header .banner h3 {
    font-weight: 400;
}

div.hero .banner .meta,
.single-recipe-header .banner .meta {
    align-items: center;
    display: flex;
    color: var(--gh-main-color);
    justify-content: flex-start;
}

div.hero .banner .meta-item,
.single-recipe-header .banner .meta-item {
    display: flex;
    align-items: center;
    margin-right: 1rem;
    font-weight: 600;
}

div.hero .banner .meta-item i,
.single-recipe-header .banner .meta-item i {
    margin-right: 5px;
}

div.hero .banner .tags,
.single-recipe-header .banner .tags {
    font-size: .8rem;
    width: calc(100% - 10px);

}

div.hero .banner .tags a,
.single-recipe-header .banner .tags a {
    color: #1d1d1d;
    font-weight: 600;
    text-decoration: none;
    transition: all .5s ease-in-out;
}

div.hero .banner .tags a:hover,
.single-recipe-header .banner .tags a:hover {
    color: var(--gh-main-color);
}

.single-recipe-header .featured-image{
    display: flex;
}

/**
 * Recipe loop
 */

.gastrohobbi_recipes {
    display: grid;
    /* flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between; */
    row-gap: 20px;
    column-gap: 10px;
    grid-auto-rows: 1fr;
    grid-template-columns: 1fr 1fr 1fr;
}

.gastrohobbi_recipes .recipe-item,
.gastrohobbi_recipes_carousel .recipe-item {
    background-color: #FFF;
    box-shadow: 3px 3px 5px #efefef;
    display: flex;
    flex-flow: column nowrap;
    align-items: stretch;
    justify-content: flex-start;
    flex-basis: calc(100% / 3 - 10px);
}

.gastrohobbi_recipes .recipe-item a,
.gastrohobbi_recipes_carousel .recipe-item a {
    text-decoration: none;
    display: flex;
    height: 100%;
    flex-basis: auto;
    flex-direction: column;
}

.recipe-item .featured-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 100%;
}

.recipe-item .featured-image img {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;

}

.recipe-item .recipe-content {
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-content: flex-end;
    height: 100%;
}

.recipe-item .recipe-content .recipe-title {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 0;
    transition: all .5s ease-in-out;
}

.gastrohobbi_recipes .recipe-item a:hover .recipe-content .recipe-title {
    color: var(--gh-main-color);
}

.gastrohobbi_recipes .recipe-item .meta {
    color: var(--gh-main-color);
}

.gastrohobbi_recipes .recipe-item .meta .meta-item i {
    margin-right: 5px;
}

.gastrohobbi_recipes .recipe-item .meta>span {
    margin-right: 15px;
}

@media screen and (max-width: 768px) {
    .gastrohobbi_recipes {
        display: flex;
        align-content: space-between;
        gap: 10px 20px;
        flex-flow: column nowrap;
        align-items: stretch;
    }

    .gastrohobbi_recipes .recipe-item {
        width: 100%;
    }
}


/**
   * Title shortcode
   */

h3.gh_title {
    background: linear-gradient(to left, var(--gh-main-color), var(--gh-main-color) 100%);
    background-position: 0 100%;
    background-size: 100% 2px;
    background-repeat: repeat-x;
    line-height: 2;
    width: fit-content;
    font-weight: 400;
}


/**/
div.video-grid {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
    transition: all .5s ease-in-out;
}

div.video-grid .recipe-video a{
    display: block;
    position: inherit;
    z-index: 10;
}

div.video-grid .recipe-video {
    border-radius: 30px;
    position: relative;
    transition: all .5s ease-in-out;
}

div.video-grid .recipe-video::after{
    content: "";
    background-color: rgba(0,0,0,.1);
    width: 100%;
    height: 100%;
    transition: all .2s ease-in-out;
    position: absolute;
        left: 0;
        top: 0;
}

div.video-grid .recipe-video:hover:after{
    background-color: transparent;
}

div.video-grid .recipe-video i{
    position: absolute;
    margin: auto;
    left: calc(50% - 1.5rem);
    top: calc(50% - 1.5rem);
    font-size: 3rem;
    color: #fff;
    transition: all .5s ease-in-out;
}

div.video-grid .recipe-video:hover i{
    left: calc(50% - 2rem);
    top: calc(50% - 2rem);
    font-size: 4rem;
}

div.video-grid blockquote{
    padding: 0;
}

/* owl-carousel dots */

.recipe-dots{
    position: relative;
    text-align: center;
} 

.gastrohobbi_recipes_carousel .recipe-dots button.owl-dot{
    background-color: #e3e3e3;
    border: 5px solid #e3e3e3;
    margin: 5px;

}

.gastrohobbi_recipes_carousel .recipe-dots button.owl-dot.active{
    background-color: #d3d3d3;
    border: 5px solid #d3d3d3;
}

/* Single recipe layout */

.single-recipe-header{
    display: flex;
    flex-direction: row;
    margin-bottom: 1.5rem;
}


.single-recipe-header > * {
    flex: 1;
}

.single-recipe-header .featured-image img{
    width: 100%;
}

.gh-row{
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 20px;
}

@media screen and (max-width: 768px){
    .single-recipe-header{
        flex-direction: column;
    }

    .gh-row{
        flex-direction: column;
    }

    .gh-col.media{
        order: -1;
    }
}

.gh-row .gh-col     {
    flex: 1 0;
}

@media screen and (max-width: 768px){
    .gh-row{

    }
}

.single-gastrohobbi_recipe .ingredients dl dt{
    border-bottom: 1px solid #efefef;
    font-weight: bold;
    font-size: .9em;

    padding: 10px;

}

.single-gastrohobbi_recipe .steps dl dt{
    font-size: 1em;
    padding: 10px;

}

/*sticky-video*/
@keyframes fade-in-up {
    0%   { opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
.video iframe {
    max-width: 100%;
    max-height: 100%;

}

.video.stuck {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 260px;
    height: 325px;
    transform: translateY(100%);
    animation: fade-in-up 0.75s ease forwards;
    z-index: 999;
}

