/*! HTML5 Boilerplate v5.0.0 | MIT License | http://h5bp.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

body {
    /*background: url("../img/730-park-cover.jpg");*/
    background-size: cover;
    -moz-background-size: cover;
    -webkit-background-size: cover;
    background-repeat: no-repeat;

    font-family: Garamond,Baskerville,"Baskerville Old Face","Hoefler Text","Times New Roman",serif;
}

#head-container {
    max-width: 90%;
    margin: 0 auto;
}

#body-container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    overflow: auto;
}

#home-logo {
    display: block;
    width: 250px;
    height: 60px;
    background-image: url("../img/logo.png");
    background-size: 250px;
    background-repeat: no-repeat;
    margin: 15px;
    float: left;
}

header {
    background-color: rgba(255,255,255,0.9);
    position: fixed;
    width: 100%;
    top:0px;
}

nav {
    float: right;
}

nav a {
    text-decoration: none;
    color: black;
    margin-top: 35px;
    display: block;
    float: left;
    margin: 35px 18px 0 18px;
    font-size: 18px;
}

nav a:hover {
    color: #3CB0FF;
}

.dropdown {
    display: none
}



footer {
    background-color: rgba(255,255,255,0.9);
    position: fixed;
    bottom: 0px;
    width: 100%;
    overflow: auto;
    z-index: -1;
}

#footer-container {
    max-width: 90%;
    margin: 0 auto;
}

#foot-left {
    display: block;
    float:left;
    width: 32%;
}

#foot-center {
    display: block;
    float:left;
    width: 32%;
    text-align: center;
}

#foot-center p {
    margin-top: 28px;
}

#foot-right {
    display: block;
    float:right;
    width: 32%;
    text-align: right;
}

/************ ABOUT PAGE **************/

#about-bod {
    width:86%;
    display: block;
    margin-top: 130px;
    margin-bottom: 30px;
    padding: 20px 4%;
    background: rgba(255,255,255,0.9);
    color:#000;
}

#about-bod h1 {
    font-weight: normal;
    margin-top: 0;
}

#about-bod p {
    font-size: 18px;
}


#headshot {
    width:170px;
    display: block;
    float:left;
    margin-right: 20px;
    margin-bottom: 10px;
}


.addresses {
    font-family: Helvetica, Arial, sans-serif;
    font-style: italic;
    font-size: 14px;
}




/************ WORK PAGE **************/

#gal {
    display: block;
    margin-top: 130px;
    margin-bottom: 30px;
    padding: 1.66%;
    background: rgba(0,0,0,0.8);
    color:#fff;
}

#gal h1 {
    font-size: 2.2em;
}

#gal h2 {
    font-weight: normal;
    margin-bottom: 0px;
}

#gal h4 {
    margin-top: 0px;
}

.archDigest, .archDigest:visited {
    color: #3CB0FF;
    text-decoration: none;
}

.location {
    font-style: italic;
    font-size: .8em;
}

.fancy-thumbs {
    display: block;
    float: left;
    margin: 2%;
    width: 16%;
}

.fancy-thumbs img {
    width:100%;
}




.clear {
    clear: both;
}

/************ PRESS PAGE **************/

#pressBod {
    display: block;
    margin-top: 130px;
    margin-bottom: 30px;
    padding: 1.66%;
    background: rgba(255,255,255,0.9);
    color:#000;
}

#pressBod h1 {
    font-weight: normal;
    margin-top: 10px;
    margin-bottom: 6px;
}

#pressBod h3 {
    font-family: Georgia, sans-serif;
    font-style: italic;
    font-weight: normal;
    margin-top: 0;
}

a.articleWrap {
    text-decoration: none;
    color: #000;
}

.article {
    padding: 20px;
}

.articleHead {
    overflow: auto;
}

.publication {
    width: 400px;
    float: left;
}

.pubDate {
  float: left;
  font-size: 20px;
  margin: 10px 0 0 14px;
}

.articleTitle {

}

#pressBod .article h3 {
    font-size: 18px;
    /* font-style: normal; */
    font-family: Garamond;
}

.pressHead {
    margin: 0 20px;
}

.articleThumb {
    width: 250px;
    float: left;
    margin: 3px 25px 10px 0;
}

.articleText p {
    font-size: 19px;
    margin-top: 0;
}

.articleText .continue {
    float: right;
    text-decoration: none;
    font-style: italic;
    font-size: 15px;
    font-family: Georgia, sans-serif;
    color: #0057FF;
}





/************ CONTACT PAGE **************/

#contact-bod {
    background: rgba(255,255,255,0.9); 
    color: #000;
    width: 50%;
    float:left;
    padding:20px;
    margin-top: 130px;
    width:35%;
    margin-bottom: 30px;
}

#contact-bod h1 { margin: 0.2em 0; font-weight: normal; }

#contact-bod h3 { font-weight: normal; }

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers:
 * http://juicystudio.com/article/screen-readers-display-none.php
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (max-width: 960px) {

    /************ ABOUT PAGE **************/

    #about-bod {
        width: 92%; 
        padding: 4%;
    }

}


@media only screen and (max-width: 768px) {
    /* Style adjustments for viewports that meet the condition */

    nav { 
        /*display: none;*/
        position: absolute;
        top: 90px;
        right: 20px;
        width: 175px;
        background: rgba(255,255,255,0.9);
        height: 0;
        overflow: hidden;

        -webkit-transition: height 0.5s; /* Safari */
        transition: height 0.5s;
    }

    nav.active {
      /*display: block;*/
      height: 285px;
      z-index: 2;

    }

    nav a {  
      text-decoration: none;
      color: black;
      display: block;
      float: left;
      padding: 14px 20px;
      margin: 0;
      font-size: 21px;
      width: 135px;

      position: relative;
      top: -285px;
      -webkit-transition: top 0.5s; /* Safari */
      transition: top 0.5s;

    }

    nav.active a {
      top: 0;
    }


    nav a:hover, nav a:active {
      color: #FFF;
      background: #3CB0FF;
    }

    .dropdown {
        display: block;
        float: right;
        background: url(../img/hamburger-black.png);
        background-size: 28px;
        background-repeat: no-repeat;
        height: 23px;
        width: 28px;
        margin: 33px 10px 33px 0;
        cursor: pointer;
    }

    .dropdown.active {
        background: url(../img/hamburger-blue.png);
        background-size: 28px;
    }

    /************ WORK PAGE **************/

    .fancy-thumbs {
        margin: 1.6%;
        width: 30%;
    }

    /************ PRESS PAGE **************/

    #pressBod h3 {
        font-size: 16px;
    }

    .publication {
      width: 365px;
    }

    .pubDate {
      margin: 8px 0 0 14px;
    }

    /************ CONTACT PAGE **************/

    #contact-bod {
        width: 92%; 
        padding: 4%;
    }
}

@media only screen and (max-width: 480px) {
    #home-logo {
        width: 215px;
        height: 49px;
        background-size: 213px;
    }

    nav { 
        top: 89px;
    }

    /*****  Footer *****/

    #footer-container {
      margin: 18px auto;
    }

    #foot-left {
        display: block;
        float: none;
        width: 100%;
        text-align: center;
    }

    #foot-center {
        display: block;
        float: none;
        width: 100%;
        text-align: center;
    }

    #foot-right {
        display: block;
        float: none;
        width: 100%;
        text-align: center;
    }

    #foot-left p, #foot-center p, #foot-right p {
        margin: 10px 0;
    }

    /************ WORK PAGE **************/

    #gal {
      padding: 1px 15px;
    }

    .fancy-thumbs {
      margin: 4%;
      width: 42%;
    }

    /************ PRESS PAGE **************/

    .publication {
      width: 270px;
    }

    .pubDate {
      margin: 8px 0 0 0;
      font-size: 17px;
    }

    .articleTitle {
      font-size: 22px;
      margin: 9px 0;
    }

    .articleThumb {
      width: 100%;
      margin: 0;
      margin-bottom: 15px;
    }
}

@media only screen and (max-width: 320px) {

    #home-logo {
        width: 200px;
        height: 46px;
        background-size: 200px;
    }

    /************ PRESS PAGE **************/

    .publication {
      width: 100%;
    }

}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
