/*! 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
   ========================================================================== */

html {
    font-size: 1em;
    line-height: 1.25;
    font-family: Georgia, Times, serif;
}

/*
 * 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;
    margin-right: auto;
    margin-left: auto;
    height: 1px;
    border: 0;
    border-top: 3px solid #333;
    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
   ========================================================================== */
/* Layout */
body {
    background-color: #f8f9fb;
    color: #333;
    padding: 4em 0;
}
section {
    width: 90%;
    margin: 0 auto;
}
/*//////////

New CSS Grid styles

///////////*/
a.logo {
    display: block;
    margin: 0 auto 48px;
    width: 80px;
}
.work-new {
    margin: 80px 0 0 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 324px 324px 324px;
    grid-gap: 28px;
}
.project {
    background: rgba(64, 71, 86, .2);
    display: block;
    text-align: center;
    border-radius: 4px;
    align-self: stretch;
    padding: 28px;
    text-decoration: none;
    color: rgba(0, 0, 0, 0.6);
    transition: color 0.2s ease, background 0.2s ease;
    box-shadow: 0px 0px 14px rgba(64, 71, 86, .1);
}
.icon {
    display: block;
    margin: 28px auto;
    height: 64px;
    opacity: 0.6;
}
.project:hover {
    background: rgba(91, 171, 58, .5);
}
.project:active {
    background: rgba(91, 171, 58, .8);
    color: rgba(0, 0, 0, 0.8);
}
.project:hover .icon {
    opacity: 0.8;
}
.project:active .icon {
    opacity: 1;
}
.project h3 {
    margin: auto;
    text-decoration: none;
}
.project p, .contributions {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 1.75em auto;
    text-decoration: none;
    text-align: center;
}

/*////////////
/// Single Project page styles
//////*/
.single-project {
    width: 80%;
}
.single-project h1 {
    text-align: center;
 
}
.single-project .logo {
    width: 50px;
    margin: 0 auto 84px;
}
.project-description {
    margin: 0 0 48px;
}

.project-assets {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 48px;
    margin-bottom: 48px;
}

.single-project .asset img {
    display: block;
    width: 100%;
    box-shadow: 0px 0px 22px rgba(64, 71, 86, .17);
    border-radius: 4px;
}
.single-project .asset p {
    font-size: 10px;
    letter-spacing: 1px;
    line-height: 1.2500em; /* 20px */
    margin: 1.5em 0 0 0;
    text-align: left;
    width: 100%;
    text-transform: uppercase;
}
a.cta {
    display: block;
    width: 60%;
    margin: 0 auto;
    padding: 8px 16px;
    text-decoration: none;
    background: rgba(91, 171, 58, .8);
    border: none;
    font-size: 1em;
    font-family: 'Abril Fatface', Georgia, serif;
    text-align: center;
    color: rgba(0, 0, 0, 0.4);
    box-shadow: 0px 0px 22px rgba(64, 71, 86, .17);
    border-radius: 4px;
    transition: color 0.2s ease, background 0.2s ease;
}
a.cta:hover{
    border: none;
    color: rgba(0, 0, 0, 0.6);
    background: rgba(91, 171, 58, .9);
}

ul {
    font-size: 1em;
}
blockquote {
        font-style: italic;
        opacity: 0.4;
    }
/*/////
Project-specific styles
//////*/

/*
The Download
*/
.the-download .project-assets {
    grid-template-columns: repeat(2, 1fr);

}
.the-download .c, .the-download .e, .the-download .g, .the-download .l {
    grid-column: 1 / 3;
    grid-row: 2;
}

.the-download .d, .the-download .f, .the-download .k {
    grid-column: 1 / 3;
    grid-row: 1;
}

.the-download .m {
    grid-column: 1 / 3;
    grid-row: 3;
}
/*
Safe Bathrooms Club
*/
.sbc .project-assets.photos {
    grid-template-columns: repeat(3, 1fr);
}

/*
Clocking In
*/
/* Move the border radius and shadow to the container just on this set of images*/

.clocking-in .project-assets.photos, .clocking-in .project-assets.presentation {
    grid-template-columns: repeat(3, 1fr);
}

.clocking-in .project-assets.presentation .b {
    grid-column-start: 2;
    grid-column-end: 4;
    grid-row-start: 1;
    grid-row-end: 3;
    background-color: black;
    box-shadow: 0px 0px 22px rgba(64, 71, 86, .17);
    border-radius: 4px;
    overflow: hidden;
}

.clocking-in .project-assets.presentation .b img {
    box-shadow: none;
    border-radius: 0px;
}

.clocking-in .project-assets.photos .c {
    grid-column: 1;
    grid-row: 2;
}

/*////////////
/// old styles below 
//////*/


ul.contact {
    margin: 48px 0 0;
    padding: 0;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
ul.contact li {
    list-style-type: none;
    display: inline-block;
    margin: 0 .5em 0 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Abril Fatface', Georgia, Times, serif;
    font-weight: normal;
}

h1 {
    text-align: center;
}

h1 a {
    color: #FFFFF0;
    text-decoration: none;
    border-bottom: 1px dashed transparent;
    transition: border-bottom-color 0.25s ease;
}
h1 a:hover {
    color: #FFFFF0;
    text-decoration: none;
    border-bottom: 1px dashed #FFFFF0;
}

p {
    font-family: Georgia, Times, serif;
}
p a, li a {
    text-decoration: none;
    color: #111;
    border-bottom: 1px solid #111;
    transition: color 0.2s ease, border-bottom-color 0.2s ease;
}
p a:hover, li a:hover {
    text-decoration: none;
    color: rgba(66, 130, 22, 1);
    border-bottom: 1px solid rgba(66, 130, 22, 0);
}


blockquote {
    font-style: italic;
    opacity: 0.4;
    border-left: 4px solid rgba(0, 0, 0, .2);
}










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

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * 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.
   ========================================================================== */



/* ===== == = === 10em (160px-575px) === = == ===== */

@media only screen and (min-width : 10em) {
    .single-project {
        width: 90%;
    }
    .single-project .logo {
        margin: 0 auto 52px;
    }
    h1 {
        font-size: 2.4em;
        width: 100%;
        line-height: 1.3em;
    }
    h2 {
        font-size: 2.1em;
        line-height: 1.2em;
    }

    h3 {
        font-size: 1.8em;
        margin: 20px 0 8px;
    }
    
     p, ul, blockquote {
        font-size: 1.2em;
        line-height: 1.5em;
    }
    
    hr {
        margin: 3em auto;
        width: 25%;
    }
    /* Single project pages */
    .project-description p {
        width: 98%;
    }
    .project-description h3 {
        width: 98%;
    }
    .project-description ul {
        width: 100%;
        margin: 1.25em auto 0;
    }
    a.cta {
        width: 100%;
        padding-right: 0px;
        padding-left: 0px;
    }

    blockquote {
        padding-left: 1.4em;
        margin-left: 0;
        border-left: 4px solid rgba(0, 0, 0, .2);
    }
    .project-description ul {
        width: 95%;
        margin: 1.25em auto 0;
        padding: 0 0 0 5%;
    }
    /** Home page grid styles **/
    .work-new {
        margin: 48px 0 0 0;
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: repeat(5, auto);
    }
    .project {
        
        padding: 20px 28px 28px 28px;
        
    }
    .icon {
        margin: 20px auto;
        height: 48px;
    }
    /** SBC project page **/
    .sbc .project-assets.photos {
        grid-gap: 24px;
        margin-bottom: 24px;
    }
    /** Rhino project page **/
    .rhino .project-assets {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 24px;
        margin-bottom: 24px;
    }
    /** Clocking In project page **/
    .clocking-in .project-assets.photos {
        grid-gap: 24px;
        margin-bottom: 24px;
    }
    .clocking-in .project-assets.photos, .clocking-in .project-assets.presentation {
        grid-template-columns: repeat(1, 1fr);
    }
    .clocking-in .project-assets.presentation .b {
        grid-column-start: 1;
        grid-column-end: 2;
        grid-row-start: 2;
        grid-row-end: 3;
        background-color: black;
        box-shadow: 0px 0px 22px rgba(64, 71, 86, .17);
        border-radius: 4px;
        overflow: hidden;
    }

    .clocking-in .project-assets.presentation .b img {
        box-shadow: none;
        border-radius: 0px;
    }

    .clocking-in .project-assets.photos .c {
        grid-column: 1;
        grid-row: 3;
    }

}


/* ===== == = === 36em (576px-863px) === = == ===== */

@media only screen and (min-width : 36em) {
   
    h1 {
        font-size: 2.8em;
        width: 100%;
        line-height: 1.1em;
    }
    h2 {
        font-size: 2.4em;
        line-height: 1.2em;
    }

    h3 {
        font-size: 2.1em;
        margin: 52px 0 8px;
        
    }
    p, ul, blockquote {
        font-size: 1.3em;
        line-height: 1.55em;

    }
    
     /* Single Project pages */
    .single-project {
        width: 90%;
    }
    .project-description h3 {
        width: 80%;
        margin-right: auto;
        margin-left: auto;
    }
    .project-description p {
        width: 80%;
        margin: 1.25em auto 0;
    }
    .project-description ul {
        width: 84.40%;
        margin: 1.25em auto 0;
    }
    p.contributions {
        width: 80%;
        margin-right: auto;
        margin-left: auto;
    }
    hr {
        margin: 3.6em auto;
        width: 25%;
    }
    a.cta {
        width: 80%;
    }
    blockquote {
        width: 75%;
        padding-left: 1.4em;
        margin-right: auto;
        margin-left: auto;
        border-left: 4px solid rgba(0, 0, 0, .2);
    }
    /* home page grid styles */

    .work-new {
        margin: 60px 0 0 0;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 324px 324px 324px;
    }
    .project {
        padding: 24px;
    }
    .icon {

        margin: 20px auto;
        height: 36px;

    }
    .project h3 {
        font-size: 1.8em;
    }
    .project p, .contributions {
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin: 1.75em auto;
        text-decoration: none;
        text-align: center;
    }
    /* Clocking In project page */
    .clocking-in .project-assets.photos, .clocking-in .project-assets.presentation {
        grid-template-columns: repeat(3, 1fr);
    }
    .clocking-in .project-assets.photos {
        grid-gap: 48px;
        margin-bottom: 48px;
    }
    .clocking-in .project-assets.presentation .b {
        grid-column-start: 2;
        grid-column-end: 4;
        grid-row-start: 1;
        grid-row-end: 3;
        background-color: black;
        box-shadow: 0px 0px 22px rgba(64, 71, 86, .17);
        border-radius: 4px;
        overflow: hidden;
    }

    .clocking-in .project-assets.presentation .b img {
        box-shadow: none;
        border-radius: 0px;
    }

    .clocking-in .project-assets.photos .c {
        grid-column: 1;
        grid-row: 2;
    }
    /** SBC project page **/
    .sbc .project-assets.photos, .clocking-in .project-assets.photos {
        grid-gap: 48px;
        margin-bottom: 48px;
    }
     /** Rhino project page **/
    .rhino .project-assets {
        grid-gap: 48px;
        margin-bottom: 48px;
    }

}



/* ===== == = === 48em (864px-1099px) === = == ===== */

@media only screen and (min-width : 54em) {
    h1 {
        font-size: 3.6em;
        width: 100%;
        line-height: 1.1em;
    }
    h2 {
        font-size: 2.4em;
        line-height: 1.2em;
    }

    h3 {
        font-size: 2.1em;
        margin: 52px 0 8px;
        
    }
    p.contributions {
        width: 80%;
        margin-right: auto;
        margin-left: auto;
    }
    
    p, ul {
        font-size: 1.4em;
        line-height: 1.6em;
    }
    hr {
        margin: 4em auto;
        width: 22%;
    }
    blockquote {
        font-size: 1.4em;
        font-style: italic;
        opacity: 0.4;
        padding-left: 1.8em;
        border-left: 4px solid rgba(0, 0, 0, .2);
        line-height: 1.6em;
    }
    /* home page grid styles */

    .work-new {
        margin: 80px 0 0 0;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 324px 324px 324px;
    }
    .project {
        padding: 28px;
    }
    .icon {

        margin: 28px auto;
        height: 64px;

    }
}



/* ===== == = === 68.75em (1100px+) === = == ===== */

@media only screen and (min-width : 68.75em) {
    h1 {
        font-size: 4.2em;
        width: 85%;
        margin: .25em auto;
        line-height: 1.2em;
    }

    h2 {
        font-size: 2.4em;
        line-height: 1.2em;
    }

    h3 {
        font-size: 2.1em;
    }
    
    p {
        font-size: 1.4em;
        width: 55%;
        line-height: 1.6em;
    }
    hr {
        margin: 4em auto;
        width: 20%;
    }
    .home h1 {
        text-align: left;
        margin: 0.25em 0;
    }
    .home .logo {
        margin: 0 0 48px 0;
    }
    .home hr {
        margin: 4em 0;
    }
}



@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;
    }
}
