/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.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,
button,
input,
select,
textarea {
    color: #222;
}

html {
    font-size: 1.3em;
    line-height: 1.4;
    background-image: url('/img/hatch.png');
    overflow-y: auto;
}

body {
	margin-bottom: 30px;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * 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 images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

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

/*
 * Remove default fieldset styles.
 */

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

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

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

@media screen and (min-width: 960px) {
	.swiper-container { width: 940px; height: 530px; }
	figure.project img { width: 940px; height: 530px; }
	figure.project figcaption { top: 30px; font-size: 1.3em;  }
    .portfolio figure { width: 45%; }

	.contentbody { width: 65%; }
	.overview { width: 30%; }
	.overview ul li { width: auto }
	div.share { display: inline-block; }
}
@media screen and (min-width: 820px) and (max-width: 960px) {
	.swiper-container { width: 800px; height: 451px; }
	figure.project img { width: 800px; height: 451px; }
	figure.project figcaption { top: 20px; font-size: 1.1em; }
    .portfolio figure { width: 45%; }

	div.share { display: inline-block; }
}
@media screen and (min-width: 820px) {
	div.page { font-size:0.8em; }
	h1 span { font-size: 0.6em; }
	
	img.title { margin: 1.6em auto auto auto; width: 40%; display: block; }
	.home-swiper-container { max-width:800px; max-height:320px; }
	figure.showcase img { width:800px; height:320px; }
	figure.showcase figcaption { top: 20px; font-size: 2em; }
    .portfolio figure { width: 45%; }

	nav { font-size: 0.8em; }

	.contentbody { width: 65%; }
	.overview { width: 30%; }
	.overview ul li { width: auto }
	div.share { display: inline-block; }

	#home h1 { font-size: 2em; }

	ul.contact li { display:table; }

	.social img { width: 64px; }
}
@media screen and (min-width: 580px) and (max-width: 820px) {
	div.page { font-size:0.8em; }
	h1 span { font-size: 0.6em; display:block;}

	img.title { margin: 1.2em auto auto auto; width: 60%; display: block; }
	.home-swiper-container { max-width:560px; max-height:224px; }
	figure.showcase img { width:560px; height:224px; }
	figure.showcase figcaption { top: 10px; font-size: 1.2em; }
    .portfolio figure { width: auto; }
			
	nav { font-size: 0.5em; }
	.swiper-container { width: 560px; height: 315px; }
	figure.project img { width:560px; height:315px; }
	figure.project figcaption { top: 10px; font-size: 0.9em; }

	.contentbody { width: 80%; }
	.overview { width: 80%; }
	.overview ul li { width: 80%; }

	div.share { display:inline-block; }

	#home h1 { font-size: 1.3em; }

	ul.contact li { display:table; }
	.social img { width: 64px; }
}
@media screen and (max-width: 580px) {
	div.page { font-size:0.8em; }
	h1 span { font-size: 0.6em; display:block;}

	img.title { margin: 1em auto auto auto; width: 60%; display: block; }
	.home-swiper-container { max-width:320px; max-height:128px; }
	figure.showcase img { width:320px; height:128px; }
	figure.showcase figcaption { top: 5px; font-size: 0.8em; }
    .portfolio figure { width: auto; }
		
	nav { font-size: 0.5em; }

	.swiper-container { width: 320px; height: 180px; }
	figure.project img { width:320px; height:180px; }
	figure.project figcaption { top: 5px; font-size: 0.7em; }

	.contentbody { width: 80%; }
	.overview { width: 80%; }
	.overview ul li { width: 80%; }
	
	div.share { display:none; }

	#home h1 { font-size: 0.8em; }

	ul.contact li { display:block; }
	.social img { width: 32px; }
}

div.page { margin: 4% 4% 0 4%; padding: 20px 20px 40px 20px; background-color: #fff; border: solid 2px black; }
p { margin: 0 auto 0.6em; }
h1 { margin: 0 auto 0.2em; font-size:1.8em; font-family: 'Titillium Web', sans-serif; font-style: italic; }
h2 { margin: 0 auto 1em; font-size:1.2em; font-family: 'Titillium Web', sans-serif; color:#0070ff; }

#home h1 { margin-top:1em; color: #fff; text-align:center; }

span a { text-decoration:none; }

a:link, a:visited, a:hover, a:active { color:#0070ff; } 

nav { width: 100%; left: 0; position:fixed; top: 0; background-color: #0070ff; text-align:center; z-index:10; }
nav .logo { left: 0; margin: 0.5em 1em; width: 2em; position: absolute; -webkit-transition:300ms; -moz-transition:300ms; -ms-transition:300ms; -o-transition:300ms; transition:300ms; }
nav a { font-size:2em; text-decoration:none; display:inline; padding: 0 10px; } 
nav a:link, nav a:visited, nav a:hover, nav a:active { color:#fff; }

section { display:block; padding-top: 1%; clear:both; }

.primal-swiper-wrapper section div.pagearea { padding: 1.2em 50px 0.5em 50px; }

section h2 { margin-top: 1.5em; }

figure.showcase figcaption { position: absolute; padding: 5px 10px 5px 30px; background: rgba(0,0,0,0.6); color: #fff; }

/* ==========================================================================
   Page specific classes
   ========================================================================== */
   
#portfolio, #home { border-bottom: solid 1px black; }
.aboutlogo, .greg209 { width:15%; float:right; padding:0 0 30px 30px }
.profilethumbnail { vertical-align: top; }

div.pagearea h1 { font-size: 2em; color: white; background-color: rgba(0, 0, 0, 0.4); position: inherit; top: 30px; z-index: 11; padding: 5px 50px 5px 5px; }

.swiper-container figcaption, .swiper-container figcaption { position: absolute; font-style: italic; font-weight: bold; text-align: right; padding: 5px 25px; background: rgba(0,0,0,0.6); color: #fff; }

.content { font-size: 0.9em; margin: 1% 5%; background-color: rgba(255,255, 255, 0.6); }
.contentbody { display: inline-block; padding-left: 1em; border-left: solid 1px #999; vertical-align: top; }
.contentbody p, .contentbody ul { font-size: 0.9em; }

.portfolio figure { margin: 0; text-align: center; display: inline-block; padding: 0 2%; }
.portfolio figure img { width: 100%; display: inline-block; margin: 0.5em; border: solid 1px black; }
.portfolio figcaption { vertical-align: top; font-size: 1.3em; }

.overview { padding-left: 1em; display: inline-block; vertical-align: top; }
.overview ul { margin: 0; padding: 0; display:table; }
.overview ul { font-size: 0.8em; list-style-type:none; padding-bottom: 1em; }
.overview ul li { margin: 0; padding: 0; display: table; }
.overview ul li span { width: 7em; display: table-cell; font-weight: bold; padding-right: 1em; }

ul.affiliations { margin: 0; padding: 0; list-style-type:none; }
ul.affiliations li { display:inline-block; margin: 0; width: 24%; }
ul.affiliations img { width: 90%; }

ul.contact { list-style-type:none; } 
ul.contact li span { width: 10em; display: table-cell; font-weight: bold; }

.social { padding-bottom: 1em; }

#socialfollowers { top: 0; right: 0; margin: 0.5em 1em; position: absolute; }
#twitterfollowers, #facebookfollowers { padding: 0 2px; display: inline; }
#twitterfollowers a, #facebookfollowers a { width: 55px; height: 33px; padding: 28px 0 0 0; color: #000; font-size: 9pt; font-weight: 700; display: inline-block; }
#twitterfollowers a { background: url("/img/twitterfollowers.png") no-repeat; }
#facebookfollowers a { background: url("/img/facebookfollowers.png") no-repeat; }

.share { width: 100px; display: inline-block; right: 2em; top:0.5em; padding: 3px 1px 0 3px; position: absolute; text-align: left; background-color: #fff; border: solid 1px black; -webkit-transition:300ms; -moz-transition:300ms; -ms-transition:300ms; -o-transition:300ms; transition:300ms; }

.portfolio { height:100%; }

.copyright { margin: 1% 4%; padding: 10px 20px; background-color: #fff; border: solid 2px black; color: #000; font-size: 0.7em; font-weight: bold; font-style: italic; }

/* ==========================================================================
   Project classes
   ========================================================================== */

#makersandme { background: url('/img/makersand/background.jpg') no-repeat center/cover; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; }

#sumulizeapp { background: url('/img/sumulizeapp/background.jpg') no-repeat center/cover; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; }

#laerdal { background: url('/img/laerdal/background.jpg') no-repeat center/cover; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; }

#bet365 { background: url('/img/bet365/background.jpg') no-repeat center/cover; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; }

#actionsmap { background: url('/img/actionsmap/background.jpg') no-repeat center/cover; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; }

#nhschangeday2015 { background: url('/img/nhschangeday2015/background.jpg') no-repeat center/cover; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; }

#windowcleaner { background: url('/img/windowcleaner/background.jpg') no-repeat center/cover; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; }

#nhschangeday2014 { background: url('/img/nhschangeday2014/background.jpg') no-repeat center/cover; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; }

#niketeamheadwear { background: url('/img/niketeamheadwear/background.jpg') no-repeat center/cover; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; }

#primalpictures { background: url('/img/primalpictures/background.jpg') no-repeat center/cover; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; }

#rejoicensing { background: url('/img/rejoicensing/background.jpg') no-repeat center/cover; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; }

#sumitallup { background: url('/img/sumitallup/background.jpg') no-repeat center/cover; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; }

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

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

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

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.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: h5bp.com/p
 */

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

/*
 * Hide visually and from screenreaders, 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;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   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,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        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 for images, or javascript/internal links
     */

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

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

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

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

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}

/*
 * Swiper - Mobile Touch Slider CSS
 * http://www.idangero.us/sliders/swiper
 *
 * Vladimir Kharlampidi, The iDangero.us
 * http://www.idangero.us/
 * 
 * Copyright 2012-2013, Vladimir Kharlampidi
 * The iDangero.us
 * http://www.idangero.us
 *
 * Licensed under GPL & MIT
 *
*/

/* ===============================================================
Basic Swiper Styles 
================================================================*/
.home-swiper-container, .project-swiper-container, .swiper-container {
	margin:0 auto;
	position:relative;
	overflow:hidden;
	-webkit-backface-visibility:hidden;
	-moz-backface-visibility:hidden;
	-ms-backface-visibility:hidden;
	-o-backface-visibility:hidden;
	backface-visibility:hidden;
	/* Fix of Webkit flickering */
	z-index:1;
}
.swiper-wrapper {
	position:relative;
	width:100%;
	-webkit-transition-property:-webkit-transform, left, top;
	-webkit-transition-duration:0s;
	-webkit-transform:translate3d(0px,0,0);
	-webkit-transition-timing-function:ease;
	
	-moz-transition-property:-moz-transform, left, top;
	-moz-transition-duration:0s;
	-moz-transform:translate3d(0px,0,0);
	-moz-transition-timing-function:ease;
	
	-o-transition-property:-o-transform, left, top;
	-o-transition-duration:0s;
	-o-transform:translate3d(0px,0,0);
	-o-transition-timing-function:ease;
	-o-transform:translate(0px,0px);
	
	-ms-transition-property:-ms-transform, left, top;
	-ms-transition-duration:0s;
	-ms-transform:translate3d(0px,0,0);
	-ms-transition-timing-function:ease;
	
	transition-property:transform, left, top;
	transition-duration:0s;
	transform:translate3d(0px,0,0);
	transition-timing-function:ease;
}
.swiper-free-mode > .swiper-wrapper {
	-webkit-transition-timing-function: ease-out;
	-moz-transition-timing-function: ease-out;
	-ms-transition-timing-function: ease-out;
	-o-transition-timing-function: ease-out;
	transition-timing-function: ease-out;
	margin: 0 auto;
}
.swiper-slide {
	float: left;
}

/* IE10 Windows Phone 8 Fixes */
.swiper-wp8-horizontal {
	-ms-touch-action: pan-y;
}
.swiper-wp8-vertical {
	-ms-touch-action: pan-x;
}

/* ===============================================================
Your custom styles, here you need to specify container's and slide's
sizes, pagination, etc.
================================================================*/
.home-swiper-container {
	/* Specify Swiper's Size: */

	width: 800px;
	height: 320px;
}
.project-swiper-container {
	/* Specify Swiper's Size: */

	width: 100%;
	height: 100%;
}
.swiper-container {
	/* Specify Swiper's Size: */

	/*width: 940px;
	height: 530px;*/
	margin-top: 1em;
}
.swiper-slide {
	/* Specify Slides's Size: */
	
	/*width: 100%;
	height: 100%;*/
}
.swiper-slide img {
    width: 100%;
}
.swiper-slide-active {
	/* Specific active slide styling: */
	
}
.swiper-slide-visible {
	/* Specific visible slide styling: */	

}
/* ===============================================================
Pagination Styles
================================================================*/
.pagination {
  position: absolute;
  z-index: 20;
  left: 10px;
  bottom: 10px;
}
.swiper-pagination-switch {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 8px;
  background: #222;
  margin-right: 8px;
  opacity: 0.8;
  border: 1px solid #fff;
  cursor: pointer;
}
.swiper-visible-switch {
  background: #ccc;
}
.swiper-active-switch {
  background: #00f;
}

.project-pagination, .sumulizeapp-pagination, .laerdal-pagination, .bet365-pagination, .actionsmap-pagination, .nhschangeday2015-pagination, .windowcleaner-pagination, .nhschangeday2014-pagination, .niketeamheadwear-pagination, .primal-pagination, .rejoicensing-pagination, .sumitallup-pagination {
  position: absolute;
  z-index: 20;
  left: 10px;
  bottom: 10px;
}
.swiper-pr-pagination-switch {
  display: inline-block;
  width: 3em;
  height: 0.5em;
  background: #555;
  margin-right: 8px;
  opacity: 0.8;
  border: 1px solid #fff;
  cursor: pointer;
}
.swiper-pr-visible-switch {
  background: #888;
}
.swiper-pr-active-switch {
  background: #f00;
}