/***** Typefaces *****/

@font-face {
  font-family: 'Parma-Normal';
  src: url('../fonts/Parma-Normal.eot?#iefix') format('embedded-opentype'),  url('../fonts/Parma-Normal.otf')  format('opentype'),
	     url('../fonts/Parma-Normal.woff') format('woff'), url('../fonts/Parma-Normal.ttf')  format('truetype'), url('../fonts/Parma-Normal.svg#Parma-Normal') format('svg');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Parma-NormalItalic';
  src: url('../fonts/Parma-NormalItalic.eot?#iefix') format('embedded-opentype'),  url('../fonts/Parma-NormalItalic.otf')  format('opentype'),
	     url('../fonts/Parma-NormalItalic.woff') format('woff'), url('../fonts/Parma-NormalItalic.ttf')  format('truetype'), url('../fonts/Parma-NormalItalic.svg#Parma-NormalItalic') format('svg');
  font-weight: normal;
  font-style: normal;
}

/***** CSS Reset *****/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}

.landing-link{ pointer-events: none;; }
body[page="homepage"] .news-container{ display: block; }

body {
    font-family: Parma-Normal, 'Helvetica';
    font-weight: normal;
    font-style: normal;
    font-size: 1.47em;
    line-height: 1.2em;
    -webkit-font-smoothing: antialiased;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
a{ 
    text-decoration: none; 
    color: black;
}
img{
    -khtml-user-select: none;
    -o-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}

/***** Generic *****/

.upper{ text-transform: uppercase; }
.caps{ text-transform: capitalize; }
.ital{ font-family: Parma-NormalItalic; }

.hidden{ display: none !important; }
.box{ box-sizing: border-box; }
.button{ cursor: pointer; }

.elp{  
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

::selection {
  background: rgb(128, 128, 128);
}
::-moz-selection {
  background: rgb(128, 128, 128);
}
::selection {
  background: rgb(128, 128, 128);
}
::-moz-selection {
  background: rgb(128, 128, 128);
}
::selection {
  background: rgb(128, 128, 128);
}
::-moz-selection {
  background: rgb(128, 128, 128);
}


/***** Spacing *****/

.pad-a{ padding: 1.4em; }
.pad-t{ padding-top: 1.4em; }
.pad-b{ padding-bottom: 1.4em; }
.pad-l{ padding-left: 1.4em; }
.pad-r{ padding-right: 1.4em; }

    .pad-a-h{ padding: 0.7em; }
    .pad-t-h{ padding-top: 0.7em; }
    .pad-b-h{ padding-bottom: 0.7em; }
    .pad-l-h{ padding-left: 0.7em; }
    .pad-r-h{ padding-right: 0.7em; }

        .pad-a-q{ padding: 0.35em; }
        .pad-t-q{ padding-top: 0.35em; }
        .pad-b-q{ padding-bottom: 0.35em; }
        .pad-l-q{ padding-left: 0.35em; }
        .pad-r-q{ padding-right: 0.35em; }


    .pad-a-2{ padding: 2.8em; }
    .pad-t-2{ padding-top: 2.8em; }
    .pad-b-2{ padding-bottom: 2.8em; }
    .pad-l-2{ padding-left: 2.8em; }
    .pad-r-2{ padding-right: 2.8em; }

    .pad-a-3{ padding: 4.2em; }
    .pad-t-3{ padding-top: 4.2em; }
    .pad-b-3{ padding-bottom: 4.2em; }
    .pad-l-3{ padding-left: 4.2em; }
    .pad-r-3{ padding-right: 4.2em; }

.marg-a{ margin: 1.4em; }
.marg-t{ margin-top: 1.4em; }
.marg-b{ margin-bottom: 1.4em; }
.marg-l{ margin-left: 1.4em; }
.marg-r{ margin-right: 1.4em; }
    
    .marg-a-h{ margin: 0.7em; }
    .marg-t-h{ margin-top: 0.7em; }
    .marg-b-h{ margin-bottom: 0.7em; }
    .marg-l-h{ margin-left: 0.7em; }
    .marg-r-h{ margin-right: 0.7em; }

    .marg-a-2{ margin: 2.8em; }
    .marg-t-2{ margin-top: 2.8em; }
    .marg-b-2{ margin-bottom: 2.8em; }
    .marg-l-2{ margin-left: 2.8em; }
    .marg-r-2{ margin-right: 2.8em; }

    .marg-a-3{ margin: 4.2em; }
    .marg-t-3{ margin-top: 4.2em; }
    .marg-b-3{ margin-bottom: 4.2em; }
    .marg-l-3{ margin-left: 4.2em; }
    .marg-r-3{ margin-right: 4.2em; }

.col-1{ width: 100%; }
.col-2{ width: 50%; }
.col-3{ width: calc(100% / 3); }
.col-4{ width: 25%; }
.col-5{ width: 20%; }
.col-6{ width: calc(100% / 6); }


/***** Optical Adjustments *****/

.project-thumb.marg-b{ margin-bottom: 0.35em }


/***** Navigation *****/

    #content-wrapper.grey{
        background-color: #eaeaea; 
    }


#navigation-wrapper{
    float: left;
    width: 100%;
    z-index: 100;
}
    nav{
        display: flex;
        justify-content: space-between;
        width: 100%;
        z-index: 100;
    }
        .default, .large{ 
            float: left; 
        }
        .fixed{
            position: fixed;
            background-color: white; 
        }
            nav.fixed{
                transition: opacity .08s linear;
                -moz-transition: opacity .08s linear;
                -webkit-transition: opacity .08s linear;

            }
            nav.fixed.enabled{
                opacity: 1;
                pointer-events: all;
            }
            nav.fixed.disabled{
                opacity: 0;
                pointer-events: none;
            }




        #header-container{ 
            position: relative;
            top: 0.1em;
            width: calc(100% - 24em);
        }
            .header-inner{ 
                float: left;
                display: flex;
                width: 100%;
            }

        #menu-container{ 
            position: relative;
            top: 0.1em;
            width: auto;
        }
            .menu-inner{
/*                display: flex;*/
            }

                #menu-container a.item{
                    margin-right: 1.1em;
                }
                #menu-container a.item:last-child{ margin-right: 0; }

            nav.large svg{
                width: auto;
                max-width: 100%;
                height: 2em;
            }
            .name-1,
            .name-2{ float: left; width: auto; }
                .dash{
                    float: left;
                    margin-left: -0.02em;
                    margin-right: -0.005em;
                    margin-top: -0.1em;
                    -webkit-transform:scale(1.8,1); /* Safari and Chrome */
                    -moz-transform:scale(1.8,1); /* Firefox */
                    -ms-transform:scale(1.8,1); /* IE 9 */
                    -o-transform:scale(1.8,1); /* Opera */
                    transform:scale(1.8,1); /* W3C */
                }




/***** Global *****/


#divider-wrapper{
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    width: 100%;
    height: auto;
}
    .divider-line{
        width: 100%;
        height: auto;
        border-top: solid 0.1em black !important;
    }

#content-wrapper{
    float: left;
    width: 100%;
    height: auto;
    -webkit-transition: background-color 400ms linear;
    -ms-transition: background-color 400ms linear;
    transition: background-color 400ms linear;
    background-color: white;
}

    .slideshow-container{
        display: flex;
        align-items: flex-end;
        flex-direction: row;
    }
        *[page='homepage'] .slideshow-container{ height: calc(100vh - 4.75em); }
        *[page='project_page'] .slideshow-container{ height: calc(100vh - 4em); }

            .slide-parent {
                display: none;
                float: left;
                height: 100%;
            }
                .slide-parent.hidden { display: none; }
                .slide-parent.flex { display: flex; }

                .slide-parent img {
                    align-self: flex-end;
                    width: auto;
                    height: auto;
                    max-width: 100%;
                    max-height: 100%;
                }

            .fade {
              -webkit-animation-name: fade;
              -webkit-animation-duration: 0.2s;
              animation-name: fade;
              animation-duration: 0.2s;
            }

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

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

.prev, .next{
    position: absolute;
    height: calc(100vh - 4em);
    width: 50vw;
    opacity: 0.7;
}
.prev{
    left: 0;
    top: 4em;
    cursor: url("../misc/ajp_cursor_left.png"), pointer;
}
.next{
    right: 0;
    top: 4em;
    cursor: url("../misc/ajp_cursor_right.png"), pointer;
}



/***** Projects *****/

.projects-container{
    display: flex; 
    flex-wrap: wrap;
    align-items: flex-start;
}    
        .project-parent img{
            max-width: 100%;
        }
        .project-parent .caption .title{
            width: 100%;
        }
        .project-parent .caption{
            transition: opacity .07s linear;
            -moz-transition: opacity .07s linear;
            -webkit-transition: opacity .07s linear;
        }
            .project-parent .caption{ opacity: 0; }
            .project-parent:hover .caption{ opacity: 1; }



    /***** Project Page *****/

        .description-container{
            float: left;
            display: block;
            height: auto;
            width: 100%;
        }
            .copy,
            .specifics{
                float: left;
                width: 100%;
            }

        .bottom-nav {
            position: fixed;
            bottom: 0;
            right: 0;
        }
            .slideshow-counter{
                position: relative;
                top: 0.3em;
                margin-right: 0.8em;
            }
            .project-info{
                position: relative;
                top: 0.3em;
            }

        .back-top{
            float: left;
            width: 100%;
            display: none; 
        }

/***** Index *****/

.index-container{
    display: flex; 
    flex-wrap: wrap;
    align-items: flex-start;
}

    .index-header{
        width: 100%;
    }
    .list-container,
    .title-container{
        float: left;
        display: block;
        width: 100%;
    }
        .list-container .item-parent{
            float: left;
            width: 100%;
            overflow: visible;
        }
            .item-parent a{
                float: left;
                width: 100%;
                display: block;
            }

        .list-container .item-parent:hover { font-family: Parma-NormalItalic; }

            .index-header a,
            .title-container span,
            .item-parent span{ float: left; display: block; }

                #header-container .number,
                .index-header .number,
                .title-container .number,
                .item-parent .number{
                    width: 3.2em;
                }

                .index-header .number{ text-transform: lowercase !important; }

                .index-header .name,
                .item-parent .name{
                    width: calc(52% - 3.2em);
                }

                .index-header .location,
                .item-parent .location{
                    width: 22%; 
                }

                .index-header .year,
                .item-parent .year{
                    width: 11%;
                }

                .index-header .type,
                .item-parent .type{
                    width: 15%; 
                }

                .title-container .name{
                    width: auto;
                }

                #header-container .name{
                }





/***** Office *****/

.office-container{
    display: flex; 
    flex-wrap: wrap;
    align-items: flex-start;
}
        .info-parent .title{
            display: block;
        }
        .info-parent .content{ 
        }
        .info-parent .name{
            display: block;
        }

    #google-maps {
        padding-bottom: 100%;
        height: 0;
        overflow: hidden;
        mix-blend-mode: multiply;
    }

    #google-maps iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        padding: 0.75rem;
    }

/***** News *****/

.news-container{
}
    .article-parent{
        display: flex; 
        align-items: flex-end;
    }
        .article-parent:nth-child(even){ flex-direction: row-reverse; }
        .article-parent:nth-child(odd){ flex-direction: row; }
            .article-parent img,
            .article-parent .caption{
                width: 50%;
            }
            .article-parent .caption{
                position: relative;
                top: 4px;
            }
                .caption .title{ display: block; }
                .caption .description{ display: block; align-self: flex-end;}








/* ----------- Phones ----------- */

@media only screen and (min-width: 0px) and (max-width: 700px) { 
        
    .landing-link{ pointer-events: all; }
    body[page="homepage"] .news-container{ display: none; }
        
    body{
        font-size: 1.15em;
        line-height: 1.1em;
    }
                
    /***** Spacing *****/

    .pad-a{ padding: 1em; }
    .pad-t{ padding-top: 1em; }
    .pad-b{ padding-bottom: 1em; }
    .pad-l{ padding-left: 1em; }
    .pad-r{ padding-right: 1em; }

        .pad-a-h{ padding: 0.5em; }
        .pad-t-h{ padding-top: 0.5em; }
        .pad-b-h{ padding-bottom: 0.5em; }
        .pad-l-h{ padding-left: 0.5em; }
        .pad-r-h{ padding-right: 0.5em; }

        .pad-a-q{ padding: 0.25em; }
        .pad-t-q{ padding-top: 0.25em; }
        .pad-b-q{ padding-bottom: 0.25em; }
        .pad-l-q{ padding-left: 0.25em; }
        .pad-r-q{ padding-right: 0.25em; }

        .pad-a-2{ padding: 2em; }
        .pad-t-2{ padding-top: 2em; }
        .pad-b-2{ padding-bottom: 2em; }
        .pad-l-2{ padding-left: 2em; }
        .pad-r-2{ padding-right: 2em; }

        .pad-a-3{ padding: 3em; }
        .pad-t-3{ padding-top: 3em; }
        .pad-b-3{ padding-bottom: 3em; }
        .pad-l-3{ padding-left: 3em; }
        .pad-r-3{ padding-right: 3em; }

    .marg-a{ margin: 1em; }
    .marg-t{ margin-top: 1em; }
    .marg-b{ margin-bottom: 1em; }
    .marg-l{ margin-left: 1em; }
    .marg-r{ margin-right: 1em; }

        .marg-a-h{ margin: 0.5em; }
        .marg-t-h{ margin-top: 0.5em; }
        .marg-b-h{ margin-bottom: 0.5em; }
        .marg-l-h{ margin-left: 0.5em; }
        .marg-r-h{ margin-right: 0.5em; }

        .marg-a-2{ margin: 2em; }
        .marg-t-2{ margin-top: 2em; }
        .marg-b-2{ margin-bottom: 2em; }
        .marg-l-2{ margin-left: 2em; }
        .marg-r-2{ margin-right: 2em; }

        .marg-a-3{ margin: 3em; }
        .marg-t-3{ margin-top: 3em; }
        .marg-b-3{ margin-bottom: 3em; }
        .marg-l-3{ margin-left: 3em; }
        .marg-r-3{ margin-right: 3em; }
        
        .inner-parent.project_page.m-width,
        .inner-parent.index.m-width,
        .inner-parent.office.m-width
        .inner-parent.news.m-width,
        .inner-parent .news-container{
            width: 100%;
    }
        
        
    /***** Global *****/
        
    .project-parent[class*="col-"] { width: 50%; }
    .info-parent[class*="col-"] { width: 100%; }
    body[page="homepage"] .news-container{ display: none;}
    body[page="homepage"] #navigation-wrapper{ 
        position: absolute;
        z-index: 20;
    }
    body[page="homepage"] #content-wrapper{ 
        position: absolute;
        display: flex;
        align-items: flex-end;
        height: 100%;
        width: 100%;
        z-index: 10;
    }
    body[page="homepage"] .inner-parent{ 
/*        max-height: 80%;*/
    }
        
    /***** Navigation *****/
        
    #navigation-wrapper{
        float: left;
        width: 100%;
        z-index: 100;
    }
        nav{
            display: block;
            width: 100%;
            z-index: 100;
        }
            .default{
                float: left;
                color: transparent;
            }
                nav.default #header-container{ opacity: 0; pointer-events: none; }
                nav.fixed #menu-container.open{ display: block; }
                
            .fixed{
                position: fixed; 
                display: block; 
                opacity: 1 !important; 
                pointer-events: all !important; 
            }
        
                *[page='homepage'] nav.fixed { display: none; }
                nav.fixed #menu-container{ display: none; }
                nav.fixed #menu-container.open{ display: block; }
        
            #header-container{ 
                cursor: pointer;
                float: left; 
                top: 0.2em;
                width: 100%; 
            }
                a.home.button{ 
                    pointer-events: none;
                }
                nav.large svg{
                    width: auto;
                    max-width: 80%;
                    height: 1.3em;
                }

            #menu-container{
                float: left; 
                width: auto; 
                margin-top: 1em;
            }
        
        
                *[page='project_page'] #menu-container{ display: none; }
                .fixed #menu-container.closed{ display: none; }
                .fixed #menu-container.open{ display: block; }

                a.item.button{
                    display: block;
                    margin-top: 0.25em;
                    margin-right: 0em;
                    width: auto;
                }
        
                #content-wrapper.disabled{ background-color: #eaeaea; }
                #content-wrapper.disabled img{ filter: grayscale(100%) contrast(80%); }
        
        
        
            .menu-inner{
                float: left;
            }

                #menu-container a.item{
                    float: none;
                    margin-right: 0em;
                }
                #menu-container a.item:last-child{ margin-right: 0; }


        
    /***** Slideshow *****/
        *[page='homepage'] .slideshow-container{ height: auto; }
        .slideshow-container{
            cursor: auto;
        }
        *[page='project_page'] .slide-parent {
            display: block !important;
            margin-bottom: 1em;
        }
        
        .prev, .next, .bottom-nav{ display: none; }
    /***** Projects *****/
    
    .project-parent.marg-b-3{ margin-bottom: 2em; }
    .project-parent .caption{ display: none; }

        
        /***** Project Page *****/

        body[page="project_page"] .project-info{ display: none; }
        body[page="project_page"] .slideshow-container{
            display: block;
            height: auto !important; 
        }
        body[page="project_page"] .slideshow-container img{
            display: block;
            margin-bottom: 1em;
            width: auto;
            max-height: 75vw;
        }
        body[page="project_page"] .slideshow-container img:last-child{ margin-bottom: 0em; }
        body[page="project_page"] .description-container{ display: block !important;}
        
        .specifics{ display: none; }
        .back-top{ display: block; }
        
        
        #header-container .number, 
        .index-header .number,
        .title-container .number,
        .item-parent .number {
            width: 2.8em;
        }

        .title-container .extra{
            width: 100%;
            padding-left: 2.8em;
        }

        .title-container .name{
            width: calc(100% - 3.8em);
        }
        
        
        
    /***** Index *****/

    .index-header .name,
    .item-parent .name{ width: calc(100% - 3.2em); }
        
    .index-header .location,
    .index-header .year,
    .index-header .type,
    .item-parent .location,
    .item-parent .year,
    .item-parent .type{ display: none; }

    .title-container{ display: block !important; }
        

        
    /***** News *****/
      
    .article-parent{ display: grid; }
        .article-parent img{
            width: 100%;
        }
        .article-parent .caption{
            width: 100%;
        }

}


/* ----------- Small Handhelds ----------- */

@media only screen and (min-width: 700px) and (max-width: 980px) { 
        
    body{
    }
        

    /***** Spacing *****/
        
    .inner-parent.project_page.m-width{
        width: calc(100% - 8.2em);
    }
    .inner-parent.index.m-width,
    .inner-parent.office.m-width
    .inner-parent.news.m-width,
    .inner-parent .news-container,
    .inner-parent.project_page .description-container{
        width: 100%;
    }
        
        
    /***** Global *****/
        
    .project-parent[class*="col-"] { width: 50%; }
    .info-parent[class*="col-"] { width: 100%; }
        
        
    /***** Navigation *****/
        
        
    /***** Index *****/
        
    .index-header .name,
    .item-parent .name{
        width: calc(56% - 3.2em);
    }

    .index-header .location, 
    .item-parent .location{
        display: none;
    }

    .index-header .year,
    .item-parent .year{
        width: 22%;
    }

    .index-header .type,
    .item-parent .type{
        width: 22%; 
    }

}


/* ----------- Large Handhelds ----------- */

@media only screen and (min-width: 980px) and (max-width: 1300px) { 
        
    body{
    }

    /***** Spacing *****/
        
    .inner-parent.project_page.m-width{
        width: calc(100% - 8.2em);
    }
    .inner-parent.index.m-width,
    .inner-parent.office.m-width
    .inner-parent.news.m-width,
    .inner-parent .news-container,
    .inner-parent.project_page .description-container{
        width: 100%;
    }
        
        
    /***** Global *****/
        
    .project-parent[class*="col-"] { width: calc(100% / 3); }

}


/* ----------- Laptops ----------- */

@media only screen and (min-width: 1300px) and (max-width: 1800px) { 
        
    body{
    }
        
        
    /***** Spacing *****/
        
    .inner-parent.project_page.m-width{
        width: calc(100% - 8.2em);
    }
    .inner-parent.index.m-width,
    .inner-parent.office.m-width,
    .inner-parent.news.m-width,
    .inner-parent .news-container,
    .inner-parent.project_page .description-container{
        width: 1300px;
    }
        
    /***** Global *****/
        
    .project-parent[class*="col-"] { width: calc(100% / 4); }
        
}

/* ----------- Large Monitors ----------- */

@media only screen and (min-width: 1800px) { 
        
    body{
    }
        
        
    /***** Global *****/
        
    .project-parent[class*="col-"] { width: 20%; }

        
    /***** Spacing *****/
    .inner-parent.project_page.m-width{
        width: calc(100% - 8.2em);
    }
    .inner-parent.index.m-width,
    .inner-parent.office.m-width,
    .inner-parent.news.m-width,
    .inner-parent .news-container,
    .inner-parent.project_page .description-container{
        width: 1300px;
    }
                
}


