/*! HTML5 Boilerplate v5.3.0 | MIT License | https://html5boilerplate.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
   ========================================================================== */

   @font-face {
    font-family: 'gotham_blackregular';
    src: url('../fonts/gotham_black_regular-webfont.woff2') format('woff2'),
         url('../fonts/gotham_black_regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
  font-family: 'myHelveticaLight';
  src: url('fonts/HelveticaNeue-UltraLight.woff2') format('woff2'),
         url('fonts/HelveticaNeue-UltraLight.woff') format('woff');
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


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

h1, h4 {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

body {
    font-family: 'Ubuntu', sans-serif;
    font-weight: 300;
    color:#0D1C57;

}
/*.grid{
	opacity: 0;
	-webkit-transition: opacity 1s ease-in-out;
  -moz-transition: opacity 1s ease-in-out;
  -ms-transition: opacity 1s ease-in-out;
  -o-transition: opacity 1s ease-in-out;
  transition: opacity 1s ease-in-out;
}
.grid.loaded{
	opacity: 1;
}
*/
.clearfix {zoom: 1}
.clearfix:after {
    content: '.';
    clear: both;
    display: block;
    height: 0;
    visibility: hidden;
}

a {
    text-decoration:none;
    color:#0D1C57;
}

/*
 * 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 auto;
    padding: 0;
    width: 95%;
}

/*
 * 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;
}

/* ==========================================================================
    HEADER
   ========================================================================== */


header {
    /*background-image: linear-gradient(rgba(98, 146, 158, 0.71), rgba(58, 58, 58, 0.85)), url(img/dylan-crop.png);*/
    /*background-image: linear-gradient(rgba(39, 42, 43, 0), rgba(45, 45, 45, 0.73)), url(img/paper-back-1.png);*/
    /*background-image: linear-gradient(rgba(0, 0, 0, 0.11), rgba(0, 0, 0, 0.55)), url(img/paper-back-2.png);
    background-position: center;*/
    background-image: linear-gradient(rgba(98, 146, 158, 0.53), rgba(58, 58, 58, 0.79)), url(img/paper-back-3.png);
    background-position: center;
    height: auto;
    background-size: cover;
    box-shadow: 0px 2px 2px #b5b5b5;
    padding-bottom: 15px;
}

.head-inner {
    padding-top: 70px;
}

.nav-wrap {
    float: right;
    width: 71%;
    padding-top: 47px;
    margin-right: 15px;
}

.logo {
    display: block;
    float: left;
    width: 25%;
    height: auto;
    max-width: 300px;
    margin-left: 15px;
}

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

.main-nav {
    list-style: none;
    font-family: 'Montserrat', sans-serif;
    padding:0;
    margin:0;
    text-align: right;
}


/*.top li:nth-child(2) {
    margin-right: 57px;
}

.top li:nth-child(3) {
    margin-right: 32px;
}*/

.main-nav li {
    font-weight: 500;
    text-shadow: 0px 1px 2px #000000;
    margin: 0 10px;
    list-style: none;
    display: inline-block;
    padding: 5px 5px;
    position: relative;

}

.main-nav li a:link,
.main-nav li a:visited {
    padding: 8px 0;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 90%;
}

.active {border-top: 1.7px solid #C6C5B9;} 


.mobile-nav {
    display: none;
    position: absolute;
    z-index: 700;
    width: 100%;
    background-color: rgba(34, 34, 34, 0.85);
    top: 0;
    right: 0;
    height: 100%;
    padding-top: 60px;
}

.mobile-nav li {
    display: block;
    padding: 20px 10px;
}


.mobile-nav .logo {
    padding-top: 50px;

}

.main-nav li a:before {
    content: "";
    position: absolute;
    width: 90%;
    height: 1.7px;
    bottom: 0px;
    left: 5%;
    background-color: #C6C5B9;
    visibility: hidden;
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transition: all 0.2s ease-in-out 0s;
    transition: all 0.2s ease-in-out 0s;
}

.main-nav li a:hover:before {
    visibility: visible;
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
}
/* ==========================================================================
    ICONS / BUTTONS
   ========================================================================== */

.mobile-nav-icon {
    float: right;
    display: none;
    color: white !important;
    font-size: 30px;
    padding: 5px;
    margin-right: 40px;
    text-shadow: 0px 0px 4px #333;
    cursor: pointer;
    z-index: 800;
    position: relative;
        margin-top: 45px;
    border-top: none !important;

}


/* ==========================================================================
   Masonry GRID
   ==========================================================================*/ 

.grid{
    width: 100%;
}

.grid:after {
  content: '';
  display: block;
  clear: both;
}


.wrapper {
    width: 100%;
    padding: 5px;
}
.grid-sizer,
.grid-item {
    float: left;
    width: 25%;
    height: auto;
    padding: 2.5px;
}

.grid-item img {
    width: 100%;
    display: block;
    position: relative;
    height: auto;
    -webkit-transition: opacity .7s ease-in-out;
    transition: opacity .7s ease-in-out;
    -webkit-backface-visibility: hidden;
    opacity: 1;
}


figure {margin:0;}

.item-wrapper {
    position: relative;
    z-index: 10;
}

span.overlay {
    position: absolute;
    left:0;
    width: 0;
    text-align: center;
    z-index: 9;
    background: rgba(83, 104, 109, 0.56);
    color: #fff;
    display: inline-block;
    vertical-align: middle;
    height:100%;
    transition:.3s ease-in-out;
    font-weight:500;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    overflow: hidden;
    font-size: 15px;
    text-shadow: 0px 1px 2px #000000;
    letter-spacing: -1px;
}

span.overlay.type-2 {
    z-index:11;
    left:auto;
    top:0;
    width:100% !important;
    height:0 !important;
}

span.overlay:before {
    height: 100%;
    content: '';
    display: inline-block;
    vertical-align: middle;
}

.img-desc {
    margin-top: 4px;
    text-align: center;
}

.img-desc h4 {
    font-weight: 400;
    font-size:13px;
    text-shadow: 0px 1px 1px #a9a9a9;
}


.item-container a{
    cursor: -moz-zoom-in; 
    cursor: -webkit-zoom-in; 
    cursor: zoom-in;
}

.item-container figure figcaption {
    display: none;
    z-index: -1;
}

div.pswp__caption__center {text-align:center;}

.item-container:hover span.overlay {
    width:100%;
    opacity:1;
}

.item-container:hover span.overlay.type-2 {
    height:100% !important;
    opacity:1;
}

.image-hovered {
    opacity: 1 !important;
    z-index: 10;
}

.image-hover {
    position: absolute !important;
    top: 0px;
    opacity: 0 !important;
    z-index: 10;
}

.item-container {position: relative; z-index: 10;}

.item-container:hover .image-hover {
    opacity: 1 !important;
}

.image-hovered:hover {
    opacity: 0 !important;
}



/* ==========================================================================
   FOOTER
   ==========================================================================*/

footer {
    padding: 25px;
    font-size: 14px;
}
footer p {
      float: left;
    display: block;
    width: 100%;
}

.footer-row {
    padding: 0 30px;
    width: 100%;
    position: relative;
    display: block;
}

.footer-span {
    font-family: 'gotham_blackregular';
    font-size: 15px;
    letter-spacing: -1px;
}  

.first-L, .second-L {
    font-size: 12px;
}

footer a {
    text-decoration: none;
}

.ded-logo {
    display: block;
    float: left;
    padding-top: 15px;
}

.ded-logo span a {border-top: none; transition: color .3s ease-in-out;}

.ded-logo span a:hover {color: #108069 !important;}

.jump-to-top {
    float: right;
    font-family: 'gotham_blackregular';
}

.jump-to-top a {
     color:#0D1C57;
    font-size: 20px;
    border-top: none;
    transition: color .3s ease-in-out;
}

.jump-to-top a:hover {
    color:#62929E;
}


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

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none;
}

/*
 * 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;
}


.form-box.animated {
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
} 

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

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (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,
    *:first-letter,
    *:first-line {
        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;
    }
}
