/*! HTML5 Boilerplate v5.3.0 | MIT License | https://html5boilerplate.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 {
    color: #000;
	background:#191818;
    font-size: 1em;
    line-height: 1.4;
}
/* apply a natural box layout model to all elements, but allowing components to change */
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * 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 audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

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

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

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

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

















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

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.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:
 * https://www.drupal.org/node/897638
 */

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

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

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

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after,
    *:first-letter,
    *:first-line {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        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 that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

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

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

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

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


/****** MUA/GARETH SPECIFIC **********/

.home-screen-wrapper {
	position:relative;
	width:100%;
	height:100vh;
}

@media all and (max-width: 599px) {
.home-screen-wrapper {
	position:relative;
	width:100%;
	height:250px;
}	
}
@media all and (max-width: 940px) and (min-width: 600px) {
.home-screen-wrapper {
	position:relative;
	width:100%;
}
}
.client-log-btn {
	display:block;text-align:center;margin-top:100px;	
}
@media all and (max-width: 599px) {
	.client-log-btn {
	margin-top:36px;	
}
}
.home-screen-logo-login {
position: absolute;
width:100%;
left:0;
color:#fff;
  top: 50%;
  transform: translateY(-50%);		
}
@media all and (max-width: 599px) {
	.client-log-btn {
	margin-top:36px;	
}
.home-screen-logo-login {
	position:relative;
	top:0;
	transform:none;	
	padding-top:20px;
}
}
.home-screen-logo-login h1 {
	font-weight:400;
	font-size:4em;
	margin:0;
	text-align:center;	
}

.home-screen-logo-login h2 {
	font-size:2em;
	font-weight:400;
	line-height:1;
	margin-top:30px;
	text-align:center;	
}

.home-screen-logo-login h3 {
	font-size:1.4em;
	font-weight:400;
	margin:0;
	margin-top:-12px;
	line-height:1;
	text-align:center;	
}


@media all and (max-width: 940px) and (min-width: 600px) {
.home-screen-logo-login h1 {
	font-weight:400;
	font-size:3em;
	margin:0;
	text-align:center;	
}

.home-screen-logo-login h2 {
	font-size:1.5em;
	font-weight:400;
	line-height:1;
	margin-top:20px;
	text-align:center;	
}

.home-screen-logo-login h3 {
	font-size:1em;
	font-weight:400;
	margin:0;
	margin-top:-10px;
	line-height:1;
	text-align:center;	
}	
}

@media all and (max-width: 599px) {
.home-screen-logo-login h1 {
	font-weight:400;
	font-size:1.75em;
	margin:0;
	text-align:center;	
}

.home-screen-logo-login h2 {
	font-size:0.875em;
	font-weight:400;
	line-height:1;
	margin-top:20px;
	text-align:center;	
}

.home-screen-logo-login h3 {
	font-size:0.688em;
	font-weight:400;
	margin:0;
	margin-top:-6px;
	line-height:1;
	text-align:center;	
}	
}


.second-header {
	width:100%;
	position:relative;
	padding:16px 0px 6px 0px;
	text-align:center;
	color:#fff;	
}

.second-header-logo {
	width:400px;
	margin:0 auto;
}
.second-header-logo img {
	width:100%;
	height:auto;	
}
h1.second-logo {
	font-weight:400;
	font-size:2.2em;
	margin:0;	
}
.small-larger-g {
	font-size:1.1em;	
}
.small-larger-m {
	font-size:1.2em;	
}

.second-header h3 {
	font-size:0.625em;
	font-weight:400;
	margin:0;
	margin-top:-8px;
	line-height:1;	
}
.second-header h2 {
	font-size:1em;
	font-weight:400;
	line-height:1;
	margin-top:14px;	
}

@media all and (max-width: 599px) {

h1.second-logo {
	font-weight:400;
	font-size:1.75em;
	margin:0;
	text-align:center;		
}

	.second-header h2 {
	font-size:0.875em;
	font-weight:400;
	line-height:1;
	margin-top:20px;
	text-align:center;		
}
.second-header h3 {
	font-size:0.688em;
	font-weight:400;
	margin:0;
	margin-top:-6px;
	line-height:1;
	text-align:center;	
}
}

.login-page-wrapper {
	width:100%;
	position:relative;	
	padding-top:36px;	
}

.login-form-wrapper {
	width:220px;
	margin:0 auto;	
}
.login-form-wrapper input#username, .login-form-wrapper input#password {
	width:220px;	
}



.wf-loading {
visibility: hidden;
}

.wf-active, .wf-inactive {
visibility: visible;
}

.footer-wrapper {
	width:100%;
	position:fixed;
	bottom:0;
	left:0;	
	padding-bottom:16px;
	font-size:14px;
	color:#838383;
}
.footer-wrapper a {
	color:#fff;	
}
body.gallery-page .footer-wrapper {
	position:relative;	
	padding-top:36px;
}

@media all and (max-width: 599px) {

.footer-wrapper {
	position:relative;	
	padding-top:36px;	
}
.pure-u-1-3 {
	display:block !important;
	width:100% !important;
	padding:0 20px 0px 20px !important;
	margin-bottom:20px !important;
	text-align:center !important;
}
.pure-u-1-3 img {
	float:none !important;	
	max-width:100%;	
}
	
}

@media all and (max-width: 940px) and (min-width: 600px) {
.footer-wrapper {
	position:relative;	
	padding-top:36px;	
}
.pure-u-1-3 {
	display:block !important;
	width:100% !important;
	padding:0 !important;
	margin-bottom:20px !important;
	text-align:center !important;
}
.pure-u-1-3 img {
	float:none !important;
	max-width:100%;	
}
}


.gallery {
	width:100%;	
}
.gallery img {
	height:500px;
	width:auto;	
	display:block;
  opacity: 0;
  -webkit-transition: opacity 0.4s;
          transition: opacity 0.4s;	
}

.gallery img.flickity-lazyloaded,
.gallery img.flickity-lazyerror {
  opacity: 1;
}

@media all and (max-width: 500px) {
.gallery img {
	height:200px;
	width:auto;	
}	
}

@media all and (max-width: 940px) and (min-width: 600px) {
.gallery img {
	height:400px;
	width:auto;	
}
}

.button-xsmall {
            font-size: 70%;
        }

        .button-small {
            font-size: 85%;
        }

        .button-large {
            font-size: 110%;
        }

        .button-xlarge {
            font-size: 125% !important;
        }
		
		
		
/*! Flickity v1.1.1
http://flickity.metafizzy.co
---------------------------------------------- */

.flickity-enabled {
  position: relative;
}

.flickity-enabled:focus { outline: none; }

.flickity-viewport {
  overflow: hidden;
  position: relative;
  height: 100%;
}

.flickity-slider {
  position: absolute;
  width: 100%;
  height: 100%;
}

/* draggable */

.flickity-enabled.is-draggable {
  -webkit-tap-highlight-color: transparent;
          tap-highlight-color: transparent;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.flickity-enabled.is-draggable .flickity-viewport {
  cursor: move;
  cursor: -webkit-grab;
  cursor: grab;
}

.flickity-enabled.is-draggable .flickity-viewport.is-pointer-down {
  cursor: -webkit-grabbing;
  cursor: grabbing;
}

/* ---- previous/next buttons ---- */

.flickity-prev-next-button {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: white;
  background: hsla(0, 0%, 100%, 0.75);
  cursor: pointer;
  /* vertically center */
  -webkit-transform: translateY(-50%);
      -ms-transform: translateY(-50%);
          transform: translateY(-50%);
}

.flickity-prev-next-button:hover { background: white; }

.flickity-prev-next-button:focus {
  outline: none;
  box-shadow: 0 0 0 5px #09F;
}

.flickity-prev-next-button:active {
  filter: alpha(opacity=60); /* IE8 */
  opacity: 0.6;
}

.flickity-prev-next-button.previous { left: 10px; }
.flickity-prev-next-button.next { right: 10px; }
/* right to left */
.flickity-rtl .flickity-prev-next-button.previous {
  left: auto;
  right: 10px;
}
.flickity-rtl .flickity-prev-next-button.next {
  right: auto;
  left: 10px;
}

.flickity-prev-next-button:disabled {
  filter: alpha(opacity=30); /* IE8 */
  opacity: 0.3;
  cursor: auto;
}

.flickity-prev-next-button svg {
  position: absolute;
  left: 20%;
  top: 20%;
  width: 60%;
  height: 60%;
}

.flickity-prev-next-button .arrow {
  fill: #333;
}

/* color & size if no SVG - IE8 and Android 2.3 */
.flickity-prev-next-button.no-svg {
  color: #333;
  font-size: 26px;
}

/* ---- page dots ---- */

.flickity-page-dots {
  position: absolute;
  width: 100%;
  bottom: -25px;
  padding: 0;
  margin: 0;
  list-style: none;
  text-align: center;
  line-height: 1;
}

.flickity-rtl .flickity-page-dots { direction: rtl; }

.flickity-page-dots .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 8px;
  background: #333;
  border-radius: 50%;
  filter: alpha(opacity=25); /* IE8 */
  opacity: 0.25;
  cursor: pointer;
}

.flickity-page-dots .dot.is-selected {
  filter: alpha(opacity=100); /* IE8 */
  opacity: 1;
}		