/*
 Theme Name:     Divi Child - Megabite edits
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         Elegant Themes
 Author URI:     https://www.elegantthemes.com
 Template:       Divi
 Version:        1.0.1
*/
 
 
/* =Theme customization starts here
------------------------------------------------------- */

@font-face {
    font-family: 'LegacySansStd';
    src: url('/wp-content/LegacySansStd-Ultra.otf'),
		 url('/wp-content/LegacySansStd-MediumItalic.otf'),
		 url('/wp-content/LegacySansStd-Medium.otf'),
		 url('/wp-content/LegacySansStd-BookItalic.otf'),
		 url('/wp-content/LegacySansStd-Book.otf'),
		 url('/wp-content/LegacySansStd-BoldItalic.otf'), 
    	 url('/wp-content/LegacySansStd-Bold.otf');
    font-weight: normal;
    font-style: normal;
}

/* Språkvelger responsive justeringer */

@media (max-width: 782px) {
	body {
		padding-top: 0;
	}
	.et_pb_mhmm_menu .menu-button {
      display: block;
      width: 30px;
      height: 30px;
      top: 16px;
    }
	
	.wpml-ls-legacy-list-vertical a {
      padding: 20px 7px 0 0;
    }
	
	.wpml-ls-item-no .wpml-ls-native::after{
      content: "NO"!important;
    }
    .wpml-ls-item-en .wpml-ls-native::after{
      content: "EN"!important;
    }
}

/* LANGUAGE SELECTOR - språkvelger */
.hamburger_menu .et_pb_mhmm_menu {
  display: inline-block!important;
  float: right!important;
}
.language_switcher p {
  padding-bottom: 0em!important;
}
.wpml-ls-legacy-list-vertical .wpml-ls-item {
  padding-right:10px;
}
.wpml-ls-item-no .wpml-ls-native::after, .wpml-ls-item-en .wpml-ls-native::after {
  color:#000000;
  font-size:18px;
}
.wpml-ls-item-no .wpml-ls-native::before, .wpml-ls-item-en .wpml-ls-native::before {
  content: ""!important;
  font-size: 18px;
  padding: 14px;
  background: url("https://vossfolkemuseum.no/wp-content/uploads/2024/05/Icon-ionic-ios-globe-1.svg") no-repeat;
  background-position: 50% 50%;
}
.wpml-ls-item-no .wpml-ls-native::after{
  content: "Norsk";
  padding-left:10px;
}
.wpml-ls-item-en .wpml-ls-native::after{
  content: "English";
  padding-left:10px;
}
.wpml-ls-native {
  color: #fff;
  font-size: 0!important;
}
/*Språkvelger overstyringer
@media (max-width: 981px){
                .wpml-ls-item-no .wpml-ls-native::after, .wpml-ls-item-en .wpml-ls-native::after {
                font-size:15px;
}
                .wpml-ls-item-no .wpml-ls-native::before, .wpml-ls-item-en .wpml-ls-native::before{
                font-size:15px;
                                               -webkit-mask-size: 18px;
                mask-size: 18px;
                                                                                                                                              padding-left:18px;
}
}
*/
/* 2021 popup meny */
#et-boc .area-outer-wrap[data-da-type=popup] {
    width: 100%;
}
@media screen and (min-width: 981px) { 
	#et-boc .area-outer-wrap[data-da-type=popup] {
			width: 100%;
	}
}
.area-outer-wrap.popup_outer_wrap {
	top: 0!important;
	left: unset!important;
	padding: 0!important;
}
#et-boc .area-outer-wrap .da-close,
#et-boc .area-outer-wrap .da-close:hover {	
	background: none!important;
	-webkit-box-shadow: none!important;
	box-shadow: none!important;
	font-size: 30px!important;
}

/*Hide module based on lang*/
:lang(en-US) .hide_if_lang_en{
    display:none!important;
}
:lang(nb-NO) .hide_if_lang_no{
    display:none!important;
}
:lang(en-US) #evcalwidget_sc-2{
	 display:none!important;
}
:lang(nb-NO) #evcalwidget_sc-3{
	 display:none!important;
}

/* Expander på topp styling */
#mhmm .et_pb_toggle_title:before {
	display: none;
}
#mhmm .et_pb_toggle h5.et_pb_toggle_title {
	padding: 0px;
}
#mhmm .et_pb_toggle,  #mhmm .et_pb_toggle_open, #mhmm .et_pb_toggle_close {
	padding: 5px 0px 0px 0px;
}
/* 
 * 
 * Blogg-innlegg samme høyde - legg til custom_blog på rad
 * 
 *  */
@media only screen and (min-width: 768px) {
.custom_blog .et_pb_post {
min-height: 330px;
max-height: 330px;
}
}

/* 
 *
	STYLING FOR POST
 * 
 */
.et_pb_post h4 {
	line-height: 1.5em;
}
#left-area .et_pb_post .entry-title {
	display: inherit;
}

#left-area .et_pb_post .entry-content .entry-title {
	padding-top: 10px;
}

#left-area .et_pb_post .entry-content .et_pb_section, #left-area .et_pb_post .entry-content .et_pb_section .et_pb_row
{
	padding-top: 0px;
}

/* 
 *
	STYLING FOR ARKIV
 * 
 */
#main-content .container:before {
	width: 0px;
	margin-top: 183px;
	background-color: #efefef;
	height: 20%
}

#sidebar {
	border: 0px solid #2a337f !important;
	padding-right: 10px !important;
	padding-top: 20px;
	background-color: #fff;
	margin-bottom: 100px;
}
h4.widgettitle {
	border-bottom: 2px solid #000 !important;
	margin-bottom:  10px;
	
}

.et_right_sidebar .free-du-blog-1 #sidebar {
	padding-left: 10px !important;
}

@media (max-width: 980px) {
	.et_right_sidebar #sidebar {
		padding-right: 20px !important;
		padding-left: 20px !important;
		border: 1px solid #000 !important;
		margin-bottom: 70px;
}
}


/* 
 * 
 * Responsive justeringer
 * 
 *  */
@media (max-width:1250px) and (min-width:981px) {
	h1 {
		font-size: 42px !important; 
	}
}

@media (max-width: 980px) {
#eksempelMeny {
	display: none;
}
	
	/* Hamburger-meny mobil - fix scroll issue*/
.et_pb_mhmm_menu nav ul {
	  height: 80%;
}
}


/* 
 *
	FLEXBOX FOR MOBIL
 * 
 */
@media all and (max-width: 980px) {
/*** wrap row in a flex box ***/
.custom_row {
  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_row:last-child .et_pb_column:last-child {
margin-bottom: 30px;
}
 
}

/* Scroll to section - use this class */
.fullpage-valign{
height:100vh; 
display: flex; 
flex-direction: column; 
justify-content: center;}




/* 
*
Tekniske fikser
* 
*/
/* Checkmark email subscribe*/
.et_pb_newsletter_button_wrap {
    float: left !important;
    flex-basis: 15% !important;
    background-image: url("https://vossfolkemuseum-no.preview-domain.com/wp-content/uploads/2018/08/check.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: 49px;
}
.et_pb_newsletter_button_text {
  display: none;
}
.et_pb_newsletter_button_wrap .et_pb_newsletter_button.et_pb_button {
  border: none !important;
}
.et_pb_newsletter_form p.et_pb_newsletter_field {
    flex-basis: 85% !important;
}
.et_pb_newsletter_button_wrap .et_pb_newsletter_button.et_pb_button:after {
  display: none !important;
}
.et_pb_newsletter_button_wrap .et_pb_newsletter_button.et_pb_button {
    padding: 50% !important;
}

/* fikser kolonnefeil ved 5 kolonner */
@media only screen and ( min-width: 768px ) and ( max-width: 980px ) { 
body .et_pb_gutters1.et_pb_row > .et_pb_column_1_5 {
    width: 50% !important;
    margin-right: 0 !important;
}
}

/* Link dekker hele kolonne dersom du legger til en knapp */
.clickcolbutton {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 opacity: 0;
 border: 0 !important;
 background: transparent !important;
 color: transparent !important;
 z-index: 9999;
	cursor: pointer;
}

/* toolbox ved redigering av tekst */
	.et-fb-module--short .et-fb-component-settings--module, 
.et-fb-component-settings, 
.et-fb-component-settings--module {
		top: -0px !important;
	}



/* testing for å få mindre padding i footer*/
@media (min-width: 981px){
.et_pb_gutters3 .footer-widget {
                Margin-bottom: 0px;
   }
}
 
#footer-widgets {
       Padding: 15px;
}