/*
 * jQuery Booklet Plugin
 * Copyright (c) 2010 - 2014 William Grauvogel (http://builtbywill.com/)
 * Licensed under the MIT license
 *
 * Custom styling with page background images from reference
 */

.booklet         {width:800px; height:600px; position:relative; margin:0 auto 10px; overflow:visible !important;}
.booklet * {
	-webkit-box-sizing: content-box !important;
	-moz-box-sizing: content-box !important;
	box-sizing: content-box !important;
}
.booklet .b-page {left:0; top:0; position:absolute; overflow:hidden; padding:0; outline:1px solid rgba(0,0,0,0);}

/* Page Wrappers */
.booklet .b-wrap       {top:0; position:absolute;}
.booklet .b-wrap-left  {background:#f5f0e8;}
.booklet .b-wrap-right {background:#efe6d5;}

.booklet .b-pN .b-wrap,
.booklet .b-p1 .b-wrap,
.booklet .b-p2 .b-wrap,
.booklet .b-p3 .b-wrap,
.booklet .b-p4 .b-wrap  {left:0;}
.booklet .b-p0 .b-wrap  {right:0;}

/* Custom Page Types */
.booklet .b-page-blank  {padding:0; width:100%; height:100%;}
.booklet .b-page-cover  {padding:0; width:100%; height:100%;}

/* Cover styling */
.flipbook .b-page-cover {
	background-image: url(backcover.jpg);
	background-position: top left;
	background-size: cover;
	background-repeat: no-repeat;
	background-color: #333;
	text-align: center;
}
/* Front cover override (first cover page) */
.flipbook .b-page-1 .b-page-cover {
	background-image: url(frontcover.jpg);
}

.flipbook.booklet .b-wrap-left {
	background-image: url(page-left.jpg);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: top left;
}
.flipbook.booklet .b-wrap-right {
	background-image: url(page-right.jpg);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: top left;
}

/* Page Numbers */
.booklet .b-counter {bottom:10px; position:absolute; display:block; width:25px; height:20px; background:transparent; color:#888; text-align:center; font-family:Georgia, "Times New Roman", Times, serif; font-size:10px; padding:5px 0 0;}
.booklet .b-wrap-left  .b-counter  {left:10px;}
.booklet .b-wrap-right .b-counter {right:10px;}

/* Overlay Controls */
.booklet .b-overlay      {top:0; position:absolute; height:100%; width:50%;}
.booklet .b-overlay-prev {left:0;}
.booklet .b-overlay-next {right:0;}

/* Tab Controls */
.booklet .b-tab {
	background: #4a2810;
	color: #f0d5b0;
	height: 28px;
	width: 60px;
	padding: 5px 0 0;
	text-align: center;
	position: absolute;
	font-size: 16px;
	cursor: pointer;
	font-family: Georgia, serif;
	border-radius: 0 0 6px 6px;
	line-height: 1;
	z-index: 50;
	opacity: .85;
	transition: opacity .2s;
}
.booklet .b-tab-prev   {left: 10px;}
.booklet .b-tab-next   {right: 10px;}
.booklet .b-tab:hover  {
	background: #6b3a1f;
	opacity: 1;
}

/* Arrow Controls */
.booklet .b-arrow          {display:block; position:absolute; text-indent:-9999px; top:15%; height:100%; width:50px;}
.booklet .b-arrow div      {display:block; text-indent:-9999px; height:60px; width:50px; position:absolute; left:0; top:40%;}
.booklet .b-arrow-next     {right:-56px;}
.booklet .b-arrow-prev     {left:-6px;}
.booklet .b-arrow-next div {background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 60'%3E%3Cpath d='M15 10 L40 30 L15 50' stroke='%23d4a574' stroke-width='5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center center; background-size:30px;}
.booklet .b-arrow-prev div {background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 60'%3E%3Cpath d='M35 10 L10 30 L35 50' stroke='%23d4a574' stroke-width='5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center center; background-size:30px;}
.booklet .b-arrow:hover div {opacity:1}
.booklet .b-arrow-prev {left:-56px}
.booklet .b-arrow-next {right:-56px}

/* z-index fix */
body              {z-index:0;}
.b-menu           {z-index:100;}
.b-selector       {z-index:100;}
.booklet          {z-index:10;}
.b-pN             {z-index:10;}
.b-p0             {z-index:30;}
.b-p1             {z-index:20;}
.b-p2             {z-index:20;}
.b-p3             {z-index:30;}
.b-p4             {z-index:10;}
.b-prev           {z-index:40;}
.b-next           {z-index:40;}
.b-counter        {z-index:40;}

/* Menu Items */
.b-menu {height:40px; padding:0 0 10px;}
.b-selector {height:40px; position:relative; float:right; border:none; color:#cecece; cursor:pointer; font:normal 12px "Myriad Pro", Myriad, "DejaVu Sans Condensed","Liberation Sans", "Nimbus Sans L", Tahoma, Geneva, "Helvetica Neue", Helvetica, Arial, sans-serif;}
.b-selector .b-current {padding:8px 15px 12px; line-height:20px; min-width:18px; height:20px; display:block; background:#000; text-align:center;}
.b-selector-page {width:auto; margin-left:15px;}
.b-selector-chapter {width:auto;}
.b-selector:hover {color:#fff; background-position:left 0;}
.b-selector:hover .b-current {background-position:right 0;}
.b-selector ul {overflow:hidden; margin:0; list-style:none !important; position:absolute; top:40px; right:0; padding:0 0 10px; background:#000; width:240px;}
.b-selector li {border:none;}
.b-selector a {color:#cecece; height:14px; text-decoration:none; display:block; padding:5px 10px;}
.b-selector a .b-text {float:left; clear:none;}
.b-selector a .b-num {float:right; clear:none;}
.b-selector a:hover {color:#fff;}

/* Flipbook custom styles */
.flipbook .cover {
	color: #f0d5b0;
	padding: 20px;
}
.flipbook .cover h2 {
	font-size: 18px;
	margin-top: 8px;
	color: #d4a574;
	font-family: Georgia, serif;
	letter-spacing: 2px;
	text-transform: uppercase;
}
.flipbook .cover h3 {
	font-size: 24px;
	margin-top: 40px;
	margin-bottom: 5px;
	color: #f0d5b0;
	font-family: Georgia, serif;
}
.flipbook .cover .cover-divider {
	width: 60px;
	height: 2px;
	background: #d4a574;
	margin: 15px auto;
	border: none;
}
.flipbook .cover p {
	font-size: 14px;
	color: #d4a574;
	font-weight: 600;
	font-family: Georgia, serif;
}
.flipbook .cover .cover-portrait {
	margin-top: 20px;
}
.flipbook .cover .cover-portrait-inner {
	display: block;
	max-width: 120px;
	margin: 12px auto;
	border-radius: 50%;
	overflow: hidden;
	border: 3px solid #d4a574;
}
.flipbook .cover .cover-portrait-inner img {
	width: 100%;
	height: auto;
	display: block;
}

.flipbook-page {
	color: #3a2a1a;
	padding: 25px 30px;
	font-family: Georgia, "Times New Roman", serif;
}
.flipbook-page h3 {
	margin-top: 0;
	font-size: 18px;
	color: #5a3a2a;
	font-family: Georgia, serif;
	border-bottom: 1px dashed #c0a890;
	padding-bottom: 10px;
}
.flipbook-page article {
	font-size: 16px;
	color: #3a2a1a;
	overflow-y: auto;
	line-height: 1.7;
}
.flipbook-page article p {
	margin: 0 0 10px;
}
.flipbook-page .entry-date {
	display: block;
	margin-top: 15px;
	font-size: 12px;
	color: #888;
	font-style: italic;
}

/* Responsive */
@media (max-width: 830px) {
	.flipbook .cover h3 { margin-top: 20px; font-size: 20px; }
	.flipbook .cover .cover-portrait-inner { max-width: 80px; }
}
@media (max-width: 767px) {
	.flipbook { display: none; }
	.condolence-list-mobile { display: block !important; }
}

/* Custom nav buttons */
.flipbook-nav { text-align: center; margin-top: 16px; }
.flipbook-nav button {
	background: #4a2810;
	color: #f0d5b0;
	border: none;
	padding: 8px 20px;
	margin: 0 8px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	font-family: Georgia, serif;
	transition: background .2s;
}
.flipbook-nav button:hover {
	background: #6b3a1f;
}
