.cf:before, .cf:after {
  content: " ";
  display: table; }

.cf:after {
  clear: both; }

.cf {
  *zoom: 1; }

/* NEEDS ADDING */
.home-hero-banner-container {
  width: 100%;
  box-sizing: border-box; }
  .home-hero-banner-container .home-hero-banner {
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box; }
    @media only screen and (max-width: 580px) {
      .home-hero-banner-container .home-hero-banner {
        padding-top: 0; } }
    .home-hero-banner-container .home-hero-banner img {
      width: 100%;
      height: auto;
      display: block;
      margin: 0 auto;
      max-width: 1500px; }
      .home-hero-banner-container .home-hero-banner img.mobile {
        display: none;
        max-width: 560px; }
      @media only screen and (max-width: 580px) {
        .home-hero-banner-container .home-hero-banner img.mobile {
          display: block; }
        .home-hero-banner-container .home-hero-banner img.desktop {
          display: none; } }

.container {
  margin: 0 auto;
  width: 100%;
  max-width: 1260px; }

.single-book.postid-670 .book-hero-container h1 {
  color: #000; }

.book-hero-container {
  padding: 80px 30px 65px 30px;
  box-sizing: border-box;
  display: table; }
  @media only screen and (max-width: 580px) {
    .book-hero-container {
      padding: 40px 20px 45px 20px; } }
  .book-hero-container h1 {
    font-size: 58px;
    color: #fff;
    font-weight: bold;
    line-height: 1;
    margin-top: -20px;
    padding-bottom: 20px; }
    @media only screen and (max-width: 580px) {
      .book-hero-container h1 {
        font-size: 36px; } }
  .book-hero-container p {
    font-size: 16px;
    color: #fff; }
    @media only screen and (max-width: 580px) {
      .book-hero-container p {
        font-size: 14px; } }
  .book-hero-container .book-cover-image {
    width: 50%;
    display: table-cell;
    vertical-align: middle;
    text-align: right; }
    @media only screen and (max-width: 767px) {
      .book-hero-container .book-cover-image {
        display: table-header-group;
        width: 100%;
        text-align: center; } }
    .book-hero-container .book-cover-image img {
      margin: -35px 0;
      max-width: 402px;
      padding-left: 120px;
      width: 100%;
      height: auto; }
      @media only screen and (max-width: 768px) {
        .book-hero-container .book-cover-image img {
          padding-left: 60px; } }
      @media only screen and (max-width: 767px) {
        .book-hero-container .book-cover-image img {
          margin: 0 0 40px; } }
      @media only screen and (max-width: 580px) {
        .book-hero-container .book-cover-image img {
          max-width: 300px; } }
  .book-hero-container .book-overview-text {
    display: table-cell;
    vertical-align: middle;
    width: 50%; }
    @media only screen and (max-width: 767px) {
      .book-hero-container .book-overview-text {
        display: table-footer-group;
        width: 100%; } }
    .book-hero-container .book-overview-text .button {
      margin-top: 20px; }
      .book-hero-container .book-overview-text .button span {
        font-size: 20px;
        font-weight: bold;
        margin-top: -2px;
        text-transform: uppercase;
        padding: 0 30px; }
      .book-hero-container .book-overview-text .button:hover {
        margin-top: 25px;
        margin-bottom: -5px; }

.books-nav ul.books li a h3 {
  font-size: 0; }

.page-template-template-landing-page .double-left {
  width: 48%;
  padding-top: 20px; }
  @media only screen and (max-width: 1023px) {
    .page-template-template-landing-page .double-left {
      width: 90%; } }
.page-template-template-landing-page .double-right {
  width: 28%;
  padding-top: 20px; }
  @media only screen and (max-width: 1023px) {
    .page-template-template-landing-page .double-right {
      width: 90%;
      margin-top: 40px; } }
  .page-template-template-landing-page .double-right h2 {
    font-size: 20px;
    margin-bottom: 22px; }
  .page-template-template-landing-page .double-right p:first-of-type {
    font-size: 16px; }

.featured-books-container {
  padding: 20px 20px 0 20px;
  text-align: center; }
  .featured-books-container h2 {
    color: #fff;
    font-weight: bold;
    font-size: 32px;
    margin-bottom: 40px; }
  .featured-books-container .box {
    text-align: left;
    width: 100%; }
    .featured-books-container .box h2 {
      font-size: 15px;
      margin-bottom: 0; }
    .featured-books-container .box .box-lip {
      bottom: -20px; }

.buy-now-popup-background {
  width: 100%;
  min-height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 999;
  -webkit-transition: ease 0.17s;
  -khtml-transition: ease 0.17s;
  -moz-transition: ease 0.17s;
  -ms-transition: ease 0.17s;
  -o-transition: ease 0.17s;
  transition: ease 0.17s;
  opacity: 0;
  visibility: hidden; }

.buy-now-popup {
  width: 100%;
  text-align: center;
  position: fixed;
  top: 5%;
  z-index: 999;
  -webkit-transition: ease 0.17s;
  -khtml-transition: ease 0.17s;
  -moz-transition: ease 0.17s;
  -ms-transition: ease 0.17s;
  -o-transition: ease 0.17s;
  transition: ease 0.17s;
  opacity: 0;
  visibility: hidden; }
  @media only screen and (max-width: 1023px) {
    .buy-now-popup {
      position: fixed;
      padding: 5px;
      top: 0;
      box-sizing: border-box; } }
  .buy-now-popup .content {
    display: inline-block;
    text-align: left;
    background: white;
    padding: 40px;
    margin-top: 20px;
    box-sizing: border-box;
    border-radius: 20px;
    position: relative;
    width: 100%;
    max-width: 700px;
    overflow:scroll !important;
    -webkit-overflow-scrolling:touch !important;}
    @media only screen and (max-width: 1023px) {
      .buy-now-popup .content {
        overflow-y: scroll;
        max-height: 90vh;
        margin-top: 0;
        padding: 5px;} }
    .buy-now-popup .content a {
      color: black; }
    .buy-now-popup .content .close {
      position: absolute;
      top: 0;
      right: 0;
      padding: 12px 20px;
      cursor: pointer;
      text-transform: uppercase; }

.buy-now-popup-background.show, .buy-now-popup.show {
  opacity: 1;
  visibility: visible; }

body.modal-open {
  overflow: hidden;
}

body.home {
  background: #4098be url(/wp-content/uploads/2016/10/bg-bb-bottom-midnight.png) bottom center no-repeat;
  background-size: 100% auto; }
  body.home .button {
    background-color: #fee333; }
    body.home .button span {
      color: #000; }

@media only screen and (max-width: 1365px) {
  #top-nav .top-nav-middle ul li.mobile.tablet {
    display: block !important; }

  .top-nav-middle {
    width: calc(100% - 338px) !important; }

  .top-nav-right {
    display: none; } }
@media only screen and (max-width: 1151px) {
  .top-nav-middle {
    width: calc(100% - 284px) !important; } }
@media only screen and (max-width: 1090px) {
  .top-nav-middle {
    width: calc(100% - 270px) !important; }

  #top-nav .top-nav-middle ul li a {
    padding: 0 16px; } }
@media only screen and (max-width: 1023px) {
  .top-nav-middle {
    width: auto !important; }

  #top-nav .top-nav-middle ul li a {
    padding: 0 20px; } }
/* NEEDS CHANGING */
#top-nav .top-nav-left {
  background: transparent url(../img/david-walliams-full.png) center center no-repeat; }

@media only screen and (max-width: 1350px) and (min-width: 1024px) {
  #top-nav .top-nav-left {
    display: inline-block !important; }

  #top-nav .top-nav-middle {
    width: calc(75% - 260px); } }
.book-subnav ul {
  top: 0; }
