/*---------------------------------------------------------------------------------

 Theme Name:   Screenweave - Divi Template
 Theme URI:    https://www.elegantthemes.com/gallery/divi/
 Description:  Child theme for Divi created by Screenweave
 Author:       Screenweave
 Author URI:   https://screenweave.co.nz
 Template:     Divi
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html

------------------------------ Custom CSS Here ------------------------------*/


/*--- Stop Browsers adding 10px padding below H tags ---*/
h1, h2, h3, h4, h5, h6 {
    padding-bottom: 0px
}

/* Underline current page menu item */
.sw-active-menu-item li.current-menu-item a::before {
	  content: "";
  position: absolute;
  display: block;
  width: 30px;
  height: 2px;
  bottom: 0;
  right: 0;
  background-color: #262626;
  transform: scaleX(1);
  transform-origin: top right;
  }


/* Animate underline other menu items */
.sw-active-menu-item a::before {
  content: "";
  position: absolute;
  display: block;
  width: 30px;
  height: 2px;
  bottom: 0;
  right: 0;
  background-color: #262626;
  transform: scaleX(0);
  transform-origin: top right;
  transition: transform 0.3s ease;
  }

.sw-active-menu-item a:hover::before {
  transform-origin: right;
  transform: scaleX(1);
}

.et_pb_menu .et-menu>li {
    padding-left: 70px;
    padding-right: 0px;
}

/* Reducing padding from menu text to underline menu item */
.sw-active-menu-item .et_pb_menu__menu > nav > ul > li > a {
padding: 10px 0;
}


/* Divi special section column width, targeting sw-1st-column CSS ID */
#sw-1st-column.et_pb_column_1_4 {
    width: 100px !important;
}

/* Divi special section column width, targeting sw-3rd-column CSS ID */
#sw-3rd-column.et_pb_column_1_4 {
    width: 125px !important;
}

/* Hide special columns on mobile and tablet */
@media (max-width: 980px) {
		#sw-1st-column.et_pb_column_1_4 {
			display: none;
		}
}
@media (max-width: 980px) {
		#sw-3rd-column.et_pb_column_1_4 {
			display: none;
		}
}

/* Divi special section centre column width, targeting sw-2nd-column CSS ID */
@media (min-width: 981px) {
  #sw-2nd-column .et_pb_gutters1 .et_pb_column_1_2, .et_pb_gutters1.et_pb_row .et_pb_column_1_2 {
    width: calc(100% - 225px) !important;
  }
}

/* Divi Full Height Image */
/* Apply class to Divi Image Module */
/*this sets the height of the image module*/
.sw-full-height-image-column {
	height: 100%;
}
/*this sets the height of the image container*/
.sw-full-height-image-column .et_pb_image_wrap {
	height: 100%;
}
/*this sets the height and fit of the actual image*/
.sw-full-height-image-column img {
	object-fit: cover;
	height: 100%;
}