html, body {
    height: 100%;
}

body {
    background-color: #EEEEEE;
    color: #333333;
    font-family: Lato, Helvetica, sans-serif;
    font-weight: 300;
    margin: 0;
    padding: 0;
    min-height: 100%;
}

/* Header */
.fixed-top {
  position: fixed;
  top: 0;
  right: 0;
  left: 50%;
  z-index: 1030;
  width: 100%;
  transform: translateX(-50%);
  text-align: center;
  background-color: #1A4788;
  padding: 10px 0;
}

.logo-bar {
  display: inline-block;
  padding: 0;
}

.navbar-expand-lg {
  display: inline-block;
}

header #header-image {
  overflow: hidden;
  position: relative;
  margin-top: 125px;
}

header {
  background-color: #1A4788;
}

header[role="banner"] #logo {
    display: block;
    margin: 0 auto;
}

header #header-image {
    overflow: hidden;
    position: relative;
}

header #header-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top
}

header #iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    top: 0;
    left: 0
}

#header-image .video-container {
    position: relative;
    width: 100%;
    padding-bottom: 58.25%;
    top: 0;
    left: 0
}

header #header-image iframe, header #header-image video {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.logo-bar {
    background-color: #1A4788;
    padding-top: 10px;
    text-align: center;
}

nav {
    background-color: #1A4788;
}

.navbar-fixed-top {
    position: fixed;
    top: 105px;
    right: 0;
    left: 0;
    z-index: 1030;
}

.navbar-toggler {
    margin: 0 auto;
}

#navbarMainMenu {
    background-size: contain;
    background-repeat: repeat-x;
}

#navbarMainMenu ul {
    margin: 0 auto;
    padding: 0;
}

.navbar-dark .navbar-nav .nav-item .nav-link {
    color: #FFF;
    font-size: 1.2em;
    font-weight: 300;
    padding: 0 8px;
}

.navbar-dark .navbar-nav .nav-item:hover .nav-link,
.navbar-dark .navbar-nav .nav-item:focus .nav-link {
    color: #1A4788;
}

.navbar-dark .navbar-nav .active > .nav-link, .navbar-light .navbar-nav .nav-link.active, .navbar-light .navbar-nav .nav-link.show, .navbar-light .navbar-nav .show > .nav-link {
    color: #FFF;
}

.nav-item {
    list-style: none;
}

.nav-item:hover {
    background-color: #FFFFFF;
    color: #1A4788;
}

#twitter-white {
    display: block;
}
.nav-item:hover #twitter-white {
    display: none;
}

#twitter-blue {
    display: none;
}

.nav-item:hover #twitter-blue {
    display: block;
}

#instagram-white {
    display: block;
}
.nav-item:hover #instagram-white {
    display: none;
}

#instagram-blue {
    display: none;
}

.nav-item:hover #instagram-blue {
    display: block;
}

.social-media-menu {
    padding: 2px 0;
}

.row {
  margin: 0;
}

/* Main */
main {
  padding-top: 15px;
  height: auto;
  margin: 0 auto;
  min-height: 100%;
  min-height: calc(100% - 492px);
  width: 100%
}

/* Footer */
footer .bg-grey {
    background-color: #666;
    color: #FFF;
    padding: 20px 0;
}

footer a {
    color: #FFF;
}

footer a:hover {
    color: #FF6600;
}

/* CMS Stuff */
.imagefloatleft {
    float: left;
    margin-left: 0px;
    margin-right: 15px;
}

.imagefloatright {
    float: right;
    margin-left: 15px;
    margin-right: 0px;
}

.imagenofloat {
    margin-left: 0px;
    margin-right: 0px;
}

div.imgcaption {
    color: #666;
    font-weight: bold;
    text-align: center;
}

.cols {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    /*margin-right: -15px;
    margin-left: -15px;*/
}

.singlecol {
  width: 100%;
}

.singlecol .col1 {
    background-color: #fff !important;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    width: 100%;
    padding: 15px;
}

.twocol .col1 {
    margin: 10px;
    width: calc(100% - 340px);
}

.twocol .col2 {
    margin: 10px;
    width: 300px;
}

.horse {
    margin-bottom: 25px;
}

.horse .col1 {
    background-color: #fff !important;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 15px;
    padding-left: 15px;

    margin: 0;
    width: auto;
}

.horse .col2 {
    background-color: #fff !important;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 15px;
    padding-left: 15px;
    margin: 0;
    width: auto;
}

/* Home Page */
.homepage .col1 {
    display: inline-block;
    padding: 0;
    vertical-align: top;
    width: calc(100% - 315px);
}

.homepage .col2 {
    display: inline-block;
    margin-left: 15px;
    vertical-align: top;
    width: 300px;
}

#press-image {
    margin-top: 20px;
}

#home-main-image {
    display: inline-block;
    height: 542px;
    overflow: hidden;
    position: relative;
    width: 75%;
}

.parent-image {
    border: 1px solid #FFFFFF;
    vertical-align: top;
    
}

.parent-image img {
    height: 542px;
    width: auto;
    margin-left: 50%;
    transform: translateX(-50%);
}

.filter {
    -webkit-filter: brightness(0.3);
    filter: brightness(0.3);
}

.slider-section {
    position: relative;
}

.slider-header {
    background-color: #FFF;
    padding: 2px 10px;
    margin-top: -44px;
}

.slider-txt {
    background-color: #FFF;
    color: #000;
    height: 62px;
    padding: 5px 10px;
}

.homepagesidebarad.singlecol .col1 {
    background-color: #EEE !important;
}

.homepagesidebarad p {
    margin: 0;
}

.homepagesidebarad img {
    height: auto;
    width: 100%;
}

.homepagesidebarad p:nth-child(2) {
    margin-top: 15px;
}

/*
.homepagesidebarad img:nth-of-type(1) {
    margin-top: 10px;
}
*/

.category-boxes {
    margin: 20px 0;
}

.box-image img {
    overflow: hidden;
}

.box-image img {
    width: 100%;
}

.box-text {
    background-color: #FFF;
    padding: 10px;
}

.box-text a {
    color: #000;
    text-decoration: none;
}

/* News Page */
.newsroom {
  background: #FFFFFF;
  color: #1A4788;
}

.newsroom .archive-link, .newsroom .articledate {
  padding: 0 15px;
}

.newsroom .archive-link {
  padding-bottom: 15px;
}

.news-article {
  display: inline-block;
  margin: 10px;
}

 .news-image img {
    height: auto;
    max-width: 100%;
}

.news-text {
    background-color: #FFF;
    display: block;
    height: 70px;
    padding: 10px;
}

.news-date {
    background-color: #FFF;
    display: block;
    padding: 10px;
}

.newsroom-section {
    margin: 15px 0;
}

.news-archive {
    margin: 15px 0;
}

#archivetabs {
    width: 100%;
}

/* Stable Stars */
#statstabs {
    background: #FFF;
}

/* The Team */
.theteam .col1 {
    background-color: #EEE !important;
}

.theteam table {
    border-collapse: separate;
    border-spacing: 15px 0;
}

.theteam td {
    background-color: #FFF;
    padding: 10px;
    width: 33%;
}

.theteam h1 {
  margin: 10px 0;
}

.theteam p.imagecenter {
    margin: -10px -10px 16px;
    padding: 0;
}

.theteam p.imagecenter img {
    height: auto !important;
    width: 100% !important;
}

/* Facilties */
.facilities .col1 {
    background-color: #EEE !important;
}

.facilities table {
    border-collapse: separate;
    border-spacing: 15px 0;
}
.facilities tr:nth-of-type(even) td {
    padding: 10px;
}

.facilities td {
    background-color: #FFF;
    width: 50%;
}

.facilities img {
  /*height: auto;
    width: 100%;*/
  object-fit: cover;
  width: 558px;
  height: 313px;
}

.facilities h1, .facilities p {
    padding: 0 10px;
}

.facilities p.imagecenter {
  margin-bottom: 0;
    padding: 0;
}

.facilities table h1 {
  margin-top: 1em;
}

/* Ownership */
.Ownership .col1 {
  background-color: #EEE !important;
}

.Ownership table {
    border-collapse: separate;
    border-spacing: 15px 0;
}

.Ownership td {
    background-color: #FFF;
    padding: 10px;
    width: 33%;
}

.Ownership p.imagecenter {
    margin: -10px -10px 16px;
    padding: 0;
}

.Ownership p.imagecenter img {
    height: auto !important;
    width: 100% !important;
}

/* Own a Horse */
.onlineprofiles-box {
  height: 275px;
  margin-bottom: 44px;
  position: relative;
}

.onlineprofiles-box img {
  height: 100%;
  width: 100%;
}

.horsesavailable-text {
    background-color: #1A4788;
    padding: 10px;
    position: absolute;
    left: 0;
    bottom: -44px;
    width: 100%;
}

.horsesavailable-text a, .horsesavailable-text a:hover {
    color: #FFF;
}

input[name="custid"] {
  display: none;
}

#horseenequiry span {
    display: block;
}

#horseenequiry input[type="text"], #horseenequiry input[type="email"], #horseenequiry textarea {
    display: block;
    padding: 5px;
    width: 50%;
}

#horseenequiry textarea {
    height: 100px;
}

input[type="submit"], button {
    padding: 5px;
}

.arion {
    float: right;
}

.category_contents {
    display: inline-block;
    width: calc(100% - 210px);
}

.g-recaptcha {
    display: inline-block;
    margin: 10px 10px 0 0;
    vertical-align: middle;
}

.videoWrapper {
    position: relative;
    margin: 0 auto;
    padding-bottom: 56.25%;
    height: 0;
    width: 80%;
    overflow: hidden;
}

.videoWrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.horseenquiryform button {
    display: inline-block;
    margin-top: 10px;
    vertical-align: middle;
}

.bx-wrapper .onlineprofiles-slider img {
  height: 314px;
}


@media only screen and (min-width: 1690px) {
    .parent-image img {
        height: 100%;
        width: 100%;
    }
}


@media (min-width: 1600px) {
    .offset-xxl-1 {
        margin-left: 8.333333%;
    }

    .col-xxl-10 {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 83.333333%;
        flex: 0 0 83.333333%;
        max-width: 83.333333%;
    }
}

@media (min-width: 1260px) {
    main {
        width: 1220px;
    }
}

@media (max-width: 1024px) {
    header #header-image {
        height: 580px;
    }

  .onlineprofiles-box {
    height: 224px;
  }

}

@media (max-width: 768px) {
    header #header-image {
        height: 432px;
    }

    img {
        height: auto;
        max-width: 100%;
    }

    /* Nav Menu */
    .nav-item {
        text-align: center;
        padding: 5px 0;
        border-bottom: 1px dashed #FFF;
    }

    .nav-item:last-of-type {
        border-bottom: 0;
    }

  .navbar-expand-lg {
    display: block;
  }

  .logo-bar {
    display: block;
  }

    /* CMS Stuff */
    .twocol .col1 {
        display: block;
        margin: 10px 0;
        width: 100%;
    }

    .twocol .col2 {
        display: block;
        margin: 10px 0;
        text-align: center;
        width: 100%;
    }

    .homepage .col1 {
        display: block;
        margin: 10px 0;
        width: 100%;
    }

    .homepage .col2 {
        display: block;
        margin: 10px 0;
        width: 100%;
    }

    #home-employment, #home-ownership-opportunities {
        text-align: center;
    }

    #home-social-links {
        text-align: center;
    }

    .button-blue {
        font-size: 0.8em;
    }

    /* The Team */
    .theteam table {
        border-spacing: 0;
    }

    .theteam td {
        display: block;
        margin: 10px 0;
        width: 100%;
        word-break: break-word;
    }

    /* Facilities */
    .facilities table {
        border-spacing: 0;
    }

    .facilities td {
        display: block;
        margin: 10px 0;
        width: 100%;
        word-break: break-word;
    }

    /* Ownership */
    .Ownership table {
        border-spacing: 0;
    }

    .Ownership td {
        display: block;
        margin: 10px 0;
        width: 100%;
        word-break: break-word;
    }

    /* Online Profiles */
    #horseenequiry input[type="text"], #horseenequiry input[type="email"], #horseenequiry textarea {
        width: 100%;
    }

  .onlineprofiles-box {
    height: 250px;
  }
}

@media (max-width: 768px) and (max-height: 576px) {
  .onlineprofiles-box {
    height: auto;
    margin-bottom: 0;
  }

    .onlineprofiles-box img {
      height: auto;
    }

  .onlineprofiles .horsesavailable-text {
    bottom: 0;
    position: relative;
  }
}

@media (max-width: 576px) {
  header #header-image {
    height: 211px;
  }

  .parent-abstract {
    bottom: 0;
    font-size: 0.9em;
    padding: 0 5px;
  }

  .thumb-abstract {
    bottom: 0;
    font-size: 0.8em;
    padding: 0 5px;
  }

  /* Home Page */
  .box-image {
    margin-top: 10px;
  }

  .box-text {
    margin-bottom: 10px;
  }

  .slider-header, .slider-txt {
    bottom: 0;
    height: auto;
    position: relative;
    left: auto;
    right: auto;
  }
  /* News Page */
  .news-article .news-image {
    display: block;
    margin: 10px 0;
    text-align: center;
    width: 100%;
  }

  .news-article .news-text {
    display: block;
    margin: 10px 0;
    text-align: center;
    width: 100%;
  }

  /* Own a Horse */
  .onlineprofiles-box {
    height: auto;
    margin-bottom: 0;
  }

    .onlineprofiles-box img {
      height: auto;
    }

  .onlineprofiles .horsesavailable-text {
    bottom: 0;
    position: relative;
  }
}