/*
 Theme Name:     Matt Garman
 Theme URI:      https://www.portalpeople.uk
 Description:    Divi Child Theme
 Author:         The Portal People
 Author URI:     https://www.portalpeople.uk
 Template:       Divi
 Version:        1.0.0
*/
 
 
/* =Theme customization starts here
------------------------------------------------------- */
/* Custom Styles For Global Header In Divi Theme Builder */
/*.et_pb_image_wrap img {
	max-width: 90%;
	margin: 7px 0;
}*/
.et_pb_module.et_pb_image.et_pb_image_0_tb_header.mg-logo {
  padding-top: 10px;
}
.et_pb_menu__wrap {
	justify-content: flex-end !important;
}
.et_pb_column.et_pb_column_4_4.et_pb_column_0_tb_header.et_pb_css_mix_blend_mode_passthrough.et-last-child.et_pb_column--with-menu {
	position: relative;
}
.et_pb_module.et_pb_menu.et_pb_menu_0_tb_header.et_pb_bg_layout_light.et_pb_text_align_left.et_dropdown_animation_fade.et_pb_menu--without-logo.et_pb_menu--style-left_aligned {
	position: absolute;
	top: 45px;
	width: 100%;
	background-color: rgba(0,0,0,0);
}
.et_pb_image_wrap {
	z-index: 2;
}
.et_pb_menu__menu {
	display: none !important;
}
.et_pb_menu .et_mobile_nav_menu {
	float: none;
	margin: -10px 6px;
	display: flex;
	align-items: center;
}
.et_pb_menu .et_mobile_nav_menu > div {
	width: 32px !important;
}
.et_pb_menu .et_mobile_menu {
	padding: 12px !important;
}
.et_mobile_menu li a {
	padding: 10px 16px! important;
}
#mobile_menu1 li {
	list-style: none;
}

.et_pb_button_module_wrapper.et_pb_button_0_tb_header_wrapper.et_pb_module {
	position: absolute;
	top: 30px;
	right: 60px;
}
header .et_builder_inner_content {
	background-color: rgba(0,0,0,0.76);
}
.et-l.et-l--header .et_pb_menu_0_tb_header .mobile_nav .mobile_menu_bar::before {
	color: rgb(255,255,255);
}
@media only screen and (max-width: 980px){
	.et-l--header .et_pb_image_0_tb_header.et_pb_module  {
		margin-left: 0 !important;
	}
}
@media only screen and (max-width: 650px){
	.et_pb_button_module_wrapper.et_pb_button_0_tb_header_wrapper.et_pb_module {
		display: none;
	}
}

/* End Of Custome Header */

/* Global Styles */
p {
	font-weight: 400;
	font-size: 20px
}
/*align the hamburger menu to the right right*/
.pa-fullscreen-menu .et_pb_menu__wrap {
	justify-content: flex-end !important;
}
/*hide the desktop version of the menu*/
.pa-fullscreen-menu .et_pb_menu__wrap .et_pb_menu__menu {
	display: none !important;
}
/*show the mobile version of the menu on desktop*/
.pa-fullscreen-menu .et_pb_menu__wrap .et_mobile_nav_menu {
	display: block !important;
	align-items: center !important;
}
/*style the opened menu*/
.pa-fullscreen-menu .opened #mobile_menu1 {
	width: 100vw !important;
	position: fixed !important;
	top: 0em !important;
	left: 0vw !important;
	height: 100vh !important;
	display: flex !important;
	justify-content: center !important;
	flex-direction: column !important;
	opacity: 1 !important;
	visibility: visible !important;
	transition: visibility 0.3s, opacity 0.3s ease-in-out;
	padding: 0 !important;
	line-height: 60px;	
}

/*style the closed menu*/
.pa-fullscreen-menu .closed #mobile_menu1 {
	background-color: #fff !important;
	text-align: center !important;
	width: 100vw !important;
	position: fixed !important;
	left: 100vw !important;
	top: 0em !important;
	height: 100vh !important;
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	flex-direction: column !important;
	transition: visibility 0.3s, opacity 0.3s, left 1s, ease-in-out;
	opacity: 0 !important;
	visibility: hidden !important;
}
/*remove the bullet points from the list items*/
.pa-fullscreen-menu #mobile_menu1 li {
    list-style: none !important;
    width: 100%;
    padding-left: 50%;
}
/*move the menu to the top above other elements*/
.pa-fullscreen-menu .et_pb_menu__wrap span.mobile_menu_bar {
	z-index: 999999 !important;
}
/*change the opened menu icon*/
.pa-fullscreen-menu .et_pb_menu__wrap .opened .mobile_menu_bar:before {
	content: "\4d" !important;
}
/*make the hamburger menu fixed position on mobile*/
.pa-fullscreen-menu .opened .mobile_menu_bar {
	position: fixed !important;
}
/*remove the default blue border top on the mobile menu*/
.pa-fullscreen-menu .et_mobile_menu {
	border-top: none;
}
/*remove the default background color on menu items*/
.pa-fullscreen-menu .et_mobile_menu .menu-item-has-children>a {
	background-color: transparent;
}
/*remove the default hover background color and adjust opacity*/
.et_mobile_menu li a:hover {
	background-color: transparent;
	opacity: 1;
}
/*remove the default border bottom on menu items*/
.pa-fullscreen-menu .et_mobile_menu li a {
	border-bottom: none;
}
.pa-fullscreen-menu #mobile_menu1 li a:hover {
    color: #003366 !important;
}
.pa-fullscreen-menu #mobile_menu1 li:hover {
    background-image: url(https://mg.chalvingtononline.com/wp-content/themes/MattGarman/img/title-block.png);
    background-position: calc(50% - 100px) 28px;
    background-repeat: no-repeat;
}
@media (max-width: 800px){
#page-container .et_pb_menu_0_tb_header.et_pb_menu ul li a {
    font-weight: 600;
    font-size: 32px;
    line-height: 32px;
}
.pa-fullscreen-menu .opened #mobile_menu1{
	line-height: 40px;
}
#page-container .pa-fullscreen-menu #mobile_menu1 li {
	width: 80%;
	padding-left: 10%;
}
.pa-fullscreen-menu #mobile_menu1 li:hover {
   background-image: none !important;
}
}
/*Stars */
.book-icon {
  display: inline;
  font-size: 2vh;
}
ul.book-item-list {
  list-style: none;
  padding-left: 0;
}
/*Blog */
.et_pb_blog_0 .et_pb_post .entry-title a, .et_pb_blog_0 .not-found-title {
    text-transform: none !important;
}
.cha-blog-grid .et_pb_ajax_pagination_container {
display: flex;
flex-wrap: wrap;
}
.cha-blog-grid .et_pb_post.clearfix {
float: left;
padding: 0 20px;
}
.cha-blog-grid .et_pb_post .entry-featured-image-url {
display: flex;
aspect-ratio: auto 16/9;
}
.cha-blog-grid .et_pb_post.clearfix img{
aspect-ratio: auto 16/9;
display: flex;
}
@media only screen and (min-width: 992px) {
.cha-blog-grid .et_pb_post.clearfix {
width: 33.3333%;
}
}
@media only screen and (max-width: 991px) {
.cha-blog-grid .et_pb_post.clearfix {
width: 50%;
}
}
@media only screen and (max-width: 575px) {
.cha-blog-grid .et_pb_post.clearfix {
width: 100%;
}
}
.cha-blog-grid .et_pb_ajax_pagination_container > div{
width: 100%;
}
.pp-video-modal{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;opacity:0;pointer-events:none;transition:opacity .2s ease;z-index:999999;}
.pp-video-modal.is-open{opacity:1;pointer-events:auto;}
.pp-video-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.7);}
.pp-video-dialog{position:relative;max-width:960px;width:90%;aspect-ratio:16/9;background:#000;border-radius:12px;box-shadow:0 20px 60px rgba(0,0,0,.5);overflow:hidden}
.pp-video-wrap, .pp-video-wrap iframe, .pp-video-wrap video{width:100%;height:100%;display:block}
.pp-video-close{position:absolute;top:.5rem;right:.75rem;font-size:2rem;line-height:1;background:transparent;border:0;color:#fff;cursor:pointer;opacity:.85}
.pp-video-close:hover{opacity:1}
@media (max-width: 480px){ .pp-video-dialog{border-radius:8px} }