/* ======================================================
 * BASE
 * ======================================================*/

body,
a {
    color: #222;
    margin: 0px;
}

body {
    font-family: 'Titillium Web', sans-serif;
    text-transform: lowercase;
    font-weight: 700;
    /*line-height: 1.5em;*/
    letter-spacing: 0.35px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
/*    padding: 10px 0px 5px;*/
    text-align: center;
}

p {
    font-size: 0.875em;
    font-style: normal;
    letter-spacing: 0.0465em;
/*    display: inline;*/
}

h1 {
    font-size: 0.875em;
    font-weight: 700;
    letter-spacing: 0.0465em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
}


/* ======================================================
 * HOME
 * ======================================================*/

.thumbss {
    background-image: url(#);
    background-repeat: no-repeat;
    background-attachment: center center;
    background-position: fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.about-hover {
    background-image: url(#);
    height: 100vh;
    width: auto;
    background-size: auto 60%;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: left bottom;
}

div#previewbox {
    margin-top: 23px;
}

/*
div#projects.show,
div#photolist.show,
div#photos.show {
    width: 90%;
    margin: 0 auto;
    height: 300px;
}
*/

ul.photoslides li img {
    display: inline;
}

ul.photoslides li {
    list-style: none;
    padding-bottom: calc((100vh - 747px) / 2);
    padding-top: calc((100vh - 747px) / 2);
}

ul.photoslides {
    padding: 0;
    margin: 0;
/*    margin-top: 120px;*/
}

/*
ul.photo div li,
ul.photo li {
    list-style: none;
    text-align: left;
    float: left;
}
*/

div#preview {
    margin-left: 20px;
}

#photonav {
    width: 250px;
    margin-left:18px;
}

ul.photo div li:last-child {
    margin-bottom: 20px;
}

div#photolist>div {
    float: left;
}

.showpoint {
    display: inline;
}

.hide {
    display: none !important;
}

.nav-project {
    border-bottom: 1px solid black;
}

.nav-project_white {
    border-bottom: 1.2px solid white;
}

div#start-container {
    text-align: left;
    width: 600px;
    height: 460px;
    margin: auto;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

span.underline {
    /*border-bottom: 1.5px solid black;*/
    box-shadow: inset 0 -2px 0 white, inset 0 -3px 0 black;
    text-shadow: .03em .08em white, -.03em .08em white, 0 .03em white, 0 -.03em white, .06em 0 white, -.06em 0 white, .09em 0 white, -.09em 0 white, .12em 0 white, -.12em 0 white, .15em 0 white, -.15em 0 white, -.15em .08em white, .15em .08em white, 0 .08em white;
}

span.no-underline {
    /*border-bottom: 1.5px solid black;*/
    box-shadow: inset 0 -1.2px 0 white;
    display: inline-block;
    line-height: 1.2;
    font-weight: 700;
    text-shadow: none;
}

ul#navigation,
ul.projects,
ul.photo {
    list-style: none;
    padding: 0px;
    margin: 0px;
}

ul#navigation {
    margin: 10px 0px 0px 20px;
}

ul#navigation ol {
    display: none;
    margin: 0px;
    padding: 4px 0px 4px 25px;
}

img.project-thumb {
    padding: 0px 10px 5px 0px;
    float: left;
    display: none;
}

div.entry {
    float: left;
}

div.entry h1 {
    margin-top: 4px;
    margin-bottom: 4px;
}

#thumbs {
    display: inline;
    width: 176px;
    height: 277px;
    float: left;
    margin-left: 20px;
    margin-top: 13px;
    background-size: 100%;
    background-image: url(/public/images/thesis.jpg);
}

#photothumbs {
    display: inline;
    width: 322px;
    height: 215px;
    float: left;
    margin-left: 20px;
    margin-top: 13px;
    background-size: 100%;
    background-image: url(/public/images/vietnam-one.jpg);
}

div#projectlist,
div#photolist {
    /* display:inline;*/
    float: left;
    margin-left: 21px;
    margin-top: 3px;
}

a.atom-rss {
    margin: 0px 0px 0px 6px;
    padding: 1px 2px 0px;
    font-size: 0.93em;
    letter-spacing: 0.08em;
    background: #ddd;
}

#xnepal {
    cursor:not-allowed;
}


/* ======================================================
 * ABOUT ME
 * ======================================================*/

div.about-container div.about {
    width: 56.55vh;
    margin-left: 5%;
    margin-right: 5%;
    height: 100%;
    float:left;
}

img.about {
    height: 100%;
    bottom: 0;
    width: auto;
    float: left;
}

.about-container {
    height: 80%;
    width: 90%;
    bottom: 0;
    position: absolute;
}

div.about-container div.aboutcontent {
    text-align: left;
    max-width: 500px;
    width: 45%;
    float: left;
}

div.about-container a#back {
    float:none;
    
}

div.about-container a#back img {
    margin-bottom: 36px;
    padding-left: 0px;
    
}

div.about-container a img#back {
    margin-bottom: 43px;
    margin-right: 40%;
    float: left;
}


/* ======================================================
 * PROJECT
 * ======================================================*/

#project-head {
    opacity: 0;
}

#centernav {
    position: absolute;
    height: 538px;
    margin: auto;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.counter {
    display: inline-block;
}

div#project-head {
    max-width: 1123px;
    height: 20px;
    text-align: left;
    margin: 0 auto;
    margin-top: -54px;
    margin-bottom: 40px;
}

div#content {
    width: 60%;
    max-width: 628px;
    height: auto;
    text-align: left;
    margin: auto;
    /*    margin-top: 60px;*/
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-40%);
    -ms-transform: translateY(-50%);
}

#more {
    float: right;
}

#more img {
    width: 11px;
    height: 11px;
    padding: 7px 7px 7px 7px;
    margin: -7px -7px -7px -7px;
}

a.flex-prev {
    padding: 0px 7px 3px 7px;
    margin: 0px -7px 3px -7px;
}

.image {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    margin-top: -100px;
    /* half the height */
    margin-left: -100px;
    /* half the width */
}

.slides li {
    height: 100%;
    margin: 0 0 20px;
    position: relative;
    /*    background: lightgray;*/
}

img {
    width: 100%;
    display: block;
}

ul.slides object {
    margin-top: 100px;
}


a#back {
    float: left;
}

a#back img {
    width: 18px;
    height: 7px;
    padding: 10px 7px 7px 7px;
    margin: -7px -7px -7px -7px;
}

img#more {
    width: 11px;
    height: 11px;
}


/* ======================================================
 * PHOTO
 * ======================================================*/

#photocontainer {
    max-width: 1121px;
/*    position: absolute;*/
    margin: auto;
    margin-top: 0px;
/*    margin-bottom: 150px;*/
    left: 0;
    right: 0;
}

div.nav {
    float: right;
    width: 90px;
    height: 20px;
    text-align: center;
}

.leftnav {
    position: absolute;
    width: 75px;
    margin-top: 6px;
}

.photonav {
    position: fixed;
    margin-left: calc((100% - 1121px) / 4 - 16px);
    margin-top: calc((100vh - 747px) / 2 - 3px);
}

div.nav p {
    float: left;
    position: relative;
    top: 0px;
    margin: 0;
}

.cursor-down {
/*    cursor: url('/public/images/cursor-down.svg'),auto;*/
    cursor: url("/public/images/cursor-down.png") 0 0, pointer; /* Legacy */
    cursor: url("/public/images/cursor-down.png") 0 0, pointer; /* FF */
    cursor: -webkit-image-set(url("/public/images/cursor-down.png") 1x, url("/public/images/cursor-down@2x.png") 2x) 0 0, pointer; /* Webkit */
}

ul.photoslides li img {
    
    margin:auto;
    max-width:1121px;
    max-height:85vh;
    width:auto;
    height:auto;
    display:block;
}

/* ======================================================
 * RESPONSIVE
 * ======================================================*/

@media all and (max-height: 685px) {
    #centernav {
        height: auto;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    div#content {
        top: 38px;
        bottom: auto;
        transform: none;
        -webkit-transform: none;
        -ms-transform: none;
    }
    
    div#project-head {
        margin-top: -8px;
        margin-bottom: 8px;
    }
    
    .flexslider {
        height: 100%
    }

}

@media all and (orientation:portrait) {
    #centernav {
        position: absolute;
        height: 50%;
        margin: auto;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
    }
    
    div#content {
        width: 60%;
        max-width: 628px;
        text-align: left;
        margin: auto;
        position: absolute;
        top: 20px;
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        -webkit-transform: none;
        -ms-transform: none;
    }
    
    div#project-head {
        width: 95.4%;
        max-width: 1121px;
        height: 20px;
        text-align: left;
        margin: 0 auto;
        margin-top: -54px;
        margin-bottom: 40px;
    }
}


@media all and (max-width: 640px) {
    div#start-container {
        top: 10%;
        bottom: auto;
        height: auto;
        padding-bottom: 20px;
        width: 80%;
    }
    
    #thumbs, #photothumbs {
        display: none;
    }
    
    
    #projectlist, #photolist {
        margin-left: 10px!important;
        margin-top: 1px;
    }
}


@media all and (max-aspect-ratio: 7/5) {
    img.about {
        height: auto;
        bottom: auto;
        margin-left: auto;
        margin: 0 auto;
        width: 70%;
        float: none;
        max-width: 400px;
        margin-bottom: 50px;
    }
    
    .about-container {
        bottom: auto;
        margin: 0 auto;
        margin-top: 40px;
        margin-bottom: 50px;
        position: relative;
        width: 80%;
        max-width: 650px;
    }
    
    div.about {
        float: none;
        margin: 0 auto;
        width: 70%;
        max-width: 580px;
    }
    
    div.about-container div {
        float: none;
        margin: 0 auto !important;
        width: auto !important;
    }
    
    div.about-container div.item {
        margin: 0;
        position: relative;
    }
    
    div.about-container a {
        position: absolute;
        top: 0;
        left: 0;
    }
    
    div.about-container div a {
        position: relative;
    }
    
}



@media all and (min-aspect-ratio: 8/5) and (max-height: 830px) {
    
        ul.photoslides li {
        list-style: none;
        padding-bottom: 7vh;
        padding-top: 7vh;
}
    
    #photocontainer {
    
    max-width:calc(85vh * 1.5);
   
    }
    
    .photonav {
        margin-top: 7vh;
        margin-left: calc((100vw - (90vh * 1.5)) / 4);
}

    }
    
@media all and (max-aspect-ratio: 8/5) {
    ul.photoslides li img {
    
    margin:auto;
    max-width:1121px;
    width:75vw;
    height:auto;
    display:block;
    }
    
    #photocontainer {
    
    margin:auto;
    max-width:1121px;
    width:75vw;
    height:auto;
    display:block;
    }
    
    ul.photoslides li {
        list-style: none;
        padding-bottom: calc((100vh - (75vw / 1.5)) / 2);
        padding-top: calc((100vh - (75vw / 1.5)) / 2);
}
    
    .photonav {
        margin-top: calc(((100vh - (75vw / 1.5)) / 2) - 2px);
        margin-left: calc(25vw / 4 - 7px);
}
}

@media screen and (max-device-width: 480px){
  body{
    -webkit-text-size-adjust: none;
  }
}
