body,
.main {
	background-color: #FAFAFA !important;
}


/* =Genericons, thanks to FontSquirrel.com for conversion!
-------------------------------------------------------------- */
@font-face {
    font-family: 'Genericons';
    src: url('font/genericons-regular-webfont.eot');
    src: url('font/genericons-regular-webfont.eot?#iefix') format('embedded-opentype'),
         url('font/genericons-regular-webfont.woff') format('woff'),
         url('font/genericons-regular-webfont.ttf') format('truetype'),
         url('font/genericons-regular-webfont.svg#genericonsregular') format('svg');
    font-weight: normal;
    font-style: normal;
 
}
.vertical-align-helper {    
	display: inline-block;
    height: 100%;
    vertical-align: middle;
}

.card  {
	display: block;
	position: relative;
	text-align:left;
	/* margin:0.25rem; */
}
.card-head {
	margin: 0 !important;
}

.card-head,
.card-body {
	padding:0;
	border:0;
}

.card-active {
	box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
	transition: all 0.2s ease-in-out;
}

.card ,
.card  p,
.card  dl,
.card  div,
.card  form
 {
	/* margin-bottom: 1rem !important;  */
	font-size: inherit;
}


.card-active:hover {
	box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
}

.card .card-body a:not(.btn) {
	text-decoration:none !important;
	border:0 !important;
}

.card h2,
.card h3, 
.card h4,
.card h5,
.card h6 {
	padding: 0.5rem 1rem 0.5rem 1rem;
}

.card  div:last-child,
.card  p:last-child,
.card  dl:last-child,
.card  ul:last-child,
.card  ol:last-child
 {

}

.card .card-head div,
.card .card-head p,
.card .card-head dl,
.card .card-head ol,
.card .card-head ul,
.card .card-body div,
.card .card-body p,
.card .card-body dl,
.card .card-body ol,
.card .card-body ul
  {
	margin:1rem;
}


.soliloquy-controls-direction  a {
	margin:0px !important;
}

.card .soliloquy-outer-container,
.card figure {
	position: relative;
	height:0;
	padding-bottom: 100%; /* this is just a default, for a square image, it should be overwritten by using a class below. */
	margin:0 !important;
	overflow:hidden;
}
.card figure figcaption { 
	font-size: 0.75rem;
	position: absolute; 
	background: rgba(0,0,0,0.75); 
	color: white; 
	padding: 0; 
	bottom: 0; 

}
.card figure.slide-caption figcaption { 

	left: -30%;
	-webkit-transition: all 0.6s ease;
	-moz-transition:    all 0.6s ease;
	-o-transition:      all 0.6s ease;
	opacity: 0;
}

.card figure.slide-caption:hover figcaption {
	opacity: 1;
	left: 0;
}
.card figure.slide-caption:before { 
	content: "?"; 
	position: absolute; 
	background: rgba(0,0,0,0.50); 
	color: #fff;
	width: 24px;
	height: 24px;
	-webkit-border-radius: 12px;
	-moz-border-radius:    12px;
	border-radius:         12px;
	text-align: center;
	font-size: 14px;
	line-height: 24px;
	/* Only Fx 4 supporting transitions on psuedo elements so far... */
	-webkit-transition: all 0.6s ease;
	-moz-transition: all 0.6s ease;
	-o-transition: all 0.6s ease;
	opacity: 0.75;	
}
.card figure.slide-caption:hover:before {
  opacity: 0;
}
.card figure.slide-caption:before {  bottom: 10px; left: 10px; z-index:100;}



/* Ratios based on image sizes for vertically displayed cards, horizontal cards will override */
/* The default is a Square */

/* 
	300x185
*/
.img-ratio-61 figure {
	padding-bottom: 61.6666666667% ;
}
/* 
	300x200
*/
.img-ratio-66 figure {
	padding-bottom: 66.6666666667%;
}
/*
	VIDEO Screen shots
	1280 × 720, 700 × 400
*/
.card.img-ratio-56 .soliloquy-outer-container,
.img-ratio-56 figure {
	padding-bottom: 56% ;
}
/*
	400 x 700
*/
.img-ratio-175 figure {
	padding-bottom: 175% ;
}




@media only screen and ( min-width: 800px ) {

	.card-horizontal .soliloquy-outer-container,
	.card-horizontal figure{
		padding-bottom: 50%;
	}

	.card-horizontal.img-ratio-56 .soliloquy-outer-container,
	.card-horizontal.img-ratio-56 figure {
		padding-bottom: 28%;
	}
	
	.card-horizontal.card-horizontal-body-1-third.img-ratio-56 .soliloquy-outer-container  {
			padding-bottom: 37.2%;
	}
	.card-horizontal.card-horizontal-body-1-third.img-ratio-56 figure {
		padding-bottom: 38.1% ;
	}
	.card-horizontal.card-horizontal-body-2-thirds.img-ratio-56  .soliloquy-outer-container, 
	.card-horizontal.card-horizontal-body-2-thirds.img-ratio-56 figure {
		padding-bottom: 19% ;
	}

	.card-horizontal:after {
	  content:"";
	  display:table;
	  clear:both;
	}
	
	.card-horizontal  > .soliloquy-outer-container,
	.card-horizontal  > figure,
	.card-horizontal  .card-head,
	.card-horizontal  .card-body {
		clear:none;
		overflow: auto;	
	}

	/* Card horizontal defaults to split left, use .card-horizontal-split-right  */
	.card-horizontal > .soliloquy-outer-container:first-child,
	.card-horizontal > figure:first-child,
	.card-horizontal > .card-head:first-child {
		float:left;

	}	
	.card-horizontal-split-right  > .soliloquy-outer-container,
	.card-horizontal-split-right  > figure,
	.card-horizontal-split-right  .card-head,
	.card-horizontal-split-right  .card-body {
		clear:none;
		overflow: inherit;
	}	
	.card-horizontal-split-right > .soliloquy-outer-container:first-child,
	.card-horizontal-split-right > figure:first-child,
	.card-horizontal-split-right > .card-head:first-child {
		float:right;
		/* padding-bottom: 50%; */
	}	
	
	/* This is the default */
	.card-horizontal   > .soliloquy-outer-container:first-child,
	.card-horizontal   > figure:first-child,
	.card-horizontal  .card-head,
	.card-horizontal .card-body {
		width: 50%;
	}
	.card-horizontal   > .soliloquy-outer-container:first-child,
	.card-horizontal   > figure:first-child,
	.card-horizontal  .card-head,
	.card-horizontal .card-body {
		width: 50%;
	}	

	.card-horizontal-body-1-third .card-head,
	.card-horizontal-body-1-third .card-body {
		width: 33.333% !important;
	}
	
	.card-horizontal-body-1-third   > .soliloquy-outer-container:first-child,
	.card-horizontal-body-1-third   > figure:first-child,
	.card-horizontal-body-1-third   > .card-head:first-child {
		width: 66.666% !important;
	}
	.card-horizontal-body-2-thirds .card-head,
	.card-horizontal-body-2-thirds .card-body {
		width: 66.666% !important;
	}
	.card-horizontal-body-2-thirds   > .soliloquy-outer-container:first-child:first-child,
	.card-horizontal-body-2-thirds   > figure:first-child,
	.card-horizontal-body-2-thirds   > .card-head:first-child {
		width: 33.333% !important;
	}
}




.card .soliloquy-outer-container img,
.card figure img {
	position: absolute;
    width: 100%;
    height: auto;
	top:0;
	left:0;
	padding:0 !important;
	max-width: none !important;
}

.card figure img[src~=png],
.card figure img.company-logo {
	padding-top: 10% !important;
	padding-right: 10% !important;
	/* don't set padding-bottom */	
	padding-left: 10% !important;
}


.card .title, 
.card .title a{
	text-decoration: none !important;
	margin: 0;
	border: 0;
	text-align: left !important;
}
.card  h3 {
	font-size:1.1rem !important;
}
.card  h4 {
	font-size:1rem !important;
}
.card  h5 {
	font-size:0.9rem !important;
	font-weight: normal;
}
.card  h6 {
	font-size:0.8rem !important;
	font-weight: normal;
}

.card br {
	display: block !important;
}





/* Display definition list like a table */
.card dl {
	padding-top: 20px !important;
}

.card dl  dd {
	display: inline !important;
	margin: 0 !important;
	line-height: 100% !important;
	min-width: 60% !important;
	font-weight: normal;

}
.card dl dd:after{
	display: block !important;
	content: '' !important;
}
.card dl dt{
	display: inline-block !important;
	min-width: 40% !important;
	line-height: 100% !important;
	margin: 0 !important;
	font-weight: normal;

}
.card .telephone-numbers dt {
	color: #97D700;
}

.card .show a:after {
    content: '\f432';
    display: inline-block;
    -webkit-font-smoothing: antialiased;
    font: normal 16px/1 'Genericons';
    vertical-align: middle;
	margin-left:1rem;
}
.card .hide a:after {
    content: '\f431' !important;
}

.card-group {
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	padding-top:1rem;
	padding-bottom:1rem;
	width:100%;
}
.card-group  > .card {
	flex: 1;
}

.single-card {

}


/* Card small */

.card-small div {
	margin:1px;
}

.card-small .card {
	margin:0 !important;	
}




/* Colour themes */

.card-grey {
	background: #fff !important;
	color: #000 !important;
	box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
	transition: all 0.2s ease-in-out;	
}

.card-grey .title, 
.card-grey .title h3, 
.card-grey .title a
{
	background-color:#63666A !important;
	color:#FFF !important;
}
.card-grey > .card-head {
	background-color: #63666A;
}

.card-pink {
	background: #fff !important;
	color: #000 !important;
	box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
	transition: all 0.2s ease-in-out;	
}

.card-pink .title, 
.card-pink .title h3, 
.card-pink .title a
{
	background-color:#E0004D !important;
	color:#FFF !important;

}
.card-pink > .card-head {
	background-color: #E0004D;
}

.card-green {
	background: #fff !important;
	color: #000 !important;
	box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
	transition: all 0.2s ease-in-out;		
}
.card-green > .card-head {
	background-color: #97D700;
}

.card-green .title, 
.card-green  .title h3, 
.card-green  .title a 
{
	background-color:#97D700 !important;
	color:#FFF !important;
}

/* Card blue */

.card-blue
{
	background-color: #fff !important;
	color: #000 !important;
	box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
	transition: all 0.2s ease-in-out;		
}

.card-blue-blue-body ,
.card-blue .title, 
.card-blue  .title h3, 
.card-blue .title a 
{
	background-color:#0086BF !important;
	color:#FFF !important;
}
.card-blue-blue-body > .card-body,
.card-blue > .card-head
 {
	background-color: #0086BF;
}

/*  Apply the above style using divs outside the cards for vei styling */


.card  figure.video-player  figcaption{
	background-color: transparent;
}

.vei-slider-box .card-head .title {
	text-align: center !important;
	padding:2rem 0 0rem 0; 

}
.vei-slider-box .card-body  {
	text-align: center !important;
}

.vei-slider-box .card-body p {
	padding: 0.5rem 1rem 0.5rem 1rem;
}


.vei-slider-box .card-blue,
.vei-slider-box .card-blue  > .card-body
{
	background-color:#0086BF !important;
	color:#FFF !important;
}

.vei-slider-box .card-pink,
.vei-slider-box .card-pink  > .card-body
{
	background-color:#E0004D !important;
	color:#FFF !important;
}


/* VEI icon links are .card-small and .card-blue */



.vei-card-icon-links div {
	margin:1px;
}

.vei-card-icon-links .card {
	max-width:150px;
	margin:0 !important;	
}

.vei-card-icon-links > .card {
	background-color: #fff !important;
	color: #000 !important;
	
}

.vei-card-icon-links > .card > figure figcaption {
	height: auto;
	width: auto;
	top: auto;
}

.vei-card-icon-links > .card > figure img {

	padding-top:25% !important; 
	padding-left:25% !important; 
	padding-right:25% !important; 
}


.vei-card-icon-links > .card  .title, 
.vei-card-icon-links > .card   .title h3, 
.vei-card-icon-links > .card  .title a 
{
	/* background-color:#0086BF !important; */
	color:#FFF !important;
	font-size: 0.8rem;
}

.vei-card-icon-links > .card  > .card-head
 {
	/* background-color: #0086BF; */
}

