/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
    #modalImg {
        width: 100%;
        height: auto;
    }
    #modal {
        padding-top: 50px;
    }
}

/* ---------------------------------------------------------------------------*/

body {
    height: calc(100vh - 10px);
    width: 100vw;
    margin: 0;
    font-family: helvetica, arial, sans-serif;
    letter-spacing: 1px;
    overflow-x: hidden;
    line-height: 1.5;
    font-size: 14px;
}

li {
    list-style-type: none;
}

a {
    color: black;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
   
}

/*--------------------------- General page layout ----------------------------*/

#header-container {
    position: fixed;
    width: 100%;
    height: 50px;
    top: 0;
    left: 0;
    z-index: 1;
    background-color: white;
}
#header-container img {
    height: calc(100% - 2em);
    padding: 2em;
}

#navigation-container {
    position: fixed;
    width: 100px;
    left: 0;
    top: 50px;
    height: 100%;
}
#navigation-container ul{
    padding: 2.5em;
    margin: 0;
}

#content-container {
    width: calc(100% - 100px);
    margin-top: 50px;
    margin-left: 100px;
    overflow: scroll;

    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-justify-content: space-around;
    justify-content: space-around;
}

/*WORK LAYOUT */

.single-work {
    width: calc(100% - 100px);
    height: calc(100vh - 150px);
    padding: 50px;
}
.work-pictures {
    position: relative;
    width: 100%;
    height: 95%;

    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-align-items: center;
    align-items: center; 
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-justify-content: center;
    justify-content: center;
}
.work-caption{
    height: 5%;
    text-align: center;
}

/*--------------------------- Everything else ----------------------------*/

.info-col {
    width: 30%;
    max-width: 350px;
}

.info-col a {
    border-bottom: 1px solid black;
}
.info-col a:hover {
    text-decoration: none;
    font-weight: bold;
}

.navigation-active {
    text-decoration: underline;
}

/* ----------------------------- PICTURE SERIES ----------------------------- */
/* Slideshow container */
.single-pic {
  display: none;
  order: 2;
  cursor: pointer;
}
.landscape-pic{
    width: auto;
    height: 100%;
}
.portrait-pic{
    width: auto;
    height: 100%;
}

.active-pic {
    display: block;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  font-size: 20px;
  /*transitio: 0.6s ease;*/
}
.prev {
    padding-right: 20px;
    order: 1;
}
.next {
    padding-left: 20px;
    order: 3;
}
.prev:hover, .next:hover {
  text-decoration: none;
}
/* On hover, add a black background color with a little bit see-through */
/*.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.5);
}*/

/* Fading animation */
.fade {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1.5s;
  animation-name: fade;
  animation-duration: 1.5s;
}

@-webkit-keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}



/* --------------------------------- MODAL ---------------------------------- */
/* The Modal (background) */
#modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2; /* Sit on top */
    padding: 10px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgb(255,255,255); /* Fallback color */
    background-color: rgba(255,255,255,0.95); /* Black w/ opacity */
    cursor: n-resize;
}

/* Modal Content (image) */
#modalImg {
    margin: auto;
    display: block;
    height: 90%;
}

/* Caption of Modal Image */
#modalCaption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: black;
    padding: 10px 0;
    height: 150px;
}

/* Add Animation */
#modalImg, #modalCaption {    
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
    from {-webkit-transform:scale(0)} 
    to {-webkit-transform:scale(1)}
}
@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}