/*
Theme Name:     Gemma Ford
Theme URI:      https://authorgemmaford.com/
Template:       kadence
Author:         Carrie Loves Design Studio
Author URI:     https://www.carrieloves.com
Description:    A custom Kadence child theme for Gemma Ford.
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
*/

/* Customizations
---------------------------------------------------------------------------- */

::placeholder {
	color: #777777;
	font-size: .85rem
}

.kt-testimonial-item-wrap {
	flex: 1 1 auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
    min-height: 100%;
    max-width: 100%;
}

.wp-block-social-links .wp-block-social-link.wp-social-link {
	background-color: transparent !important;
}

.capitalg {
	font-family: adventures-unlimited, sans-serif;
	-webkit-font-feature-settings: "ss01" on;
	font-feature-settings: "ss01" on;
	-moz-font-feature-settings: "ss01" on;
	-o-font-feature-settings: "ss01" on;
}

.site-branding .site-description {
	margin-top: -15px !important;
	text-align: center;
}


/* Books Page
---------------------------------------------------------------------------- */

h1#pagetitle {
    text-align: center;
}

#allbookscontainer,
#allaudiobookscontainer { 
	display: block; 
	position: relative; 
	width: 100%; 
}

#bookgrid {
    display: block;
    position: relative;
    margin-bottom: 5px;
    width: 100%;
	text-align: center;
}

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;
	box-shadow: 4px 2px 14px 0px rgba(0, 0, 0, 0);
}

@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: 28%;
	margin-right: 2%;
	margin-left: 2%;
	margin-bottom: 16px;
	padding: 0px;   
	}
	
	#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 { 
		padding: 0px;
		width: 45%;
		margin-right: 2%;
		margin-left: 2%;
		margin-bottom: 50px;
}

	#bookgrid {
        width: 100%;
	}
}



/* Book Detail Pages
---------------------------------------------------------------------------- */

h1#singlebooktitle {
	text-align: center;
}

#bookpageleft, 
#bookpageright {
	display: inline-block; 
	position: relative;
	vertical-align: top;
}

#bookpageleft {	
	width: 35%;
	padding-right: 5%;
	margin-right: 0px;
}

#bookpageright {	
	width: calc(65% - 5%);
}

img#bookcover {
	display: block;
	position: relative;
	width: 100%;
	height: auto;
	margin-bottom: -3px;
	box-shadow: 4px 2px 14px 0px rgba(0, 0, 0, 0);
}

h4.booksheader,
h4.linksheader {
	margin-top: 20px;
	margin-bottom: 0px;
}

#bookotherbooks h4 {
	margin-bottom: 10px;
	text-transform: none;
}

#ebooklinks,
#audiolinks,
#printlinks {
	margin-top: 20px;
	margin-bottom: 20px;
	text-align: center;
}

#ebooklinks h4,
#audiolinks h4,
#printlinks h4 {
	margin-bottom: 10px;
}

#ebooklinks a.button,
#audiolinks a.button,
#printlinks a.button {
    text-align: center;
    margin-bottom: 0px;
    padding: 12px 24px;
}

#audiosection {
	margin-top: 30px;
  margin-bottom: 30px;
	display: block;
	position: relative;
	width: 100%;
}
#audiosection #audioleft {
	width: 25%;
	padding: .5%;
}
#audiosection #audioleft img {
	margin: 0 auto;
	text-align: center;
}
#audiosection #audioright {
	width: 62%;
	padding: 2%;
}
#audiosection iframe {
	width: 100%;
	height: auto;
	margin-bottom: 14px;
}
@media only screen and (max-width: 768px) {
	#audiosection #audioleft {
		width: 99%;
		margin: 0 auto;
		text-align: center;
		}

#audiosection #audioright {
	width: 96%;
	}
}
@media only screen and (max-width: 590px) {
	#audiosection #audioleft, 
	#audiosection #audioright {
		margin: 0 auto;
	}
}

#narratedby {
	font-size: 14px;
	text-align: center;
}

a.button.purchase {
    background: var(--global-palette9);
	border: 1px solid var(--global-palette5);
	color: var(--global-palette5);
}

a.button.purchase:hover {
    background: var(--global-palette8);
	border: 1px solid var(--global-palette1);
	color: var(--global-palette1);
}

.flexbox-container {
	display: flex;
  flex-wrap: wrap;
	justify-content: space-between;
	flex-direction: row;
	gap: 7px;
}

.flexbox-container .button {
	flex: 1 1 auto;
}

.flexbox-container > .button:first-child {
  flex: 1 0 97%;
}

@media only screen and (max-width: 800px) {
.flexbox-container > .button:first-child {
  flex: 1 0 97% !important;
}
}

@media screen and (max-width: 500px) {
.flexbox-container > .button:first-child {
		flex: 0 1 calc(100%);
}
	
.flexbox-container .button {
    flex: 0 1 calc(100%);
  }
}

#ebooksection,
#audiosection,
#printsection {
	display: block;
	position: relative;
    margin-top: 20px;
    margin-bottom: 20px;
    width: 100%;
	text-align: center;
}

#narratedname {
	font-family: scotch-display, sans-serif;
	font-size: 1rem;
	font-style: italic;
}

#narratedtitle {
	text-transform: uppercase;
	font-size: 1rem;
	font-family: futura-pt, sans-serif;
}

.bookmatterinfo {
	text-transform: uppercase;
	font-size: 1rem;
	font-family: futura-pt, sans-serif;
}

.bookseries,
.bookgenre,
.booktrope{
	display: block;
}

.bookseries ul,
.bookgenre ul,
.booktrope ul{
	display: inline;
	list-style-type: none;
	margin: 0px;	
}

.bookseries li::marker,
.bookgenre li:marker,
.booktrope li:marker{
	display: none;
}

span.releasedate {
	margin-bottom: 20px;
}

#synopsissection {
	margin: 0px auto 30px;
	border: 0px solid #c6ac8f;
}

#bookotherbooks {
	margin-top: 25px;
    width: 100%;
    margin-bottom: 5px; 
	text-align: center;
}

#bookotherbooks.standalones,
#bookotherbooks.free-books {	
	display: none;
}

#bookotherbooks img {
	display: inline-block;
	position: relative;
	vertical-align: top;
	width: 18%;
	height: auto;
	margin-right: .75%;
	margin-left: .75%;
	margin-bottom: 11px;
	box-shadow: 4px 2px 14px 0px rgba(0, 0, 0, 0);
}

span.bookseries li,
span.bookgenre li,
span.bookformat li,
span.booktrope li {
	display: inline;	
}

span.bookgenre li:last-child:after,
span.bookseries li:last-child:after,
span.booktrope li:last-child:after,
span.bookformat li:last-child:after{
	content: '';
}

#bookpageright span#standalones.bookseries,
#bookpageright span#free-books.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: 31.3%;
	    margin-right: .8%;
		margin-left: .8%;
	}

	#bookotherbooks {
	    width: 106.5%;
	}
}

@media only screen and (max-width: 780px) {
	#bookotherbooks img {
	    margin-bottom: 7px;
	}
}

@media only screen and (max-width: 767px) {
	#bookpageleft, 
	#bookpageright {
		display: block;
		width: 100%;
		padding-right: 0px;
	    margin-right: 0px;	
	}

	#bookpageleft {
		margin-bottom: 20px;
	}

	#bookotherbooks {
	    margin-bottom: 35px;
		width: 100%;
	}

	body.single-books .entry-content-wrap{
	    padding: 8px;
	}
	
	#allbookscontainer {
	    width: 100%;
	    margin-left: 0%;
	}
	
	#bookotherbooks img {
	    width: 31.3%;
	    margin-right: 1.7%;
	    margin-bottom: 11px;
	}
}

@media only screen and (max-width: 500px) {
	#bookotherbooks {
   	 	width: 100%;
	}
	
	#bookotherbooks img {
	    width: 46%;
	    margin-right: 2%;
		margin-left: 2%;
	    margin-bottom: 16px;
	}
}	

@media only screen and (max-width: 420px) {
	#bookotherbooks img {
	    margin-bottom: 13px;
	}
}	

@media only screen and (max-width: 380px) {
	#bookotherbooks img {
	    margin-bottom: 12px;
	}
}		


/* 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;
}


/* Books by Trope
---------------------------------------------------------------------------- */

.single-content ul#filters {
	padding-left: 0px;
}

#filters {
    list-style: none;
    text-align: center; 
    margin-top: 30px;
    margin-bottom: 30px;
}

#filters li {
    display: inline-block;
    vertical-align: top;
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 15px;
	font-family: "Inconsolata", monospace;
	text-transform: uppercase;
	letter-spacing: 2px;
	font-size: 13px
}

.bookbytrope { 
	display:inline-block; 
	vertical-align: top;  
	width: 21%;
    margin-left: 2%;
    margin-right: 2%;  
	margin-bottom: 49px; 
	padding: 0px;   
}

.bookbytrope img { 
	width: 100%;
	background-size:100% 100%!important; 
}

@media only screen and (max-width: 590px) {
	.bookbytrope { 
	display:inline-block; 
	vertical-align: top;  
	width: 46%;
    margin-left: 2%;
    margin-right: 2%;  
	margin-bottom: 49px; 
	padding: 0px;   
}
}

#ebooklinks a.button.buydirect, #audiolinks a.button.buydirect {
	background: var(--global-palette2);
	color: var(--global-palette9);
	border-color: var(--global-palette2);
}

#ebooklinks a.button.buydirect:hover, #audiolinks a.button.buydirect:hover {
	background: var(--global-palette7);
	color: var(--global-palette2);
	border-color: var(--global-palette2);
}