/*!
Theme Name: castironbooks_2021
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: castironbooks_2021
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

castironbooks_2021 is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/* DEV STUFF TO DELETE: All localhost links (http://localhost/castironbooks/) should be changed to live links (https://test.castironbooks.com/ or https://www.castironbooks.com/) before upload. */


/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
	- Header
	- Body
	- Content
	- Footer
	- Home page
	- Book page
# Components
	- Navigation
	- Carousel
	- Buttons
	- DK PDF
	- Scrolling anchors
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
	- Book links, etc.
	- Shop
# Plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
	margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
	display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
	background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
	font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
	border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
	display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
	display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
	color: #404040;
	font-family: 'Montserrat',-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 1rem;
	line-height: 1.5;
}

.garamond {
	font-family: 'EB Garamond', 'Times New Roman', Georgia, serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear:both;
	font-family:'EB Garamond', 'Times New Roman', Georgia, serif;
	font-weight:normal;
	word-wrap:break-word;
}

h1 {
	text-transform:uppercase;
	text-align:center;
    font-size: 2.25rem;
	margin: 1em 0;
}

h2 {
	font-size:2.1rem;
	line-height:1.9rem;
}
    h2.entry-title {
        margin-bottom:0.5rem;
        margin-top:0;
    }
        h2.entry-title a {
            border:none;
            color:#57535c;
            font-size:1.75rem;
            margin-bottom:0.5rem;
        }

h3 {
	font-size:1.7rem;
	margin-bottom:0.5rem;
    margin-left:0.5rem;
}
    .author-info h3,
    .artist-info h3 {
        margin-left:0;
    }
    @media screen and (max-width:500px) {
        h3 {
            text-align:center;
        }
    }
    

h4 {
	font-size:1.6rem;
	margin-bottom:0.5rem;	
}

h5 {
	font-size:1.4rem;
	margin-bottom:0.5rem;
}

h6 {
	font-size:1.25rem;
	margin-bottom:0.5rem;
}

p {
	font-size: 1rem;
	line-height: 1.875rem;
}

dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em 1.5em 0.5em;
	padding: 0.5rem 0 1rem 1em;
	border-left: 0.5em solid rgba(225,225,225,.7);
}

blockquote p:first-child {
	margin-top: 0;
}

blockquote footer {
	margin-left: 32px;
}

blockquote footer::before {
	content: '~ ';
	position: relative;
	top: 2px;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", courier, monospace;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 150%;
}

.small {
	font-size: 80%;
	line-height: calc(1.875rem * 0.8);
}

.centeredText {
	text-align: center;
}

article > .entry-content > p:first-of-type::first-line,
article > .entry-content > div > p:first-of-type::first-line,
.entry-content > .insert-page > p:first-of-type::first-line,
.author-content > p:first-of-type::first-line,
.artist-content > p:first-of-type::first-line {
	font-variant-caps:small-caps;
	font-size:1.1rem;    
}

#slb_viewer_wrap .slb_theme_slb_default .slb_data_title, 
#slb_viewer_wrap .slb_theme_slb_default .slb_group_status {
	font-family: 'Montserrat',-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
	font-size: 1rem !important;
    font-style: normal !important;
}

/* Elements
--------------------------------------------- */
body {
	background: #fff;
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin: 2em auto;
	width: 30%;
	min-width: 160px;
}

ul,
ol {
	margin: 0 0 1.5em 3em;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

img {
	height: auto;
	max-width: 100%;
}

figure {
	margin: 1em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

/* Links
--------------------------------------------- */
a {
	color: #cb2c30;
	text-decoration: none;
}

a:visited {
	color:#840719;
}

a:hover, a:focus, a:active {
	color:#dd252a;
}

a:focus {
	outline:thin dotted;
}

a:hover, a:active {
	outline:0;
}

p a,
li a,
td a,
blockquote a {
	border-bottom:1px solid #3E363F;
}

p a:hover,
li a:hover,
td a:hover,
blockquote a:hover {
	border-bottom:3px solid #3E363F;	
}


.nav-menu a,
a.element,
div.element a {
	border-bottom:none;
}


.no-border {
	border:none !important;
}

/* Forms
--------------------------------------------- */
button, input[type="button"], input[type="reset"], input[type="submit"], input[type="file"] {
	border: 1px solid;
	border-color: #ccc #ccc #bbb;
	border-radius: 3px;
	background: #e6e6e6;
	color: #000;
	color: rgba(0, 0, 0, 0.8);
	font-size: 12px;
	font-size: 0.75rem;
	line-height: 1;
	padding: .6em 1em .4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}

.mc4wp-form label, .mc4wp-form input {
	display: block;
	width: 100%;
	margin: 5px auto 0 auto;
	max-width: 600px;
}

.mc4wp-form input {
	border-radius: 0;
	background: white;
	border: 1px solid #2c2c2c;
}
    .mc4wp-form input[type="submit"]:hover {
        border:1px solid #2c2c2c;
        font-weight:bold;
        box-shadow:inset 0 0 0 1px #2c2c2c;
        cursor:pointer;
    }

.mc4wp-form p {
	margin: 0;
}

input.wpcf7-file {
	border: medium none;
}

input.wpcf7-submit {
	width: 100%;
	border: medium none;
	padding: 10px 0;
}
    input.wpcf7-submit:hover {
        font-weight: bold;
        cursor: pointer;
    }

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/* Header
--------------------------------------------- */

#masthead {
    background-color: #fff;
}

#masthead {
	position: fixed;
	width: 100%;
	background-color: #fff;
	top: 0;
	z-index: 999999999;
    transform: translateY(0);
	transition: box-shadow 1s ease, transform 1s ease, height 1s ease;
}
    @media screen and (min-width:700px) {
        #masthead {
            background-color:#fff;
		}
	}
	@media screen and (max-width:700px) {
		#masthead {
			height:90px;
            background:rgba(0,0,0,0.7);
		}
	}
	@media screen and (max-height:400px) {
		#masthead {
			/*height:60px;*/
		}
	}

body.pageScrolled #masthead {
    /*top:-140px;*/
    position:fixed;
    box-shadow:0 5px 5px rgba(0,0,0,0.01);
}
	@media screen and (max-width:700px) {
		body.pageScrolled #masthead {
			height:42px;
		}
	}
    
body.pageDeepScrolled #masthead {
    transform:translateY(-300px);
}

.site-branding {
	text-align: center;
}

body.home .site-title {
	width: 140px;
	height: calc(140px * 0.453);
	/*position: relative;*/
}

.site-title {
	width: 240px;
	height: calc(240px * 0.453);
	margin-left: auto;
	margin-right: auto;
	text-indent: -99999px;
	direction: ltr;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: 0 0;
	transition: all 1s ease;
	position: relative;
}

/*.site-title {
	background-image: url('../../../assets/cast_iron_books_logo.png');
}*/
    body.pageScrolled .site-title {
        float: left;
        margin-bottom: -38px;
        height: 30px;
        background-size: cover;
        margin-top: 5.5px;
        margin-left: 2.5px;
        width: 33px;
        z-index: 999;
    }
    
    
@media screen and (max-width:700px) {
    p.site-title {
        width:140px;
        height:calc(140px * 0.453);
        background-image:url('../../../assets/cast_iron_books_logo_white.png');
        position:absolute;
        transform:translateX(10px);
    }
    
    body.pageScrolled .site-title {
        transform:translateX(4px);        
    }
}
@media screen and (min-width:700px) {
    .site-title {
        background-image:url('../../../assets/cast_iron_books_logo.png');
    }
    body.home:not(.pageScrolled) .site-title {
        width:300px;
        height:calc(300px * 0.453);
    }
}
    
p.site-title a {
	text-decoration: none;
	color: rgb(31,31,31);
	z-index: 99999;
	display: block;
	border: none;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}

.site-description { /* TESTSITE ONLY*/
	position: absolute;
	top: 0;
	right: 0;
	font-size: 0.8rem;
	line-height: 1rem;
	margin: 0;
	padding: 2px 4px;
	z-index: 999;
	color: #cecece;
	background-color: #cb2c30;
}

/* Body
--------------------------------------------- */
body {
	background: #faf8f2;
	overflow-x: hidden;
}

/* Content and main, etc.
--------------------------------------------- */
#content {
    visibility: visible;
}

body:not(.pageLoaded) #content {
    visibility: hidden;
}

@media screen and (min-width:700px) {
    #content {
        margin-top: 250px;
    }
}

main#primary {
	margin: 0 1rem 1.5rem;
}
@media screen and (max-width:700px) {
    /*body:not(.home) main#primary {
        margin-top: 150px;
    } */
    
    body main#primary {
        margin-top: 150px;
    }
}

/* Footer
--------------------------------------------- */
#colophon {
	padding-top: 10px;
	background-color: #2C2C2C;
	margin-top: 100px;
	margin-bottom: -22px;/*???*/
}

#colophon::before {
	background-image: url('../../../assets/cast_iron_books_logo_book_only.png');
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 38px;
	content: '';
	display: block;
	border: 1px solid #ccc;
	height: 64px;
	width: 64px;
	margin: 0 auto;
	border-radius: 50%;
	background-color: #fff;
	box-shadow: inset 0 0 0 1px #2C2C2C;
}

.menu-footer-container {
	background-color: #2C2C2C;
	padding: 53px 0;
}  

#footer-menu {
	list-style: none;
	text-align: center;
	margin: 0;
	font-size: 0.9rem;
    padding:0;
}
    #footer-menu li {
        display: inline-block;
        margin: 0 15px;
    }
        #footer-menu li a {
            text-decoration: none;
            color: #cfd3c2;
            border-bottom: none;
        }
        #footer-menu li a:hover {
            border-bottom:1px solid;
            color:#fff;
        }
        
#colophon .soc-media-wrap {
	width: 100%;
	background: #fff;
}
#colophon .soc-media {
	background-color: #fff;
	padding: 48px 0 30px;
	max-width: 780px;
	margin: 0 auto;
}

#colophon .soc-media aside {
	width: calc(50% - 10px);
	min-width: 300px;
}
@media screen and (min-width:700px) {
    #colophon .soc-media aside {
        vertical-align: middle;
        display: inline-block;
	}	
    
    #colophon .soc-media aside h3 {
        margin-top:0;
    }    
}

#colophon .soc-media ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
@media screen and (max-width:700px) {
    #colophon .soc-media ul {
        text-align: center;
        margin-bottom: 30px;
    }
}

#colophon .soc-media li:first-of-type {
	display: inline-block;
}
#colophon .soc-media li {
	display: inline-block;
	margin: 0 0 0 20px;
}
@media screen and (max-width:600px) {
    #colophon .soc-media li {
        margin: 0;
    }
}

#colophon .soc-media a {
	color: #57535c;
	border: none;
}
#colophon .instagram-link, #colophon .twitter-link {
	padding-left: 22px;
	background-size: 18px;
	background-repeat: no-repeat;
	background-position: center left;
	text-decoration: none;
}

#colophon .instagram-link {
	background-image: url('../../../assets/instagram_logo_darkgrey.png');
}
#colophon .twitter-link {
	background-image: url('../../../assets/twitter_logo_darkgrey.png');
}

#colophon .soc-media aside h3 {
	margin-top: 0;
}

.site-info {
	background-color: #d6d6d6;
	padding: 30px 0 10px;
}

.site-info p {
	font-size: 0.8rem;
	text-align: center;
}

.site-info .privacy-policy {
	margin-top: 0;
}

.site-info .copyright {
	font-size: 0.7rem;
	margin-bottom: 0;
}

.site-info .privacy-policy a, .site-info .copyright a {
	color: #57535c;
}

/* Artist and author styles
--------------------------------------------- */
.author-info {
	margin-top: 150px;
	margin-bottom: 100px;
}
.artist-info {
	margin-bottom: 100px;
}

.author-info img, .artist-info img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
}
@media screen and (min-width:640px) {
    .author-info img, .artist-info img {
        float: left;
        margin: 28px 20px 0 0;
    }
}
@media screen and (max-width:640px) {
    .author-info img, .artist-info img {
        margin: 0 auto;
        display: block;
    }
}
    
.author-content, .artist-content {
	width: calc(100% - 300px);
	min-width: 300px;
	display: inline-block;
}
    
@media screen and (max-width:640px) {
    .author-info, .artist-info {
        width: calc(100% - 20px);
        margin-left:auto;
        margin-right:auto;
    }
    .author-content, .artist-content {
        width: 100%;        
    }
    
}
.author-info h3, .artist-info h3 {
	margin-left: 0;
}
    
.author-artist {
	font-weight: bold;
}

.author-artist, 
.book-more-details ul {
	list-style: none;
	padding: 0;
	margin: 0 0 1rem;
}

.author-artist, 
.book-more-details ul {
	list-style: none;
}

/* Home page
--------------------------------------------- */
body.home #primary > article > header.entry-header {
	display: none;
}

#frontPageBannerContent {
	background: linear-gradient(0deg, rgba(193,179,135,1) 0%, rgba(221,217,204,1) 75%);
	border-radius: 10px;
	padding: 10px 20px 20px 0;
}

#frontPageBannerCover {
	margin: 0 30px 0 15px;
	background-position: center;
	position: relative;
	transform: rotate(-6deg);
	min-width: 210px;
}
@media screen and (max-width:700px) {        
    #frontPageBannerCover {
        margin: 0 auto;
    }
}
#frontPageBannerCover a {
	height: 100%;
	width: 100%;
}
@media screen and (min-width:700px) {
    #frontPageBannerCover a {
        top: 0;
        left: 0;
        position: absolute;
        display: inline-block;
    }
}

#frontPageBannerCover img {
	box-shadow: 6px 6px 12px rgba(0,0,0,0.5);
}

#frontPageBannerText {
	margin-left: 20px;
}

#frontPageBannerText h2 {
	margin-top: 40px;
}
@media screen and (min-width:700px) {
    #frontPageBannerElementsWrapper {
        display: flex;
        max-width: 1200px;
        margin: 0 auto;
    }
}

#frontPageBannerlink a {
	padding: 10px 20px;
	margin-top: 10px;
	color: #fefefe;
	background-color: #cb2c30;
	border-radius: 5px;
	position: relative;
	display: inline-block;
}

#frontPageBannerlink a {
	color: #fefefe;
}

#frontPageBannerTextWrapper p {
    margin: 6px 0;    
}

#frontPageBannerTextWrapper p:first-of-type {
    margin-top:0;    
}

#frontPageBannerTextWrapper p:last-child {
    margin-bottom:40px;    
}

.cast-iron-intro-book h2 {
	text-align: center;
	margin: 0 0 60px;
	font-size: 3rem;
}

.cast-iron-intro-book h2::before {
	content: '';
	background-image: url('../../../assets/cast_iron_books_logo_book_only_grey_white.png');
	background-repeat: no-repeat;
	background-position: center;
	background-blend-mode: multiply;
	background-size: auto 100%;
	display: inline-block;
	width: 100%;
	height: 80px;
	opacity: 0.25;
	bottom: -65px;
	position: relative;
}

.cast-iron-intro-book-wrap .book-cover {
	width: 33%;
	min-width: 280px;
	margin: 0 auto;
	max-width: 640px;
}

body.home .book-cover img {
	display: none;
}

body.home .book-cover img.link {
	display: inline-block;
	margin: 0 auto;
}

body.home .carousel .book-cover img.link {
	position: relative;
	left: 50%;
	transform: translateX(-50%) translateY(-50%);
	top: 50%;
	box-shadow: 0 0 20px rgba(0,0,0,.1);
}

.cast-iron-intro-book-wrap .cast-iron-intro-book .author-artist, 
body:not(.noCarousel) .cast-iron-intro-book-wrap .cast-iron-intro-book .book-links {
	text-align: center;
}

.cast-iron-intro-book-wrap .cast-iron-intro-book {
        flex:1 0 calc(50% - 0.2rem);
        min-width:320px;
        padding:2rem;
        background-color:rgba(255, 255, 255, 1);
    }
    .cast-iron-intro-book-wrap .cast-iron-intro-book:nth-child(1) {
        flex:1 0 calc(100% - 0.2rem);
    } 

body.home .cast-iron-intro-book .book-blurb {
	max-width: 1080px;
	margin-left: auto;
	margin-right: auto;
}
body.home .cast-iron-intro-book .book-blurb p:first-of-type::first-line {
    font-variant-caps:small-caps;
	font-size:1.1rem;    
}

.cast-iron-intro {
	margin-top: 4rem;
}

/*body.page-cast-iron-books-temp-frontpage .entry-content > div, */
body.home .entry-content > div:not(:first-of-type) {
	margin-top: 4rem;
}

/* Intro */
.cast-iron-intro-book {
	display: inline-block;
	padding: 2rem;
    width:100%;
}
@media screen and (max-width:640px) {
    .cast-iron-intro-book {
        width:100%;
    }
}
/*body.page-cast-iron-books-temp-frontpage .cast-iron-intro-book-wrap .book-more-details,
body.page-cast-iron-books-temp-frontpage .cast-iron-intro-book-wrap .book-gallery,
body.page-cast-iron-books-temp-frontpage .cast-iron-intro-book-wrap .author-info,
body.page-cast-iron-books-temp-frontpage .cast-iron-intro-book-wrap .artist-info,*/
body.home .cast-iron-intro-book-wrap .book-more-details,
body.home .cast-iron-intro-book-wrap .book-gallery,
body.home .cast-iron-intro-book-wrap .author-info,
body.home .cast-iron-intro-book-wrap .artist-info,
body.home #mc_embed_signup {
	display: none;
}

@media screen and (min-width:500px) {
    .cast-iron-intro-book-wrap .cast-iron-intro-book:nth-child(2),
    .cast-iron-intro-book-wrap .cast-iron-intro-book:nth-child(5),
    .cast-iron-intro-book-wrap .cast-iron-intro-book:nth-child(6),
    .cast-iron-intro-book-wrap .cast-iron-intro-book:nth-child(9),
    .cast-iron-intro-book-wrap .cast-iron-intro-book:nth-child(10),
    .cast-iron-intro-book-wrap .cast-iron-intro-book:nth-child(13) {
        background-color:rgba(187, 191, 172, 0.5);
    }
    .cast-iron-intro-book-wrap .cast-iron-intro-book:nth-child(3),
    .cast-iron-intro-book-wrap .cast-iron-intro-book:nth-child(4),
    .cast-iron-intro-book-wrap .cast-iron-intro-book:nth-child(7),
    .cast-iron-intro-book-wrap .cast-iron-intro-book:nth-child(8),
    .cast-iron-intro-book-wrap .cast-iron-intro-book:nth-child(11),
    .cast-iron-intro-book-wrap .cast-iron-intro-book:nth-child(12),
    .cast-iron-intro-book-wrap .cast-iron-intro-book:last-child {
        background-color:rgba(255, 255, 255, 1);
    }        
}

/* Coming soon */
body.home .coming-soon-wrap {
	margin-left: auto;
	margin-right: auto;
}

.coming-soon {
	background-color: rgb(210, 214, 198);
}

.coming-soon .cast-iron-intro-book {
	min-width: 160px;
	flex-grow: 1;
}

@media screen and (max-width:500px) {
    .coming-soon .cast-iron-intro-book {
        width:100%;
    }
}

@media screen and (min-width:500px) and (max-width:960px) {
    .coming-soon .cast-iron-intro-book {
        width:49%;
    }
}

@media screen and (min-width:960px) {
    /*.cast-iron-intro-book-wrap .cast-iron-intro-book {
        width:calc( 100% / 3 );
        display:inline-block;
    }*/
    /*.book-catalogue .cast-iron-intro-book {
        width:calc( 100% / 1 );
        display:inline-block;
    }*/
    .coming-soon .cast-iron-intro-book {
        width:calc( 100% / 4 );
        display:inline-block;
    }
}

@media screen and (max-width:640px) {
    .cast-iron-intro-book {
        width:100%;
    }
}

.coming-soon h4 {
	font-size: 1.3rem;
	line-height: 1.5rem;
	margin-top: 0;
	text-align: center;
}

/*body.page-cast-iron-books-temp-frontpage .coming-soon-wrap .book-cover, */
body.home .coming-soon-wrap .book-cover {
	max-width: 320px;
	margin: 0 auto;
	text-align: center;
}

body.home .coming-soon-wrap .book-cover img {
	width: auto;
	max-height: 400px;
	max-width: 100%;
}
@media screen and (min-width:600px) and (max-width:700px) {
    body.home .coming-soon-wrap .book-cover img {
        max-height: 330px;
    }
}
@media screen and (max-width:600px) {
    body.home .coming-soon-wrap .book-cover img {
        max-height: 290px;
    }
}

.coming-soon .author-artist, 
.coming-soon .book-links {
	text-align: center;
}

.coming-soon {
	min-width: 320px;
	display: flex;
	flex-wrap: wrap;
}

/*body.page-cast-iron-books-temp-frontpage .coming-soon-wrap .book-more-details,
body.page-cast-iron-books-temp-frontpage .coming-soon-wrap .book-gallery,
body.page-cast-iron-books-temp-frontpage .coming-soon-wrap .author-info,
body.page-cast-iron-books-temp-frontpage .coming-soon-wrap .artist-info,
body.page-cast-iron-books-temp-frontpage .coming-soon-wrap .kickstarter-link,*/
body.home .coming-soon-wrap .book-more-details,
body.home .coming-soon-wrap .book-gallery,
body.home .coming-soon-wrap .author-info,
body.home .coming-soon-wrap .kickstarter-link {
	display: none;
}

/*body.page-cast-iron-books-temp-frontpage .book-catalogue-wrap .book-more-details,
body.page-cast-iron-books-temp-frontpage .book-catalogue-wrap .book-gallery,
body.page-cast-iron-books-temp-frontpage .book-catalogue-wrap .author-info,
body.page-cast-iron-books-temp-frontpage .book-catalogue-wrap .artist-info,
body.page-cast-iron-books-temp-frontpage .book-catalogue-wrap .book-blurb p:not(:first-child),
body.page-cast-iron-books-temp-frontpage .coming-soon-wrap .book-blurb p:not(:first-child),*/
/*body.home .book-catalogue-wrap .book-more-details,
body.home .book-catalogue-wrap .book-gallery,
body.home .book-catalogue-wrap .author-info,
body.home .book-catalogue-wrap .artist-info,
body.home .book-catalogue-wrap .book-blurb p:not(:first-child),*/
body.home .coming-soon-wrap .book-blurb p:not(:first-child),
body.home .coming-soon-wrap blockquote,
body.home .coming-soon-wrap hr {
	display: none;
}

@media screen and (min-width:960px) {
    .coming-soon .cast-iron-intro-book:nth-child(2n) {
        background-color:rgba(187, 191, 172, 0.5);
    }
}
@media screen and (max-width:500px) {
    .cast-iron-intro-book-wrap .cast-iron-intro-book:nth-child(2n) {
        background-color:rgba(187, 191, 172, 0.5);
    }
    .coming-soon .cast-iron-intro-book:nth-child(2n) {
        background-color:rgba(187, 191, 172, 0.5);
    }
}
@media screen and (min-width:500px) and (max-width:960px) {
    .coming-soon .cast-iron-intro-book:nth-child(2),
    .coming-soon .cast-iron-intro-book:nth-child(3),
    .coming-soon .cast-iron-intro-book:nth-child(6),
    .coming-soon .cast-iron-intro-book:nth-child(7),
    .coming-soon .cast-iron-intro-book:nth-child(10),
    .coming-soon .cast-iron-intro-book:nth-child(11) {
        background-color:rgba(187, 191, 172, 0.5);
    }
    .coming-soon .cast-iron-intro-book:nth-child(4),
    .coming-soon .cast-iron-intro-book:nth-child(5),
    .coming-soon .cast-iron-intro-book:nth-child(8),
    .coming-soon .cast-iron-intro-book:nth-child(9),
    .coming-soon .cast-iron-intro-book:nth-child(12),
    .coming-soon .cast-iron-intro-book:nth-child(13) {
        background-color:rgba(255, 255, 255, 0.0);
    }
}

/* Submissions */
.submissions-wrap > div {
	display:inline-block;
	margin:0;
	vertical-align:top;
	padding:1rem 2rem 2rem;
    min-width:320px;
}

.submissions-wrap div.submissions {
	width:calc(66% - 2rem);
}

.submissions-wrap div.newsletter-signup {
	width:calc(33% - 2rem);
    background-color:rgba(207,211,194,1);
}
    
@media screen and (max-width:960px) {
    .submissions-wrap div.submissions,
    .submissions-wrap div.newsletter-signup {
        width:calc(100%);
    }
}

/* Book page
--------------------------------------------- */
.book-page .book-cover .link {
	display: none;
}

body.book-page .book-page-link {
	display: none;
}

#mc_embed_signup {
	padding: 20px;
	background-color: #ddd9cc;
	border-radius: 3px;
	margin-bottom: 10px;
}

#mc_embed_signup input {
	border-radius: 0;
	background: white;
	border: 1px solid #2c2c2c;
	width: 100%;
	margin-top: 5px;
}
    #mc_embed_signup input[type="submit"]:hover {
        border:1px solid #2c2c2c;
        font-weight:bold;
        box-shadow:inset 0 0 0 1px #2c2c2c;
        cursor:pointer;
    }
    
.book-page .book-gallery img {
	max-width: calc(50% - 10px);
	margin: 0 5px 5px 5px;
}
    
/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Navigation
--------------------------------------------- */
.main-navigation {
	clear: both;
	display: block;
	float: left;
	width: 100%;
	background-color: rgba(0,0,0,0.7);
}

.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
	padding-left: 0;
	text-align: center;
}
@media screen and (min-width: 700px) {
    .main-navigation ul {
        display: block;
        position: relative;
        left: 40px;
    }
}

.main-navigation ul ul {
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
	float: left;
	position: absolute;
	top: 100%;
	left: -999em;
	z-index: 99999;
}

.main-navigation ul ul ul {
	left: -999em;
	top: 0;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
	display: block;
	left: auto;
}

.main-navigation ul ul a {
	width: 200px;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
	left: auto;
}

.main-navigation li {
	position: relative;
	display: inline-block;
}

.main-navigation a {
	display: block;
	text-decoration: none;
	padding: 8px 15px;
	margin: 0 2px;
	color: rgb(31,31,31);
	height: 40px;
	border-bottom: none !important;
}
    .main-navigation a:hover {
		background-color:rgb(232,232,232);
		color:rgb(31,31,31);
	}	
	.main-navigation .current_page_item a {
		background-color:rgb(245,245,245);
		color:rgb(31,31,31);
	}	
	.main-navigation .current_page_item a:hover {
		background-color:rgb(225,225,225);
		color:rgb(10,10,10);
	}	
	.main-navigation a:active {
		background-color:rgb(31,31,31);
		color:#fefefe;
	}
       
    @media screen and (min-width: 700px) {
        .main-navigation a {
            color: rgb(232,232,232);
        }
    }
    
#primary-menu .cart-link {
	height: 30px;
	width: 30px;
	top: 5px;
} 
#primary-menu .cart-link a {
	background-image: url('../../../assets/cart.png');
	background-color: #cb2c30;
	background-position: center 2px;
}
#primary-menu .cart-link a:hover {
    background-color:#cecece;
    background-position:center -25px;
}
@media screen and (min-width: 700px) {
    #primary-menu .cart-link {
        left: 24px;
    }
}
#primary-menu .instagram-link {
	margin-left:-5px;
}

#primary-menu .twitter-link, #primary-menu .instagram-link {
	width: 40px;
	left: 32px;
}
    @media screen and (max-width:700px) {
		#primary-menu .cart-link {
			width:100%;
		}
        
		#primary-menu .twitter-link, 
        #primary-menu .instagram-link {
            width: 50%;
            left: 0;
            padding: 5px 0;
        }
	}

#primary-menu .cart-link a,
#primary-menu .twitter-link a,
#primary-menu .instagram-link a {
	width:100%;
	height:100%;
	background-repeat:no-repeat;
	background-position:center center;
	background-size:28px;
	text-indent:-9999px;
	direction:ltr;
	display:block;
	margin:0;
}

	#primary-menu .cart-link a {
        background-image:url('../../../assets/cart.png');
        background-color:#cb2c30;
        background-position:center 2px;
    }
    @media screen and (min-width: 700px) {
        #primary-menu .cart-link a {
            border-radius: 50%;
        }
    }

	#primary-menu .cart-link a:hover {
        background-color:#cecece;
        background-position:center -25px;
    }
    #primary-menu .twitter-link a {
        background-image: url('../../../assets/twitter_logo_red.png');
    }
    #primary-menu .instagram-link a {
        background-image: url('../../../assets/instagram_logo_red.png');
    }
    
/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
	display: block;
}

.menu-toggle {
	border: medium none;
	padding: 15px 20px;
	margin: 0 auto;
	cursor: pointer;
	width: 30%;
	text-indent: 20px;
	background-image: url('../../../assets/menu_grippy_white.png');
	background-size: auto 16px;
	background-repeat: no-repeat;
	background-position: calc(50% - 22px) 50%;
	border-radius: 0;
	color: #fff;
	position: absolute;
	height: 100%;
	width: calc(60vw - 10px);
	right: 0;
	transition: width 1s ease;
	background-color: rgba(0,0,0,0);
}

body.pageScrolled .menu-toggle {
	width:100vw;	
}

.toggled .menu-toggle {
	background-color:rgb(31,31,31);
	color:#fefefe;
	background-image:url('../../../assets/menu_close.png');	
}

@media screen and (max-width:700px) {
	.main-navigation ul {
		position:absolute;
		width:100%;
		background-color:#fff;
		/*background-color:rgba(255,255,255,0.9);*/
		top:90px;
        z-index:999;
	}
	
	body.pageScrolled .main-navigation ul {
		top:42px;
	}
	
	.main-navigation li {
		width:calc(100% - 30px);
		width:calc(100%);
	}
}

@media screen and (min-width:700px) {
	.menu-toggle {
		display:none;
	}
	.main-navigation ul {
		display:block;
		position:relative;
		left:40px;
	}
}


.site-main .comment-navigation,
.site-main
.posts-navigation,
.site-main
.post-navigation {
	margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	text-align: end;
	flex: 1 0 50%;
}

/* Carousel
--------------------------------------------- */
body.noCarousel .carousel {
    display: none;
}

body.noCarousel #noCarouselContent {
    display:block;
}

body:not(.noCarousel) #noCarouselContent {
    display:none;
}

body:not(.noCarousel) .main-carousel {
    height: 600px;
}

.carousel-nav {
	height: 200px;
}
    body.noCarousel .carousel-nav {
        display: none;
    }

.carousel-cell {
	display: block;
	margin-right: 5px;
	margin-left: 5px;
	border-radius: 5px;
	overflow: hidden;
}

.main-carousel .carousel-cell {
	height: 100%;
	width: calc(100% - 10px);
    background-color: #ddd9cc;
}

.carousel-nav .carousel-cell {
	height: 200px;
	width: 200px;
    background-color: #ddd9cc;
    opacity: .8;
}

.carousel-nav .carousel-cell.is-nav-selected {
	/*background: #e6dec4;*/
    opacity:1;
}

.main-carousel .insert-page {
	display: flex;
	height: 100%;
	/* grid-template-columns: calc(35%) auto; */
	z-index: 9;
	position: relative;
    color:#fff;
}

.main-carousel .book-cover {
	/* width: 100%; */
    width:50%;
	padding: 20px;
	height: 100%;
	/*flex-grow: 1;*/
}

.main-carousel .book-cover a {
	width: 100%;
	display: block;
	height: 100%;
	position: relative;
}

.main-carousel .book-cover img.link {
	display: inline-block;
	max-height: 100%;
	width: auto;
}

.main-carousel .book-links li:first-of-type {
    display:inline-block;
}

.main-carousel .book-links li {
    display:none;
}

.main-carousel .book-blurb {
	padding: 1px 20px 20px;
	background: rgba(76, 76, 76, .7);
	border-radius: 5px;
	box-shadow: inset 0px 0px 256px rgba(0,0,0,0.2);
	position: relative;
	top: calc(50% - 50px);
	transform: translateY(-50%);
}

body.home .main-carousel .blurb-excerpt p:first-child {
	font-variant: small-caps;
	font-size: 1.2rem;
	margin-bottom: 1.7rem;
}

body.home .main-carousel .blurb-excerpt p:first-child::first-letter {
	float: left;
	font-style: normal;
	font-size: 4.3rem;
	text-transform: capitalize;
	font-family: 'EB Garamond', 'Times New Roman', Georgia, serif;
	margin-right: 3px;
	margin-top: 7px;
    color: #cb2c30;
}

.main-carousel .book-info {
	width: 100%;
	padding: 20px 55px 20px 0;
	/*flex-grow: 2;*/
}

.main-carousel .insert-page .author-artist,
.main-carousel .insert-page .book-more-details,
.main-carousel .insert-page .book-links li a:not(.book-page-link),
.main-carousel .insert-page .blurb-content,
.main-carousel .insert-page .book-gallery,
.main-carousel .insert-page .author-artist,
.main-carousel .insert-page .author-info,
.main-carousel .insert-page .artist-info {
	display: none;
}

body:not(.noCarousel) .main-carousel .background {
	background-position: center;
	background-size: 110% auto;
	background-repeat: no-repeat;
	filter: blur(10px);
	height: 120%;
	width: 120%;
	position: absolute;
	top: -10%;
	left: -10%;
	z-index: 0;
	opacity: .96;
}

.carousel-nav .carousel-cell {
    background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

.future .background,
.carousel-nav .carousel-cell.future {
	background-image: url('../../../assets/books/future/future_cover.jpg');
}

.plagueAndDoctorCaim .background,
.carousel-nav .carousel-cell.plagueAndDoctorCaim {
	background-image: url('../../../assets/books/doctor_caim/doctorcaim_cover.jpg');
}

.candles .background,
.carousel-nav .carousel-cell.candles {
	background-image: url('../../../assets/books/candles/candles_cover.jpg');
}

.theBoyWithNailsForEyes .background,
.carousel-nav .carousel-cell.theBoyWithNailsForEyes {
	background-image: url('../../../assets/books/tbwnfe/tbwnfe_cover.jpg');
}

.hansVogelIsDead .background,
.carousel-nav .carousel-cell.hansVogelIsDead {
	background-image: url('../../../assets/books/hans_vogel/hans_vogel_cover.jpg');
}

.isabellaAndBlodwen .background,
.carousel-nav .carousel-cell.isabellaAndBlodwen {
	background-image: url('../../../assets/books/isabellablodwen/isablod_cover.jpg');
}

/* Buttons
--------------------------------------------- */
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce a.button,
.button-link,
a.dkpdf-button {
	background-color: #cb2c30;
	color: #fefefe !important;
	padding: 4px 12px;
	border-radius: 14px;
	border: none;
	/*margin: 0 0 10px 10px;*/
	display: inline-block;
	transition: none !important;
	line-height: 24px;
}

.woocommerce #respond input#submit:hover, 
.woocommerce #respond input#submit:active, 
.woocommerce a.button:hover, 
.woocommerce a.button:active, 
.woocommerce button.button:hover, 
.woocommerce button.button:active, 
.woocommerce input.button:hover,
.woocommerce input.button:active,
#add_payment_method .wc-proceed-to-checkout a.checkout-button:hover,
#add_payment_method .wc-proceed-to-checkout a.checkout-button:active,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:active,
.woocommerce-checkout .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce-checkout .wc-proceed-to-checkout a.checkout-button:active,
.woocommerce a.button:hover,
.woocommerce a.button:active,
.button-link:hover, 
.button-link:active,
a.dkpdf-button:hover, 
a.dkpdf-button:active {
    background-color:#cb2c30;
    box-shadow:0 0 0 4px #57535c;
    border:none;
}

/* DK PDF
--------------------------------------------- */

.dkpdf-button-container {
    padding:0 !important;
    margin-bottom:5px;
    float:none !important;
}

body.home li.pdfButton {
    display:none;
}

/* Scrolling anchors
--------------------------------------------- */
#scrollPixelAnchor {
	position: absolute;
	top: 0;
	left: 0;
	width: 1px;
	height: 1px;
}

#backToTop {
	position: fixed;
	bottom: 10px;
	right: 10px;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background-color: #140105;
	opacity: .6;
	transform: translateY(200%);
	transition: transform 1s ease;
	cursor: pointer;
	z-index: 9999999999;
}
    #backToTop:hover {
        opacity: 1;
    }
    body.pageScrolled #backToTop {
        transform: translateY(0);
    }
    #backToTop div {
        background-image: url('../../../assets/up_arrow.png');
        background-position: center -4px;
        height: 100%;
        width: 100%;
        background-size: contain;
        background-repeat: no-repeat;
    }

/* Posts and pages
--------------------------------------------- */
.sticky {
	display: block;
}

.post,
.page {
	margin: 0 0 1.5em;
}

.updated:not(.published) {
	display: none;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 1.5em 0 0;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

body:not(.home):not(.page-shop):not(.archive):not(.blog) #primary .entry-content > * {
	max-width: 780px;
	margin-left: auto;
	margin-right: auto;
}

/* Comments
--------------------------------------------- */
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
	/*margin: 0 0 1.5em;*/
    margin: 0 auto;
}

.widget select {
	max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
	display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
	grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
	grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
	grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
	display: block;
}

/* Book links, etc.
--------------------------------------------- */
.book-summary {
	/*display: flex;*/
}

.book-summary > * {
	/*width: 50%;
	position: relative;*/
}

@media screen and (min-width:700px) {
    .more-details-links-wrap {
        display: flex;
    }

    .more-details-links-wrap > * {
        width: 50%;
    }
}

.book-links {
	list-style: none;
	/*padding: 0;*/
	/*margin: 20px 0 10px;*/
	z-index: 9999;
	position: relative;
	/*display: block;*/    
	display: table-cell;
	margin: 0 0 10px;
    padding:0;
}
body:not(.home) .book-links {
	background-color: #ddd9cc;
	padding: 10px 15px;
	border-radius: 5px;
}


.book-links li {
    margin-bottom:5px;
}
.book-links li > span {
	display: inline-block;
	min-width: 182px;
	background-color: #57535c;
	color: #fefefe;
	padding: 4px 10px;
	border-radius: 22px;
	margin-right: 6px;
}

/* Shop
--------------------------------------------- */
.woocommerce.add_to_cart_inline {
	margin: 0 !important;
	border: none !important;
	padding: 0 !important;
    display: inline-block;
}

.book-links .price, .book-links .amount {
	color: rgb(106, 124, 83) !important;
	font-weight: 400 !important;
	font-size: .9em !important;
	position: absolute;
	z-index: 9;
	margin: -12px 0 0 116px;
	background-color: #faf8f2;
	padding: 0 6px;
	box-shadow: 0 0 0 3px #cb2c30;
	border-radius: 14px;
	scale: 68%;
	letter-spacing: 1px;
}

.woocommerce a.added_to_cart {
	margin-left: 10px;
}

.woocommerce #respond input#submit.loading::after, .woocommerce a.button.loading::after, .woocommerce button.button.loading::after, .woocommerce input.button.loading::after {
	top: 4px !important;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}