/*! HTML5 Boilerplate v5.2.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 {
    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
   ========================================================================== */

/* BASIC (OPINIONATED) RESETS */


*, *:before, *:after {
    box-sizing: border-box;
}

a {
    color: inherit;
}

::selection {
  color: #000;
  background: #ffdb24;
}

::-moz-selection {
  color: #000;
  background: #ffdb24;
}

/*  BASIC  */

body {
    background: #fff;
    color: #241d83;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Avenir Next', 'Roboto', sans-serif;
    font-weight: 600;
    margin: 0;
    position: relative;
    z-index: 15;
}

h1 {
    font-size: 30px;
    color: #241d83;
    text-align: center;
    margin-top: 50px;
}

h2 {
    font-size: 48px;
    margin: 0;
    display: inline-block;
}

h3 {
    font-size: 32px;
    margin: 0;
}

p {
    font-family: 'Avenir Next', 'Roboto', sans-serif;
    font-size: 24px;
    line-height: 150%;
    margin: 0;
    color: #fff;
    font-weight: 600;
    position: relative;
    z-index: 9;
    letter-spacing: 1px;
}

a {
    font-family: 'Avenir Next', 'Roboto', sans-serif;
    text-decoration: none;
    color: #241d83;
}

    a:hover {
        color: #241d83;
    }

/*  MENU  */

nav {
    position: relative;
    z-index: 10;
    padding: 80px 100px 50px 100px;
}

    .home nav {
        margin-bottom: 220px;
        padding: 0;
    }

        .home a {
            border-bottom: 3px solid rgba(255,219,36,0.0);
        }

            .home a:hover {
                border-bottom: 3px solid #fff;
            }

    .home h1 {
        font-size: 36px;
        margin-bottom: 20px;
        margin-top: 0;
        color: #fff;
        padding-bottom: 1px;
        border-bottom: 4px solid rgba(255,255,255,1.0);
        display: inline;
        font-weight: 700;
    }

    nav ul {
        float: right;
        margin: 0;
        padding: 0;
    }

        nav li {
            display: inline-block;
        }

            nav li {
                margin-left: 35px;     
            }

            nav a {
                float: left;
                display: inline-block;
                font-size: 18px;
                font-weight: 600;
                text-transform: lowercase;
                padding-bottom: 4px;
                border-bottom: 3px solid rgba(255,255,255,0.0);
            }

                nav a:hover {
                    border-bottom: 3px solid #ffdb24;
                }

    content {
        display: block;
        margin: 0 auto;
        text-align: center;
    }

    .home {
        padding: 30px 30px 180px 30px;
        width: 100%;
        background: #ffdb24;
        display: block;
        border: 50px solid #ffffff;
        text-align: left;
    }

        span.text-overlay {
            position: absolute;
            left: -180px;
            top: -200px;
            line-height: 100%;
            font-size: 1000px;
            font-family: 'Avenir Next', 'Roboto', sans-serif;
            color: #ffdb24;
            overflow: hidden; 
            font-weight: 700;
            z-index: 1;
            max-width: calc(100% + 180px);
        }

        .home span.text-overlay {
            color: #241d83;    
        }

        .home p {
            margin-top: 30px;
        }

    content.gallery {
        display: flex;
        justify-content: center;
        flex-direction: row;
        flex-wrap: wrap;
    }

    content.gallery .more {
        position: absolute;
        right: -50px;
        transform: rotate(90deg);
        color: #ffdb24;
        border-bottom: 2px solid #ffdb24;
        padding-bottom: 1px;
        margin-top: 360px;
    }

    .gallery .item {
        width: 380px;
        margin: 45px 15px;
        float: left;
        text-align: left;
    }

        .gallery .item img {
            width: 380px;
            height: 250px;
            margin-bottom: 16px;
        }

        .gallery .item .headline, .work-gallery .item .headline {
            font-size: 21px;
            display: block;
            font-weight: 600;
            line-height: 100%;
        }

        .gallery .item .subheadline, .work-gallery .item .subheadline {
            font-size: 14px;
            font-weight: 500;
        }


    h1.headline-underlined {
        display: inline-block;
    }

        h1.headline-underlined::after {
            position: absolute;
            z-index: -1;
            content: "";
            left: 30px;
            bottom: 22px;
            width: 100%;
            height: 15px;
            background-color: #fff568;
        }

    .detail-gallery {
        width: 1210px;
        margin-top: 50px;
    }

        .detail-gallery img {
            width: 100%;
            margin-top: 10px;
            margin-bottom: 10px;
        }

            .detail-gallery .small {
                width: 595px;
                float: left;
                margin-right: 10px;
                margin-left: 0;
            }

                .detail-gallery .medium {
                    width: 60%;
                }

                .detail-gallery .small:nth-child(odd) {
                    margin-left: 10px;
                    margin-right: 0;
                }

    .work-gallery {
        padding: 0 50px;
        display: flex;
        justify-content: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
        position: relative;
        z-index: 15;
        margin-top: 50px;
    }

        .work-gallery .item {
            width: 280px;
            margin: 15px;
            text-align: left;
        }

            .work-gallery .item img {
                width: 100%;
                height: auto;
                margin-bottom: 12px;
            }

footer {
    padding: 50px;
    margin-top: 10px;
    text-align: left;
}

    footer a {
        font-size: 18px;
        font-weight: 700;
        display: inline-block;
        float: left;
    }

        footer span.info, footer li a {
            font-size: 14px;
            text-transform: lowercase;
            font-weight: 600;
        }

        footer span.info {
            color: #ffdb24;
            display: inline-block;
            margin: 0 0 0 50px;
        }

        footer ul {
            display: inline-block;
            margin: 0;
            padding: 0;
            text-align: right;
            float: right;
        }

            footer li {
                display: inline-block;
                margin: 0 15px;
                line-height: 70%;
            }


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

}


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

    nav {
        padding: 50px;
    }

    .detail-gallery {
        width: 100%;
        padding: 50px;
        margin-top: 0;
    }

        .detail-gallery .small {
            width: 49%;
            margin-right: 0;
        }

        .detail-gallery .small:nth-child(odd) {
            float: right;
            margin-left: 0;
        }


}

@media only screen and (max-width: 1080px) {
  
    footer a, footer span.info, footer ul {
        text-align: center;
        float: none;
        display: block;
        margin: 8px auto;
    }

}


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

    nav {
        margin: 6px 6px 0 0;
    }

        .home nav {
            margin-bottom: 40px;
        }

        nav li {
            margin-left: 15px;    
        }

    .home {
        border: 10px solid #fff;
        padding: 20px;
    }

        span.text-overlay {
            left: -20px;
            top: 10px;
            font-size: 240px;
            max-width: calc(100% + 20px);
        }

        .home h1 {
            font-size: 40px;
        }

            .home p {
                font-size: 21px;
                padding-bottom: 20px;
            }

    .gallery .item {
        width: 100%;
        margin: 45px 0 0 0;
    }

    .item {
        margin: 15px;
    }

    .detail-gallery {
        padding: 50px 20px;
    }

        .gallery .item img {
            width: 100%;
            height: auto;
            padding: 0 15px 15px 15px;
            margin-bottom: 0;
        }

                .detail-gallery .medium {
                    width: 100%;
                }

        .gallery .headline, .gallery .subheadline {
            padding: 0 15px;
        }


    h1.headline-underlined {
        font-size: 26px;
        margin-top: 30px;
    }

        h1.headline-underlined::after {
            left: 20px;
            bottom: 16px;
        }

    .work-gallery {
        justify-content: center;
        padding: 0;
    }

        .work-gallery .item {
            margin: 15px 0;
        }
  
}

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

    nav {
        padding: 20px;
        margin-bottom: 20px;
    }

        nav a {
            font-size: 16px;
        }

    .item {
        width: 300px;
    }

        .item img {
            width: 300px;
        }

    .detail-gallery {
        padding: 20px;
    }

    h1.headline-underlined {
        font-size: 25px;
        margin-top: 35px;
    }

        h1.headline-underlined::after {
            left: 15px;
            bottom: 12px;
        }

    footer {
        padding: 20px;
    }

        footer li {
            margin: 0 10px;
        }

}

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

    h1.headline-underlined {
        font-size: 22px;
    }

    }

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

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

.clearfix:after {
     visibility: hidden;
     display: block;
     font-size: 0;
     content: " ";
     clear: both;
     height: 0;
     }
.clearfix { display: inline-block; }
* html .clearfix { height: 1%; }
.clearfix { display: block; }