
/*! HTML5 Boilerplate v5.0 | MIT License | http://h5bp.com/ */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 3px solid #F3EFEB;
    margin: 1em 0;
    padding: 0;
}

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
    max-width: 100%;
}

#form_login_user fieldset {
    width: 600px;
    border: 0;
    margin: 0;
    padding: 0;
    text-align: center;
    background-color: #FFFFFF;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

textarea {
    resize: vertical;
}

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}


/* ==========================================================================
   Author's custom styles
   ========================================================================== */

body {
    padding:0;
    margin:0;
    font-size: 12px;
    background-color: #F3EFEB;
}

.contentwrap {
    max-width:1200px;
    margin: 0 auto;
    position:relative;
    padding:0 20px;
    font-size: 16px;
    letter-spacing: 1px;
}

img {
    border:none;
    max-width:100%;
    height:auto !important;
}

a {
    color: inherit;
}
/** menus generic **/
nav {
    text-transform: uppercase;
    font-weight: normal;
}
header nav,
footer nav {
    font-family: "acumin-pro-condensed", sans-serif;
}
nav ul {
    display: block;
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
}
nav a {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease-in-out;
}
nav .subtitle {
    display: none;
}
footer nav a:hover {
    color: #070707;
}

/** forms generic **/
*:focus {
    outline: 0;
}
form p {
    position: relative;
    margin: 10px 0;
}
form .half > p {
    display: inline-block;
    vertical-align: top;
    width: 49%;
    margin: 5px 0;
}
form .half > p.bottom {
    vertical-align: bottom;
}
form .half > p:nth-of-type(odd) {
    margin-right: 1%;
}
form .half > p:nth-of-type(even){
    margin-left: 1%;
}
form .third > p {
    display: inline-block;
    vertical-align: top;
    width: 32.33%;
    margin: 5px 0;
}
form .third > p:nth-of-type(3n+1) {
    margin-right: 1%;
}
form .third > p:nth-of-type(3n+2){
    margin-left: 0.5%;
    margin-right: 0.5%;
}
form .third > p:nth-of-type(3n){
    margin-left: 1%;
}
input,
textarea,
select {
    display: block;
    width: 100%;
    padding-left: 20px;
    font-size: 15px;
    height: 40px;
    line-height: 1;
    font-family: "acumin-pro-condensed", sans-serif;
    letter-spacing: 1px;
    background-color: #FFF;
    border: 1px solid #8c8c8c;
    box-sizing: border-box;
}
input.error,
textarea.error,
select.error {
    border-color: red;
}
textarea {
    padding: 5px;
    padding-left: 20px;
    min-height: 80px;
}
input[type="checkbox"] {
    display: inline-block;
    vertical-align: middle;
    width: 40px;
    height: 40px;
    margin: 0;
    margin-right: 1%;
}
select {
    letter-spacing: 2px;
    font-size: 15px;
    line-height: 40px;
}
label {
    color: #1D2021;
}
label.checkbox {
    display: inline-block;
    vertical-align: middle;
}
label.heading {
    font-weight: bold;
    font-size: 18px;
    line-height: 1.2;
    font-family: "acumin-pro-condensed", sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}
label.infield {
    position: absolute;
    top:0;
    left:0;
    padding-left: 20px;
    color: #606060;
    letter-spacing: 2px;
    font-size: 15px;
    line-height: 40px;
    z-index: 1;
}
label.error {
    display: block;
    font-size: 12px;
    line-height: 1;
}
button {
    display: inline-block;
    font-family: "Oscine", sans-serif;
    color: #FFF;
    font-size: 18px;
    line-height: 40px;
    background-color: #000;
    padding: 0px;
    height: 40px;
    width: 200px;
    cursor: pointer;
    border: none;
    max-width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
}
button:hover {
    color: #000;
    background-color: #C5C6D1;
}
/** search form generic **/
form.search {
    position: relative;
    padding-right: 40px;
}
form.search p {
    margin: 0;
}
form.search label.infield,
form.search input {
    font-size: 18px;
    border: none;
}
form.search label.infield {
    text-transform: uppercase;
}
button.search {
    position: absolute;
    top:0;
    right:0;
    padding: 0;
    width: 40px;
    height: 40px;
    background-color: #FFF;
    background-image: url('https://keo-cms.appspot.com.storage.googleapis.com/sites/aqha/app_files/img/search.svg');
    background-repeat: no-repeat;
    background-size: 20px 20px;
    background-position: left center;
}

/** social links **/
.site-links {
    display: inline-block;
    vertical-align: middle;
}
a.site-link,
.contentright .site-links > a.site-link {
    display: inline-block;
    vertical-align: middle;
    width: 30px;
    text-decoration: none;
    margin: 0 6px 0 0;
}

/** ads generic **/
.ad > a {
    display: block;
}
.ad img {
    width: auto;
    height: auto;
}
.ad .mob {
    display: none;
}
.ad.wide {
    margin: 20px 0;
}

/** theme colours **/
.main-menu li.top > a[href^="/show"]:hover,
.main-menu li.top > a[href^="/show"] + ul a:hover,
.shows .page-title,
.shows .highlight,
.shows .submenu li.active,
.shows .submenu li:hover > a,
.shows .page-content a,
.shows .corpbtn a:hover,
.featured li:nth-of-type(6n+1) .point { /*orange*/
    color: #DC640A;
}
.shows .page-content a.button:hover,
.featured li:nth-of-type(6n+1) .point:before {
    background-color: #DC640A;
}
.main-menu li.top > a[href^="/registry"]:hover,
.main-menu li.top > a[href^="/registry"] + ul a:hover,
.registry .page-title,
.registry .highlight,
.registry .submenu li.active,
.registry .submenu li:hover > a,
.registry .page-content a,
.registry .corpbtn a:hover,
.featured li:nth-of-type(6n+2) .point { /*green*/
    color: #04A765;
}
.registry .page-content a.button:hover,
.featured li:nth-of-type(6n+2) .point:before {
    background-color: #04A765;
}
.main-menu li.top > a[href^="/hall"]:hover,
.main-menu li.top > a[href^="/hall"] + ul a:hover,
.hall .page-title,
.hall .highlight,
.hall .submenu li.active,
.hall .submenu li:hover > a,
.hall .page-content a,
.hall .corpbtn a:hover,
.featured li:nth-of-type(6n+3) .point { /*magenta*/
    color: #C71DCA;
}
.hall .page-content a.button:hover,
.featured li:nth-of-type(6n+3) .point:before {
    background-color: #C71DCA;
}
.main-menu li.top > a[href^="/about"]:hover,
.main-menu li.top > a[href^="/about"] + ul a:hover,
.about .page-title,
.about .highlight,
.about .submenu li.active,
.about .submenu li:hover > a,
.about .page-content a,
.about .corpbtn a:hover,
.default .page-title,
.default .highlight,
.default .submenu li.active,
.default .submenu li:hover > a,
.default .page-content a,
.default .corpbtn a:hover,
.featured li:nth-of-type(6n+4) .point { /*light blue*/
    color: #0FB7BB;
}
.about .page-content a.button:hover,
.default .page-content a.button:hover,
.featured li:nth-of-type(6n+4) .point:before {
    background-color: #0FB7BB;
}
.main-menu li.top > a[href^="/member"]:hover,
.main-menu li.top > a[href^="/member"] + ul a:hover,
.membership .page-title,
.membership .highlight,
.membership .submenu li.active,
.membership .submenu li:hover > a,
.membership .page-content a,
.membership .corpbtn a:hover,
.featured li:nth-of-type(6n+5) .point { /*pink*/
    color: #FF4848;
}
.membership .page-content a.button:hover,
.featured li:nth-of-type(6n+5) .point:before {
    background-color: #FF4848;
}
.main-menu li.top > a[href^="/find"]:hover,
.main-menu li.top > a[href^="/find"] + ul a:hover,
.find .page-title,
.find .highlight,
.find .submenu li.active,
.find .submenu li:hover > a,
.find .page-content a,
.find .corpbtn a:hover,
.featured li:nth-of-type(6n) .point { /*blue*/
    color: #4B67A9;
}
.find .page-content a.button:hover,
.featured li:nth-of-type(6n) .point:before {
    background-color: #4B67A9;
}

/* unstyle anchor tags */
.shows .page-content a:not([href]),
.registry .page-content a:not([href]),
.hall .page-content a:not([href]),
.about .page-content a:not([href]),
.default .page-content a:not([href]),
.membership .page-content a:not([href]),
.find .page-content a:not([href]) {
    color: inherit;
}
.shows .page-content a.button,
.registry .page-content a.button,
.hall .page-content a.button,
.about .page-content a.button,
.default .page-content a.button,
.membership .page-content a.button,
.find .page-content a.button {
    color: #1D2021;
}
/** =========== base layout =========== **/
.page-body.contentwrap {
    display: flex;
    flex-wrap: wrap;
    margin-top: -20%; /** overlap banner **/
}
.maincontent,
.contentright {
    display: flex;
    flex-direction: column; /* match height */
}
.maincontent { /* left of sidebar */
    width: 78%;
    background-color: #FFF; /* default */
    box-sizing: border-box;
    margin-right: 2%;
    margin-bottom: 0;
}
.t-home .maincontent,
.t-shows .maincontent {
    background-color: transparent;
}
.t-shows .maincontent > .wrap {
    background-color: #FFF;
}
.contentright { /* sidebar */
    width: 20%;
    box-sizing: border-box;
}

/** popular links **/
.popular {
    text-align: left;
}
.popular.contentwrap {
    padding: 20px;
}
.popular h2 {
    text-align: left;
    margin-bottom: 10px;
}
.poplink {
    margin: 0 -1%;
}
.poplink li {
    display: inline-block;
    width: 23%;
    height: 200px;
    box-sizing: border-box;
    margin: 1%;
}
.poplink a {
    position: relative;
    display: table;
    width: 100%;
    padding: 10%;
    height: 100%;
    box-sizing: border-box;
}
.poplink li > a:before { /* darken */
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1D2021;
    opacity: 0.3;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}
.poplink a:hover:before {
    opacity: 0.6;
}
.poplink .menu-icon {
    position: absolute;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.poplink span.title {
    position: relative;
    display: table-cell;
    vertical-align: middle;
    color: #FFFFFF;
    text-align: left;
    font-size: 25px;
    line-height: 1.2;
    letter-spacing: 3px;
    box-sizing: border-box;
    z-index: 2;
}

/*===== index pager =====*/
.pager {
    text-align: center;
    padding-top: 30px;
}
.pager .button {
    display: inline-block;
    vertical-align: top;
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 18px;
    text-align: center;
    line-height: 40px;
    color: #1D2021;
    border: 1px solid #1D2021;
    margin: 2px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}
.pager .button:hover {
    background-color: #C5C6D1;
}
.pager .button.active {
    color: #FFF;
    background-color: #1D2021;
}

/*============ header ============*/
header.top {
    font-family: "Oscine", sans-serif;
    font-size:14px;
}
header.top .contentwrap {
    display: flex;
    justify-content: space-between;
}
.header-bar-top {
    color:#ffffff;
    background: #070707;
    background-size:cover;
}
header.top .logo {
    display: inline-block;
    width: 224px;
    height:auto;
    padding: 10px 0;
}
a.logo > h1 {
    margin: 0;
}

/** both menus **/
header nav {
    font-size: 13px;
    letter-spacing: 3px;
}
header nav li {
    display: inline-block;
}

/** top menu **/
.header-menu {
    display: inline-block;
    line-height: 90px;
}
.header-menu > ul {
    display: inline-block;
    text-align:right;
    width: auto;
}
.loginblock a {
    text-decoration: none;
}
.header-menu li a,
.loginblock span {
    line-height: 50px;
    padding: 20px;
    color: #C5C6D1;
}
.header-menu li.active a,
.header-menu li a:hover,
.loginblock a:hover > span {
    color: #FFFFFF;
}
/* member button */
.loginblock img,
.loginblock span {
    display: inline-block;
    vertical-align: middle;
}
.loginblock img {
    width: 200px;
}
.loginblock span {
    padding-right:0;
    transition: all 0.3s ease-in-out;
}

/** main menu **/
.header-bar-bottom {
    background-color: #FFF;
    position:relative;
    text-align: center;
    color: #606060;
    z-index: 2;
}
nav.main-menu {
    display: flex;
    justify-content: space-between;
    width: 100%;
    min-height: 40px;
}
.main-menu ul {
    text-align: left;
    line-height:0;
    width: 100%;
}
.main-menu ul::after {
    content:"";
    display:inline-block;
    width:100%;
    line-height:0px;
    vertical-align:top;
}
.main-menu li {
    line-height: 1;
}
.main-menu li.depth-0 {
    vertical-align: middle;
    border-right: 1px dashed #606060;
}
.main-menu li.depth-0:last-of-type {
    border-right: none;
}
.main-menu li.depth-0.active.top:after,
.main-menu li.top:hover:after { /* triangle */
    content: "";
    position: absolute;
    top: -1px;
    left: 50%;
    margin-left: -8px;
    display: inline-block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 8px 0 8px;
    border-color: #070707 transparent transparent transparent;
}
.main-menu li.depth-0 > a[href="/find-a-horse"] {
    padding-right: 65px;
}
.main-menu li > a[href="/find-a-horse"]:after {
    content:"";
    position: absolute;
    top: 5px;
    right: 15px;
    display: inline-block;
    width: 30px;
    height: 30px;
    background-image: url('https://keo-cms.appspot.com.storage.googleapis.com/sites/aqha/app_files/img/lasso.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}
.main-menu a {
    padding: 10px;
    box-sizing: border-box;
}
.main-menu a:hover {
    background-color: #f6f6f6;
}
.main-menu li.depth-0 > a {
    padding: 13px 15px;
}

/* subs both */
.main-menu li.has-sub {
    position: relative;
}
.main-menu li > ul {
    display:none;
    position:absolute;
    top: 100%;
    left:0;
    right:0;
    width: 200px;
    background:#FFF;
    text-align: left;
    color: #082133;
    -webkit-box-shadow: 0px 1px 2px 0px rgba(0,0,0,0.3);
    -moz-box-shadow: 0px 1px 2px 0px rgba(0,0,0,0.3);
    box-shadow: 0px 1px 2px 0px rgba(0,0,0,0.3);
    z-index:10000;
}
.main-menu li:hover > ul {
    display: block;
}
.main-menu li li {
    display: block;
}

/* level 2 */
.main-menu li.depth-0 > ul {
    top: 100%;
}
.main-menu li.depth-1.has-sub > a:after { /* triangle right */
    content:"";
    position: absolute;
    top: 50%;
    right: 5px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-color: transparent transparent transparent #070707;
    margin-top: -5px;
}

/* level 3 */
li.depth-1.has-sub > ul {
    top: 0;
    left: 100%;
}
li.depth-2:hover > ul { /* stop @ 3 */
    display: none;
}

/** search form **/
header form.search {
    width: 300px;
    border-left: 2px dashed #000000;
    border-right: 2px dashed #000000;
    margin-left: 20px;
    float: right;
}


/*** mobile **/
#mobile-menu {
    display: none;
    position: absolute;
    top: 50%;
    right: 20px;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    cursor: pointer;
    z-index: 100;
}
#mobile-menu > span {
    display: block;
    height: 3px;
    line-height:0;
    background-color: #FFF;
    border-radius: 3px;
    margin: 8px 0;
    transition: all 0.3s ease-in-out;
}
.slide-menu-active #mobile-menu span.one {
    -webkit-transform: rotate(-45deg) translate(-8px, 8px);
    transform: rotate(-45deg) translate(-8px, 8px);
}
.slide-menu-active #mobile-menu span.two {
    opacity: 0;
}
.slide-menu-active #mobile-menu span.three {
    -webkit-transform: rotate(45deg) translate(-8px, -8px);
    transform: rotate(45deg) translate(-8px, -8px);
}


/***** Slide menu ****/
.slide-menu {
    display:none;
}
.slide-menu {
	background: #ccc;
    width: 240px;
    z-index:1000;
	position: fixed;
	letter-spacing: 2px;
	height: 100%;
	top: 0;
	right: -241px;
	border-left: 1px solid #030b16;
	box-sizing: border-box;
	overflow-y: scroll;
}
.slide-menu-active .slide-menu {
    right: 0px;
}
.site-content-menu-slide {
    overflow-x:hidden;
    position:relative;
    right:0;
}
/* transition for menu slide */
.slide-menu,
.site-content-menu-slide,
#mobile-menu {
	-webkit-transition: all 0.3s ease;
	-moz-transition: all 0.3s ease;
	transition: all 0.3s ease;
}
.slide-menu h3 {
	padding: 1em;
	color:#fff;
	background-color: #070707;
	border-bottom: 1px solid #999;
	margin:0;
}
.slide-menu a.button {
    background-color:#999;
    width: 100%;
    min-width: 0px;
}
.slide-menu form.search {
    padding-right: 50px;
    border-bottom: 1px solid #070707;
}
.slide-menu form.search input {
    height: 50px;
}
.slide-menu button.search {
    width: 50px;
    height: 50px;
    background-position: center;
}
.slide-menu
.slide-menu ul {
    padding:0;
    margin:0;
    list-style:none;
}
.slide-menu ul ul {
	background:#999;
}
.slide-menu ul ul ul{
	background:#666;
}
.slide-menu li {
    position:relative;
}
.slide-menu li > ul {
    display:none;
}
.slide-menu li.expand-active > ul {
    display:block;
}
.slide-menu a {
	display: block;
	color: #fff;
	font-size: 16px;
	line-height: 1;
	font-weight: 300;
	border-bottom: 1px solid #030b16;
	padding: 1em;
	text-decoration:none;
}
.slide-menu li.has-sub {
    position: relative;
    display: block;
}
.slide-menu li.has-sub > a {
    position: relative;
    border-right: 1px solid #030b16;
    margin-right: 50px; /* space for drop */
}
.slide-menu a:hover {
	background: #070707;
}
.slide-menu li.has-sub > a:after {
    position: absolute;
    content: "";
    display: block;
    left: 100%;
    bottom: -1px;
    background-color: #030b16;
    width: 50px;
    height: 1px; /* border bottom */
    z-index: 100;
}
.slide-menu ul .expand {
    position: absolute;
    top: 0;
    right: 0;
    height: 50px;
    width: 50px;
    cursor: pointer;
}
.slide-menu ul .expand i {
    content:"";
    display: block;
    height: 100%;
    width: 100%;
    background: url('https://keo-cms.appspot.com.storage.googleapis.com/sites/aqha/app_files/img/menu-drop.svg') no-repeat center center;
    background-size: 30%;
    -webkit-transition: -webkit-transform 500ms ease;
    transition: -webkit-transform 500ms ease;
    transition: transform 500ms ease;
    transition: transform 500ms ease, -webkit-transform 500ms ease;
}
.expand-active > .expand i {
    -webkit-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    -o-transform: rotate(180deg);
    transform: rotate(180deg);
}

/*============ footer ============*/
button.gototop {
    position: fixed;
    bottom: 13%;
    right: 10%;
    right: Calc(10% + 5px);
    display: inline-block;
    padding: 0;
    width: 38px;
    height: 38px;
    font-size: 40px;
    line-height: 0.8;
    font-family: "malaga", serif;
    font-weight: 500;
    background-color: #606060;
    color: #FFF;
    font-style: normal;
    border: 1px solid #F3EFEB;
    cursor: pointer;
    z-index: 100;
}

.footer-bottom { /* like maincontent */
    text-align: center;
    width: 78%;
    box-sizing: border-box;
    margin-right: 2%;
}
.footer-bottom nav.site-map,
.footer-bottom .logo {
    display: inline-block;
    vertical-align: middle;
}
.footer-bottom a.logo {
    width: 170px;
}
.site-map ul {
    list-style:none;
    padding:0;
    margin:0;
}
.site-map > ul {
    display:table;
    width:100%;
}
.site-map > ul > li {
    display:table-cell;
    position: relative;
}
.site-map li.depth-0:after {
    content: "";
    display: block;
    position: absolute;
    border-right: 1px dashed #8e9090;
    top: 33%;
    bottom: 33%;
    left: 100%;
    right: -15px;
}
.site-map li.depth-0:last-child:after {
    display: none;
}
.site-map li li {
    display:block;
    margin:10px 0;
}
.site-map a {
    color:inherit;
    text-decoration:none;
    display:block;
    padding-left:30px;
    position:relative;
    line-height: 65px;
    text-transform: uppercase;
    font-family: "acumin-pro-condensed", sans-serif;
    color: #8e9090;
}
/** bykeo ***/
.bykeo {
    display: block;
    text-align: center;
    font-size: 12px;
    padding-top: 10px;
    padding-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}
.bykeo a {
    color: grey;
    text-decoration:none;
}
.bykeo img {
    vertical-align: middle;
    display: inline-block;
    -webkit-transition: all 500ms ease;
    -moz-transition: all 500ms ease;
    -ms-transition: all 500ms ease;
    -o-transition: all 500ms ease;
    transition: all 500ms ease;
}
.bykeo a:hover img{
    transform-origin: center;
    transform: translateX(-200%) rotate(-360deg);
}

/*============ splash ============*/
/*  top banner */
.banners.banners-home {
    position: relative;
}
.next,
.previous {
    position: absolute;
    top: 50%;
    width: 40px;
    height: 100px;
    color: #FFFFFF;
    font-family: "malaga", serif;
    font-size: 100px;
    line-height: 100px;
    font-weight: 500;
    margin-top: -50px;
    font-style: normal;
    cursor: default;
    z-index:2;
}
.previous {
    left: 10px;
}
.next {
    right: 10px;
}
.banners-home .banner-stage {
    padding-top: 30%;
    position:relative;
    background-color: #C5C6D1;
}
.banners-home .banner {
    position:absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;
    display: none;
    color: #FFFFFF;
    text-decoration: none;
    background-position: center;
    background-size:cover;
    z-index: 0;
}
.banner:before {
    content:"";
    position: absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background-color: rgba(0,0,0,0.3);
    z-index:0;
}
.banners-home .banner.on {
    transition: all 0.5s;
    display: block;
}
.banners-home .banner.active {
    z-index: 1;
}
.banners-home .banner-content {
    position: relative;
    display: block;
    text-transform: uppercase;
    padding-top: 6%;
    padding-right: 50%;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}
.banner-content > span {
    display: block;
}
.banner-name {
    font-family: "acumin-pro-condensed", sans-serif;
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}
.banner-title {
    font-size: 37px;
    letter-spacing: 3px;
    line-height: 1.2;
}
.banner-caption {
    padding-top: 20px;
}
.banner-caption > span {
    display: inline-block;
    background-color: #FFFFFF;
    padding: 15px 30px;
    font-size: 18px;
    border: 1px solid #000000;
    color: #8E9090;
    max-width: 100%;
    box-sizing: border-box;
}
.banner-navigation {
    display: none;
}

/*==== content body ====*/
.t-home .page-body.contentwrap {
    margin-top: 0; /* no overlap */
}
.t-home .maincontent a {
    text-decoration: none;
}
.t-home .maincontent,
.t-home .contentright > .sidebar {
    margin-top: 60px;
}
.t-home .maincontent > .wrap {
    background-color: transparent;
    padding: 0;
}
/*** row 1 hardcoded ***/
.t-home .row {
    display: table;
    width: 104.5%;
    border-collapse: separate;
    border-spacing: 20px;
    margin: -20px;
}
.t-home .row > div {
    display: table-cell;
    vertical-align: top;
    height: 320px;
}
.row .wrapper {
    display: table;
    width: 100%;
    height: 100%;
    border-spacing: 0;
    box-sizing: border-box;
}
.t-home .img {
    position: relative;
    display: table-cell;
    vertical-align: middle;
    background-color: #C5C6D1;
    background-size: cover;
    background-position: top;
}
.img > a {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}
.info {
    display: table-cell;
    vertical-align: top;
    width: 33%;
    padding: 40px 20px;
    color: #1D2021;
    background: #FFFFFF;
    box-sizing: border-box;
}
.info a {
    display: block;
    color: inherit;
    box-sizing: border-box;
}
.info h3 {
    font-family: "acumin-pro-condensed", sans-serif;
    letter-spacing: 2px;
    margin-top: 0;
    margin-bottom: 40px;
}

/* didyouknow */
.didyouknow .wrapper {
    table-layout: fixed;
}
.row .info {
    vertical-align: middle;
    width: 45%;
}
.didyouknow .img {
    background-size: cover;
    background-position: 20%;
}
.didyouknow .img.fallback {
    background-image:url('https://keo-cms.appspot.com.storage.googleapis.com/sites/aqha/app_files/img/didyouknow.jpg');
}
a.button.find-horse {
    position: relative;
    display: inline-block;
    color: #606060;
    text-transform: uppercase;
    font-size: 18px;
    line-height: 1;
    padding: 15px;
    padding-right: 40px;
    width: 100%;
    min-width: 0px;
    box-sizing: border-box;
    border: 1px solid #1D2021;
    margin-top: 40px;
    transition: background-color 0.3s ease-in-out;
}
.didyouknow a.button:hover  {
    background-color: #C5C6D1;
}
a.button.find-horse:after {
    content:"";
    position: absolute;
    top: 15px;
    right: 15px;
    display: inline-block;
    vertical-align: middle;
    width: 20px;
    height: 20px;
    background-image: url('https://keo-cms.appspot.com.storage.googleapis.com/sites/aqha/app_files/img/lasso.png');
    background-repeat: no-repeat;
    background-size: 20px 20px;
    background-position: center;
}

/* latest news */
.latestissue {
    position: relative;
    width: 33%;
    background-color: #5281A5;
    color: #FFFFFF;
    overflow: hidden;
}
.latestissue a {
    text-align: left;
    padding: 40px 20px;
    box-sizing: border-box;
}
.latestissue h1,
.latestissue h2,
.latestissue h3 {
    color: #FFF;
    margin: 0;
}
.latestissue h1 {
    font-size: 25px;
    letter-spacing: 2px;
    line-height: 1;
}
.latestissue h2.sub {
    font-size: 18px;
    margin-top:5px;
}
.latestissue h3 {
    font-size: 15px;
    font-weight: normal;
    position: absolute;
    top: 20px;
    right: 20px;
}
.latestissue img {
    width: 60%;
    position: absolute;
    right: 0;
    transform: rotate(-10deg);
}
div.lookinside {
    position: absolute;
    bottom: 30px;
    left: 15%;
    width: 100px;
    height: 100px;
    padding: 20px;
    background-color: #000000;
    color: #FFFFFF;
    text-decoration: none;
    text-align: center;
    font-size: 18px;
    border-radius: 50%;
    text-transform: uppercase;
    font-family: "acumin-pro-condensed", sans-serif;
    font-weight: 400;
    letter-spacing: 2px;
    box-sizing: border-box;
}

/*** featured menu **/
.featured li {
    display: table;
    width: 100%;
    height: 320px;
    background-color: #FFF;
    box-sizing: border-box;
    margin: 20px 0;
}
.featured li:last-of-type {
    margin-bottom:0;
}
.featured .img {
    position: relative;
    display: table-cell;
    vertical-align: middle;
    background-color: #C5C6D1;
    background-size: cover;
    background-position: top;
}
.featured .info {
    position: relative;
    display: table-cell;
    vertical-align: top;
    width: 33%;
    padding: 40px 20px;
    color: #1D2021;
    box-sizing: border-box;
}
h3.point:before {
    content:"";
    display: inline-block;
    vertical-align: middle;
    width: 10px;
    height: 10px;
    background-color: #1D2021;
    border-radius: 50%;
    margin-right: 10px;
}
nav.featured p {
    text-transform: none;
}
span.more {
    position: absolute;
    right: 20px;
    bottom: 30px;
    display: block;
    color: #8c8c8c;
    text-align: right;
}

.youth h3.point {
    color: #04A765;
}
.youth h3.point:before {
    background-color: #04A765;
}
.amateur h3.point {
    color: #DC640A;
}
.amateur h3.point:before {
    background-color: #DC640A;
}

/*==== sidebar ====*/
.sidebar > div {
    position: relative;
    margin: 20px 0;
    background-position: center;
    background-size: cover;
    background-color: #C5C6D1;
    box-sizing: border-box;
}
.sidebar > div:first-of-type {
    margin-top: 0;
}
.sidebar > div > a {
    text-decoration: none;
    position: relative;
    display: block;
    padding-top: 70%;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}
.sidebar > div > a > h2 {
    color: #FFFFFF;
    padding: 10px;
    box-sizing: border-box;
    margin: 0;
}
.contentright h1,
.contentright h2,
.contentright h3,
.contentright h4 {
    text-align: left;
}

/* sidebar ad */
.sidebar > div.ad {
    background-color: transparent;
    margin: auto;
    margin-bottom: 10px;
}
.t-home .sidebar > div.ad:last-of-type {
    margin-bottom: 30px;
}
.sidebar > .ad > a {
    padding-top: 0;
    text-align: center;
}

/* sidebar menu */
/* generic */
.promo li {
    display: block;
    width: 100%;
    margin: 20px 0;
}
.promo li.depth-0:first-of-type {
    margin-top: 0px;
}
.promo a {
    position: relative;
    display: block;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
    background-color: #C5C6D1;
    box-sizing: border-box;
}
.promo .menu-icon {
    padding-top: 66%;
    flex-grow: 1;
    background-size: cover;
    background-position: top;
}
.promo .title {
    position: relative;
    display: block;
    font-size: 1.5em;
    padding: 10px;
    padding-right: 30px;
    box-sizing: border-box;
}
/* rulebook */
.promo a[href*='rulebook'] {
    background-color: #111870;
}
.promo a[href*='rulebook'] .title {
    background-color: rgba(0,0,0,0.4);
}

/* home promo */
.promo.home
.promo.home .menu-icon {
    display: block;
    width: 100%;
    padding-top: 70%;
    background-size: cover;
    background-position: center;
}
.promo.home .title {
    font-weight: bold;
    color: #FFF;
    background-color: #606060;
}
.promo.home .title:after {
    content: ">";
    font-family: "malaga", serif;
    font-size: 50px;
    font-weight: 500;
    line-height: 100%;
    font-style: normal;
    position: absolute;
    top: 10px;
    right: 10px;
    bottom: 10px;
    width: 30px;
}

/* subscribe form currently hidden */
.subscribe {
    background-color: #F3EFEB;
    padding-top: 20px;
    padding-bottom: 10px;
}
.t-home .subscribe {
    padding-top: 0px;
}
.subscribe h2 {
    text-transform: uppercase;
    font-weight: normal;
    line-height: 1.2;
    letter-spacing: 3px;
    padding-right: 40px;
    margin-top: 30px;
    margin-bottom: 10px;
    box-sizing: border-box;
}
.subscribe h4 {
    display: inline-block;
    vertical-align: middle;
    font-weight: normal;
    line-height: 1;
    text-transform: uppercase;
    color: #8c8c8c;
    letter-spacing: 1px;
    margin: 0px 6px;
}
.subscribe form {
    margin-bottom: 20px;
}
.subscribe button {
    text-align: left;
    width: 50%;
    max-width: 100%;
    box-sizing: border-box;
}

/*============ page template ============*/
.page-graphic {
    padding-top: 27.3%;
    background-color: #C5C6D1;
    background-size: cover;
    background-position:center;
}
.page-graphic.fallback {
    background-image: url('https://keo-cms.appspot.com.storage.googleapis.com/sites/aqha/app_files/img/office.jpg');
    background-position: right;
}

/*==== content body ====*/
.maincontent > .wrap {
    padding: 50px;
    box-sizing: border-box;
}
/** related content icon menu **/
.icon-menu ul {
    display: flex;
    flex-wrap: wrap;
    padding-bottom: 20px;
}
.icon-menu li {
    position: relative;
    display: inline-block;
    width: 31%;
    min-height: 160px;
    font-size: 18px;
    color: #1D2021;
    box-sizing: border-box;
    margin: 1%;
}
.icon-menu li > a {
    position: relative;
    display: table;
    width: 100%;
    height: 100%;
    border: 5px solid #F3EFEB;
    box-sizing: border-box;
    transition: background-color 0.3s ease-in-out;
}
.icon-menu li > a:hover {
    background-color: #F3EFEB;
}
.icon-menu .title {
    display: table-cell;
    vertical-align: middle;
    padding: 8%;
    padding-right: 50%;
    box-sizing: border-box;
}
.icon-menu .menu-icon,
.icon-menu .menu-hover {
    display: block;
    width: 40%;
    height: 60%;
    position: absolute;
    top: 50%;
    margin-top: -20%;
    right: 8%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right center;
}
.icon-menu .menu-hover {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.icon-menu li > a:hover .menu-hover {
    opacity: 1;
}

/** page content **/
.page-content:after { /* clear content floats */
    content:"";
    display: table;
    width: 100%;
    height: 1px;
    clear: both;
}

/*==== Sidebar Menu ====*/
.submenu {
    background-color: #F3EFEB;
    padding-top: 10px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #8c8c8c;
}
.submenu > ul {
    color: #1D2021;
    font-size: 16px;
    letter-spacing: 2px;
    box-sizing: border-box;
}
.submenu li {
    display: block;
    padding-top: 6px;
    text-align: left;
    padding-left: 10px;
    border-bottom: 0px;
    transition: all 0.3s ease-in-out;
}
.submenu a {
    transition: all 0.1s ease-in-out;
}
.submenu li.has-sub {
    position: relative;
}
.submenu li.has-sub > a {
    margin-right: 20px;
}
.submenu li .expand {
    position: absolute;
    top: 10px;
    right: 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
}
.submenu li .expand i {
    content:"";
    display: block;
    height: 0;
    width: 0;
    border-style: solid;
    border-width: 8px 8px 0 8px;
    border-color: #1D2021 transparent transparent transparent;
    -webkit-transition: -webkit-transform 500ms ease;
    transition: -webkit-transform 500ms ease;
    transition: transform 500ms ease;
    transition: transform 500ms ease, -webkit-transform 500ms ease;
}
.expand-active > .expand i {
    -webkit-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    -o-transform: rotate(180deg);
    transform: rotate(180deg);
}
.submenu li > ul {
    display: none;
}
.submenu li.expand-active > ul {
    display: block;
}
.submenu li li {
    padding-left: 20px;
    box-sizing: border-box;
}
.submenu li > a > span.title {
    display: inline-block;
    width: auto;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease-in-out;
}
.submenu li.active > a > span.title,
.submenu a:hover > span.title {
    border-bottom: 2px solid #1D2021;
}
.submenu li.active,
.submenu li.expand-active {
    background-color: #EAE7E5;
}

/*======== Sidebar Extras ========*/
.promo.extras a {
    color: #1D2021;
    line-height: 1;
    min-height: 400px;
}
.promo.extras .title {
    position: absolute;
    top:0;
    left:0;
    padding-top: 20px;
}
nav.promo.extras .subtitle {
    position: absolute;
    right: 0;
    bottom: 0;
    display: inline-block;
    padding: 8px 10px;
    background-color: #FFF;
    border: 1px solid #1D2021;
    margin: 20px;
    max-width: 80%;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
}
.promo.extras a:hover .subtitle {
    background-color: #C5C6D1;
}

/*============ FORMS (all) ============*/
/* contact */
p.item {
    margin: 5px 0;
}
p.item a {
    text-decoration: none;
    color: inherit;
}

/* horse status */
.statustype {
    color: #04A765;
    text-transform: capitalize;
}
p.js {
    display: none;
}
.no-js p.js {
    display: block;
}
.option label.infield {
    text-transform: capitalize;
}

/* room hire */
.hire h2 {
    margin-bottom: 10px;
}
.hire div:last-of-type {
    margin-bottom: 10px;
}

/*============ Rulebook index ============*/
/** search form **/
form.rule.search {
    padding-right: 50px;
    border: 1px solid #8c8c8c;
    box-sizing: border-box;
    margin-bottom: 40px;
    box-sizing: border-box;
}
form.rule.search input {
    height: 50px;
    line-height: 50px;
}
form.rule.search label.infield {
    line-height: 50px;
}
.rule button.search{
    width: 50px;
    height: 50px;
    background-size: 25px 25px;
}

/** icon blocks **/
.rulebook-sections {
    text-align: center;
    margin: 0 -1%;
}
.rulebook {
    position: relative;
    display: inline-table;
    vertical-align: top;
    width: 48%;
    height: 200px;
    background-size: cover;
    background-position: center;
    box-sizing: border-box;
    margin: 1%;
}
.rulebook:before { /* colours */
    content:"";
    position: absolute;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0.4;
    z-index: 0;
    transition: 0.3s ease-in-out;
}
.rulebook:hover:before {
    opacity: 0.2;
}
/** define colours by position **/
.rulebook-sections > div:nth-of-type(6n+2):before {
    background-color: #FFA500; /*orange*/
}
.rulebook-sections > div:nth-of-type(6n+3):before {
    background-color: #23CD32; /*green*/
}
.rulebook-sections > div:nth-of-type(6n+4):before {
    background-color: #C71DCA; /*magenta*/
}
.rulebook-sections > div:nth-of-type(6n+5):before {
    background-color: #556B2F; /*dark green*/
}
.rulebook-sections > div:nth-of-type(6n):before {
    background-color: #564692; /*purple*/
}
.rulebook-sections > div:nth-of-type(7n):before {
    background-color: #BC8F8F; /*blush*/
}
.rulebook a {
    position: relative;
    display: table-cell;
    vertical-align: middle;
    text-decoration: none;
    color: inherit;
    padding: 20px;
    box-sizing: border-box;
    z-index: 1;
}
.rulebook h2,
.rulebook h3 {
    color: #FFF;
    text-transform: uppercase;
}
.rulebook a h2 {
    font-weight: normal;
    text-align: left;
    margin-top: 0;
}
.rulebook h3 {
    position: absolute;
    text-decoration: underline;
    bottom: 20px;
    right: 20px;
    z-index: 1;
}

.t-rulebook h3 {
    margin-bottom: 0;
}
.t-rulebook h1 {
    margin-top: 0;
}

a.result {
    text-decoration: none;
    color: #000000;
}

/*============ staff index ============*/
.staff-list {
    padding-top: 20px;
}
.person {
    display: table;
    width: 100%;
    box-sizing: border-box;
    margin: 20px 0;
}
.staff-img {
    display: table-cell;
    vertical-align: top;
    padding-right: 4%;
    width: 220px;
    box-sizing: border-box;
}
.person .content {
    display: table-cell;
    vertical-align: top;
    box-sizing: border-box;
}
.person h2 {
    margin: 0;
}
.person h3 {
    color: #8c8c8c;
    font-family: "acumin-pro-condensed", sans-serif;
    letter-spacing: 2px;
    margin-top: 0;
}

/*============ News index (all) ============*/
div.list {
    text-align: center;
}
article.item {
    position: relative;
    width: 200px;
    display: inline-table;
    vertical-align: top;
    min-height: 300px;
    max-width: 100%;
    margin: 2%;
}
article.item:after {
    content: "";
    position: absolute;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    background: #000000;
    opacity: 0;
    transition: all 0.25s;
}
article.item:hover:after {
    opacity: 0.6;
}
article.item a {
    display: table-cell;
    vertical-align: middle;
    text-decoration: none;
}
article.item a h3 {
    position: relative;
    color: #FFF;
    z-index: 1;
}
.news-image {
    position: absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background-color: #C5C6D1;
    text-align: center;
    background-size: cover;
    background-position: center;
}
.news-image.fallback {
    background-image: url('https://keo-cms.appspot.com.storage.googleapis.com/sites/aqha/app_files/img/news-fallback.jpg');
}

/*============ events index  ============*/
.kmscalendar {
    background-color: #FFFFFF;
    padding: 25px;
    width: 900px;
    display: inline-block;
    box-sizing: border-box;
    vertical-align: top;
}

.kmscalendar .fc-button {
    background: none;
    background-color: #FFFFFF !important;
    border: 2px solid #000000;
}

.event-index {
    width: 250px;
    display: inline-block;
    margin: 0px 13px;
    background-color: #FFFFFF;
    padding: 10px;
    vertical-align: top;
}

article.event-item {
    margin: 10px;
    padding: 5px;
    border: 5px solid #F3EFEB;
}

.fc-today {
    background-color: #fcf8e3 !important;
}

/*============ members  ============*/
fieldset input {
    height: 40px;
    width: 200px;
    padding: 0 10px;
    background-color: #F3EFEB !important;
    color: #000000 !important;
    border: none;
}

fieldset label.show {
    display: -webkit-inline-box;
}

input#l_remember {
    width: auto;
    height: auto;
}

form#form_login_user {
    height: 600px;
    position: relative;
}

#form_reset_password fieldset,
#form_register fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}
#form_reset_password input,
#form_register input {
    height: 40px;
    display: inline-block;
    width: 300px;
    background-color: #F3EFEB;
    border: none;
    padding: 0 20px;
}

.form-group.row {
    display: inline-block;
    margin: 25px;
}

form#form_register {
    text-align: center;
    width: 800px;
    margin: 0 auto;
    background-color: #FFFFFF;
}

button.btn.btn-primary {
    padding: 10px;
    background: #FFFFFF;
    border: 2px solid #000000;
    color: #000000;
}

button.btn.btn-primary:hover {
    background: #000000;
    color: #FFFFFF;
}

a.btn.btn-primary {
    color: #606060;
    text-decoration: none;
}

form#form_reset_password {
    text-align: center;
}

#form_reset_password fieldset {
    background-color: #FFFFFF;
    padding: 25px;
    width: 600px;
    margin: 10px auto;
}


/* ==========================================================================
   Media Queries
   ========================================================================== */
@media all and (min-width: 1700px){
/* home */
    .banners-home .banner-content {
        padding-right: 20%;
    }
}

@media all and (max-width: 1650px){
/* footer */
    button.gototop {
        right: 10px;
    }
}

@media only screen and (max-width: 1450px) {
/* header */
    .main-menu li.depth-0 > a[href="/find-a-horse"] {
        padding-right: 25px;
    }
    .main-menu li > a[href="/find-a-horse"]:after {
        top: 10px;
        right: 2px;
        width: 20px;
        height: 20px;
    }
    header form.search {
        width: auto;
        margin-left: 0;
        box-sizing: border-box;
    }
/* footer */
    button.gototop {
        right: 0;
    }
/* home */
    .next,
    .previous {
        top: auto;
        bottom: 10px;
        height: 50px;
        font-size: 50px;
        line-height: 50px;
    }
    .banners-home .banner-stage {
        padding-top: 400px;
    }
    .banners-home .banner-content {
        padding: 60px 40px;
    }
    /* latest news */
    .latestissue h3 {
        position: static;
    }
}

@media only screen and (max-width: 1050px){
/* header */
    /* top */
    .loginblock img {
        display: none;
    }
    /* bottom */
    .main-menu li.depth-0 > a {
        padding: 13px 8%;
    }
    header form.search {
        width: 14%;
    }
    form.search input {
        padding-left: 10%;
    }
/* base layout */
    .popular h2 {
        text-align: center;
    }
    .poplink li {
        width: 48%;
    }
/* footer */
    .footer-bottom {
        width: 100%;
        margin-right: 0;
    }
}

@media only screen and (max-width: 960px) {
/* mobile header */
    header .logo {
        position: static;
    }
    header.top .contentwrap {
        padding-right: 80px;
        justify-content: space-between;
    }
    .header-menu,
    .header-bar-bottom {
        display:none;
    }
    #mobile-menu {
        display:block;
    }
    .slide-menu {
        display:block;
    }
    .slide-menu-active #mobile-menu {
        right: 260px;
    }
/* base layout - reduce padding */
    .maincontent,
    .contentright {
        display: block;
        width: 100%;
    }
    /* content area */
    .maincontent {
        margin-right: 0;
    }
    .maincontent > .wrap{
        padding: 20px;
    }
    /* pager */
    .pager {
        padding-top: 20px;
    }
    /* sidebar */
    .contentright {
        padding-left: 0;
        width: 102%;
        margin-top: 0;
        margin: 10px -1%;
    }
    .sidebar {
        display: flex;
        width: 100%;
        flex-wrap: wrap;
        box-sizing: border-box;
    }
    .sidebar > div,
    .sidebar > div:first-of-type {
        display: inline-block;
        vertical-align: middle;
        width: 31%;
        flex-basis: 30%;
        margin: 1%;
    }
    .sidebar > div.ad,
    .t-home .sidebar > div.ad:last-of-type {
        margin: 1%;
        flex-basis: 30%;
    }
    .ad .desktop {
        display: none;
    }
    .ad .mob {
        display: block;
    }
    .ad .mob img {
        width: auto;
        max-width: 100%;
    }
    .sidebar > div > a {
        display: table;
    }
    .sidebar > div > a > h2 {
        display: table-cell;
        vertical-align: bottom;
    }
    nav.promo {
        display: inline-flex;
        flex: 1 1 0px;
    }
    nav.promo > ul {
        display: flex;
        justify-content: space-evenly;
        align-content: stretch;
        margin: 0.5% 0px;
    }
    .promo li {
        position: relative;
        display: inline-block;
        width: 48%;
        min-height: 100px;
        vertical-align: middle;
        box-sizing: border-box;
        margin: 1%;
    }
    .promo li.depth-0:first-of-type {
        margin: 1%;
    }
    .promo.home li {
        height: auto;
    }
    .promo .title,
    .promo.home .title {
        font-size: 20px;
    }
    .promo.home .title:after {
        font-size: 30px;
        line-height: 30px;
        width: 20px;
    }
    .contentright > #subscribe { /* change if subscribe added */
        display: block;
        width: 100%;
        text-align: center;
        margin: 10px;
    }
    /* popular links */
    .popular.contentwrap {
        padding: 0 20px;
    }
    .popular h2 {
        margin-top:0;
        padding-top: 20px;
        border-top: 1px dashed #8c8c8c;
    }
/* home */
    .t-home .maincontent {
        margin-top: 20px;
    }
    .t-home .contentright > .sidebar{
        margin-top: 0;
    }
    .latestissue {
        width: 40%;
    }
    .info,
    .row .info {
        width: 50%;
    }
    .widesponsored.desktop {
        display: none;
    }
    .widesponsored.mob {
        display: block;
    }
/* page */
    .page-body.contentwrap {
        margin-top: -8%;
    }
    /* related page icons */
    .icon-menu .title {
        padding-right: 44%;
    }
    .icon-menu .menu-icon,
    .icon-menu .menu-hover {
        right: 4%;
    }
}

@media only screen and (max-width: 760px) {
/* wrap words */
    a {
        /* These are technically the same, but use both */
        overflow-wrap: break-word;
        word-wrap: break-word;
        -ms-word-break: break-all;
        /* This is the dangerous one in WebKit, as it breaks things wherever */
        word-break: break-all;
        /* Instead use this non-standard one: */
        word-break: break-word;
        /* Adds a hyphen where the word breaks, if supported (No Blink) */
        -ms-hyphens: auto;
        -moz-hyphens: auto;
        -webkit-hyphens: auto;
        hyphens: auto;
    }
/* home */
    .banners-home .banner-stage {
        padding-top: 300px;
    }
    .banners-home .banner-content {
        padding: 40px;
        padding-bottom: 50px;
    }
    .banner-title {
        font-size: 25px;
        line-height: 1.1;
    }
    .banner-caption > span {
        padding: 10px 20px;
    }
    /* content */
    .t-home .maincontent {
        margin-top: 0;
    }
    .t-home .row,
    .t-home .row > div {
        display: block;
        width: 100%;
        height: auto;
        margin: 0;
    }
    .t-home .row > div {
        margin: 20px 0;
    }
    .info,
    .featured .info {
        padding: 20px;
    }
    .info h3 {
        margin-bottom: 20px;
    }
    a.button.find-horse {
        margin-top:0;
    }
    .latestissue a {
        padding: 20px;
        padding-bottom: 150px;
    }
    div.lookinside {
        bottom: 20px;
    }
    .featured li {
        height: 200px;
    }
    .featured .info {
        width: 50%;
    }
    /* sidebar */
    .promo .title,
    .promo.home .title {
        font-size: 16px;
    }
/* page */
    .page-graphic {
        padding-top: 200px;
    }
    /* related icon menu */
    .icon-menu li {
        width: 48%;
        min-height: 100px;
    }
    .icon-menu .menu-icon,
    .icon-menu .menu-hover {
        width: 20%;
        margin-top: -10%;

    }
    .icon-menu .title {
        padding-right: 24%;
    }
/** forms **/
    form .third p:nth-of-type(3n+1),
    form .third p:nth-of-type(3n+2),
    form .third p:nth-of-type(3n) {
        width: 100%;
        margin: 5px 0;
    }

}

@media only screen and (max-width: 600px) {
/* header */
    .slide-menu-active .site-content-menu-slide {
        right: 241px;
    }
    .slide-menu-active #mobile-menu {
        right: 20px;
    }
    .loginblock {
        display: none;
    }
/* base layout */
    /* sidebar */
    .contentright {
        width: 100%;
        margin: 0;
        margin-top: 20px;
    }
    .sidebar > div > a,
    .ad .mob {
        display: block;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    nav.promo > ul {
        flex-direction: column;
        justify-content: stretch;
    }
    .promo li {
        width: 100%;
        min-height: 0px;
        flex-grow: 1;
    }
    /* subs */
    .submenu {
        padding: 10px 0px;
        border-bottom: none;
    }
    .submenu > ul {
        padding-left: 0;
        border: 1px dashed #8c8c8c;
        border-bottom: none;
    }
    .submenu li,
    .submenu li li {
        text-align: center;
        padding-left: 0px;
    }
    .submenu a {
        border-bottom: 1px dashed #8c8c8c;
    }
    .submenu li.has-sub > a {
        position: relative;
    }
    .submenu li.has-sub > a:after {
        content: "";
        position: absolute;
        left: 100%;
        bottom: -1px;
        width: 20px;
        height: 1px;
        border-bottom: 1px dashed #8c8c8c;
    }
    .sidebar > div.subscribe {
        text-align: center;
    }
    .contentright > #subscribe {
        margin: 0px;
    }
    .subscribe {
        padding-top: 10px;
    }
    /* popular links */
    .popular {
        padding-top: 0;
    }

    .poplink {
        margin: 0;
    }
    .poplink li {
        display: block;
        width: 100%;
        height: auto;
        min-height: 60px;
        margin: 5px 0;
    }
    .poplink a {
        padding: 5px;
        height: 60px;
    }
    .popular h2,
    .poplink span.title {
        font-size: 20px;
        text-align: center;
    }
/* home */
    .row .wrapper,
    .maincontent .full,
    .t-home .img,
    .info,
    .row .info,
    .featured li,
    .featured .img,
    .featured .info {
        display: block;
        width: 100%;
    }
    .t-home .img {
        padding-top: 40%;
    }
    .featured li {
        height: auto;
    }
    span.more {
        position: static;
    }
/* footer */
    .footer-bottom a.logo {
        display: none;
    }
    .site-map > ul {
        display: block;
    }
    .site-map > ul > li {
        display: inline-block;
    }
    .site-map a {
        line-height: 30px;
        padding: 0 10px;
    }
    .site-map li.depth-0:after {
        top: 5px;
        bottom: 5px;
        left: 100%;
        right: auto;
    }
/* page */
    /* related icon menu */
    .icon-menu {
        display: block;
    }
    .icon-menu li {
        width: 100%;
        height: auto;
        min-height: 0px;
        margin: 1px 0;
    }
    .icon-menu .menu-icon,
    .icon-menu .menu-hover {
        right: 2%;
        width: 8%;
        height: 80%;
        margin-top: -3.5%;
    }
    .icon-menu .title {
        padding: 2% 4%;
        padding-right: 10%;
    }
/* forms */
    form .half > p,
    form .half > p:nth-of-type(odd),
    form .half > p:nth-of-type(even) {
        width: 100%;
        margin: 5px 0;
    }
/* rulebook icons */
    .rulebook-sections {
        margin: 0;
    }
    .rulebook {
        width: 100%;
        height: 100px;
        margin: 5px 0;
    }
}

@media only screen and (max-width: 500px){
/* sidebar */
    .sidebar {
        display: block;
    }
    .sidebar > div,
    .sidebar > div:first-of-type,
    .sidebar > div.ad,
    .t-home .sidebar > div.ad:last-of-type {
        width: 100%;
        text-align: center;
        margin: 0px;
        margin-bottom: 10px;
    }
    .sidebar > div.ad.sml img {
        width: 200px;
        max-width: 100%;
        margin: 0 auto;
    }
    nav.promo,
    nav.promo > ul {
        display: block;
        width: 100%;
    }
    .promo li,
    .promo li.depth-0:first-of-type {
        min-height: 100px;
        margin: 10px 0px;
    }
    .promo .menu-icon {
        padding-top: 80px;
    }
    .promo .title,
    .promo.home .title {
        font-size: 20px;
    }
    .promo.home .title:after {
        margin-top: -5px;
    }
    /** hide submenu **/
    .submenu {
        display: none;
    }
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.hidden {
    display: none !important;
    visibility: hidden;
}

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important;
        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) ")";
    }

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    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;
    }
}