﻿/*
 Theme Name:   MUUTU
 Theme URI:    https://www.muutu.fi
 Description:  Digitoimisto Muutu Custom WP
 Author:       Digitoimisto Muutu
 Author URI:   https://www.muutu.fi
 Template:     Divi
 Version:      6.9.2
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         responsive-layout
 Text Domain:  divi-child
*/


/* Oletusarvoinen fokuskorostus pois hakukentästä */
.et_search_form_container input {
    outline-width: 0;
}

/* Taulukoista Divin oletustyylit pois */
table, td {
   border: none !important;
}
td {
   padding: 0 !important;
}

/* Listoista pois Divin oletusalareunapadding */
ul, ol {
  padding-bottom: 0;
}

/* Tee yläpalkin sisään- ja ulosfeidauksesta pehmeämpää */
#main-header, #main-header li a, .et_pb_toggle_title, .et_pb_toggle_title::before {
   transition: all .3s linear !important;
}

/* Nosta Complianzin banneri päällimmäiseksi (esim. kolmannen osapuolen chattisovelluksen ylle) */
.cmplz-cookiebanner {
    z-index: 9999999999999 !important;
}

/*********** Automaattitavutus ************/

/* Fiinimpi automaattitavutus selaimille, jotka tukevat tavupituusrajoja. */
@supports (hyphenate-limit-chars: 10 8 8) {
   /* Tavutus päälle, leipis. */
   .et_pb_text_inner *:not(h1, h2, h3, h4, h5, h6) {
      hyphens: auto;
      hyphenate-limit-chars: 8 4 4;
   }
   /* Tavutus päälle, otsikot (paitsi pää-) */
   h2, h3, h4, h5, h6 {
      hyphens: auto;
      hyphenate-limit-chars: 10 8 8;
   }
}
/* Krouvimpi tavutus selaimille, jotka eivät tue tavurajoja. */
@supports not (hyphenate-limit-chars: 10 8 8) {
   /* Tavutus päälle, tavutetaan vain leipätekstiä. */
   .et_pb_text_inner *:not(h1, h2, h3, h4, h5, h6) {
      hyphens: auto;
   }
}

/******* Autotavutussäädöt päättyvät *******/

/* Mobile menu scrollable fix - cmon Divi WHY U NO 2019??*/
.et_mobile_menu {
  overflow-y:scroll!important;
  max-height:80vh!important;
  -overflow-scrolling:touch!important;
  -webkit-overflow-scrolling:touch!important;
}

/* SlideFix */
.mfp-title {display:none}

/* Piilota navigaation hakufunktio*/
#et_top_search {display:none!important}

/* Easy icons - add these to links with e.g. class="icon-email" etc. */
.icon-email::before{font-family: 'ETmodules';content: '\e076';} /* Envelope */
.icon-phone::before{font-family: 'ETmodules';content: '\e090';} /* Phone */
.icon-mobile::before{font-family: 'ETmodules';content: '\e00b';} /* Mobile */
.icon-marker::before{font-family: 'ETmodules';content: '\e081';} /* Marker */
.icon-clock::before{font-family: 'ETmodules';content: '\e06b';} /* Clock */
/* Easy icons - END */

/* Lisää sulkunappi haitareihin. */
.et_pb_accordion_item.et_pb_toggle_open .et_pb_toggle_title:before {
   display: block;
   content: "\e04f";
}

/* Mistä leveydestä alaspäin näytetään hampurilaisvalikko. */
@media only screen and (max-width: 1080px) {
   #top-menu-nav {
      display: none;
   }
   #et_mobile_nav_menu {
      display: block
   }
}

@media only screen and (max-device-width : 980px)  {
    /* Navigaatio seuraa mobiilissa */
   #main-header {
      position:fixed!important;
   }
   /* Mobile menu close icon */
   .mobile_nav.opened .mobile_menu_bar:before {
      content: '\4d';
      -webkit-transition: 0.3s;
      transition: 0.3s;
   }
}

/* Piilota gallerian kuvalaskuri- ja tekstipalkki */
.mfp-bottom-bar { display: none }

/* Lightbox-näkymän sulkurasti hiukan kirkkaammaksi. */
.mfp-close {
	opacity: .6 !important;
}
.mfp-close:hover {
	opacity: 1 !important;
}
