/*
Theme Name:     MAI Divi
Theme URI:      https://www.elegantthemes.com/gallery/divi/
Description:    Divi Child Theme for Mt. Adams Insitute
Author:         Etta Margeaux Souer
Author URI:     
Template:       Divi
Version:        1.0.0
-*/


/* =Theme customization starts here
-------------------------------------------------------*/

/*MOVE IMAGE TO TOP LEFT EDGE OF SLIDER*/
#dm-slider .et_pb_slide_image img {
    margin-top: 0px;
    margin-left: 0px;
    max-height: 100% !important;
}
#dm-slider .et_pb_slide {
    padding-left: 0px;
}
/* TURN DOTS INTO RECTANGLES */
#dm-slider .et-pb-controllers a {
    width: 24px;
    height: 4px;
    margin-right: 4px;
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    border-radius: 0px;
}
#dm-slider .et-pb-arrow-prev,
#dm-slider .et-pb-arrow-next {
    background-color: rgba(0, 0, 0, .25);
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50% !important;
}
#dm-slider .et-pb-controllers {
    top: 30px !important;
    left: calc(47.25% + 20px)!important;
    width: 50%!important;
    height: 10px!important;
    text-align: left!important;
}

/*move wrapped title, meta, and text up over the image */
.pa-blog-text {
	position: absolute;
	top: 85%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	padding: 30px;
	z-index: 1;
}

/*keep the moved items positioned with their parent items*/
.et_pb_blog_grid article {
	position: relative;
	height: 80%;
}

/*remove spacing around entire blog post*/
.et_pb_blog_grid .et_pb_post {
	padding: 10px;
} 

/*remove negative margins on blog featured image*/
.et_pb_image_container {
	margin: 0;
}

/*remove the margin below the featured image frame*/
.et_pb_post .entry-featured-image-url {
	margin: 0;
}

.et_pb_blog_grid .entry-featured-image-url::before {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
}

/*add media query so changes only affect tablet and desktop*/
@media (min-width: 824px) {

/*set the image width*/
.pa-blog-list .entry-featured-image-url  {
	width: 30%;
	float: left;
	margin-bottom: 0!important;
}

/*set the details width*/
.pa-blog-list .entry-title,
.pa-blog-list .post-meta,
.pa-blog-list .post-content {
	width: 70%;
	float: left;
	padding-left: 30px;
} 

/*style the individual posts*/
.pa-blog-list .et_pb_post {
	box-shadow: 0px 2px 80px 0px rgb(232,234,236);  
	border-radius: 6px;
	padding: 60px;
}

/*blog image aspect ratio square 1:1 */
/*.entry-featured-image-url {
  padding-top: 30%;
  display: block;
}

.entry-featured-image-url img {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  object-fit: cover;
}*/

	
/*style the Divi blog link text as a button*/
.et_pb_post a.more-link {
  	color: #fff;
	background: transparent;
	border: 1px solid #789904;
	padding: .7em 1.3em;
	margin-top: 20px;
	border-radius: 0px;
	text-transform: capitalize;
	display: inline-block;
	transition: all 0.3s ease-in-out;
}

/*style the Divi blog link text as a button on hover*/
.et_pb_post a.more-link:hover {
	background: transparent;
	color: #789904;
	border: 0px solid #789904;
	transition: all 0.2s ease-in-out;
	}
}

@media (max-width: 825px) {

.pa-blog-list {
	box-shadow: 0px 2px 80px 0px rgb(232,234,236);  
	border-radius: 6px;
	padding: 60px;
	}
.pa-blog-list .et_pb_post a.more-link {
  	color: #fff;
	background: transparent;
	border: 1px solid #789904;
	padding: .7em 1.3em;
	margin-top: 20px;
	border-radius: 0px;
	text-transform: capitalize;
	display: inline-block;
	transition: all 0.3s ease-in-out;
	}
.pa-blog-list .et_pb_post a.more-link:hover {
	background: transparent;
	color: #789904;
	border: 0px solid #789904;
	transition: all 0.2s ease-in-out;
	}
}
/*************MENU cta dONATE buTTON*/

/* CTA button styles */
.de-menu-cta a {
 	background-color: #789904;
  	padding: 15px 45px !important;
  	color: #e8eaec !important;
  	text-align: center;
	}
.de-menu-cta a:hover {
    background: #fff;
	border-width: 2px;
	border-color: #789904;
    color: #789904 !important;
    opacity: 1 !important;
}
/********** Horizontal scroll MENU ON MOBILE ******/

/*diplay the desktop menu on all devices*/

.pa-horizontal-scroll-menu .et_pb_menu__menu {
	display: block !important
}


/*hide the mobile menu*/

.pa-horizontal-scroll-menu .et_mobile_nav_menu {
	display: none !important;
}


/*force the menu to fullwidth to allow for the menu to scroll within it*/

.pa-horizontal-scroll-menu .et_pb_menu__menu {
	width: 100%;
}


/*set the menu to automatically overflow*/

.pa-horizontal-scroll-menu .et_pb_menu__wrap {
	overflow: auto;
}


/*keep the menu items horizontal and avoid stacking*/

.pa-horizontal-scroll-menu .et_pb_menu__menu ul.et-menu {
	white-space: nowrap !important;
	flex-wrap: nowrap !important;
	margin: 10px auto;
}


/*hide scrollbar on IE, Edge, and Firefox*/

.pa-horizontal-scroll-menu .et_pb_menu__wrap {
	-ms-overflow-style: none;
	scrollbar-width: none;
}


/*hide scrollbar on Chrome, Safari, and Opera*/

.pa-horizontal-scroll-menu .et_pb_menu__wrap::-webkit-scrollbar {
	display: none;
}

/********************END OF HORIZONTAL SCROLL MENU********************/
/******fullwidth Button styles ****/
	.ems-btn-mai {
		width: 100%;
		text-align: center;
}

/* 3 Columns Tablet */
@media all and (min-width: 768px) and (max-width: 1650px) {
    .three-col-tab .et_pb_column {
        width:33.33% !important;
    }
	.three-col-tab .et_pb_column:nth-last-child(-n+3) {
        margin-bottom:0;
    }
    .three-col-tab .et_pb_column:not(:nth-child(3n)) {
        margin-right:0 !important;
    }
}