.post-navigation .nav-next, .post-navigation .nav-previous {
    display: inline-block;
    padding: 0px 30px;
}

.post-navigation .post-title {
        font-size: 18px;
 
    }

.post-navigation .nav-previous {float: left}

.post-navigation .nav-next {float: right}

.post-navigation a {display: inline}

#jp-relatedposts {display: none!important}

.navigation.post-navigation {margin-top: 0px}

body .entry-footer {
    display: none;
}

body .hentry
 {
    background-color: rgba(255, 255, 255, 0.85);
}

@media screen and (max-width: 619px) {
  /* Twenty Fifteen's actual toggle button */
  button.secondary-toggle {
    z-index: 1000001 !important;
    padding: 8px 10px;
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #fff !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 4px;
  }
}

	.secondary-toggle .icon-bar{
background-color: #000000 !important;
	
}
	
/* --- Mobile nav: give items breathing room + full-width dropdown --- */
@media (max-width: 782px) {

  /* Make sure the nav area can expand and doesn't clip */
  #site-navigation,
  .main-navigation {
    width: 100%;
    overflow: visible;
  }

  /* Increase tap area + reduce “scrunched” look */
  .main-navigation a {
    display: block;
    padding: 14px 18px;
    line-height: 1.25;
  }

  /* Ensure dropdown list fills width and is readable */
  .main-navigation ul {
    width: 100%;
    margin: 0;
    padding: 8px 0;
  }

  .main-navigation li {
    margin: 0;
  }

  /* If your theme draws separators, this makes them cleaner */
  .main-navigation li + li {
    border-top: 1px solid rgba(0,0,0,0.08);
  }
}


  /* When the menu opens, make it a viewport panel */
  .main-navigation.toggled ul {
    position: fixed;
    left: 0;
    right: 0;

    /* Adjust this if your header is taller/shorter */
    top: 72px;

    max-height: calc(100vh - 72px);
    overflow-y: auto;

    background: rgba(255,255,255,0.98);
    z-index: 9998;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  }
}
	
/* =========================================================
   START: Twenty Fifteen Sticky Header + Mobile Menu Overlay
   ========================================================= */

/* Set the sticky header bar height (edit this number) */
@media (max-width: 59.6875em) { /* ~955px: Twenty Fifteen breakpoint */
  :root { --vh-header: 96px; }   /* try 84px, 96px, 110px if needed */
}

/* Logged-in admin bar adds extra height at top */
@media (max-width: 59.6875em) {
  body.admin-bar { --vh-header: 142px; } /* 96 + 46 */
}

/* 1) Make the header a fixed bar on mobile/tablet */
@media (max-width: 59.6875em) {
  #masthead.site-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;

    height: var(--vh-header);
    width: 100%;
    z-index: 99999;

    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;

    /* IMPORTANT: don't use `background:` or you'll wipe the header image */
    background-color: rgba(255,255,255,0.92);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    overflow: visible;
  }

  /* Ensure header contents sit above the translucent background */
  #masthead.site-header > * {
    position: relative;
    z-index: 1;
  }

  /* Push the page down so content isn't hidden under the fixed header */
  .site,
  #page {
    padding-top: var(--vh-header);
  }
}

/* Offset header when admin bar is present */
@media (max-width: 59.6875em) {
  body.admin-bar #masthead.site-header {
    top: 46px !important;
  }
}
/*
 2) Mobile menu: open as a viewport overlay (works anywhere on page) 
@media (max-width: 59.6875em) {

  Twenty Fifteen uses .toggled-on when the menu is open 
  .main-navigation.toggled-on .nav-menu,
  .main-navigation.toggled .nav-menu { /* keep this as a fallback 
    position: fixed !important;
    left: 0;
    right: 0;

    top: var(--vh-header);
    max-height: calc(100vh - var(--vh-header));
    overflow-y: auto;

    z-index: 99998;
    background: rgba(255,255,255,0.98);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);

    margin: 0 !important;
    padding: 10px 0 !important;

    display: block !important; /* important: override theme hiding 
  }

  /* Make menu items comfy / not scrunched 
  .main-navigation .nav-menu > li > a {
    display: block;
    padding: 14px 18px;
    line-height: 1.25;
  }

  /* Optional separators 
  .main-navigation .nav-menu > li + li {
    border-top: 1px solid rgba(0,0,0,0.08);
  }
}*/
body.secondary-toggled #sidebar.sidebar{
  transform: none !important;
}



/* 3) Desktop: keep the left sidebar header usable (optional) */
@media (min-width: 59.6875em) {
  #masthead.site-header {
    position: sticky;
    top: 0;
    overflow: visible;
  }
}

/* =========================================================
   END: Twenty Fifteen Sticky Header + Mobile Menu Overlay
   ========================================================= */

	
	


	.site-footer {
		display: none !important;
	}	
/* ===== Layout: series blocks ===== */
.series-block{ margin: 2.2em 0; }
.series-title{ margin: 0 0 .75em 0; }

/* ===== Carousel: scroll-snap ===== */
.book-carousel{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(160px, 40vw, 220px);
  gap: 16px;

  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 6px 14px;

  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.book-carousel > .book-card{ scroll-snap-align: start; }

/* ===== Flip card container (6x9) ===== */
.book-card{
  aspect-ratio: 2 / 3;          /* 6x9 */
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  perspective: 1000px;
  outline: none;
}
	
.is-hidden{
  display: none !important;
}


/* Inner flipper */
.book-flip{
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform .45s ease;
}

/* Front/Back faces */
.book-face{
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
}

/* Front image */
.book-front img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Back face styling */
.book-back{
  transform: rotateY(180deg);
  background: rgba(0,0,0,.84);
  color: #fff;
  display: flex;
}
.book-back-inner{
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
	justify-content: center;
	overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.book-title{
  margin: 0;
  font-size: clamp(30px, 5vw, 38px);
  line-height: 1.15;
}
.book-blurb{
  margin: 0;
  font-size: clamp(20, 4.2vw, 28px);
  line-height: 1.35;
}

/* Buttons */
.book-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.book-btn{
  display: inline-block;
  padding: 8px 10px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  text-decoration: none;
  font-size: 13px;
  line-height: 1;
}
.book-btn:hover{ opacity: .9; }
.book-btn--ghost{
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.7);
}

/* Hint text */
.book-hint{
  margin: 0;
  font-size: 12px;
  opacity: .8;
}
	@media (prefers-reduced-motion: reduce){
  .book-flip{ transition: none; }
}


/* ===== Flip triggers (single system) ===== */

/* Base state */
.book-card .book-flip{
  transform: rotateY(0deg);
}

/* Flipped state (controlled by JS) */
.book-card.is-flipped .book-flip{
  transform: rotateY(180deg);
}

/* Optional: hover flip only on devices that truly have hover */
@media (hover:hover) and (pointer:fine){
  .book-card:hover .book-flip{
    transform: rotateY(180deg);
  }
}

/* IMPORTANT: disable focus/active flipping entirely (iOS conflicts) */
.book-card:focus .book-flip,
.book-card:focus-within .book-flip,
.book-card:active .book-flip{
  transform: rotateY(0deg);
}

/* finish front image rules */
.book-front img{
  width: 100%;
  height: 100%;
  object-fit: cover; /* or contain if you prefer no cropping */
  display: block;
}

/* Back face must be rotated so it shows after flip */
.book-back{
  transform: rotateY(180deg);
  background: rgba(0,0,0,.84);
  color: #fff;
  display: flex;
}

.book-back-inner{
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.book-title{ margin: 0; font-size: 16px; line-height: 1.15; }
.book-blurb{ margin: 0; font-size: 13px; line-height: 1.35; hyphens: none; overflow-wrap: anywhere; }

.book-actions{ display: flex; flex-wrap: wrap; gap: 10px; }

.book-btn{
  display: inline-block;
  padding: 8px 10px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  text-decoration: none;
  font-size: 13px;
  line-height: 1;
}
.book-btn--ghost{
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.7);
}

/* ===== Flip triggers (JS-controlled) ===== */
.book-card .book-flip{ transform: rotateY(0deg); }
.book-card.is-flipped .book-flip{ transform: rotateY(180deg); }

/* Optional: hover flip only on hover-capable devices */
@media (hover:hover) and (pointer:fine){
  .book-card:hover .book-flip{ transform: rotateY(180deg); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .book-flip{ transition: none; }
}


/* Keep header (and menu button) visible while scrolling on mobile */




/* ===== Mobile menu (Twenty Fifteen secondary sidebar): drawer + always closable ===== */
@media (max-width: 59.6875em){

  html, body { overflow-x: hidden; }

  /* Keep header visible */
  #masthead{
    position: sticky;
    top: 0;
    z-index: 10000;
  }

  /* Keep the toggle button clickable even when the drawer is open */
  button.secondary-toggle{
    position: sticky;            /* stays in header */
    z-index: 1000002 !important; /* above drawer */
  }

  /* When the sidebar menu opens, make it a drawer (not fullscreen) */
  #secondary.toggled-on{
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;

    width: min(86vw, 360px) !important;  /* drawer size */
    right: auto !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;

    background: rgba(255,255,255,0.98) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    z-index: 1000001 !important;
  }

  /* Optional: dim background (also makes it feel less “giant”) */
  body.secondary-toggled::before{
    content:"";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1000000;
  }

  /* Tap targets */
  /* ===== Twenty Fifteen mobile menu: visible toggle + closable overlay ===== */
@media (max-width: 59.6875em){

  /* Always show the toggle button */
  button.secondary-toggle{
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;

    position: fixed !important;
    top: 12px !important;
    right: 12px !important;

    z-index: 1000002 !important;
    pointer-events: auto !important;
  }

  /* Full-screen overlay, BUT under the button */
  #secondary.toggled-on{
    position: fixed !important;
    inset: 0 !important;

    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;

    background: rgba(255,255,255,0.98) !important;
    z-index: 1000001 !important;
  }

  /* Make menu items readable/tappable */
  #secondary.toggled-on .nav-menu{
    display: block !important;
    margin: 0 !important;
    padding: 70px 0 10px !important; /* space so the fixed button doesn't overlap */
  }

  #secondary.toggled-on .nav-menu > li > a{
    display: block;
    padding: 14px 18px;
    line-height: 1.2;
  }
}

	/* Dedicated mailing list CTA placed over the header area */
	.ml-header-cta {
  position: fixed;
  top: 0px;
  left: 20px;
  z-index: 999999;

  background: none !important;
  border: none !important;
  padding: 0;

  font-size: 17px;
  font-weight: 600;
  text-decoration: none;

  color: white;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
	
	.custom-footer-copyright {
    text-align: center;
    padding: 20px 15px;
    font-size: 17px;
		color: white;
}

.custom-footer-copyright p {
    margin: 0;
}