﻿@media (max-width: 768px) {
    body{
        grid-template-columns: calc(100vw - 40px) 40px ;
        align-items: flex-start;
    }
    body > header{
        grid-column: 1 / -1;
        grid-row: 1;
    }
    ul.banner{
        grid-column: 2;
        grid-row: 1 / 4;
    }
    body > main{
        grid-column: 1;
        grid-row: 2;
    }
    body > footer{
        grid-column: 1 / -1;
        grid-row: 3;
    }
    body > #slider,
    body > p{
        display: none;
    }
}

article > header > figure{
    position: relative;
    margin-bottom: 1rem;
}
article > header > figure::after{
    content: "";
    background: radial-gradient( rgba(var(--main-color-opacity), .7) 0%, rgba(var(--main-color-opacity), 0) 70%);
    width: 17.5rem;
    height: 13.5rem;
    position: absolute;
    bottom: -10rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
}

article > header > figure img{
    width: 50vw;
    height: 25rem;
    object-fit: cover;
    object-position: center;
}
@media (max-width: 768px) {
    article > header > figure img{
        width: 100vw;
        height: 15rem;
    }
}
article > header h2{
    font-size: 2rem;
    padding-left: 6rem;
    position: relative;
    margin-bottom: 3rem;
}
article > header h2::before{
    content: "";
    width: 26.75rem;
    height: 2px;
    background: var(--main-color);
    position: absolute;
    left: 0;
    bottom: -1.5rem;
}
article > header h2::after{
    color: rgba(var(--main-color-opacity), .5);
    font-size: 3rem;
    position: absolute;
    left: 2rem;
    bottom: -2rem;
    z-index: -1;
}
article > section{
    padding: 2rem 0 3rem;
}
article > section > div{
    width: 90%;
    margin: 0 auto;
}

#post-104  > header h2::after{
    content: "3 years old";
}
#post-110  > header h2::after{
    content: "5 years old";
}
#post-115 header h2::after{
    content: "7 years old";
}
#post-119  > header h2::after{
    content: "Father";
}
#post-123 header h2::after{
    content: "Mother";
}
#post-199  > header h2::after{
    content: "Boys";
}
#post-197 header h2::after{
    content: "Girls";
}




@media (max-width: 768px) {
    article section{
        padding: 2rem 0;
    }
    article > header h2{
        font-size: 1.5rem;
        padding-left: 2rem;
    }
    article > header h2::before{
        width: 16rem;
    }
    article > header h2::after{
        left: 17rem;
    }
}

article section div{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 2rem 1rem;
}
article section div figure{
    border-radius: .75rem;
    overflow: hidden;
}
article section div figure img{
    height: 100%;
    object-fit: cover;
}
article section div figcaption{
    text-align: center;
    font-size: .8rem;
}
@media (max-width: 768px) {
    article section div{
        grid-template-columns: repeat(2,1fr);
    }
}