.textalignright {text-align:right;}
.textaligncenter {text-align:center;}
.displaynone {display:none;}
.displaynoneimportant {display:none !important;}
.ellipsis {display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}

.big { font-size: 120%; }

body {
    font-family: 'Cormorant Garamond', Garamond, serif;
    background-color:#f4f4f4;
    font-size: 22px;
    padding-top:50px;
    /*background: url('../images/wood_texture.jpg') repeat;*/
    /*background-size:100%;*/
    background: url('../images/page-repeating-bg-light.png') repeat;
    background: url('../images/page-repeating-bg.png') repeat;
    color:#222;
}

/* Need to push body down when admin bar is present */
@media (min-width: 768px) {
  body.admin-bar {
    padding-top:111px;
  }
  body {
    padding-top:64px;
  }
}

h1 {
    font-size: 1.75em;
}

h2 {
    font-size: 1.5em;
}

blockquote {
  padding: 0 20px;
  margin: 0 0 20px;
  border-left: none;
  font-size:inherit;
}

figure.aligncenter figcaption.wp-caption-text {
  text-align:left;
}

#content {
  /*background: #E9CDB4;*/
  background-color: rgba(233, 205, 180, .8);
  border:1px solid rgba(50, 21, 7, .25);
  border-width:0 1px 1px;
  border-radius: 0 0 3px 3px;
}

@media (min-width: 768px) {
  #content {
    /*background: rgba(255, 255, 255, 0.7);*/
    /*background-color: rgba(233, 205, 180, .8);*/
  }
}

#content hr {
    background:#e1e1e1 !important;
}


/**********
 * Header *
 **********/

.admin-bar #top-nav {
 padding-top: 46px;
 font-size:.75em;
}

#top-nav .navbar-brand {
  text-transform: uppercase;
  color:#ddd;
  font-size:1em;
  line-height: 1em;
}

@media (min-width: 992px) {
  .admin-bar #top-nav {
    padding-top: 32px;
    font-size:1em;
  }
}

@media (min-width: 768px) {
  #top-nav .navbar-header {
    padding-left:0px;
  }
  #top-nav #navbar {
      padding-top:7px;
      padding-bottom:7px;
  }
  #member-logout-menu {
    margin-right:-5px;
  }
  #top-nav .navbar-brand {
    padding-left:0;
    font-size:1.8em;
  }
}

#top-nav  {
    background-color: #321507;
    /*background: url('../images/wood_texture.jpg') repeat;*/
    /*background-size:100%;*/
    border:solid #321507;
    border-width: 0;
}

#top-nav a {
  color: rgba(249,241,241,.5);
}

#top-nav .dropdown-menu a {
  color: rgb(34, 34, 34);
  font-size:15px;
}

#top-nav .menu-item.dropdown:hover ul {
  display:block;
}

#top-nav .dropdown-menu li.current-menu-item a {
  color: #dda150;
}

#top-nav li p {
    margin:16px 15px;
}

#top-nav a:active {
  outline:none;
}

#top-nav li.active a {
  background:none;
}

#top-nav li.current-menu-item a,
#top-nav li a:hover {
  color: #ffc170;
}

#top-nav #member-navbar {
  border-top:1px solid rgba(249,241,241,.5);
  font-size:17px;
}

@media (min-width: 768px) {
  #top-nav #member-navbar .navbar-nav {
    margin-top:2px;
  }
  #top-nav #member-navbar .navbar-nav>li>a {
    line-height: 12px;
    background-color: transparent !important;
  }
}
@media (max-width: 767px) {
  #member-menu {
    margin-bottom:0;
  }
  #member-logout-menu {
    margin-top:0;
  }
}

#primary-nav-content #blog-tagline {
    margin-left:0;
}

#navbar {
  border-color: rgba(249,241,241,.5);
}

#top-search-form {
  border:none;
}

#top-search-form #top-search-input {
  font-size: .75em;
}

@media (max-width: 767px) {
    #top-nav  {
        margin:0px;
    }
}

@media (min-width: 768px) {
    #top-search-form #top-search-input {
      width:100px;
    }
}

@media (min-width: 992px) {
    #top-search-form #top-search-input {
        width:180px;
    }
}

@media (min-width: 1200px) {
    #top-search-form #top-search-input {
        width:200px;
    }
}

@media (max-width: 1199px) {
  #top-nav .nav>li>a {
    padding-left:8px;
    padding-right:8px;
    font-size:20px;
  }
}

/*********************
 * Main Page Content *
 *********************/

#primary, #secondary {
    margin:1em 0;
}

#primary .entry-title {
    margin:0;
    padding-bottom: .1em;
    border-bottom:1px solid #858585;
}

#primary .entry-content {
    margin-top:1em;
}

/**********
 * Sidebar *
 **********/

#secondary {
  font-size:16px;
    border:2px solid #e1e1e1;
    padding:10px 10px 6px;
}

/**********
 * Footer *
 **********/

#colophon {
  font-size:16px;
}

#colophon a {
    color: #444;
}

#colophon a:hover {
    color:#222;
    text-decoration: none;
}

#colophon #footer-content {
    border-top:1px solid #858585;
    padding:1em 0;
}

#colophon .sep {
    margin:0px 10px;
}

/******************************
 * Posts and pages, generally *
 ******************************/

.comments-link {
    margin-right:10px;
}

#content img {
  border-radius:3px;
  /*background:#fff;*/
  /*padding:5px;*/
  margin-bottom:.5em;
}

.oldbooktable-gallery-item img {
  padding:5px;
}

@media (max-width: 767px) {
  .page img {
    margin:0 auto 1em;
  }

  .page {
    text-align:center;
  }
}

.page figure img {
  border:none;
  background:none;
  padding-bottom:0;
}
.page figure {
  /*border:1px solid #ddd;*/
  border-radius:3px;
  /*background:#fff;*/
  padding:5px 5px 7px;
  margin-top:0;
}
.page figure figcaption.wp-caption-text {
  font-size: 18px;
  margin:4px 0;
}

#content header.page-header {
  border:none;
  margin:1em 0 0;
  padding-bottom:0;
}

/***************
 *  HOME PAGE  *
 ***************/

@media (min-width: 768px) {
 .home-page-post-content .entry-content h2 {
   margin-top:2em !important;
   font-size: 1em;
 }
}

@media (min-width: 992px) {
 .home-page-post-content .entry-content h2 {
   margin-top:2em !important;
   font-size: 1.3em;
 }
}

@media (min-width: 1200px) {
 .home-page-post-content .entry-content h2 {
   margin-top:3em !important;
   font-size: 1.6em;
 }
}


/*****************
 *  SEARCH PAGE  *
 *****************/

#search-results .hentry {
  margin-bottom:.5em;
  border:1px solid #ccc;
  background-color:#eee;
  padding:.5em;
  border-radius:3px;
}

#search-results .entry-title a:hover {
  text-decoration: none;
}

/***************************
 *  GALLERY INDEX LISTING  *
 ***************************/

.oldbooktable-photogalleryindex .gallery-listing {
  margin-bottom:1em;
}

.oldbooktable-photogallery .oldbooktable-gallery-item {

}

.oldbooktable-gallery-item.search-query-match img {
  background: yellow !important;
}

/**************
 *  LIGHTBOX  *
 **************/

 #lightbox .lb-caption,
 #lightbox .lb-number {
   font-size: .7em;
   font-weight: normal;
   text-shadow:0px 0px 3px #000;
 }

#lightbox .lb-caption {
  font-size: .85em;
}
