/*
Theme Name: Divi Child Theme
Theme URI: http://browse.no/
Version: 1.0
Description: A customized version of Divi which adds a number of tiny features I need.
Author: Svein Magne Skåre
Author URI: http://www.browse.no
Template: Divi
*/

/* Headers */

h2,
h3,
h4,
h5,
h6 {
  padding-bottom: 10px;
  color: #000;
  font-weight: 300;
  line-height: 1.7em;
  font-family: 'Open Sans', Helvetica, Arial, Lucida, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1 {
  padding-bottom: 10px;
  color: #000;
  font-weight: 500;
  line-height: 1.7em;
  font-family: "futura-pt",sans-serif;
}

h1 {
  font-size: 30px;
}

h2 {
  font-size: 26px;
}

h3 {
  font-size: 22px;
}

h4 {
  font-size: 18px;
}

h5 {
  font-size: 16px;
}

h6 {
  font-size: 14px;
}

.entry-title-module {
  padding: 75px 0 25px 0;
}

.bolder h2 {
  font-weight: 500;
}

#top-menu li {
  padding-right: 18px;
}

@media (max-width: 1200px) {
 #top-menu li {
 padding-right: 15px;
 }
 }


#top-menu li a {
	font-family: "futura-pt",sans-serif;
}

#top-menu .current-menu-item a::before,
#top-menu .current_page_item a::before {
 content: "";
 position: absolute;
 z-index: 2;
 left: 0;
 right: 0;
}
#top-menu li a:before {
 content: "";
 position: absolute;
 z-index: -2;
 left: 0;
 right: 100%;
 bottom: 20%;
 background: #D81B49; 
 height: 2.5px; 
 -webkit-transition-property: right;
 transition-property: right;
 -webkit-transition-duration: 0.3s;
 transition-duration: 0.3s;
 -webkit-transition-timing-function: ease-out;
 transition-timing-function: ease-out;
}
#top-menu li a:hover {
 opacity: 1 !important;
}
#top-menu li a:hover:before {
 right: 0;
}
#top-menu li li a:before {
 bottom: 10%;
}



#et-secondary-nav li {
  margin-right: 5px;
}

#top-header {
 padding: 15px 0px;
}

#top-header a {
  font-size: 11px;
}

#top-header li {
 padding-right: 0px;
}

#et-top-navigation {
 padding: 20px 0 !important;
}

#top-header li a {
 background: #8D9391; /*** CHANGES THE BACKGROUND COLOR ***/
 padding: 10px 10px;
 border: 2px solid #fff; /*** COLOR AND THICKNESS OF THE BOX ***/

 /*border-radius: 3px; */
}
#top-header li a:hover {
 color: #db345e !important;

}
#top-header li a:hover {
 background: #FFF !important; /*** CHANGES THE BACKGROUND COLOR ON HOVER ***/
 border: 2px solid #8D9391; /*** COLOR AND THICKNESS OF THE BOX ***/
}

#top-header li:not(.wpml-ls-current-language)  > a {
 background: #FFF; /*** CHANGES THE BACKGROUND COLOR OF THE CURRENT PAGE LINK ***/
 color:#8D9391;
 border: 2px solid #8D9391; /*** COLOR AND THICKNESS OF THE BOX ***/
}

#top-header li:not(.wpml-ls-current-language)  > a:hover {
 background: #8D9391 !important; /*** CHANGES THE BACKGROUND COLOR ON HOVER ***/
 color: #fff !important;
 border: 2px solid #8D9391; /*** COLOR AND THICKNESS OF THE BOX ***/
}

#top-header li.wpml-ls-current-language  > a {
 background: #ED145B; /*** CHANGES THE BACKGROUND COLOR OF THE CURRENT PAGE LINK ***/
 border: 2px solid #ED145B;
}

#top-header .menu-item-has-children > a:first-child:after {
 content: none;
}

#top-header {}
 
div#top-header {z-index: 1000!important;}

#logo {margin-top: -55px;z-index: 1!important;}

@media only screen and (min-width: 981px) {#logo {}}
@media only screen and (max-width: 980px) {
  #et-top-navigation {
   padding: 20px 0 0 0 !important;
  }
  #logo {margin-top: 0px; }

}

#main-header.et-fixed-header {
    box-shadow: none !important;
}


/* Slider */
.et_pb_slide_description .et_pb_slide_title,
.et_pb_slide_content h3 {
  font-weight:500;
}

@media only screen and ( min-width:981px ) {
    /* Set the slider height */
    .et_pb_slider, .et_pb_slider .et_pb_container { 
        height: 460px !important; 
    }
    .et_pb_slider, .et_pb_slider .et_pb_slide { 
        max-height: 460px; 
    }
    .et_pb_slider .et_pb_slide_description { 
        position: relative; 
        top: 25%; 
        padding-top: 0 !important; 
        padding-bottom:0 !important;
        padding-left:0 !important;  
        padding-right:0 !important; 
        height:auto !important; 
    }
    /* Top header image */
  .custom-header-image {
    max-height: 460px !important;
  }
}

@media only screen and ( max-width:980px ) {
    /* Set the slider height */
    .et_pb_slider, .et_pb_slider .et_pb_container { 
        height: 460px !important; 
    }
    .et_pb_slider, .et_pb_slider .et_pb_slide { 
        max-height: 460px; 
    }
    .et_pb_slider .et_pb_slide_description { 
        position: relative; 
        top: 25%; 
        padding-top: 0 !important; 
        padding-bottom:0 !important;
        padding-left:0 !important;  
        padding-right:0 !important; 
        height:auto !important; 
    }
  /* Top header image */
  .custom-header-image {
    max-height: 460px !important;
  }    
}

/* Ansatte */
.custom-person-item {
  width: 90%;
}

.custom-person-item .et_pb_team_member_description {
}

.custom-person-item .et_pb_team_member_description h4 {
  padding: 15px 10px;
}

.custom-person-item .et_pb_team_member_description p {
  font-size: 12px;
  line-height: 1.6em;
  color: #000;
  padding: 10px;
}

.custom-person-item .et_pb_team_member_description p.et_pb_member_position {
  font-size: 12px;
  font-style:italic;
  color: #666;
  padding: 10px;
}

.custom-person-item .et_pb_member_social_links {
  padding: 10px 10px 0 10px;
}

#gridcard .et_pb_column .custom-person-item:nth-child(even) {
  margin-left: 10%;
} 

#gridcard .et_pb_column .custom-person-item:nth-child(even) .et_pb_team_member_image {
float: right;
}

/* Programmer */

.blurb_class_1 .et_pb_more_button {
  margin-top: 40px!important;
}

.blurb_class_1 a.blurb_button {
  color: #ffffff !important;
  background: #649d7c!important;
  border-width: 0px !important;
  border-radius: 2px!important;
  letter-spacing: 1px!important;
  font-size: 18px!important;
  background-color: #649d7c!important;
}

.blurb_class_1 a.blurb_button:hover {
  background: #409e64 !important;
  border-color: #409e64 !important;
}

.blurb_class_1 p {
  font-size:14px;
  color: #000;
}

/* Prosjekter */

.portfolio-three-columns .et_pb_portfolio_items .et_pb_portfolio_item {
  clear:  none !important;
  width:  27.5% !important;
  min-height: 420px !important;
  max-height: 420px !important;
}

.portfolio-three-columns .et_pb_portfolio_items .et_pb_portfolio_item .portfolio-item-ingress,
.portfolio-three-columns .et_pb_portfolio_items .et_pb_portfolio_item .portfolio-item-kommentar,
.portfolio-three-columns .et_pb_portfolio_items .et_pb_portfolio_item .portfolio-item-bedrift,
.portfolio-three-columns .et_pb_portfolio_items .et_pb_portfolio_item .portfolio-item-avsender,
.portfolio-three-columns .et_pb_portfolio_items .et_pb_portfolio_item .portfolio-item-img img
 {
  display: block;
  display:none !important;
}

.portfolio-three-columns .portfolio-item-img img {
  display:none !important;
  display: block;
  border-radius:0px;
  padding:0px;
}

.et_pb_portfolio_items_wrapper .et_overlay {
display: none!important;
}

.et_pb_text_align_center {
margin: auto;
text-align: center;
}

.et_pb_portfolio_filters {
  display:none;
}

.et_pb_portfolio_item {
  background-color:#fff;
}

.et_pb_portfolio_item h2{
  font-weight:500;
}

div.portfolio-item-content {
  padding: 20px;
  font-family: 'Open Sans';
  -webkit-font-smoothing: antialiased;
}

h2.portfolio-item-title {
 font-weight: 700;
 font-size: 1.1em!important;
}

h2.portfolio-item-undertittel {
  line-height: 1.4em !important;
  padding-bottom:1em !important;
  font-size: 0.8em!important;
}

p.portfolio-item-ingress {
  font-size:0.7em;
  padding-bottom: 0em;
  line-height:1.4em;
}

.portfolio-item-img img {
 padding:10% 35%;
 border-radius: 50%;

}

p.portfolio-item-kommentar{
  font-style:italic;
  font-size:0.7em;
  padding-bottom: 2em;
  line-height:1.4em;
}

p.portfolio-item-avsender{
  font-style:italic;
  font-size:0.6em;
  padding-bottom: 0em;
  line-height:1.4em;
}

p.portfolio-item-bedrift{
  font-style:italic;
  font-size:0.6em;
}

.et_pb_equal_columns #equal {
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
}
.et_pb_module {
max-width: 100%
}
.et_pb_text_align_center {
margin: 0 auto;
}

.et_pb_column .et_pb_testimonial_portrait {
  display: block;
  float: none;
  margin: 0 auto 20px;
}

.et_pb_testimonial_description_inner {
  width: 100% !important;
}

.testimonial-custom-button {
  margin-right:0;
  margin-left:0;
}

/* Metodikken */
.custom-section-metodikken-title {
  padding: 0px;
}

.custom-section-metodikken {
  padding: 0px;
}

/* Bli med */
.et_pb_fullwidth_header .header-content h1 {
  font-size: 36px !important;
  letter-spacing: 1px !important;
  line-height: 1.7em !important;
  color:#000;
  font-weight: 300;
  font-family: 'Open Sans';
  -webkit-font-smoothing: antialiased;
}

.fullwidth-custom-title {
  margin-top:0px;
}

/* Contact Us section */

.contact-us-section {
    min-height: 550px;
}

.et-pb-contact-message {
  color: #fff !important;
}

/* Footer */

ul.ds-social-follow.et_pb_social_media_follow {
    text-align: center;
}
.ds-social-follow.et_pb_social_media_follow li {
    float: none;
    display: inline-block;
}
.large-social-icons li a.icon {
    height: 40px;
    width: 40px;
    padding: 0;
}
.large-social-icons li a.icon::before {
    font-size:24px;
    margin-left:4px;
    line-height:40px;
}

.footer-text p {
	text-align: center; font-size:13px; line-height:1.5em;
}

.footer-text p a {
	color: white;
}

.text-align-center {
  text-align:center !important;
}

#policy-link .et_pb_code_inner a {
  color: #FFF !important;
}

@media only screen and (max-width: 981px) {
  /* Changes mobile logo to specified image */
  #logo {
    content: url("http://tie.stage.superwp.no/wp-content/uploads/tie-logo-mobile.png");
  }
  #gridcard .et_pb_column .custom-person-item:nth-child(even) {
    margin-left: 0;
  }
  .custom-section-metodikken .et_pb_column {
    margin-bottom: 10px;  
  }

}



/*Set number of columns and margin for the images*/
@media (min-width: 981px) {
    .et_pb_gutters3 .et_pb_column_4_4 .ds-library-grid.et_pb_filterable_portfolio .et_pb_portfolio_item.et_pb_grid_item,
    .et_pb_gutters3 .et_pb_column_4_4 .ds-library-grid.et_pb_filterable_portfolio .et_pb_portfolio_item.active,
    .ds-library-grid.et_pb_portfolio_grid .et_pb_portfolio_item,
    .et_pb_column_4_4 .ds-library-grid.et_pb_grid_item:nth-child(1n) /*Change this number to value 4 in the calculator (don't remove the 'n')*/ {
        width: 45% !important; /*Change this number to value 3 in the calculator (don't remove the '%') */
        margin: 0 5% 5% 0; /*Change these numbers to values 1 & 2 in the calculator (don't remove the '%' or '0')*/
        min-height: 1000px;
    }
}

@media only screen and ( max-width: 980px) {
    .ds-library-grid .et_portfolio_image img {
        width: 100%;
    }
}

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

/* Grid Layouts: Gallery, Portfolio, Filterable Portfolio, Shop */
  .et_pb_column .et_pb_grid_item:nth-child(n),
  .et_pb_column .et_pb_filterable_portfolio_grid .et_pb_portfolio_item.et_pb_grid_item:nth-child(n),
  .et_pb_column .et_pb_shop_grid .woocommerce ul.products li.product:nth-child(n),
  .et_pb_column .woocommerce ul.products li.product:nth-child(n),
  .woocommerce-page ul.products li.product:nth-child(n),
  .et_gallery_item:nth-child(n) {
    width: 100% !important;
    margin: 0 0 11.5% 0 !important;
  }

}  

body .gform_wrapper .gform_body .gform_fields #field_1_33.gfield ginput_list table.gfield_list tbody tr td.gfield_list_cell {border: 1px solid red}
