body {
    animation: fadeInAnimation ease 3s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    background-color: black;
    margin-right: 5%;
    margin-left: 5%;
    color: #F6E5C2
}

@keyframes fadeInAnimation {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

h1 {
    font-size: 9vmin;
    color: #F6E5C2;
    position: relative;
    text-align: right;
}

h2,
#currentpage {
    color: #F6E5C2;
    font-style: italic;
    font-weight: 200;
    text-decoration: none;
    font-size: 2vmax;
}

name {
    color: #F6E5C2;
    font-style: italic;
    font-weight: 200;
    text-decoration: none;
    font-size: 1.5vmax;
}

.prename {
    font-weight: 100;
    font-size: 1.5vmax;
}

p {
    color: #F6E5C2;
}

a {
    color: #F6E5C2;
    text-decoration: none;
}

a:hover {
    font-style: italic;
    font-weight: 100;
    text-decoration: none;
}

footer {
    position: relative;
    bottom: 11px;
    color: #655a45;
    text-align: right;
}

.rightcaption,
.leftcaption,
.righthalfcaption,
.lefthalfcaption {
    color: #F6E5C2;
}

.piece img,
.piecedetail img {
    width: 100%;
    height: auto;
}

.piecedetail {
    margin-top: -189px;
}

.description {
    padding-bottom: 222px;
    padding-top: 22px;
}

@media screen and (orientation:landscape) {
    #navdesk {
        position: relative;
        text-align: right;
        z-index: 2;
        margin-top: -3vmax;
    }
    #navmob {
        display: none;
    }
    #worknav {
        display: none;
    }
    .piece,
    .piecedetail {
        width: 89vmax;
        height: auto;
    }
    .work {
        width: 89vmax;
        display: grid;
        grid-template-columns: 30% 30% 30%;
        grid-auto-rows: auto;
        column-gap: 55px;
        padding-bottom: 222px;
    }
    .work img {
        width: 100%;
    }
    .leftpiece {
        grid-column: 1 / 3;
        grid-row: 1 / 5;
    }
    .rightcaption {
        grid-column: 3 / 4;
        grid-row: 4 / 5;
    }
    .rightpiece {
        grid-column: 2 / 4;
        grid-row: 1 / 5;
    }
    .leftcaption {
        grid-column: 1 / 2;
        grid-row: 4 / 5;
    }
    .workhalf {
        width: 89vmax;
        display: grid;
        grid-template-columns: 47% 47%;
        grid-auto-rows: auto;
        column-gap: 55px;
        padding-bottom: 222px;
    }
    .workhalf img {
        width: 100%;
    }
    .lefthalf {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
    }
    .righthalf {
        grid-column: 2 / 3;
        grid-row: 1 / 3;
    }
    .righthalfcaption {
        grid-column: 2/3;
        grid-row: 2 / 3;
    }
    .lefthalfcaption {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
    }
    #subject {
        display: none;
    }
}

@media screen and (orientation:portrait) {
    h1 {
        text-align: center;
        position: relative;
        top: 3vh;
        font-size: 3.3max;
    }
    h2 {
        text-align: center;
        font-size: 3.3vmax;
        margin-bottom: -55px;
        margin-top: 55px;
        padding-bottom: 111px;
    }
    #subject {
        display: block;
    }
    #navdesk {
        display: none;
    }
    #navmob {
        position: absolute;
        margin: auto;
        margin-left: -5%;
        width: 100vmin;
        text-align: center;
        top: 2vmin;
    }
    #worknav {
        position: relative;
        text-align: center;
        padding-bottom: 5%;
    }
    a {
        font-size: 2vh;
        line-height: 202%;
    }
    name {
        font-size: 2.2vmax;
    }
    .piece,
    .piecedetail {
        width: 89vmin;
    }
    .work {
        width: 89vmin;
        display: grid;
        grid-template-columns: 100%;
        grid-auto-rows: auto;
        column-gap: 55px;
        row-gap: 22px;
        padding-bottom: 222px;
    }
    .work img {
        width: 100%;
    }
    .leftpiece,
    rightpiece {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }
    .rightcaption,
    .leftcaption {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
    }
    .workhalf {
        width: 89vmin;
        display: grid;
        grid-template-columns: 100%;
        grid-auto-rows: auto;
        row-gap: 22px;
        padding-bottom: 222px;
    }
    .workhalf img {
        width: 100%;
    }
    .righthalf {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }
    .lefthalf {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
    }
    .righthalfcaption,
    .lefthalfcaption {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
    }
}