/*
 Theme Name:     Rivers Archive (Divi Child Theme)
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         Leech Group
 Author URI:     https://leechgroup.com/
 Template:       Divi
 Version:        1.0.0
*/
 
 
/* =Theme customization starts here
------------------------------------------------------- */


/* CHANGE MOBILE NAV BREAKPOINT */

@media only screen and ( max-width: 1300px ) { /* Change this number to modify breakpoint width */
    #top-menu-nav, #top-menu {display: none;}
    #et_top_search {display: none;}
    #et_mobile_nav_menu {display: block;}
	.et_fixed_nav #main-header{position: absolute;}
}

/* decrease left and right padding on main menu items */
#top-menu li li {
    padding: 0 10px;
    margin: 0;
}

/* increase width of main menu dropdowns from default of 240px */
.nav li ul {
    width: 280px;
}

/* increase width of main menu dropdowns items from default of 200px */
#top-menu li li a {
    width: 240px;
}



/* HIDE ALT TAG TEXT */

img {
    color: transparent;
}



/* REMOVE DROP SHADOW FROM HEADER */

#main-header {
    -moz-box-shadow: none !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
}



/* GRAVITY FORMS */


.custom-form p.gform_required_legend {
    margin-bottom: 15px;
    font-size: 0.8em;
}

.custom-form .gform_button, 
.custom-form .gform_save_link, 
.custom-form .gform_next_button, 
.custom-form .gform_previous_button, 
.custom-form .gform_button_select_files {
	background-color: var(--rdh-green) !important;
	padding: 10px 15px;
	color: #FFFFFF;
	border: none;
    border-radius: 100px !important;
}

	.custom-form .gform_button:hover, 
    .custom-form .gform_save_link:hover, 
    .custom-form .gform_next_button:hover, 
    .custom-form .gform_previous_button:hover, 
    .custom-form .gform_button_select_files:hover {
		background-color: var(--rdh-blue) !important;
	}

	.custom-form .gform_save_link:before {
		color: #FFFFFF !important; /* grey */
	}

.custom-form .gform-body input[type="text"], 
.custom-form .gform-body input[type="tel"],
.custom-form .gform-body textarea,
.custom-form .gform-body select,
.custom-form .gform-body input[type="number"],
.custom-form .gform-body input[type="file"],
.custom-form .gform-body input[type="url"],
.custom-form .gform-body input[type="email"] {
    background-color: var(--rdh-light-gray);
    border: none;
    border-radius: 4px;
    padding: 10px;
	line-height: 20px;
    box-shadow: none;
}



/* MOBILE / NON-MOBILE */

@media all and (max-width: 480px) {
    
    .content-non-mobile-only {
        display: none;
    }

    .content-mobile-only {
        display: inline;   
    }

}

@media all and (min-width: 481px) {
    
    .content-non-mobile-only { 
        display: inline; 
    }

    .content-mobile-only {
        display: none;   
    }

}



/* DIVI STACKING ORDER */

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

    /*** wrap row in a flex box ***/
    .custom-stacking-order {
        display: -webkit-box;
        display: -moz-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -webkit-flex-wrap: wrap; /* Safari 6.1+ */
        flex-wrap: wrap;
    }

    /*** custom classes that will designate the order of columns in the flex box row ***/
    .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;
    }
    
    /*** add margin to last column ***/
    .custom-stacking-order:last-child .et_pb_column:last-child {
        margin-bottom: 30px;
    }
 
}


/* SEARCH RESULTS */

.et_pb_post {
    background-color: var(--rdh-light-gray);
    border-radius: 5px;
}

@media screen and (max-width: 980px) {
    
    .et_pb_post {
        padding: 20px;
        margin-bottom: 30px;
    }
    
}

@media screen and (min-width: 981px) {
    
    .et_pb_post {
        padding: 30px;
        margin-bottom: 20px;
    }
    
}
