h1 {
    margin: 0;
}

h2 {
    border-bottom: 4px solid #d0b654;
}

h2 {
    margin: 0 auto;
}

section:first-of-type h2 {
    width: 80%;
}

section:last-of-type h2 {
    width: 50%;
}

#front-photo section {
    padding: 20px;
}

#read {
    display: block;
    width: 50%;
    margin: 0 auto;
    border-radius: 40px;
    padding: 10px 0;
    margin-bottom: 30px;
}

#read * {
    margin: 0 5px;
}

#front-photo {
    background-image: url(../images/home-background.jpg);
    background-position: center;
    background-size: cover;
    height: 33rem;
    margin-bottom: 20px;
}

main section:first-of-type figure {
    width: 30%;
    margin: 0 auto;
    margin-bottom: 10px;
    opacity: .7;
}

main section:first-of-type p {
    text-align: center;
    padding: 0 15px;
}

#cv {
    border: 4px solid #d0b654;
}

.first-nav > li:first-child > a {
    color: #d0b654;
}

@media screen and (max-width: 400px) {
    #front-photo {
        height: 25rem;
    }
}

@media screen and (min-width: 750px) {
    main > section:first-of-type > p {
        max-width: 50ch;
        margin: 20px auto;
    }

    #front-photo {
        height: 40rem;
    }

    #read {
        width: 30%;
        margin-bottom: 100px;
        font-size: 1.2rem;
    }
}

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

    section:last-of-type {
        display: grid;
    }

    #front-photo {
        background-position: top;
        height: 30rem;
    }

    main > section:first-of-type {
        margin: 30px;
        margin-left: 25px;
        align-content: center;
    }

    main > section:first-child > p {
        margin: 50px 20px;
        width: 75%;
    }

    section:last-of-type {
        grid-template-columns: 1fr 1fr 1fr;
    }

    section:last-of-type > h2, section:last-of-type {
        grid-column: 1 / 4;
    }

    section:last-of-type > div:nth-child(2),
    section:last-of-type > div:nth-child(3),
    section:last-of-type > div:last-child {
        grid-row: 2 / 3;
    }

    section:last-of-type > div:nth-child(2) {
        grid-column: 1 / 2;
    }

    section:last-of-type > div:nth-child(3) {
        grid-column: 2 / 3;  
    }

    section:last-of-type > div:last-child {
        grid-column: 3 / 4;
    }

    section:first-of-type > h2 {
        margin: 0 auto;
    }

    section:first-of-type > h2,
    section:last-of-type > h2 {
        width: 40%;
    }

    .more-box {
        grid-template-rows: 1fr 1fr .3fr .3fr .3fr .3fr;
        width: 100%;
    }

    .more-box a {
        grid-row: 3 / 5;
        font-size: 25px;
    }
}