/*
Theme Name:   Divi Child Theme
Author:       6P Marketing
Author URI:   https://6pmarketing.com/
Template:     Divi
Version:      1.0.0
*/

@import "modified.css";

:root {
	--theme-primary-colour: #AE8939;
	--theme-secondary-colour: #315c7f;
	--theme-alt-colour: #e1e2e8;
}

/* ========================================= */
/* --- Universal =========================== */
/* ========================================= */

.grecaptcha-badge,
.grecaptcha-logo {
	z-index: 10000;
}

:focus-visible {
	outline: -webkit-focus-ring-color auto 1px;
}

/* embedded tools */
.embed-content iframe {
	display: flex;
}

/* ========================================= */
/* --- Header ============================== */
/* ========================================= */

/* --- Reworking the 'active' menu item */
/* default state - match colour of dropdowns */
#divi-child-plus-header .et_pb_menu ul li.current-menu-item a {
	color: #000 !important;
}
	@media (max-width: 980px) {
		/* mobile -default state - match colour of dropdowns */
		#divi-child-plus-header .et_pb_menu ul li.current-menu-item a {
			color: #000 !important;
		}
	}

/* active menu color - update to match theme */
#divi-child-plus-header .et_pb_menu ul li.current-menu-item > a,
#divi-child-plus-header .et_pb_menu ul li.current-menu-ancestor > a {
	color: var(--theme-primary-colour) !important;
}

/* --- Primary Menu ======================== */
#page-container #divi-child-plus-header .sub-menu a {
	text-transform: initial;
}

/* --- Primary Menu - Mobile =============== */
@media (max-width: 980px) {
	/* adjusts the mobile menu from the top */
	#divi-child-plus-header .et_pb_menu .et_mobile_menu {
		top: calc(100% + 15px);
		padding: 0;

		/* creates a mobile safe dropdown */
		overflow-y: scroll;
		max-height: calc(100vh - 180px);
	}

	body.logged-in.admin-bar #divi-child-plus-header .et_pb_menu .et_mobile_menu {
		max-height: calc(100vh - (180px + 32px));
	}
}
	@media (max-width: 782px) {
		body.logged-in.admin-bar #divi-child-plus-header .et_pb_menu .et_mobile_menu {
			max-height: calc(100vh - (180px + 46px));
		}
	}

/* ========================================= */
/* --- Body ================================ */
/* ========================================= */

.focus-column-image {
    height: 100%;

    .et_pb_image_wrap {
        height: 100%;
        width: 100%;
    }

    img {
        width: 100% !important;
    }

    &::before {
        content: '';
        z-index: 10;
        width: 100%;
        height: 100%;
        display: block;
        position: absolute;
        background: linear-gradient(90deg,#eeeeee 5%,rgba(238,238,238,0) 33% 100%);
    }

    &.inverse-gradient::before {
        background: linear-gradient(270deg,#eeeeee 5%,rgba(238,238,238,0) 33% 100%);
    }
}

@media (max-width: 980px) {
    .focus-column-image, .focus-column-image.inverse-gradient {
        &::before {
            background: linear-gradient(360deg,#eeeeee 5%,rgba(238,238,238,0) 33% 100%);
        }
    }
}