/* Specific to the season */


.pagecontent {
    display: grid;
    padding: 3.5vw;
    grid-template-columns: auto;
    grid-template-areas: 
    'station'
    'videobox'
    'introlead'
    'recipe'
    'gallery'
}


.introlead {
    grid-area: introlead;
    font-size: 1.1rem;
    line-height: 1.7rem;
}

.videobox {
    grid-area: videobox;
    margin: 3vw -2vw;
}

.recipe {
    grid-area: recipe;
}

.gallery {
    grid-area: gallery;
    display: grid;
    align-content: start;
    gap: 1px 5px;
    padding: 1vw;
}

.gallery img {
    max-width: 100%;
    height: auto;
}

.station {
    grid-area: station;
    text-align: center;
}

h2 {
    font-size: 1.8rem;
    line-height: 2rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.3rem;
    line-height: 1.6rem;
    margin: 1.5rem 0 1rem 0;
}

/* Visual header */

.visual-header {
    background-repeat: no-repeat;
    background-image: url(../img/backgrounds/recetas_1.svg), url(../img/backgrounds/recetas_2.svg), url(../img/backgrounds/recetas_3.svg), url(../img/backgrounds/recetas_4.svg);
    background-position: top left, bottom left, bottom right, top right;
    background-size: calc(200px * 0.7) auto, calc(240px * 0.7) auto, calc(240px *0.7) auto, calc(200px *0.7) auto;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Video */

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16/9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


.ingredients {
    display: grid;
    grid-template-columns: auto;
}

.ingredients {
    grid-template-areas: 
    'ingredients_t'
    'ingredients_l'
    'ingredients_r'
}

.ingredients_t {
    grid-area: ingredients_t;
}

.ingredients_l {
    grid-area: ingredients_l;
}

.ingredients_r {
    grid-area: ingredients_r;
}

.procedure {
    display: grid;
    grid-template-columns: auto;
}

.procedure {
    grid-template-areas:
    'procedure_t'
    'procedure_l'
    'procedure_r'
}

.procedure_t {
    grid-area: procedure_t;
}

.procedure_l {
    grid-area: procedure_l;
}


.gallery {
    margin-top: 6vw;
}

.recipe {
    margin-top: 6vw;
}

@media screen and (min-width: 580px) {
    .visual-header {
        height: 350px;
    }
    h2 {
        font-size: 1.8rem;
        line-height: 2rem;
    }
    
    h3 {
        font-size: 1.6rem;
        line-height: 1.9rem;
    }
    .ingredients {
        grid-template-areas: 
        'ingredients_t ingredients_t'
        'ingredients_l ingredients_r'
    }
    .procedure {
        gap: 1.5vw;
        grid-template-areas: 
        'procedure_t procedure_t'
        'procedure_l procedure_r'
    }

    .gallery {
        grid-template-columns: auto auto;
    }

    .gallery {
        margin-top: 6vw;
    }

    .recipe {
        margin-top: 6vw;
    }

}

@media screen and (min-width: 880px) {
    .visual-header {
        height: 420px;
        background-size: calc(200px * 1) auto, calc(190px * 1) auto, calc(140px * 1) auto, calc(200px * 1) auto;
    }
    h1 {
        max-width: 700px;
    }

    h2 {
        font-size: 2rem;
        line-height: 2.3rem;
    }

    h2.procedure_t {
        margin-bottom: 0;
    }
    
    h3 {
        font-size: 1.6rem;
        line-height: 1.9rem;
    }

    .pagecontent {
        grid-template-columns: 47vw 47vw;
        column-gap: 1.2vw;
        padding: 0.7vw;
        grid-template-areas: 
        'station station'
        'introlead videobox'
        'recipe gallery'
    }

    .introlead {
        font-size: 1.6vw;
        line-height: 2.3vw;
        padding: 3vw;
    }

    .videobox {
        margin: 5vw 1vw;
    }

    .gallery {
        margin-top: 5vw;
    }

    .recipe {
        margin-top: 5vw;
        margin-left: 2vw;
    }

}

@media screen and (min-width: 1200px) {
    .visual-header {
        height: 420px;
        background-size: calc(290px * 1) auto, calc(200px * 1) auto, calc(180px * 1) auto, calc(250px * 1) auto;
    }
}

@media screen and (min-width: 1365px) {

    h1 {
        max-width: 840px;
    }

    h2 {
        font-size: 2.5rem;
        line-height: 2.8rem;
    }

    .visual-header {
        background-size: calc(200px * 1.5) auto, calc(168px * 1.5) auto, calc(150px * 1.5) auto, calc(200px * 1.5) auto;
    }

    .pagecontent {
        grid-template-columns: 23.5vw 23.5vw 23.5vw 23.5vw;
        column-gap: 1.2vw;
        padding: 0.7vw;
        grid-template-areas: 
        'station station station station'
        'introlead introlead videobox videobox'
        'recipe recipe gallery gallery'
    }

    .introlead {
        font-size: 1.7vw;
        line-height: 2.7vw;
        padding: 3vw;
    }

}

/* PRINT */

@media print {
    .visual-header {
        height: 200px;
    }
}
