/*! 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: 1em;
    line-height: 1.4;
}

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

@font-face {
    font-family:'Perpetua';
    src: url('type/perpetua/Perpetua.eot');
    src: url('type/perpetua/Perpetua.eot?#iefix') format('embedded-opentype'),
         url('type/perpetua/Perpetua.woff2') format('woff2'),
         url('type/perpetua/Perpetua.woff') format('woff'),
         url('type/perpetua/Perpetua.ttf') format('truetype'),
         url('type/perpetua/Perpetua.svg#Perpetua') format('svg');
    font-weight: normal;
    font-style: normal;
}

body {
	font-size:16px;
	line-height:110%;
	color:#232B2B;
    background-color:#ffffff;
    /*background-color:#c2c2c2;*/
    font-family:'Perpetua', Georgia, Serif; 
	font-weight:400;
	letter-spacing:0.04em;
	margin: 0;
	padding: 0;
	height: 100%;
    max-height: 100%;
}

a {
	text-decoration:none;
	color:#232B2B;
}

a:hover {
	text-decoration:none;
	color:#888888;
}

a:visited {
	text-decoration:underline;
	color:#232B2B;
}

img  {
	border:none;
}

#main_container {
	margin:0px;
	padding:0px;
	width:100%;
	height:auto;
	text-align:left;
}

#tobyglanville {
	position:fixed;
	top:30px;
	left:35px;
	width:150px;
	margin:0 0 0 0;
	background:none;
	z-index:3;
}

#tobyglanville a:hover {
	color:#888888;
}

#about {
	position:absolute;
	top:99px;
	left:250px;
	width:40%;
	margin:0 0 0 0;
	background:none;
	z-index:3;
}

#about a:hover {
	color:#888888;
}

.about-link {
	margin-bottom:8px;
}

.about-tag {
	font-size:12px;
	line-height:90%;
}

#categories {
	position:fixed;
	top:99px;
	left:35px;
	width:auto;
	margin:0 0 0 0;
	background:none;
	z-index:3;
}

#categories a:hover {
	color:#888888;
}

#categories span {
	color:#919595;
}


#previous {
	position:absolute;
	bottom:35px;
	width:12px;
	left:35px;
	height:24px;
	z-index:3;
}

#next {
	position:absolute;
	bottom:35px;
	width:12px;
	left:60px;
	height:24px;
	z-index:3;
}

.parent{
    display:table;
  	width:100%;
  	height:100%;
  	position:absolute;
  	overflow:hidden;
  	text-align:center;
	z-index:1;
}

.center, .landscape, .portrait {
	display:table-cell;
  	vertical-align:middle;
  	text-align:center;
}

.center img {
  	width:40%;
  	height:auto;
}

.landscape img {
  	width:33%;
  	height:auto;
}

.portrait img {
	width:27%;
	height:auto;
}

.caption {
	padding-left:29.8%;	
	text-align:left;
}

.landscape .caption {
	padding-left:33.3%;	
	text-align:left;
}

.portrait .caption {
	padding-left:36.3%;	
	text-align:left;
}

.aspect {
	width:100%;
	animation:fadein 1.5s;
	-moz-animation:fadein 1.5s; /* Firefox */
	-webkit-animation:fadein 1.5s; /* Safari and Chrome */
	-o-animation:fadein 1.5s; /* Opera */
}

.locked {
	user-drag:none; 
	user-select:none;
	-moz-user-select:none;
	-webkit-user-drag:none;
	-webkit-user-select:none;
	-ms-user-select:none;
}

.social {
	position:fixed;
	bottom:30px;
	right:35px;
	z-index:3;
}

.socialabout {
	position:fixed;
	bottom:30px;
	left:35px;
	z-index:3;
}

   /* Smartphones (portrait and landscape) ----------- */
@media only screen 
and (min-width : 320px) 
and (max-width : 480px) {

body {
	font-size: 10px;
}
	
#about {
	left:125px;
	top:60px;
	width:50%;
}
	
.about-tag {
	font-size:10px;
}

#categories {
	left:20px;
	top: 60px;
}
	
#previous {
	left:20px;
}

#next {
	left:45px;
}
	
.caption {
	padding-left:29.8%;	
}
	
.landscape .caption {
	padding-left:28.1%;	
}

.portrait .caption {
	padding-left:31%;	
}

.center img {
  	width:40%;
}

.landscape img {
  	width:43%;
}

.portrait img {
	width:37%;
}

#text {
	font-size:10px;
	width:100px;
	left:20px;
	top: 68px;
}

#tobyglanville {
	left:20px;
	top: 20px;
}

#contact {
	top: 8%;
	left: 50%;
}

.social {
	right:20px;
}	
	
.socialabout {
	left:20px;
}	
	
}

	/* iPads (portrait and landscape) ----------- */
@media only screen 
and (min-width : 768px) 
and (max-width : 1024px) {

body {
	font-size:12px;
}
	
#about {
	left:200px;
	top:80px;
	width:50%;
}
	
#categories {
	top:80px;
}
	
.caption {
	padding-left:29.8%;	
}

.landscape .caption {
	padding-left:28.3%;	
}

.portrait .caption {
	padding-left:31.2%;	
}
	
.center img {
  	width:40%;
}

.landscape img {
  	width:43%;
}

.portrait img {
	width:37%;
}

#text {
	font-size:12px;
	width:300px;
	top:140px;
}

#contact {
	top: 8%;
	left: 50%;
}

.social {
	right:35px;
}
		
.socialabout {
	left:35px;
}

}

	/* imgFadeControls (portolio) ----------- */

@keyframes fadein {
    from {
        opacity:0;
    }
    to {
        opacity:1;
    }
}
@-moz-keyframes fadein { /* Firefox */
    from {
        opacity:0;
    }
    to {
        opacity:1;
    }
}
@-webkit-keyframes fadein { /* Safari and Chrome */
    from {
        opacity:0;
    }
    to {
        opacity:1;
    }
}
@-o-keyframes fadein { /* Opera */
    from {
        opacity:0;
    }
    to {
        opacity: 1;
    }
}

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


    /* Above */


/* ==========================================================================
   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;
    }
}