html,
body,
main,
h1,
h2,
h3,
h4,
section,
nav,
div {
    display: block;
    border: none;
    box-sizing: border-box
}

html {}

body {
    background-color: #FFFDF9;
    height: auto;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    color: #333333;
    font-family: 'Karla', sans-serif;
    font-weight: 300;
}

main {
    /*    width: 100%;*/
    max-width: 1080px;
    margin: 0 auto;
}

section {
    float: left;
    margin: 0;
    padding: 0 20px;
    width: 100%;
    max-width: inherit;
}

@media (min-width:480px) {
    section {
        padding: 0 25px;
    }
}

@media (min-width:880px) {
    section {
        padding: 0 75px;
    }
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Epilogue', sans-serif;
    font-weight: 400;
    line-height: 120%;
    width: 100%;
}

h1 {
    margin: 30px 0 50px 0;
    padding: 0;
    font-size: 48px;
}

h2 {
    margin: 0 0 40px 0;
    padding: 0;
    font-size: 42px;
}

h3 {
    font-size: 32px;
    padding: 0;
    margin: 0;
}

h4 {
    font-size: 18px;
    padding: 0;
    margin: 0;
}

p {
    font-family: 'Karla', sans-serif;
    line-height: normal;
    font-size: 18px;
    font-weight: 300;
    margin: 1em 0 0;
}

.bigp {
    font-size: 24px;
}

.littlep {
    font-size: 14px;
}

@media (min-width:480px) {
    h1 {
        margin: 50px 0 50px 0;
        font-size: 54px;
    }

    h2 {
        font-size: 48px;
    }

    h4 {
        font-size: 24px;
    }
}

@media (min-width:600px) {
    h1 {
        margin: 100px 0 50px 0;
        font-size: 60px;
    }
}

@media (min-width:880px) {
    h1 {
        font-size: 72px;
    }
}

.caption {
    font-size: 14px;
    font-style: italic;
    padding: 0 0 1.5em 0;
    margin: 0;
}

nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    /*    align-items: flex-start;*/
    padding: 40px 0;
}

nav p {
    margin: 0;
}

#topnav {}

.breadcrumb {
    width: 175px;
}

@media (min-width: 480px) {
    .breadcrumb {
        width: auto;
    }
}

ul {
    margin: 10px 0 20px 0;
    font-size: 18px;
    line-height: 1.2em;
}

.nobullet {
    list-style: none;
    padding: 0;
}

.nobullet li {
    padding-bottom: 2px;
}

a {
    text-decoration: none;
    color: #333333;
    font-family: inherit;
    border-bottom: #333333 solid 1px;
}

a.divlink {
    text-decoration: none;
    color: inherit;
    border: none;
    margin: 0;
    padding: 0;
}

a:hover {
    text-decoration: none;
    border-top: #333333 solid 1px;
    border-bottom: none;
    color: #333333;
}

a.divlink:hover {
    text-decoration: none;
    color: inherit;
    border: none;
}

.noborder {
    border: none;
}

footer {
    padding: 120px 0 40px 0;
}

/* ** IDs, custom classes below ** */

.emoji {
    font-size: 1.2em;
}

.centerized {
    text-align: center;
}

.divlinkholder {
    position: relative;
}

.divlink {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 10;
}

.fullpagew {
    float: left;
    margin: 0;
    padding: 0;
    width: 100%;
}

.full {
    width: 100%;
}

.third {
    width: 100%;
    float: left;
    padding: 0;
}

@media(min-width:640px) {
    .third {
        width: 33%;
        padding: 0 12px;
    }

    .third:first-of-type {
        padding-left: 0;
    }

    .third:last-child {
        padding-right: 0;
    }
}

.half {
    width: 50%;
}

.readingwidth {
    width: 70ch;
}


.lhalfsm {
    width: 100%;
    float: left;
    margin: 20px 0;
}

.rhalfsm {
    width: 100%;
    float: left;
    margin: 20px 0;
}

.lhalf {
    width: 100%;
    float: left;
}

.rhalf {
    width: 100%;
    float: left;
}

/*
.lhalf img {
    width: 100%;
    text-align: center;
}
*/

@media (min-width:640px) {

    .lhalf {
        width: 45%;
        margin: 0 5% 0 0;
        float: left;
    }

    .rhalf {
        width: 45%;
        margin: 0 0 0 5%;
        float: left;
    }

    .lhalfsm {
        width: 48%;
        margin-right: 2%;
        float: left;
    }

    .rhalfsm {
        width: 48%;
        margin-left: 2%;
        float: left;
    }

}

.halfimg {
    width: 100%;
    height: 400px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* ** IDs and classes for index page ** */

#indexbanner {
    width: 100%;
}

#indexbannercontent {
    width: 100%;
    padding: 50px 0;
}

@media (min-width:480px) {
    #indexbannercontent {
        padding: 50px 0 100px;
    }
}

@media (min-width:600px) {
    #indexbannercontent {
        padding: 50px 0 150px;
    }
}

#casestudies {}

.casestudies {
    padding-top: 48px;
    padding-bottom: 64px;
}

.caseimage {
    width: 100%;
    height: 200px;
}

#casestudies img {
    padding-bottom: 12px;
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

#casestudies .case {
    float: left;
    padding-bottom: 36px;
}

#casestudies .chalf {
    width: 100%;
}


#casestudies .chalf:first-of-type {
    padding-right: inherit;
}

#casestudies .chalf:last-of-type {
    padding-left: inherit;
}

@media (min-width:640px) {

    #casestudies {}

    .casestudies {
        padding-top: 48px;
        padding-bottom: 64px;
    }

    .caseimage {
        width: 100%;
        height: 200px;
    }

    #casestudies img {
        padding-bottom: 12px;
        width: 100%;
        max-height: 400px;
        object-fit: cover;
    }

    #casestudies .case {
        float: left;
        padding-bottom: 48px;
    }

    #casestudies .chalf {
        width: 50%;
    }

    #casestudies .chalf:first-of-type {
        padding-right: 12px;
    }

    #casestudies .chalf:last-of-type {
        padding-left: 12px;
    }
}

.careeritem {
    max-width: 720px;
    height: auto;
    padding: 24px 0;
}

.readwidth {
    max-width: 720px;
}

.careeritem:first-of-type {
    padding: 0 0 24px 0;
}

#work {}

.work {
    padding-top: 48px;
    padding-bottom: 24px;
}

.workitem {
    width: 100%;
    height: auto;
    margin: 40px 0;

    display: block;
    float: left;

    overflow: hidden;
}

.workimg {
    width: 100%;
    height: 200px;
    background-color: #333333;

    position: relative;
    overflow: hidden;
    z-index: 0;
}

.workimgfull {
    width: 100%;
    /*    height: 100%;*/
    /*    background-color: #333333;*/

    position: relative;
    overflow: hidden;
    z-index: 0;
}

.workimgfull img {
    width: 100%;
    /*    display: block;*/
}

.workimg img {
    width: 100%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%) translateX(0%);
}

.workdesc {
    display: block;
    float: left;
    border: 2px solid #333333;
    padding: 20px;
    height: 100%;
    background: #fffDf9;
    z-index: 1;
}

.workdescright {
    display: block;
    float: left;
    width: 100%;
    padding: 20px;
    height: 100%;
    background: #fffDf9;
    border: 2px solid #333333;
    z-index: 1;
}

.workdescleft {
    display: block;
    float: left;
    width: 100%;
    padding: 20px;
    height: 100%;
    background: #fffDf9;
    border: 2px solid #333333;
    z-index: 1;
}

#projIF .workimg {
    background-color: #f4f4f4;
}

#projIF .workimg img {
    width: 110%;
    transform: translateY(-50%) translateX(-5%);

}

#projReality .workimg img {
    width: 140%;
    transform: translateY(-50%) translateX(-10%);
}

@media (min-width:640px) {

    .workitem {
        width: 100%;
        height: auto;
        margin: 40px 0;

        display: flex;
        overflow: hidden;
    }

    .workimg {
        width: 70%;
        height: 325px;
    }

    .workdescright {
        width: 60%;
        padding: 20px;
        height: 100%;

        vertical-align: baseline;
        transform: translateY(10%) translateX(-10%);
        z-index: 1;
    }

    .workdescleft {
        width: 60%;
        padding: 20px;
        height: 100%;

        vertical-align: baseline;
        transform: translateY(10%) translateX(10%);

        z-index: 1;
    }
}

@media (min-width:880px) {
    .workdescright {
        transform: translateY(30%) translateX(-10%);
    }

    .workdescleft {
        transform: translateY(30%) translateX(10%);
    }
}

/* specific content for about page */

#aboutbanner {
    width: 100%;
}

#aboutbannercontent {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: url(../media/simon-computer.jpeg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom;

    border-bottom: #333333 solid 2px;
    margin-bottom: 20px;
}

@media (min-width:480px) {
    #aboutbannercontent {
        height: 400px;
    }
}

@media (min-width:880px) {
    #aboutbannercontent {
        height: 500px;
    }
}

#aboutdesc h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

#aboutdesc h2 {
    font-size: 24px;
    margin: 10px 0;
}

@media (min-width:480px) {
    #aboutdesc h1 {
        font-size: 48px;
        margin: 50px 0 20px;
    }

    #aboutdesc h2 {
        font-size: 36px;
        margin: 10px 0;
    }
}

.insetcaption {
    position: relative;
    top: 90%;
    left: 3%;
    color: #FFFDF9;
    width: auto;
}

#cv {
    margin: 50px 0 50px 0;
}

#cv h3 {
    margin: 40px 0 10px 0;
}

#cv p {
    margin: 10px 0;
}

/* specific content for project page */

#projectheader {
    /*    margin-bottom: 50px;*/
}

#projectheader h1 {
    padding-bottom: 0;
    margin-bottom: 30px;
}

#projectheader p {
    padding: 0 0 20px 0;
}

.projectbannerimg {
    margin: 30px 0;
    width: 100%;
    height: 350px;
    overflow: hidden;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.projectbody {
    padding-top: 30px;
    padding-bottom: 30px;
}

.projectbody h2 {
    margin-bottom: 0px;
}

.projectbody h3 {
    padding: 30px 0 0 0;
}

.projectbody p {
    margin: 1em 0;
}

/* animation */
.scroll-animation {
    visibility: hidden;
}

/* GETTING THAT IFRAME TO RESPOND CORRECTLY */
.auto-resizable-iframe {
    max-width: inherit;
    margin: 0 auto;
}

.auto-resizable-iframe > div {
    position: relative;
    padding-bottom: 60%;
    height: 0px;
    width: 100%;
}

.auto-resizable-iframe iframe {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
}
