/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.15
*/


.inside-top-bar {
	padding: 7px;
}


.header-widget {
	display: flex;
	float: none;
	justify-content: space-between;
	max-width: unset;

	
}
.header-widget .widget_text {
	padding-bottom: 0;
}

.header-widget .widget-title {
	display: none;
}

.header-widget #custom_html-6 .textwidget {
	color: #312f30;
	font-family: "Times New Roman", Times, serif;
	font-size: 20px;
}
.header-widget #custom_html-6 .textwidget a {
	color: #a6121f;
	font-size: 22px;
	text-decoration: underline;
	text-transform: none;
}

.header-widget #block-3.widget_block {
	color: #312f30;
	font-family: "Times New Roman", Times, serif;
	font-size: 16px;
	padding-bottom: 0;
}
.header-widget #block-3.widget_block p {
	line-height: 1.3;
	margin-bottom: 0;
}
.header-widget #block-3.widget_block a {
	color: #a6121f;
	font-size: 16px;
	text-decoration: underline;
	text-transform: none;
}

.header-widget #custom_html-8 img {
	padding: 0 5px 0 5px;
}

.main-navigation {
	border-top: 4px solid #a6121f;
	position: relative;
	margin-bottom: -82px;
	margin-top: 20px;
}

.main-navigation .menu li {
	background: url(https://www.bilbobooks.com/wp-content/uploads/nav-sep.png) right center no-repeat;
}
.main-navigation .menu li:last-child {
	background: none;
}


.main-nav .dropdown-menu-toggle::before {
	display: none;
}
.main-nav .menu-item-has-children .dropdown-menu-toggle {
	padding-right: 20px;
}


.page-hero {
	background-size: auto;
	background-repeat: repeat-x;
	xxmargin-top: -120px;
}


.gb-grid-wrapper .gb-grid-column:first-child {
	xxpadding-left: 0;
}


.inside-article .entry-header .entry-title {
	font-family: Times New Roman;
}

.inside-article .entry-content {
	margin-top: 0;
}


.wp-block-separator.is-style-wide {					/* adjustment for 5.8 WP */
	border-top: 0;
	border-bottom: 0;
}



x.inside-site-info {
  -ms-box-orient: horizontal;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -moz-flex;
  display: -webkit-flex;
  display: flex;
  
  -webkit-flex-flow: row wrap;
  flex-flow: row wrap;
}

x.inside-site-info > * {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

x.copyright-bar {
    order: 1;
}

x.footer-bar {
	margin-top: 20px;
  order: 2;
}




/* for Home page */
.home .metaslider .flex-viewport {
	background: #ffffff;
	border: 5px solid #fff;
	box-shadow: 0 0 5px #ccc;
}

.home .metaslider .caption-wrap {
	background: #ffffff;
	color: #000000;
	font-size: .55em;
	line-height: 1.2em;
	margin-top: -36px;
	position: relative;
}

#metaslider-id-104 .flexslider:focus-within .flex-prev,
#metaslider-id-104 .flexslider:hover .flex-prev {
	left: -50px;
}
#metaslider-id-104 .flexslider:focus-within .flex-next,
#metaslider-id-104 .flexslider:hover .flex-next {
	right: -50px;
}
#metaslider-id-104 .flexslider .flex-direction-nav li a {
	opacity: 1;
}


/* for Published Books page */
#tablepress-1 .column-1 {
	padding: 20px 8px 42px;
	width: 235px;
}
#tablepress-1 .column-2 {
	padding: 30px 8px 42px;
}

#tablepress-1 .bk-img {
	border: 1px solid rgba(0,0,0,0.13);
	margin: 5px 50px 10px 0;
	padding: 3px;
}
#tablepress-1 .bk-details {
	font-size: 16px;
	line-height: 1.5;
	margin-top: 10px;
}
#tablepress-1 .bk-details.size-sm {
	font-size: 14px;
}
#tablepress-1 .bk-details a:hover {
	color: #1e73be;
	text-decoration: underline;
}

#tablepress-1 .bk-descrip {
	margin-right: 25px;
	xxpadding-top: 10px;
}
#tablepress-1 .bk-title {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.5;
	margin-bottom: 0;
}
#tablepress-1 .bk-author-section {
	display: flex;
	xxflex-direction: column;
}
#tablepress-1 .bk-author {
	color: #555555;
	font-size: 18px;
	margin-bottom: 1.5em;
	xxfont-weight: 700;
	xxmargin-left: 0;
}
#tablepress-1 .bk-author-section > .bk-author {
	margin-bottom: 10px;
}

a.btn-vid {
    background-color: #e1e1e1;
    border: 1px solid #adadad;
    border-radius: .25rem;
    color: #333;
	font-size: 16px;
    margin-left: 60px;
    padding: .2rem .8rem;
    text-decoration: none;
}
a.btn-vid:hover {
	background-color: #e5f1fb;
	border-color: #0078d7;
	cursor: pointer;
}


/* for Personalizing the Process page */
.gb-container-f5305afb .wp-block-image figure {
	margin: 10px 60px 36px 0;
}


/* for Our Philosophy page */
.gb-container-5bf70777 .wp-block-image figure {
	margin: 10px 0 36px 60px;
}


/* for Packages page */
.bb-pkg-space {
	margin-bottom: 12px;
}
.bb-pkg-lft-sep {
	margin-bottom: 50px;
}
.bb-pkg-rt-sep {
	margin-bottom: 44px;
}

.bb-less-top {					/* for hr element */
	margin-top: 20px;
}

.bb-ul-lnk a:hover {				/* for email address link */
	text-decoration: underline;
}


/* for What Our Authors Say page */
.gb-container-cfa8f2db blockquote {
	border-left: 4px solid #a6121f;
	font-family: "Times New Roman", Times, serif;
	font-size: 24px;
	font-style: italic;
	line-height: 24px;
	margin: 0 auto 1.5em;
	padding: 0 0 0 15px;
	width: 65%;
}


/* for What Our Authors Say page and Events page */
.gb-container .bb-img-has-captn figure {
	margin: 5px 10px 0 40px;
}
.bb-img-has-captn figcaption {
	font-size: 15px;
	margin-top: 0;
	text-align: center;
}


/* for Events page */
#tablepress-2 .column-1 {
	padding-top: 30px;
	width: 50%;
}
#tablepress-2 .column-2 {
	padding-top: 20px;
	xxwidth: 50%;
}

#tablepress-2 .evt-title {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.5;
	margin-bottom: 0;
}

#tablepress-2 .column-2 img {
	display: block;
}
#tablepress-2 .bb-img-has-captn figure {
	margin-bottom: 30px;
}

#tablepress-2 .evt-descrip p.bb-poem {		/* Pandemic Poem formatting */
	font-size: 14px;
	padding-left: 30%;
	margin-bottom: 0;
}
#tablepress-2 #am-pp hr {						/* end of poem */
	margin: 10px 0 20px;
	margin-left: 30%;
	width: 100px;
}

#tablepress-2 .row-2 .column-1 {				/* Alice video text section */
	border-top: none;
	padding: 0 20px 8px 30px;
}
#tablepress-2 .am-vid-text {
	font-size: 15px;
}

#tablepress-2 .row-2 .column-2 {				/* Alice video image section */
	border-top: none;
	padding-top: 0;
}
#tablepress-2 .am-vid-links {
	display: inline-flex;
	margin-left: 30px;
	margin-bottom: 30px;
}


/* for Open House page */
.bb-opn-house .blocks-gallery-grid li:last-child {
	flex-grow: 0;
	margin-left: auto;
	margin-right: auto;
}


/* for Contact Us page */
.gb-container.bb-div-adjust > .gb-inside-container {
	display: flow-root;
}


/* for Tell-A-Book page */
.gb-container-b9091620 .wp-block-image .alignright {
	margin-left: 40px;
}



/* =Responsive Design
    Media Queries
-------------------------------------------------------------- */

@media (max-width: 1000px) {
	.one-container .site-content {
		padding: 30px;
	}

}


@media(max-width: 890px) {
	.main-navigation a {
		font-size: 14px;
	}
	.main-navigation .main-nav ul li a {
		padding-left: 20px;
		padding-right: 20px;
	}
	
	.main-nav .menu-item-has-children .dropdown-menu-toggle {
		padding-right: 10px;
	}

	/* for Home page: slider container width adjustment */
	.gb-container.gb-container-243dc4d0 > .gb-inside-container {
		max-width: 600px;
	}

	/* Published Books page: book description width adjustment */
	#tablepress-1 .bk-descrip {
		margin-right: 0;
	}
	#tablepress-1 .bk-author-section {		/* adjustments for video buttons */
		flex-direction: column;
	}
	#tablepress-1 a.btn-vid {
		margin-left: 0;
	}

	/* Events page: image width adjustment */
	#tablepress-2 .column-2 img {
		max-width: 350px;
	}
	#tablepress-2 .am-vid-links {			/* adjustments for video images */
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		margin-top: 10px;
		max-width: 350px;
	}


}


@media(max-width: 768px) {
	/* main menu: display dropdown toggle */
	.main-nav .dropdown-menu-toggle::before {
		display: inline-block;
	}


}


@media(max-width: 767px) {
	/* Home page: column stack adjustments */
	.gb-container.gb-container-ea46f232 > .gb-inside-container {
		padding-top: 20px;
	}

	/* Published Books page: column stack adjustments */
    #tablepress-1 td.column-1 {
		margin: auto;
		padding-top: 30px;
		padding-bottom: 0;
    }
    #tablepress-1 .bk-img {
		margin-right: 0;
    }
    #tablepress-1 .column-2 {
		padding-bottom: 20px;
    }
	#tablepress-1.tablepress-responsive-stack-phone tbody tr:first-child td {
		border-top: 0;
	}
	#tablepress-1.tablepress-responsive-stack-phone tbody td:first-child {
		border-top: 3px solid #ddd;
	}

	/* Events page: column stack adjustments */
    #tablepress-2 td.column-1 {
		width: auto;
    }
	#tablepress-2 .column-1 .evt-descrip p {
		margin-bottom: 0;
	}
	#tablepress-2 .column-2 figure {			/* adjustment to center images */
		margin: 5px 10px 30px 10px;
	}
	#tablepress-2 .column-2 img {				/* adjustment to center images */
		margin: auto;
	}
	#tablepress-2 .evt-descrip p.bb-poem {	/* adjustment to center poem */
		padding-left: 0;
	}
	#tablepress-2 #am-pp hr {					/* adjustment to center hr */
		margin: 10px auto 0;
		width: 120px;
	}
	#tablepress-2 .row-2 .column-1 {
		margin: auto;
		max-width: 340px;
		padding: 0 10px 0 10px;
	}
	#tablepress-2 .am-vid-links {			/* adjustment to center video images */
		margin: 0 auto 30px auto;
	}

	/* Open House page: text size adjustment */
	.bb-openhouse .gb-inside-container p {
		font-size: 15px;
	}

	/* Contact Us page: layout adjustments */
	.gb-container.bb-div-adjust > .gb-inside-container {
		display: flex;
		flex-direction: column;
	}
	.bb-div-adjust.bb-contact-text {
		font-size: 16px;
	}
	.bb-div-adjust.bb-contact-text figure {
		xxfloat: none;
		margin: 0 auto 1em auto;
	}


}


@media(max-width: 550px) {
    .header-widget {
        flex-direction: column-reverse;
    }

	.bb-tellabook .gb-inside-container .wp-block-image figure {
		float: none;
		margin: auto;
	}


}


@media(max-width: 350px) {
	/* Home page: slider container width adjustment */
	.gb-container.gb-container-243dc4d0 > .gb-inside-container {
		max-width: 202px;
	}
	/* Home page: slider nav-dot adjustment */
	.metaslider ol.flex-control-nav {
		bottom: -50px;
	}

	/* Published Books page: video button adjustment */
    #tablepress-1 a.btn-vid {
		font-size: 14px;
    }

	/* Events page: image width adjustment */
	#tablepress-2 .column-2 img {
		max-width: 224px;
	}
	#tablepress-2 .am-vid-links {			/* adjustments for video images */
		display: flex;
		max-width: 250px;
	}

	/* Contact Us page: text size adjustment */
	.bb-div-adjust.bb-contact-text {
		font-size: 16px;
	}
	.bb-div-adjust.bb-contact-text figure {
		margin-left: 0;
	}


}

