/*! 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 {
    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
   ========================================================================== */

body,html {
	width: 100%;
	height: 100%;
	font: normal 16px "Droid Serif", "Times New Roman", Times, serif;
	line-height: 1.75;
	letter-spacing: 2px;
	color: #333;
	-webkit-text-size-adjust: none;
	background-color: #444;
}

.calendar {
	line-height: 2;
}

#content {
	padding: 1rem 0 3.5rem;
}

#content a {
	color: #333;
}

#content p:first-child {
	initial-letter: 2;
}

#content_container {
	position: relative;
	max-width: 900px;
	margin: 0 auto;
}

#contact_form {
	margin-left: 210px;
}

#error {
	margin: 0 0 12px 0;
	color: #e32a31;
}

.fancybox-title-float-wrap .child {
	max-width: 100%;
	white-space: nowrap;
}

#footer {
	width: 100%;
	height: 175px;
	padding-top: 3.5rem;
	line-height: 1.5;
	color:#fff;
	background-color: #444;
}

#footer a {
	color: #fff;
	text-decoration: none;
}

#footer a:hover {
	color: #bebebe;
}

#footer p {
	margin: 0 auto;
	text-align: center;
	line-height: 2;
}

#footer_links {
	position: absolute;
	left: 0;
	top: 0;
	text-align: left;
}

#footer_links a {
	display: block;
}

/*
#gallery {
	margin: 8px 0 74px 0;
	padding-top: 10px;
}

#gallery img
{
	height: 170px;
	margin: 10px 13px 10px 0;
}

#gallery h3 {
	margin-top: 1.5em;
}

#gallery h3:first-child
{
	margin-top: 0;
}
*/
.gallery {
	margin-top: 3rem;
}
.gallery img
{
	max-width: 98%;
	height: 220px;
	margin: 10px 20px 10px 0;
}

.gallery h3 {
	margin-top: 1.5em;
}

.gallery h3:first-child
{
	margin-top: 0;
}

/*
.gallery_button {
	cursor: pointer;
}
*/

h1,h3 {
	font: normal 16px "Lora", "Times New Roman", Times, serif;
	text-transform: uppercase;
	line-height: 3;
	margin: 0;
}

h2 {
	display: inline-block;
	font: normal 16px "Lora", "Times New Roman", Times, serif;
	text-transform: uppercase;
	line-height: 3;
	margin: 0;
	vertical-align: top;
}

header {
	width: 100%;
	margin-bottom: 30px;
	overflow: hidden;
}

header span {
	display: block;
	width: 100%;
	height: 128px;
	background-image: url(../img/csv/logo.svg);
	background-position: center 70px;
	background-repeat: no-repeat;
	border: none;
	outline: none;
}

header div {
	position: relative;
	max-width: 1920px;
	height: 128px;
	margin: 0 auto;
    overflow: hidden;
	background-color: #eee;
}

/*
#home_portrait {
	display: inline-block;
	margin: 4px 27px 0 0;
	vertical-align: top;
}

#home_statement {
	display: inline-block;
	width: 560px;
	height: 374px;
	padding-top: 60px;
	vertical-align: top;
}
*/

#home_portrait {
	float: left;
	margin: 1.5rem 2.5rem 1.5rem 0;
	vertical-align: top;
}

input[type="text"] {
	width: 250px;
	font: normal 16px "Droid Serif", "Times New Roman", Times, serif;
}

.lb-data .lb-caption {
    font-size: 16px !important;
    line-height: 2em !important;
}

.lb-number {
	display: none !important;
}

#main {
	background-color: #fff;
}

#nav {
	position: absolute;
	top: 0;
	right: 0;
}

#nav a,#telephone_link {
	display: inline-block;
	margin-left: 20px;
	color: #333;
	text-decoration: none;
}

#nav a:hover,#telephone_link:hover {
	color: #888;
}

#painting_segment {
    position: absolute;
    left: -9999px;
    right: -9999px;
    margin: auto;
}

textarea {
	width: 355px;
	height: 150px;
	font: normal 16px "Droid Serif","Times New Roman", Times, serif !important;
}

#veil {
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: #fff;
	z-index: 999;
}

#working {
	max-width: 40%;
	float: right;
	margin: 6px 0 20px 20px;
}

@media screen and (max-width: 900px) {
	body {
		font-size: 12px;
	}
	
	#contact_form {
		margin: 0;
	}
	
	#content {
		padding: 0 5% 35px 5%;
	}
	
	#content.home {
		padding-top: 12px;
	}
	
	#content_container {
		width: 100%;
		max-width: 90%;
	}
	
	.fancybox-title-float-wrap .child {
		min-width: 225px;
		max-width: 100%;
		white-space: normal;
	}
	
	.ffButtonWrapper > a > span {
		font-size: 14px !important;
	}
	
	#footer {
		width: 100%;
		height: 167px;
		padding-top: 1.75rem;
	}
	
	#footer p span {
		display: block;
	}
	
	#framing {
		margin: 12px 0 -6px 0;
	}
	
	#gallery {
		clear: both;
		margin-bottom: 35px;
		padding: 10px 20px 0 20px;
	}
	
	#gallery img
	{
		height: 85px;
	}
	
	.gallery {
		margin-top: 2rem;
	}

	.gallery_break
	{
		display: none;
	}
	
	h1,h2,h3 {
		font-size: 12px;
	}
	
	header {
		width: 100%;
		margin-bottom: 16px;
		overflow: hidden;
	}

	header div,#painting_segment {
		height: 60px;
	}

	header span {
		background-size: 90% auto;
	}
	
	#home_portrait {
		float: left;
		width: 40%;
		max-width: 180px;
		margin: 1rem 1.5rem 1.5rem;
		vertical-align: top;
	}
	
	#home_statement {
		display: block;
		width: auto;
		height: auto;
		padding: 20px 20px 0 20px;
	}
	
	input[type="text"] {
		width: 150px;
		max-width: 90%;
	}
	
	.lb-data .lb-caption {
  		font-size: 14px !important;
		line-height: 1.35 !important;
	}
	
	#logo {
		width: 90%;
		height: auto;
	}
	
	#nav {
		position: relative;
		width: 100%;
		margin-bottom: 25px;
		text-align: center;
	}
	
	#nav a {
		margin: 0 1%;
	}
	
	textarea {
		width: 240px;
		max-width: 90%;
		height: 96px;
	}
	
	#working {
		margin: 6px 0 15px 20px;
	}
}

@media screen and (max-width: 850px) {
	header span {
		height: 107px;
		background-image: url(../img/csv/logo-tablet.svg);
		background-position: center 58px;
		background-size: auto;
	}
}


@media screen and (max-width: 740px) {
	header span {
		height: 80px;
		background-image: url(../img/csv/logo-mobile-landscape.svg);
		background-position: center 38px;
		background-size: auto;
	}
}

@media screen and (max-width: 560px) {
	header span {
		height: 107px;
		background-image: url(../img/csv/logo-mobile.svg);
		background-size: auto;
	}

	#home_portrait {
		margin: 1rem 1.5rem 0.5rem;
	}
}

@media
only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and (min--moz-device-pixel-ratio: 2),
only screen and (-o-min-device-pixel-ratio: 2/1),
only screen and (min-device-pixel-ratio: 2),
only screen and (min-resolution: 192dpi),
only screen and (min-resolution: 2dppx)
{
	body {
		letter-spacing: 2px;
		word-spacing: 3px;
	}
	
	.ffSubmitWrapper a,.ffSubmitWrapper a span,.ffButtonWrapper a,.ffButtonWrapper a span {
		background: #888 !important;
		border-radius: 5px;
	}
}

/* ==========================================================================
   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;
    }
}
