/*
Theme Name:     Jaimie Casey
Theme URI:      https://jaimiecasey.com/
Template:       kadence
Author:         Carrie Loves Design Studio
Author URI:     https://www.carrieloves.com
Description:    A custom Kadence child theme for Jaimie Casey
Version:        1.0.0
License:        GNU General Public License v3.0 (or later)
License URI:    https://www.gnu.org/licenses/gpl-3.0.html
Text Domain:    kadence-child
*/

/* Theme customization starts here
-------------------------------------------------------------- */

em, i {
	font-family: 'Lora', serif;
	font-style: italic;
}

/* Books Page
---------------------------------------------------------------------------- */

h1#pagetitle {
    text-align: center;
    font-size: 40px;
    line-height: 1.4;
}

#allbookscontainer,
#allaudiobookscontainer,
#alllaceybookscontainer { 
	display: block; 
	position: relative; 
	width: 100%; 
}

#bookgrid {
    display: block;
    position: relative;
    margin-bottom: 5px;
    width: 100%;
}

h2.seriestitle {
	margin-bottom: 44px;
}

#bookentry {
    position: relative;
    display: inline-block;
    vertical-align: top;
    width: 21%;
    margin-right: 1.5%;
	margin-left: 1.5%;
    margin-bottom: 40px;
}

#bookentry img { 
	width: 100%; 
	height: auto; 
	margin-bottom: 10px;
}


@media only screen and (max-width: 1230px) {

	#bookgrid {
	    margin-bottom: 10px;
	}
	
	#bookentry {
	    margin-bottom: 35px;
	}

}

@media only screen and (max-width: 1040px) {

	#bookgrid {
	    margin-bottom: 20px;
	}
	
	#bookentry {
	    margin-bottom: 26px;
	}

}

@media only screen and (max-width: 800px) {

	#bookentry { 
	    width: 43.5%;
	    margin-right: 3.25%;
		margin-left: 3.25%;
		margin-bottom: 16px;
	}
	
	#bookgrid {
	    margin-bottom: 19px;
    }
    
    h2.seriestitle {
	    margin-bottom: 28px;
	}
	
	#bookgrid.upcomingreleases #bookentry {
	    margin-bottom: 35px;
	}
	
	#mobilebookscontent.entry-content-wrap #bookgrid.upcomingreleases #bookentry {
	    margin-bottom: 27px;
	}
}
 
@media only screen and (max-width: 680px) {

	#bookentry { 
		margin-bottom: 14px;
	}
	
	#bookgrid {
	    margin-bottom: 19px;
    }

}

@media only screen and (max-width: 590px) {
	
	#bookentry { 
	    width: 100%;
	    margin-right: 0%;
		margin-left: 0%;
		margin-bottom: 16px;
	}
	
	#bookgrid {
        width: 100%;
	}
	
}

@media only screen and (max-width: 460px) {
    
}

@media only screen and (max-width: 420px) {

} 

@media only screen and (max-width: 380px) {

} 

@media only screen and (max-width: 340px) {

}


/* Book Detail Pages
---------------------------------------------------------------------------- */

body.single-books .entry-content-wrap,
body.single-international_books .entry-content-wrap {
    
}

h1#singlebooktitle {
	text-align: center;
}

#bookpageleft, #bookpageright {
	display: inline-block; 
	position: relative;
	vertical-align: top;
}

#bookpageleft {	
	width: 33%;
	padding-right: 25px;
	margin-right: 0px;
}

#bookpageright {	
	width: calc(66% - 25px);
}

img#bookcover {
	display: block;
	position: relative;
	width: 100%;
	height: auto;
	margin-bottom: -3px;
}

h4.booksheader,
h4.linksheader {
	margin-top: 20px;
	margin-bottom: 0px;
	font-size: 30px;
}

#purchaselinks h3,
#bookotherbooks h3,
#audiosection h3  {
	font-family: 'Perfetto', script;
	font-weight: 400;
	font-size: 3rem;
}

#purchaselinks {
	display: block;
	margin-top: 10px;
	margin-bottom: 10px;
}

#purchaselinks a.button,
.audiobookbuttons a.button {
    text-align: center;
	width: 100%;
    margin-bottom: 6px;
	border-radius: 0px;
	padding: 12px 14px;
}

div.readingorder {
	text-align: center;
}

.readingorder a.button {
	text-align: center;
    margin: 20px auto;
	border-radius: 0px;
	padding: 12px 14px;
}

#audiosection {
	display: block;
	position: relative;
    margin-top: 30px;
    margin-bottom: 30px;
	background: url(images/purple.jpg) no-repeat center center scroll; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
    width: 100%;
}

#audiosection #bookpageleft {
	width: 33%;
	padding: .5%;
}

#audiosection #bookpageleft img {
	margin: 0 auto;
	text-align: center;
}

#audiosection #bookpageright {
	width: 62%;
	padding: 2%;
}

.audiobookbuttons {
	margin-top: 0px;
}

p.audiolink {
	margin-bottom: 5px;
	font-style: italic;
}

#audiosection .wp-video {
	margin-bottom: 14px;
}

#audiosection iframe {
	width: 100%;
	height: auto;
	margin-bottom: 14px;
}
 
.audionote {

}

#allaudiobookscontainer div#bookgrid.free {
	display: none;
}

@media only screen and (max-width: 768px) {
	#audiosection #bookpageleft {
		width: 99%;
		margin: 0 auto;
		text-align: center;
		}

#audiosection #bookpageright {
	width: 96%;
	}
}

@media only screen and (max-width: 590px) {
	#audiosection #bookpageleft, 
	#audiosection #bookpageright {
		margin: 0 auto;
	}
}

.bookseries {
	display: block;
}

.bookseries ul {
	display: inline;
	list-style-type: none;
	margin: 0px;	
}

.bookseries li::marker {
	display: none;
}

span.releasedate {
	margin-bottom: 20px;
}

#synopsissection {
	margin: 0px auto 30px;
	border: 0px solid #c6ac8f;
}

blockquote.bookreviews:before {
    content: "“";
    font-size: 6rem;
    left: 0;
	top: -30px;
    position: absolute;
}

blockquote.bookreviews {
	font-family: 'Libre Baskerville', serif;
    margin: 1.5em 0;
    padding: 1.5rem 1.5rem 1.5rem 3rem;
    position: relative;
	border-left: none;
}

.reviewsource {
	display: block;
	padding-top: 20px;
	color: #deb96e;
}

#bookotherbooks {
	margin-top: 25px;
    width: 100%;
    margin-bottom: 5px; 
}

#bookotherbooks.standalones {	
	display: none;
}

#bookotherbooks img {
	display: inline-block;
	position: relative;
	vertical-align: top;
	width: 18.5%;
	height: auto;
	margin-right: 1.5%;
	margin-bottom: 11px;	 
}

span.bookseries li,
span.bookgenre li,
span.booktrope li {
	display: inline;	
}

span.bookseries li:after {
	content: ', ';
}

span.bookgenre li:last-child:after,
span.booktrope li:last-child:after,
span.bookseries li:last-child:after {
	content: '';
}

#bookpageright span#boxed-sets.booktrope,
#bookpageright span#standalones.bookseries {	
	display: none;
}


@media only screen and (max-width: 1040px) {

	#bookotherbooks img {
	    margin-bottom: 9px;
	}
	
	#bookotherbooks {
    	margin-bottom: 15px; 
	}
}

@media only screen and (max-width: 991px) {

	#bookotherbooks img {
	    width: 23.3%;
	    margin-right: 1.7%;
	}

	#bookotherbooks {
	    width: 106.5%;
	}
}

@media only screen and (max-width: 780px) {

	#bookotherbooks img {
	    margin-bottom: 7px;
	}
	
	#purchaselinks a.button,
	#audiosection a.button,
	#tbrsection a.button {
		flex: 1 1 33.333%;
	}
}

@media only screen and (max-width: 767px) {

	#bookpageleft, 
	#bookpageright {
		display: block;
		width: 100%;
		padding-right: 0px;
	    margin-right: 0px;	
	}

	#bookpageleft {
		margin-bottom: 20px;
	}

	#bookotherbooks img {
	    margin-bottom: 7px;
	}
	
	#bookotherbooks {
	    margin-bottom: 35px; 
	}

	#purchaselinks a.button, #audiosection a.button {
	    display: inline-block;
	}
	
	body.single-books .entry-content-wrap{
	    padding: 8px;
	}
	
	#allbookscontainer {
	    width: 100%;
	    margin-left: 0%;
	}
	
	#bookotherbooks {
    	width: 103%;
	}
	
	#bookotherbooks img {
	    width: 31.3%;
	    margin-right: 1.7%;
	    margin-bottom: 11px;
	}
	
}

@media only screen and (max-width: 499px) {

	#bookotherbooks {
   	 	width: 100%;
	}
	
	#bookotherbooks img {
	    width: 46%;
	    margin-right: 2%;
		margin-left: 2%;
	    margin-bottom: 16px;
	}
	
	#purchaselinks a.button,
	#audiosection a.button,
	#tbrsection a.button {
		flex: 1 1 50%;
	}
	
	h4.booksheader,
	h4.linksheader {
		font-size: 30px;
	}
}	

@media only screen and (max-width: 420px) {

	#bookotherbooks img {
	    margin-bottom: 13px;
	}
	
	#purchaselinks a.button, 
	#audiosection a.button {
	    display: block;  
	}
	
}	

@media only screen and (max-width: 380px) {

	#bookotherbooks img {
	    margin-bottom: 12px;
	}
}		


/* Series Pages
---------------------------------------------------------------------------- */

body.tax-series h1#pagetitle {

}

body.tax-series .entry-content-wrap{

}

body.tax-series .entry-header {

}


/* Upcoming Releases Page
---------------------------------------------------------------------------- */

#bookgrid.upcomingreleases { 
	margin-bottom: 0px; 
	margin-top: 2em;
	text-align: center;
}

#bookgrid.upcomingreleases #bookentry {
	text-align: center;
}

#bookgrid.upcomingreleases #bookentry img {
	margin-bottom: 10px;
}

p.noneupcoming {
	
}



/* Book Landing Pages
---------------------------------------------------------------------------- */
.page-template-page-landing-page div#inner-wrap {
	background: #f5ebf8;
}

.landinglogo {
	display: block;
}

.landinglogo img {
	width: 300px;
	height: auto;
	text-align: center;
	margin: 1% auto;
}

#landingpagecontent {
	width: 100%;
    padding-top: 0%;
    padding-right: 2%;
    padding-bottom: 2%;
    padding-left: 2%;
}

#landingpageheader {
	display: block;
	position: relative;
	margin-bottom: 65px;
}

#landingpageleft, #landingpagemiddle, #landingpageright {
	display: inline-block; 
	position: relative;
	vertical-align: top;
	width: 30%;
	margin-left: 1.5%;
	margin-right: 1.5%;
}

#landingpageleft {
		
}

#landingpageleft img {
	width: 100%;
	height: auto;
}

#landingpageright {
	
}

#landingpageright #purchaselinks {
    
}

@media only screen and (max-width: 800px) {
	#landingpageleft {
		width: 33%
	}
	
	#landingpagemiddle {
		width: 58%;
	}
	
	#landingpageright {
		width: 100%;
	}
	
	.single-books h3 {
		font-size: 2rem;
	}
}
@media only screen and (max-width: 590px) {
		#landingpageleft {
		width: 100%
	}
	
	#landingpagemiddle {
		padding-top: 30px;
		width: 100%;
	}
	
	.single-books h3 {
		font-size: 2.5rem;
	}
}


/* International Books Page
---------------------------------------------------------------------------- */

.foreigneditionspage {
	width: 100%;
}

#countriesgrid {
	display: block; 
	position: relative;	
	margin-bottom: 0px;
	margin-top: 30px;
	width: 1200px;
	max-width: 100%;
	text-align: center;
}

#country {
	display: inline-block; 
	position: relative;
	vertical-align: top;
	width: 22%;
	margin-left: 1.5%;
	margin-right: 1.5%;
}

#country img {
	width: 100%;
	height: auto;
}

@media only screen and (max-width: 590px) {
	#country {
		width: 44%;
	}
}

/* Individual Country Pages
---------------------------------------------------------------------------- */

body.tax-country .archive-description::before {
	background-color: transparent;
}

body.tax-country .archive-description h1 {
	text-align: center;
    font-size: 4.2rem;
    letter-spacing: 0.03em;
    -webkit-font-smoothing: antialiased;
    text-transform: none;
    color: #222222;
}

body.tax-country .archive-description h2 {
	font-size: 25px;
}
	
#bookgrid.countryarchive { 
	padding-top: 20px; 
	margin-bottom: 0px; 
}

#bookgrid.countryarchive #bookentry {
	margin-bottom: 20px;
}

#bookgrid.countryarchive #bookentry img {
	margin-bottom: 0px;
}