/*
 Theme Name:   Cornwall & District Real Estate Board
 Description:  Divi Child Theme
 Author:       Webtech Design Co.
 Author URI:   https://webtechdesign.co
 Template:     Divi
 Version:      1.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags: responsive-layout, one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, custom-background, custom-colors, featured-images, full-width-template, post-formats, rtl-language-support, theme-options, threaded-comments, translation-ready
 Text Domain:  divi-child-theme
*/

/* ==== Add your own styles below this line ====
 * -------------------------------------------- */

/*** Primary Navigation ***/

header .menu_cta {
	padding: 0 !important;
	text-align: center;
	margin-left: 10px!important;
}

header .menu_cta a {
	color: #ffffff;
	background-color: #666;
	border-radius: 50px;
	padding: 15px !important;
	align-self: center;
}

header .menu_cta a:hover {
	background-color: #999!important;
	opacity: 1!important;
}

header .et_mobile_menu .menu_cta {
	padding: 0 !important;
	margin-top: 15px;
	margin-left: 0!important;
}



/*** Layout ***/
.vertical-align {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.no-margin {
	margin: 0!important;
}


/*** Post Content ***/

body {
	font-weight: normal;
}

sup {
	font-size: 50%;
}

.et_pb_post_content h1:not(:first-child),
.et_pb_post_content h2:not(:first-child),
.et_pb_post_content h3:not(:first-child),
.et_pb_post_content h4:not(:first-child),
.et_pb_post_content h5:not(:first-child),
.et_pb_post_content h6:not(:first-child) {
	margin-top: 1em;
}

.et_pb_post_content ul li,
.et_pb_post_content ol li ﻿{﻿
	margin-bottom: 1em;
}

.et_pb_post_content p:last-of-type {
	padding-bottom: 1em;
}

ul.blocks-gallery-grid {
	list-style-type: none;
	padding: 0;
	margin-left: 0;
	line-height: 1em;
}

.et_pb_post_content p a,
.et_pb_post_content p a:active {
	transition: all 300ms ease 0ms;
}
.et_pb_post_content p a:hover {
	color: #888;
	transition: all 300ms ease 0ms;
}


a.wp-block-button__link, .wp-block-button__link:active, .wp-block-button__link:focus, .wp-block-button__link:visited {
	color: #333;
	border: solid 1px #333;
	border-radius: 2px;
	font-size: 14px;
	background-color: transparent;
	transition: all 300ms ease 0ms;
	line-height: 1em!important;
	font-weight: 600;
	padding: 10px;
	text-transform: uppercase;
	letter-spacing: 2px;
	text-align: center;
}

a.wp-block-button__link:hover {
	color: #fff;
	border-color: #888;
	background-color: #888;
	transition: all 300ms ease 0ms;
}

/*** GridBuilderWP ***/

.wpgb-facet.wpgb-facet-1>fieldset:last-child {
	max-width: 500px;
	margin: 0 auto 1em;
}

/*** Sidebar ***/

#content-sidebar .et_pb_widget li {
	border-bottom: 1px solid rgba(0,0,0,0.1)!important;
	padding: 8px 0px;
	margin-bottom: 0;
}

.page-id-104 #block-10 { /*** Hide Contact in Sidebar on Contact page  ***/
	display: none;
}

/*** Footer ***/

footer .et_pb_bg_layout_light .et_pb_widget li a,
footer .et_pb_widget_area .et_pb_widget a:not(.wp-block-button__link) {
	color: #333;
	transition: all 300ms ease 0ms;
	text-decoration: underline;
}

footer .et_pb_bg_layout_light .et_pb_widget li a:hover,
footer .et_pb_widget_area .et_pb_widget a:hover {
	color: #fff;
	transition: all 300ms ease 0ms;
}

footer .et_pb_bg_layout_light .et_pb_widget li {
	border-bottom: 1px solid rgba(0,0,0,0.1)!important;
	padding: 8px 0px;
	margin-bottom: 0;
}


/*** Hide Google Captcha Badge ***/
.grecaptcha-badge {
	display: none;
}

/*** Display Divi Mobile Menu Module at Custom Breakpoint ***/

@media only screen and (max-width: 1135px) {
	.et_pb_menu .et_pb_menu__menu {
		display: none;
	}
	.et_mobile_nav_menu {
		display: block
	}
	.et_pb_menu .et_mobile_menu {
		top: 100%;
		padding: 5%;
		text-align: left;
		margin: 0;
	}
	.et_pb_menu .et_mobile_nav_menu {
		float: none;
		margin: 0 6px;
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-align: center;
		-ms-flex-align: center;
		align-items: center;
	}
	.et-l--header ul {
		list-style-type: none;
		padding: 0 0 0 1em;
	}

	#no-hamburger .et_pb_menu__menu {
		display: block;
	}

	#no-hamburger .mobile_menu_bar {
		display: none;
	}
}


/*** Responsive Styles Standard Desktop Only ***/
@media all and (min-width: 981px) {

}


/*** Responsive Styles Tablet And Below ***/
@media all and (max-width: 980px) {

@media screen and (max-width: 980px) {

	.custom_row {
		display: -webkit-box;
		display: -moz-box;
		display: -ms-flexbox;
		display: -webkit-flex;
		display: flex;
		-webkit-flex-wrap: wrap; /* Safari 6.1+ */
		flex-wrap: wrap;
	}

	.first-on-mobile {
		-webkit-order: 1;
		order: 1;
	}

	.second-on-mobile {
		-webkit-order: 2;
		order: 2;
	}

	.third-on-mobile {
		-webkit-order: 3;
		order: 3;
	}

	.fourth-on-mobile {
		-webkit-order: 4;
		order: 4;
	}
	.custom_row .et_pb_column:last-child {
		margin-bottom: 30px;
	}

	.custom_row .et_pb_column:not(:last-child) {
		margin-bottom: 0px;
	}


}


/*** Responsive Styles Tablet Only ***/
@media all and (min-width: 768px) and (max-width: 980px) {

}


/*** Responsive Styles Smartphone Only ***/
@media all and (max-width: 767px) {

	ul#menu-secondary-menu li span {
		display: none;
	}

	ul#menu-secondary-menu {
		justify-content: center;
	}


}


/*** Responsive Styles Smartphone Portrait ***/
@media all and (max-width: 479px) {


}
