/*GLOBAL DECLARATIONS*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 16px;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    height: max-content;
}

body {
    /*    padding: 1rem;*/
    color: #454545;
    max-width: 1730px;
    margin: 0 auto;
    background-color: #454545;
}

a {
    cursor: pointer;
    pointer-events: all;
    text-decoration: none;
    color: inherit;
}

/* BEGIN FONTS */

@font-face {
    font-family: "press-gothic";
    src: url("/fonts/PressGothic.woff2") format('woff2');
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: "pressgothicpro-regular";
    src: url("/fonts/pressgothicpro-regular.woff") format('woff2');
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: "urw-din-lt";
    src: url("/fonts/URWDIN-Light.woff2") format('woff2');
    font-style: normal;
    font-weight: 300;
}

@font-face {
    font-family: "urw-din-reg";
    src: url("/fonts/URWDIN-Regular.woff2") format('woff2');
    font-style: normal;
    font-weight: 400;
}


@font-face {
    font-family: "urw-din-bld";
    src: url("/fonts/URWDIN-Bold.woff2") format('woff2');
    font-style: normal;
    font-weight: 600;
}

@font-face {
    font-family: "urw-din-semcon-reg";
    src: url("/fonts/URWDINSemiCond-Regular.woff2") format('woff2');
    font-style: normal;
    font-weight: 400;
    ascent-override: 150%;
    descent-override: 70%;
}

@font-face {
    font-family: "urw-din-semcon-bld";
    src: url("/fonts/URWDINSemiCond-Bold.woff2") format('woff2');
    font-style: normal;
    font-weight: 400;
    ascent-override: 150%;
    descent-override: 70%;
}


h2 {
    font-family: 'press-gothic';
    line-height: 95%;
    text-transform: uppercase;
    font-weight: 400;
    line-height: 95%;
}

h3 {
    font-family: "urw-din-semcon-bld", sans-serif;
    font-weight: 600;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: .5px;
}

h4 {
    font-family: "urw-din-semcon-bld", sans-serif;
    font-weight: 600;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: .2px;
    color: #999999;
    line-height: 105%;
    text-align: center;
}

h6 {
    font-family: "urw-din-reg", sans-serif;
    font-weight: 400;
    font-style: normal;
    text-transform: lowercase;
    letter-spacing: .5px;
}

p {
    font-family: "urw-din-lt";
    font-style: normal;
    font-weight: 400;
}


/* END FONTS */

header {
    padding: 1rem 0 1rem;
    display: flex;
    align-items: center;
    flex-flow: row wrap;
    justify-content: space-between;
    text-transform: uppercase;
    font-family: "urw-din-semcon-reg", sans-serif;
    font-weight: 400;
    letter-spacing: 1px;
    font-size: 16px;
    background: #f8f8f8;
/*
    position: sticky;
    top: 0;
    z-index: 25;
*/
}

header h1 {
    display: flex;
    flex-flow: row wrap;
    line-height: 140%;
    position: relative;
    align-items: center;
}

header h1 span:first-child {
    font-family: "urw-din-semcon-bld", sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding-right: 1rem;
}

header h1 span:last-child {
    font-family: "urw-din-semcon-reg", sans-serif;
    font-weight: 400;
    font-size: 1rem;
}

#name,
nav {
    flex: 1 1 0;
    display: flex;
    text-align: center;
}

#name {
    justify-content: flex-end;
}

nav {
    justify-content: flex-start;
}

nav ul li:first-child {
    padding-left: 0;
}

#logo {
    display: flex;
    align-items: center;
    text-align: center;
}

#logo {
    height: 3.5rem;
    overflow: hidden;
    margin: 0 3.5rem;
}

#logo a {
    display: flex;
    align-items: center;
}

.mh-svg {
    height: 3.5rem;
    width: 83px;
}

#logo img {
    height: 100%;
}

nav {
    align-self: center;
    padding-right: 2px;
}

nav a {
    text-decoration: none;
    font-size: 16px;
}

nav a.active {
    font-family: "urw-din-semcon-bld", sans-serif;
    font-weight: 600;
    color: #8a9772;
}

nav a:hover {
    color: #8a9772;
    -webkit-transition: color .1s ease;
    -moz-transition: color .1s ease;
    -o-transition: color .1s ease;
    transition: color .1s ease;
}

nav ul {
    display: flex;
    list-style: none;
}

nav li {
    padding-left: 2rem;
}

li.divider {
    color: #cccccc;
}

.masthead {
    display: flex;
    width: 100%;
    height: 400px;
    background: #000000 url("/images/udx/uhu/uhu-hero.jpg") no-repeat right;
    background-size: auto 400px;
    /*    border-radius: .5rem;*/
    overflow: hidden;
    /*    margin-bottom: 1rem;*/

}

.masthead .column {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.masthead:hover {
    cursor: pointer;
}

.masthead:hover h2 {
    color: #8a9772;
    -webkit-transition: color .15s ease;
    -moz-transition: color .15s ease;
    -o-transition: color .15s ease;
    transition: color .15s ease;
}

.masthead h2 {
    font-size: 4.75rem;
    color: #ebebeb;
    width: 100%;
}

.masthead h6 {
    color: #ffffff;
    opacity: 55%;
    margin-top: .5rem;
    font-size: .875rem;
}

.projects {
    display: grid;
    grid-column-gap: 1.5rem;
    grid-row-gap: 1.5rem;
    align-items: center;
    grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
    /* ^ 330 for three columns/smallest mobile*/
    width: 100%;
    padding: 3rem;
    background: #ffffff;
}

.rel-projects {
    display: grid;
    grid-column-gap: 1.5rem;
    grid-row-gap: 1.5rem;
    align-items: center;
    grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
    /* ^ 330 for three columns/smallest mobile*/
    width: 100%;
    overflow: hidden;
    padding: 3rem 3rem 3rem;
    background-color: #ffffff;
}

.rel-projects .tile {
    display: flex;
    justify-content: space-between;
    align-content: space-between;
    aspect-ratio: unset;
}

/*.rel-projects .tile.flip,
.extras.flip {
    flex-flow: row-reverse wrap;
}*/

.project .description {
    padding: 4em 3.5rem 3.5rem;
    text-align: center;
    /*    margin-bottom: 1rem;*/
    /*    border-radius: .5rem;*/
    overflow: hidden;
    background-color: white;
}

.description h2 {
    font-family: 'press-gothic';
    font-size: 5rem;
    text-transform: uppercase;
    font-weight: 400;
    width: 100%;
    color: #454545;
    margin: 0 auto;
}

.description p {
    margin: 1.5rem auto 0;
}

.qualifier {
    font-size: .875rem;
    text-transform: lowercase;
}

.caption p {
    margin: 2.25rem auto 2rem;
    text-align: center;
    font-family: "urw-din-bld", sans-serif;
    font-weight: 600;
}

.visuals {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
}

.visuals img,
.visuals video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /*    border-radius: .5rem;*/
}

video {
    max-width: 1050px;
    padding: 100px 0;
    margin: 0 auto;
}

.shadow {
    box-shadow: 0px 0px 32px #ebebeb;
}

.swiper img {
    object-fit: cover !important;
}

.one-col {
    width: 100%;
    /*    margin-bottom: 1rem;*/
    /*    border-radius: .5rem;*/
    overflow: hidden;
    display: flex;
}

.two-col {
    width: 50%;
    /*    width: calc(50% - .5rem);*/
    /*    margin-bottom: 1rem;*/
    /*    border-radius: .5rem;*/
    overflow: hidden;
}

.three-col {
    width: 33.33%;
    /*    width: calc(33.33% - .75rem);*/
    /*    margin-bottom: 1rem;*/
    /*    border-radius: .5rem;*/
    overflow: hidden;
}

.four-col {
    width: 25%;
    /*    width: calc(25% - .75rem);*/
    /*    margin-bottom: 1rem;*/
    /*    border-radius: .5rem;*/
    overflow: hidden;
}

.tile {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-content: space-between;
    aspect-ratio: 1;
}

.tile a {
    position: relative;
}

.tile a div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.tile a .teaser {
    z-index: 2;
}

.tile a img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.tall {
    height: 100%;
    width: calc(50% - .75rem);
    aspect-ratio: 1 / 2;
    background-color: #454545;
    border-radius: .5rem;
    overflow: hidden;
    color: #ffffff;
}

.projects .tall:nth-child(odd) {
    background-color: #8a9772;
}

.wide {
    width: 100%;
    height: calc(50% - .75rem);
    aspect-ratio: 2 / 1;
    background-color: #454545;
    border-radius: .5rem;
    overflow: hidden;
}

.projects .wide:nth-child(odd) {
    background-color: #8a9772;
}

.rel-projects .wide:nth-child(odd) {
    background-color: #8a9772;
}

.square {
    height: calc(50% - .75rem);
    width: calc(50% - .75rem);
    aspect-ratio: 1;
    background-color: #454545;
    border-radius: .5rem;
    overflow: hidden;
}

.projects .square:nth-child(1),
.projects .square:nth-child(4) {
    background-color: #8a9772;
}

.rel-projects .square:nth-child(1) {
    background-color: #8a9772;
}

.rel-projects .tile {
    height: 100%;
}

.rel-projects .square {
    height: 100%;
    width: calc(50% - .75rem);
    border-radius: .5rem;
    overflow: hidden;
}

.rel-projects .wide {
    height: 100%;
    width: 100%;
    border-radius: .5em;
    overflow: hidden;
}


div.square {
    height: calc(50% - .75rem);
    width: calc(50% - .75rem);
    aspect-ratio: 1;
    background-color: none;
    border-radius: .5rem;
    overflow: hidden;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-content: space-between;
    background-color: #ffffff !important;
}

.extras {
    height: calc(50% - .75rem);
    width: calc(50% - .75rem);
    aspect-ratio: 1;
    border-radius: .5rem;
    overflow: hidden;
    background-color: #ebebeb;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: row wrap;
    position: relative;
}

.svg {
    position: relative;
    display: inline-block;
    background-color: #ebebeb;
}

.svg:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.svg object {
    height: 100%;
    width: 100%;
}


/* FILTER SVG COLOR CHANGE: https://codepen.io/sosuke/pen/Pjoqqp */

/*.extras:nth-child(2) .svg:hover .icon,
.extras:nth-child(2) .svg:focus .icon,
.extras:nth-child(3) .svg:hover .icon,
.extras:nth-child(3) .svg:focus .icon {
    filter: brightness(0) saturate(100%) invert(23%) sepia(53%) saturate(0%) hue-rotate(189deg) brightness(100%) contrast(92%);
}

.extras:nth-child(1) .svg:hover .icon,
.extras:nth-child(1) .svg:focus .icon,
.extras:nth-child(4) .svg:hover .icon,
.extras:nth-child(4) .svg:focus .icon {
    filter: brightness(0) saturate(100%) invert(61%) sepia(23%) saturate(339%) hue-rotate(39deg) brightness(90%) contrast(94%);
}*/


.edit-wrapper:hover .top,
.svg:hover {
    -webkit-transition: opacity .1s ease;
    -moz-transition: opacity .1s ease;
    -o-transition: opacity .1s ease;
    transition: opacity .1s ease;
    opacity: 0;
}


.wide img, .tall img, a.square img, a.extras img {
        transition: .1s ease-in-out;
}

.wide:hover img,
.tall:hover img {
    -webkit-transform: scale(1.05);
    -moz-transform: scale(1.05);
    -ms-transform: scale(1.05);
    -o-transform: scale(1.05);
    transform: scale(1.05);
}

a.square:hover img,
a.extras:hover img {
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -ms-transform: scale(1.1);
    -o-transform: scale(1.1);
    transform: scale(1.1);
}

.edit-wrapper {
    position: relative;
    height: 100%;
    width: 100%;
}

.edit-wrapper:hover {
    cursor: pointer;
}

img.top {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
}

.edit-wrapper img {
    width: 100%;
    height: 100%;
}

.fade {
    position: relative;
    height: 100%;
    width: 100%;
}

.detail {
    padding: 2rem;
    display: flex;
    flex-flow: row wrap;
    text-align: center;
    height: 100%;
    justify-content: center;
    z-index: 1;
}

.detail h3 {
    font-size: 22px;
    line-height: 110%;
    flex: 0 0 100%;
    text-align: center;
    align-self: center;
    color: #ffffff;
}

.detail h3.mobile,
.description span.mobile {
    display: none;
}

.detail h6 {
    font-size: 12px;
    text-transform: lowercase;
    color: #ffffff;
    opacity: 75%;
    flex: 0 0 100%;
    position: absolute;
    align-self: flex-end;
    padding-bottom: 1rem;
}

.related {
    background: #ffffff;
    padding: 1.5rem 0 0;
    /*    border-radius: .5em;*/
    text-align: center;
    /*    margin: 0 1rem 1rem;*/
}

.related h2 {
    font-size: 2.5rem;
    color: #999999;
    font-family: "pressgothicpro-regular";
    letter-spacing: 1px;
    width: max-content;
    margin: 0 auto;
    padding: 1.5rem 3rem 0;
    border-radius: .5rem .5rem 0 0;
}

/*
.related h2 {
    font-family: "urw-din-semcon-reg";
    font-weight: 400;
    font-size: 2rem;
    letter-spacing: 0px;
    color: #989898;
    width: fit-content;
    margin: 0 auto;
    padding: .75rem 3rem;
}
*/


/*TOUCHSWIPE CSS TRUCK 360 */

.img-container-sd,
.img-container-mx,
.img-container-tr,
.img-container-dp {
    cursor: ew-resize;
    height: 100%;
    width: 100%;
    margin: 0 auto;
}

.img360 {
    width: 100%;
    height: 100%;
    line-height: 0;
    padding: 0;
}

.img360 img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

#preload-imgs,
#preload-imgs-sd,
#preload-imgs-mx,
#preload-imgs-tr,
#preload-imgs-dp {
    display: none;
}

/* END TOUCHSWIPE /



/* ABOUT PAGE */

section.about {
    display: flex;
    flex-flow: row wrap;
    width: 100%;
    justify-content: space-between;
}

.about .autobiography,
.about .photo {
    width: 50%;
    background-color: #ebebeb;
    overflow: hidden;
    height: 690px;
    max-height: 800px;
}

.about .autobiography {
    /*    border-radius: 1rem 0 0 1rem;*/
}

.about .photo {
    /*    border-radius: 0 1rem 1rem 0;*/
}

.photo {
    display: flex;
    background-image: linear-gradient(to left, transparent 60%, #ebebeb), url("/images/josh-wide.jpg");
    background-size: auto 108%;
    background-repeat: no-repeat;
    background-position: right center;
    overflow: hidden;
}

.photo img {
    height: 100%;
    width: 100%;
}

.about div {
    text-align: center;
}

.autobiography {
    display: flex;
    justify-content: center;
    align-items: center;
}

.autobiography h2 {
    font-size: 4.75rem;
    color: #454545;
}

.autobiography h2,
.autobiography p {
    margin: 0 auto 1.5rem;
}

.autobiography p:last-of-type {
    margin-bottom: 0;
}

.autobiography .button {
    display: block;
    margin: 2rem auto 0;
}

.autobiography .button {
    border: 3px solid #899872;
    padding: 1rem 1rem 10px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: #454545;
    font-family: "urw-din-bld", sans-serif;
    font-weight: 600;
    width: max-content;
}

.autobiography .button:hover {
    background-color: #8a9772;
    color: #ffffff;
    -webkit-transition: all .15s ease;
    -moz-transition: all .15s ease;
    -o-transition: all .15s ease;
    transition: all .15s ease;
}

footer {
    width: 100%;
    text-align: center;
    margin-bottom: 0 !important;
    /*    border-bottom: .25rem solid #899772;*/
    padding: 2.5rem 0 2rem;
    background: #f8f8f8;
    color: #999999;
}

@media (max-width: 1400px) {


    .projects,
    .rel-projects {
        grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    }
}

@media (max-width: 1024px) {

    #toggle {
        display: none;
    }

    .projects,
    .rel-projects {
        grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    }
}

@media (max-width: 576px) {

    #toggle {
        display: flex;
    }

    body,
    html {
        overflow: auto !important;
        max-height: 100% !important;
    }

    header {
        justify-content: center;
        flex-flow: row wrap;
        padding-top: 1rem;
    }

    header #name,
    header #logo,
    header nav {
        flex-basis: 100%;
        justify-content: center;
    }

    #logo img {
        height: 3.5rem;
        margin: 0;
    }

    header #name {
        order: 2;
        margin-bottom: 2rem;
    }

    header #logo {
        order: 1;
        margin-bottom: 1rem;
    }

    header nav {
        order: 3;
    }

    header nav ul {
        justify-content: space-around;
        width: 100%;
    }

    nav a.active {
        letter-spacing: 0 !important;
    }

    .divider {
        flex-basis: 5%;
        padding: 0;
    }

    .navitems {
        padding: 0;
        flex-basis: 30%;
    }

    header h1 span:first-child {
        font-family: "urw-din-semcon-bld", sans-serif;
        font-weight: 600;
        font-size: 1.785rem;
        flex-basis: 100%;
        padding-right: 0;
        letter-spacing: 0rem;
    }

    header h1 span:last-child {
        font-family: "urw-din-semcon-reg", sans-serif;
        font-weight: 400;
        font-size: 1em;
        flex-basis: 100%;
    }

    .masthead {
        display: flex;
        width: auto;
        height: 358px;
        background-color: #000000;
        background-image: linear-gradientlinear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 55%), url("https://ik.imagekit.io/7yajwjf7q/thumbs/uhu-thumb-3.jpg");
        background-image: -webkit-linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 55%), url("https://ik.imagekit.io/7yajwjf7q/thumbs/uhu-thumb-3.jpg");
        background-image: -moz-linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 55%), url("https://ik.imagekit.io/7yajwjf7q/thumbs/uhu-thumb-3.jpg");
        background-image: -ms-linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 55%), url("https://ik.imagekit.io/7yajwjf7q/thumbs/uhu-thumb-3.jpg");
        background-image: -o-linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 55%), url("https://ik.imagekit.io/7yajwjf7q/thumbs/uhu-thumb-3.jpg");
        background-repeat: no-repeat;
        background-size: 100% 100%;
        background-position: center top;
        object-fit: cover;
        overflow: hidden;
        /*        margin-bottom: 1rem;*/
        align-items: flex-end;
        padding-bottom: 2rem;
    }

    .masthead .column {
        width: 100%;
        height: 50%;
        align-items: flex-end;
        text-align: center;
        padding: 1.5rem 1.5rem 0;
    }

    .masthead h2 {
        font-size: 3.25em;
    }

    .masthead h6 {
        font-size: .75rem;
        margin-top: 1rem;
    }

    .detail h3 {
        letter-spacing: 0;
    }

    h3.desktop,
    span.desktop {
        display: none;
    }

    div.mobile,
    div.mobile {
        display: none !important;
        height: 0
    }

    h3.mobile,
    span.mobile {
        display: inline-block !important;
    }

    .projects,
    .rel-projects {
        padding: 1rem;
        grid-column-gap: 1rem;
        grid-row-gap: 1rem;
    }

    .projects,
    .rel-projects {
        grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    }

    .rel-projects .tile.rel-proj:nth-of-type(1) {
        grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
        order: 2;
    }

    .rel-projects .tile.rel-proj:nth-of-type(3) {
        grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
        order: 3;
    }

    .rel-projects .tile.rel-proj:nth-of-type(3) {
        grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
        order: 1;
    }


    .projects .tall {
        height: 100%;
        width: calc(50% - .5rem);
    }

    .projects .wide {
        width: 100%;
        height: calc(50% - .5rem);
    }

    .projects .square {
        height: calc(50% - .5rem);
        width: calc(50% - .5rem);
    }

    .rel-projects .square {
        height: 100%;
        width: calc(50% - .5rem);
    }

    .project h2,
    .about h2 {
        font-size: 3.75rem;
    }

    .one-col,
    .two-col,
    .three-col,
    .four-col {
        width: 100%;
    }

    .project .description {
        padding: 2rem 1.75rem 1.75rem;
    }

    section.about {
        flex-flow: row wrap-reverse;

    }

    .about .autobiography {
        overflow: visible;
    }

    .about .autobiography {
        padding: 2rem 2rem 3rem;
    }

    .about .photo {
        height: 300px;
        background-color: #ebebeb;
        background-image: linear-gradient(to bottom, transparent 40%, #ebebeb), url("images/josh-square.jpg");
        background-repeat: no-repeat;
        background-size: 100% auto;
        background-position: center;
        /*        border-radius: 1rem 1rem 0 0;*/
        margin-bottom: 0;
    }

    .about .autobiography,
    .about .photo {
        width: 100%;
    }

    .about .autobiography {
        height: max-content;
    }

    .about .autobiography {
        /*        border-radius: 0 0 1rem 1rem;*/
    }

    .detail {
        padding: 1.5rem !important;
    }

    .detail h6 {
        padding-bottom: 0 !important;
    }

    .wide:focus img,
    .tall:focus img,
    a.square:focus img,
    a.extras:focus img {
        -webkit-transition: opacity .1s ease;
        -moz-transition: opacity .1s ease;
        -o-transition: opacity .1s ease;
        transition: opacity .1s ease;
        opacity: 0;
    }

    .wide:active img,
    .tall:active img,
    a.square:active img,
    a.extras:active img {
        -webkit-transition: opacity .1s ease;
        -moz-transition: opacity .1s ease;
        -o-transition: opacity .1s ease;
        transition: opacity .1s ease;
        opacity: 0;
    }

    video {
        padding: 1rem;
    }

    footer {
        padding: 1.5rem;
    }

}
