/*
Theme Name: Divi Child Tema
Theme URI: https://wordpress-756957-4436440.cloudwaysapps.com
Description: Kenneth Hauen
Author: Kenneth Hauen
Author URI: https://wordpress-756957-4436440.cloudwaysapps.com
Template: Divi
Version: Updated for Divi 4+
*/

/*------------------------------------------------*/
/*-------------------[GENERELT]--------------------*/
/*------------------------------------------------*/

body.single-post .wp-caption {
	padding: 0px !important;
	border: 0px !important;
	background: transparent !important;
}

body.single-post .wp-caption p.wp-caption-text {
	display: none !important;
}

.et_pb_blog_0 .et_pb_post .entry-title .et_pb_blog_0 .et_pb_post .post-meta {
  padding-left: 11px!important;
}

/** KARUSELL  - Kenneth Hauen**/
.dsm-blog-carousel-item {
    padding-top: 8px!important;
    padding-right: 8px!important;
    padding-bottom: 0px!important;
    padding-left: 8px!important;
    transition: bottom 1s ease-in-out; 
}
.dsm-entry-image{
    border-radius: 0.33em 0.33em 0.33em 0.33em;
	box-shadow: 0.5em 0.5em 0.5em 0.5em  rgba(0,0,0,0.09);
}
.dsm-blog-carousel-item:hover{
  	transform: scaleX(0.98) scaleY(0.98) !important;
	transition: all 350ms ease-in-out !important;
}
/** KARUSELL SLUTT  - Kenneth Hauen**/

/** TEST START  - Kenneth Hauen**/
.csm-blog-NEI > div {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
		margin-right: 0.5rem;
}
.et_pb_post-NEI {
    padding: 1rem;
    border-radius: 0.33rem 0.33rem 0.33rem 0.33rem;
  
}
.cms-blog-NEI, .et_pb_post-NEI:hover {
  transform: scaleX(0.977) scaleY(0.977) !important;
  transition: transform 350ms ease-out;
  transition-delay: 150ms;
}
/** TEST SLUTT  - Kenneth Hauen*/

/*------------------------------------------------*/
/*-----------------[TOP-MENY]------------------*/
/*------------------------------------------------*/


/*------------------------------------------------*/
/*------------------[HJEMMESIDEN]--------------------*/
/*------------------------------------------------*/


/*------------------------------------------------*/
/*------------------[SIDER]--------------------*/
/*------------------------------------------------*/

/* Read more blog button START - NY - 2023 - 07.06  - Kenneth Hauen*/
.more-link {
	margin-top: 15px;
	color: #01332a!important;
    background-color: #efebe9!important;
	box-shadow: 0px 2px 18px 0px rgba(0,0,0,0.33);
	display: inline-block;
	position: relative;
    border-width: 0px!important;
    border-radius: 0.33rem;
	margin-bottom: 13px;
    font-size: 16px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    line-height: 1.7em!important;
    border-radius: 0.33rem;
	transition: all 0.3s ease-in-out;
}
.more-link:hover {
	color: #01332a!important;
	transition: all 0.3s ease-in-out;
    background-color: #efebe9!important;
	border-radius: 2rem;
	box-shadow: 0px 2px 18px 0px rgba(0,0,0,0.33);

}
/** Read more blog button END - Kenneth Hauen**/

/*------------------------------------------------*/
/*-------------------[FOOTER]---------------------*/
/*------------------------------------------------*/


/*------------------------------------------------*/
/*------------------------------------------------*/
/*------------------------------------------------*/
/*--[RANDOM GREIER]--*/
/*------------------------------------------------*/
/*------------------------------------------------*/
/*------------------------------------------------*/


/*style the individual posts*/
.et_pb_posts .et_pb_post {
	padding: 30px;
	background: #f2f2f2;
	border-radius: 10px;
	-webkit-column-break-inside: avoid; /* Chrome, Safari, Opera */
	page-break-inside: avoid; /* Firefox */
	break-inside: avoid; /* IE 10+ */
}

/*** Change Mobile Columns ***/
/* 2 Columns Mobile */
@media all and (max-width: 767px) {
    html .et-db .two-col-mob .et_pb_column {
        width:47.25% !important;
    }
    
html .et-db .two-col-mob .et_pb_column:nth-last-child(-n+2) {
        margin-bottom:0;
    }
    html .et-db .two-col-mob .et_pb_column:not(:nth-child(2n)) {
            margin-right:5.5% !important;
    }
}
/* 3 Columns Mobile */
@media all and (max-width: 767px) {
    html .et-db .three-col-mob .et_pb_column {
        width:29.6667% !important;
    }
    html .et-db .three-col-mob .et_pb_column:nth-last-child(-n+3) {
        margin-bottom:0;
    }
    html .et-db .three-col-mob .et_pb_column:not(:nth-child(3n)) {
        margin-right:5.5% !important;
    }
}
/* 4 Columns Mobile */
@media all and (max-width: 767px) {
    html .et-db .four-col-mob .et_pb_column {
        width:20.875% !important;
    }
html .et-db .four-col-mob .et_pb_column:nth-last-child(-n+4) {
        margin-bottom:0;
    }
    html .et-db .four-col-mob .et_pb_column:not(:nth-child(4n)) {
        margin-right:5.5% !important;
    }
}
/* 5 Columns Mobile */
@media all and (max-width: 767px) {
    html .et-db .five-col-mob .et_pb_column {
        width:15.6% !important;
    }
    html .et-db .five-col-mob .et_pb_column:nth-last-child(-n+5) {
        margin-bottom:0;
    }
    html .et-db .five-col-mob .et_pb_column:not(:nth-child(5n)) {
        margin-right:5.5% !important;
    }
}
/* 6 Columns Mobile */
@media all and (max-width: 767px) {
    html .et-db .six-col-mob .et_pb_column {
        width:12.083% !important;
    }
    html .et-db .six-col-mob .et_pb_column:nth-last-child(-n+6) {
        margin-bottom:0;
    }
    html .et-db .six-col-mob .et_pb_column:not(:nth-child(6n)) {
        margin-right:5.5% !important;
    }
}
/*** Change Tablet Columns ***/
/* 1 Column Tablet */
@media all and (min-width: 768px) and (max-width: 980px) {
    html .et-db .one-col-tab .et_pb_column {
        margin-right:0 !important;
        width:100% !important;
    }
    
        html .et-db .one-col-tab .et_pb_column:not(:last-child) {
        margin-bottom:30px !important;
    }
}
/* 2 Columns Tablet */
@media all and (min-width: 768px) and (max-width: 980px) {
    html .et-db .two-col-tab .et_pb_column {
        width:47.25% !important;
    }
.two-col-tab .et_pb_column:nth-last-child(-n+2) {
        margin-bottom:0;
    }
    html .et-db .two-col-tab .et_pb_column:not(:nth-child(2n)) {
        margin-right:5.5% !important;
    }
}
/* 3 Columns Tablet */
@media all and (min-width: 768px) and (max-width: 980px) {
    html .et-db .three-col-tab .et_pb_column {
        width:29.6667% !important;
    }
html .et-db .three-col-tab .et_pb_column:nth-last-child(-n+3) {
        margin-bottom:0;
    }
    html .et-db .three-col-tab .et_pb_column:not(:nth-child(3n)) {
        margin-right:5.5% !important;
    }
}
/* 4 Columns Tablet */
@media all and (min-width: 768px) and (max-width: 980px) {
    html .et-db .four-col-tab .et_pb_column {
        width:20.875% !important;
    }
html .et-db .four-col-tab .et_pb_column:nth-last-child(-n+4) {
        margin-bottom:0;
    }
    html .et-db .four-col-tab .et_pb_column:not(:nth-child(4n)) {
        margin-right:5.5% !important;
    }
}
/* 5 Columns Tablet */
@media all and (min-width: 768px) and (max-width: 980px) {
    html .et-db .five-col-tab .et_pb_column {
        width:15.6% !important;
    }
.five-col-mob .et_pb_column:nth-last-child(-n+5) {
        margin-bottom:0;
    }
    
    html .et-db .five-col-tab .et_pb_column:not(:nth-child(5n)) {
        margin-right:5.5% !important;
    }
}
/* 6 Columns Tablet */
@media all and (min-width: 768px) and (max-width: 980px) {
    html .et-db .six-col-tab .et_pb_column {
        width:12.083% !important;
    }
    html .et-db .six-col-tab .et_pb_column:nth-last-child(-n+6) {
        margin-bottom:0;
    }
    html .et-db .six-col-tab .et_pb_column:not(:nth-child(6n)) {
        margin-right:5.5% !important;
    }
}


/*Skyene beveger seg fram og tilbake*/
.skypng img {
animation: float-sideways 6s infinite alternate;
}

@keyframes float-sideways {
0% {
transform: translateX(0);
}
100% {
transform: translateX(100px);
}
}

.cimage_404 img {
  animation: float-sideways 4s infinite alternate;
}

@keyframes float-sideways {
	100% {
    transform: translateX(90px);
  }
  100% {
    transform: translateX(80px);
  }
}

/*Fix the usage of custom background color*/
body.custom-background #main-content {
	background-color: transparent;
}

@media only screen and ( min-width: 1080px ) and ( max-width: 1300px ) {
.et_pb_section.et_pb_section_0_tb_header.cstm_row.et_pb_sticky_module.et_pb_with_background.et_section_regular{
padding-top:0 !important; 
}	
}
@media (min-width: 1080px) {
.et_pb_section {
    padding: 4% 0;
}	
}	

.dd-menu-flex-item.dd-h .et_pb_blurb {
    line-height: 1.2em !important;
} 

.single-post article.et_pb_post {
  margin-bottom: 0 !important;
}

.et_pb_comments_0 #commentform label {
    font-family: 'Rubik',Helvetica,Arial,Lucida,sans-serif!important;
    font-size: 14px!important;
	color: #161b49!important;
    line-height: 1.4em!important;
}

.et_pb_bg_layout_dark .comment_postinfo a, .et_pb_bg_layout_dark .comment_postinfo span .et_pb_bg_layout_dark, .et_pb_bg_layout_dark h1, .et_pb_bg_layout_dark h2, .et_pb_bg_layout_dark h3, .et_pb_bg_layout_dark h4, .et_pb_bg_layout_dark h5, .et_pb_bg_layout_dark h6 {
    color: #161b49!important;
}

a.more-link:after {    
	content: ' →';
}

.single .post {
    padding-bottom: 0px!important;
}

.et_pb_gutters2 .et_pb_column_4_4 .et_pb_blog_grid .column.size-1of3 .et_pb_post, .et_pb_gutters2.et_pb_row .et_pb_column_4_4 .et_pb_blog_grid .column.size-1of3 .et_pb_post {
    margin-bottom: 10%!important;
}

footer.et-l.et-l--footer {
    position: relative;
    z-index: 0;
}

.nordfoto-badge {
    display: inline-block;
    padding: var(--bs-badge-padding-y) var(--bs-badge-padding-x);
    font-size: var(--bs-badge-font-size);
    font-weight: var(--bs-badge-font-weight);
    line-height: 1;
    color: var(--bs-badge-color);
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: var(--bs-badge-border-radius);
    --bs-badge-padding-x: 0.65em;
    --bs-badge-padding-y: 0.35em;
    --bs-badge-font-size: 0.75em;
    --bs-badge-font-weight: 400;
    --bs-badge-color: #fff;
    --bs-badge-border-radius: 0.375rem;
}

.bakgrunn-suksess {
    background-color: #5a9963!important;
}
.bakgrunn-graa {
    background-color: #6c757d!important;
}
.bakgrunn-advarsel {
    background-color: #ffc107!important;
	color: #000!important;
}
.bakgrunn-rod {
    color: #fff!important;
    background-color: RGBA(220,53,69,var(--bs-bg-opacity,1))!important;
}

.cu-blog .et_pb_salvattore_content[data-columns]::before {
	content: '4 .column.size-1of4' !important;
}
@media only screen and ( min-width: 981px ) {
	.cu-blog .column.size-1of4 {
	    width: 24%!important;
	    margin-right: 1%;
	}
}

.cu-blog .et_pb_salvattore_content[data-columns]::before {
	content: '5 .column.size-1of5' !important;
}
@media only screen and ( min-width: 981px ) {
	.cu-blog .column.size-1of5 {
	    width: 24%!important;
	    margin-right: 1%;
	}
}

/* Read more blog button START  - Kenneth Hauen*/
/*.more-link {
	margin-top: 15px;
	color: #282335!important;
    background-color: #efebe9!important;
	display: inline-block;
	position: relative;
    border-width: 0px!important;
    border-radius: 0.33rem;
	margin-bottom: 13px;
    font-size: 16px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    line-height: 1.7em!important;
    border-radius: 0.33rem;
	box-shadow: 5px 5px 0px 0px rgb(191 224 109 / 91%);
}
.more-link:hover {
	color: #282335!important;
    background-color: #efebe9!important;
	border-radius: 2rem;

}
/** Read more blog button END - Kenneth Hauen**/

/** Blog CSM - Kenneth Hauen **/
.csm-blog-ai > div {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 2fr));
	gap: 20px;
	border-radius: 0.33rem;
}

/*.et_pb_blog {
    padding: 1rem;
	background-color: #00211b!important;
	transition: box-shadow 300ms ease 0ms;
}*/

.cms-blog-ai:hover {
	
}
/** Blog CSM SLUTT - Kenneth Hauen **/




/** KARUSELL  - Kenneth Hauen**/
.dsm-blog-carousel-item {
    padding-top: 8px!important;
    padding-right: 8px!important;
    padding-bottom: 0px!important;
    padding-left: 8px!important;
    transition: bottom 1s ease-in-out; 
}
.dsm-entry-image{
    border-radius: 0.33em 0.33em 0.33em 0.33em;
	box-shadow: 0.5em 0.5em 0.5em 0.5em  rgba(0,0,0,0.09);
}
.dsm-blog-carousel-item:hover{
  	transform: scaleX(0.98) scaleY(0.98) !important;
	transition: all 350ms ease-in-out !important;
}
/** KARUSELL SLUTT  - Kenneth Hauen**/


/** TEST START  - Kenneth Hauen**/
.csm-blog-NEI > div {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
		margin-right: 0.5rem;
}
.et_pb_post-NEI {
    padding: 1rem;
    border-radius: 0.33rem 0.33rem 0.33rem 0.33rem;
  
}
.cms-blog-NEI, .et_pb_post-NEI:hover {
  transform: scaleX(0.977) scaleY(0.977) !important;
  transition: transform 350ms ease-out;
  transition-delay: 150ms;
}
/** TEST SLUTT  - Kenneth Hauen*/