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

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

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

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

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

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

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

textarea {
    resize: vertical;
}

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

body {
	font-family: 'Roboto Condensed', sans-serif;
	color: #cccccc;
	font-weight: 300;
    -webkit-font-smoothing: antialiased;
	
	background: #090b0e;
}

nav {
	width: 40px;
	height: 100vh;
	position: fixed;
	top: 0;
	left: 0;
	background: #14191f;
	z-index: 5;
	-webkit-box-shadow: 1px 0px 8px 0px rgba(0,0,0,0.6);
	        box-shadow: 1px 0px 8px 0px rgba(0,0,0,0.6);
}

.thumb img {
	width: 100%;
}

hr {
    border-top: 1px solid rgba(255,255,255,0.2);
    margin: 10px auto;
}

#gallery {
	width: calc(100% - 40px);
	height: auto;
	float: right;
}

.pullout {
	position: fixed;
	z-index: 4;
	width: 280px;
	background: rgba(20,25,31,0.95);
	height: 100vh;
	-webkit-box-shadow: 1px 0px 8px 0px rgba(0,0,0,0.6);
	        box-shadow: 1px 0px 8px 0px rgba(0,0,0,0.6);
	-webkit-transition: all 0.3s ease-in-out;
	transition: all 0.3s ease-in-out;
	top: 0;
	left: -280px;
	overflow-x: hidden;
	overflow-y: auto;
}

.pullout.display {
	left: 40px;
	-webkit-transition: all 0.3s ease-in-out;
	transition: all 0.3s ease-in-out;
}

.pullout article {
	padding: 20px;
}

.pullout h3, .pullout p {
	text-transform: uppercase;
    margin: 0 auto;
    font-weight: lighter;
}

.pullout h3 {
	margin-bottom: 10px;
}

.pullout p {
	/*line-height: 1.7;*/
}

a, a:visited {
    color: #ebab11;
    text-decoration: none;
}

.thumb {
	/*width: 100%;
	padding-top: 100%;*/
		width: 50%;
		padding-top: 50%;
	display: block;
	float: left;
	position: relative;
	-webkit-transition: all 1.5s;
	transition: all 1.5s;
}

.thumb img {
	position: absolute;
	top: 0;
	left: 0;
}

.thumb h2 {
	position: absolute;
	z-index: 2;
	bottom: 0;
	right: 0;
	margin: 0 auto;
	line-height: 1;
	color: white;
	text-transform: uppercase;
	font-weight: lighter;
	font-size: 1rem;
	background: rgba(0,0,0,0.3);
	padding: 5px;
	-webkit-transition: all 0.5s;
	transition: all 0.5s;
	opacity: 0;
	visibility: hidden;
}

.thumb h2.display {
	opacity: 1;
	visibility: visible;
	-webkit-transition: all 0.3s;
	transition: all 0.3s;
}

.thumb h2 a {
	text-decoration: none;
	color: white;
}

.thumb h2:hover, .thumb h2:focus {
	background: rgba(0,0,0,0.5);
	padding-bottom: 10px;
	-webkit-transition: all 0.3s;
	transition: all 0.3s;
}

.thumb h2:active {
	background: rgba(0,0,0,0.8);
	padding-bottom: 10px;
	-webkit-transition: all 0.3s;
	transition: all 0.3s;
}

.icon, .close {
	width: 40px;
	height: 40px;
	line-height: 40px;
	display: block;
	text-align: center;
	vertical-align: middle;
	cursor: pointer;
}

.icon .fa {
	color: white;
	opacity: 0.5;
	-webkit-transition: all 1.2s;
	transition: all 1.2s;
}

.icon:hover .fa, .icon:focus .fa, .icon.active .fa, .close:hover, .close:focus, .icon:hover span, .icon:focus span, .icon.active span {
	opacity: 1;
	-webkit-transition: all 0.2s;
	transition: all 0.2s;
	color: #ebab11;
}

.icon:active, .close:active {
	background: #090b0e;
}

.icon span {
	display: none;
}

.close {
	position: absolute;
	top: 0;
	right: 0;
}

input, textarea, a.button {
	-webkit-appearance: none;
    -moz-appearance: none;
    border: 1px solid #14191f;
    background: none;
    -webkit-box-shadow: inset 0 1px 2px 0 rgba(0,0,0,0.4);
            box-shadow: inset 0 1px 2px 0 rgba(0,0,0,0.4);
    display: block;
    width: calc(100% - 20px);
    padding: 5px 10px;
    margin-bottom: 15px;
}

a.button {
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    color: white;
    text-decoration: none;
    text-align: center;
    color: #cccccc;
}

input:focus, textarea:focus, keygen:focus, select:focus {
    outline-offset: -2px;
    outline: #ebab11 auto 2px;
}

input[type="submit"], a.button {
	width: 100%;
	text-transform: uppercase;
	-webkit-transition: all 1.2s;
	transition: all 1.2s;
}

input[type="submit"]:hover, input[type="submit"]:focus, a.button:hover, a.button:focus {
	-webkit-transition: all 0.2s;
	transition: all 0.2s;
	background: #ebab11;
	color: white;
}

.design.filter, .develop.filter, .infograph.filter {
	opacity: 0;
	visibility: hidden;
	padding: 0;
	-webkit-transition: all 0.5s;
	transition: all 0.5s;
}

.clearFilter {
	text-transform: uppercase;
	padding: 10px;
	position: fixed;
	top: -42px;
	right: 0;
	z-index: 10;
	background: #ebab11;
	color: white;
	cursor: pointer;
	opacity: 0.7;
	-webkit-transition: all 1.5s;
	transition: all 1.5s;
}

.clearFilter:hover, .clearFilter:focus, .clearFilter:active {
	opacity: 1;
	-webkit-transition: all 0.5s;
	transition: all 0.5s;
}

.clearFilter.filter {
	top: 0px;
	-webkit-transition: all 0.5s;
	transition: all 0.5s;
}

.poptrox-popup .closer {
    -webkit-transition: opacity 0.2s ease-in-out;
    transition: opacity 0.2s ease-in-out;
    background-image: url(../img/close.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 40px;
	background-color: rgba(0,0,0,0.2);
    height: 40px;
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 40px;
    z-index: 2;
}

.poptrox-popup .nav-previous, .poptrox-popup .nav-next {
    -webkit-transition: opacity 0.2s ease-in-out;
    transition: opacity 0.2s ease-in-out;
    background-image: url(../img/arrow.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 40px;
	background-color: rgba(0,0,0,0.2);
    cursor: pointer;
    height: 40px;
    margin-top: -20px;
    opacity: 0;
    position: absolute;
    top: 50%;
    width: 40px;
    z-index: 2;
}

.poptrox-popup .nav-previous {
    -webkit-transform: scaleX(-1);
            transform: scaleX(-1);
    left: 0;
}

.poptrox-popup .nav-next {
    right: 0;
}

.poptrox-popup:hover .closer, .poptrox-popup:hover .nav-previous, .poptrox-popup:hover .nav-next {
    opacity: 0.5;
}

.poptrox-popup:hover .closer:hover, .poptrox-popup:hover .nav-previous:hover, .poptrox-popup:hover .nav-next:hover {
    opacity: 1.0;
}

.poptrox-popup {
    -webkit-box-shadow: 0 1em 3em 0.5em rgba(0, 0, 0, 0.25);
            box-shadow: 0 1em 3em 0.5em rgba(0, 0, 0, 0.25);
    cursor: default;
}

.modal-active #gallery, .modal-active nav {
    -webkit-filter: blur(8px);
            filter: blur(8px);
}

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


/* ==========================================================================
   Media Queries
   ========================================================================== */

@media only screen and (min-width: 480px) {
	.thumb {
		width: 50%;
		padding-top: 50%;
	}
}

@media only screen and (min-width: 768px) {
	.thumb {
		width: 25%;
		padding-top: 25%;
	}
	
	.icon {
		width: auto;
		text-align: left;
		padding: 0 10px;
	}
	
	nav {
		width: 135px;
	}
	
	#gallery {
		width: calc(100% - 135px);
	}
	
	.icon span {
		display: inline-block;
		text-transform: uppercase;
		font-size: .875rem;
		opacity: 0.5;
		color: white;
		margin-left: 5px;
		-webkit-transition: all 1.2s;
		transition: all 1.2s;
	}

	.pullout.display {
		left: 135px;
	}
}

@media only screen and (min-width: 1140px) {
	.thumb {
		width: 20%;
		padding-top: 20%;
	}
}

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

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

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

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

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important;
        -webkit-box-shadow: none !important;
                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) ")";
    }

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

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

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