﻿

/*New*/
section.content { padding: 40px 0 40px 0; margin: 0;}
section.grayContent { margin: 0; padding: 60px 0; background-color: #f9f9f9; }
section.redContent { margin: 0; padding: 60px 0; background-color: #B2002F; }
section.noPadding { padding: 0!important; margin: 0; }


/*Module elements*/
.col1-image { margin-top: 20px; }
.col2-image { margin-top: 50px; }

/*Text-Image*/
.moduletext { padding: 0 40px 0 40px; }
.moduleimage { padding: 0 40px 0 40px; }
.moduletext h1 { padding: 20px 0 10px 0; color: #B2002F }
.moduletext.center { text-align: center; }
.moduletext p { font-size: 18px; }
.moduletext .link { padding-top: 20px; }
.moduleimage.image-right{ float: right;}
.moduleimage img, .moduletext img{ border-radius: 40px; }

/*Banner*/
.moduleBanner { position: relative;}

/*Quote*/
.informationTxt { text-align: center; }
.informationTxt h2 { font-size: 50px; }


/*ChildList*/
.childList .row div{ text-align: center;}
.childList .listContainer {  display: flex; flex-flow: row wrap; justify-content: flex-start; }
.childList .listItem{ padding: 30px;display: flex; flex-flow: column nowrap;}
.childList .listItem .imgLink{ flex-grow: 1;display: block;}
.childList .listItem picture { display: block;margin: 0 auto 20px auto}
.childList .listItem p{ margin-bottom: 20px;display: inline-block;font-size: 1em;}
.childList .listItem .btn { margin-top: auto; align-self: center;}
.childList img { border-radius: 15px;}
.childList a:hover { text-decoration: none; }
/*Newslist*/
.newsList .flexContainer { display: flex; flex-wrap: wrap; justify-content: center; }
.newsList a.newsLink { flex-direction: row; max-width: 100%; width: 100%; margin: 15px;display: flex; text-decoration: none; color: #35312f; }
.newsList figure.newsImage { max-width: 240px; overflow: hidden; margin-top: 30px;}
.newsList .newsContent { align-self: center; padding: 0 30px; -webkit-box-flex: 1; -webkit-flex: 1; -ms-flex: 1; flex: 1; }
.newsList img { border-radius: 20px; }
.newsList .newsArchiveLink{ text-align: center; margin-top: 30px; }

/*Banner with textbox*/
.moduleBannerWithTextBox { position: relative; }
.moduleBannerWithTextBox .overlay { position: absolute; z-index: 1; width: 280px; padding: 20px; right: 5%; top: 10%; background-color: #fff; opacity:75%; font-size: 1.7rem;border-radius:20px}
.moduleBannerWithTextBox .overlay h2{ margin-top: 0; font-size: 4rem;line-height: 4rem;}

/*Image gallery*/
.imageGridLarge .galleryGridSizer { width: 25%; }
.imageGridLarge .galleryImage { width: 50%; overflow: hidden }
.imageGridLarge .galleryImage.portrait { width: 25%; overflow: hidden; }
.imageGridSmall .galleryGridSizer { width: 12.5%; }
.imageGridSmall .galleryImage { width: 25%; overflow: hidden }
.imageGridSmall .galleryImage.portrait { width: 12.5%; overflow: hidden; }
.galleryHeading{ text-align: center;padding-bottom: 40px;}
.productGallery{ text-align: center;margin-top: 30px;}

/*Image button list*/

.imageButtonList .listItem { padding: 20px; }
.imageButtonList .btn{ width: 100%;margin-top: 20px;}
.imageButtonList .itm p{ font-size: 14px;padding-top: 10px;padding-bottom: 0;}
/*Image text list*/
.imagetext .imagetext-item .imagetext-link { display: block; position: relative; margin: 0 auto; }
.imagetext .imagetext-item .imagetext-link .imagetext-hover { position: absolute; width: 100%; height: 100%; opacity: 0; background: rgba(0, 0, 0, 0.5); -webkit-transition: all ease .5s; -moz-transition: all ease .5s; transition: all ease .5s; color: #fff; }
.imagetext .imagetext-item .imagetext-link .imagetext-hover:hover { opacity: 1; }
.imagetext .imagetext-item .imagetext-link .imagetext-hover .imagetext-hover-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 70px; height: 70px; text-align: center; font-size: 20px; border: 2px solid #fff; border-radius: 50%; }
.imagetext .imagetext-item .imagetext-link .imagetext-hover .imagetext-hover-content i { margin-top: 15px; }
.imagetext .imagetext-item .imagetext-caption { padding: 15px; max-width: 400px; text-align: center; }
.imagetext .imagetext-item .imagetext-caption:hover { background-color: #fff; }
.imagetext .imagetext-item .imagetext-caption p { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 18px; }
.imagetext.small .imagetext-item { right: 0; margin: 10px 0 15px; min-height: 169px; }
.imagetext.small .imagetext-item img { width: 100%; }
.imagetext.small .imagetext-link .imagetext-hover { position: absolute; width: 100%; height: 100%; opacity: 1 !important; background: rgba(0, 0, 0, 0.5); -webkit-transition: all ease .5s; -moz-transition: all ease .5s; transition: all ease .5s; color: #fff; }
.imagetext.small .imagetext-link .imagetext-hover:hover { opacity: 1; }
.imagetext.small .imagetext-link .imagetext-hover .imagetext-hover-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 70px; height: 70px; text-align: center; font-size: 20px; border: 2px solid #fff; border-radius: 50%; }
.imagetext.small .imagetext-link .imagetext-hover .imagetext-hover-content i { margin-top: 15px; }
.imagetext.small .imagetext-caption { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 22px; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; color: #fff; text-align: center !important; }
.imagetext.small .imagetext-caption:hover { background-color: transparent; }
.imagetext { text-align: center; }
.imagetext h2 { color: #d48926 !important; font-size: 50px; }
.imagetext h2.gray { color: #5c6e75 !important; }
.imagetext h2.burgund { color: #b2002f !important; }
.imagetext h3 { color: #35312f; margin-top: 10px; margin-bottom: 10px; }
.imagetext .imagetext-item { right: 0; margin: 10px 0 15px; min-height: 350px; }


/*Video*/
.video-container { position: relative; aspect-ratio:16/9; overflow: hidden; }
.video-ratio-1-2{ padding-bottom: 50%;}
.video-container iframe,
.video-container object,
.video-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%;object-fit:cover; }

/*Lett å gjøre rett ikoner*/
.services { text-align: center; padding-top: 40px; }
.services h2 { color: #b2002f !important; font-size: 50px; }
.services .services-item { margin-bottom: 20px; min-height: 300px; }
.services .wrap-img { padding-top: 30px; height: auto; width: 120px; display: inline-block; padding-bottom: 20px; }

/*Block grid blocks*/   
.blockContent .umb-block-grid__layout-container:has(.childitem) { display: flex; flex-direction: row; width: 100%; flex-wrap: wrap; }
.blockContent .umb-block-grid__layout-item:has(.childitem) { display: flex; flex-direction: row; width: 33.33%; }
.blockContent .umb-block-grid__layout-item .childitem { padding: 25px; text-align: center; display: flex; flex-direction: column; width: 100%; }
.blockContent .flexible { flex-grow: 1; padding: 10px 0; }
    

section.blockContent { padding: 40px 0 20px 0; margin: 0; }


.blockText, .blockImage { padding: 0 40px 20px 40px; }
.blockText.narrow { padding-left: 20%; padding-right: 20% }
.blockText.center { text-align: center; }
.blockText img { margin-bottom: 20px; }
.blockText p { font-size: 1.8rem; }
.blockImage img, .blockText img, .childitem img { border-radius: 40px; }

@media (min-width: 992px) and (max-width: 1199px) {
    
}

@media (min-width: 768px) and (max-width: 991px) {
    .moduleimage.image-right { float: none; }
    .blockContent .umb-block-grid__layout-item:has(.childitem) { width: 50%; }
    .blockText.narrow { padding-left: 15%; padding-right: 15%; }
}
@media (max-width: 767px) {
    .moduleBanner { margin-left: -15px; margin-right: -15px; }
    .moduleBanner h1 { position: absolute; text-align: center; display: inline-block; width: 100%; top: 10% }
    .moduleBannerWithTextBox .overlay { margin-left: 0; position: relative; text-align: center; width: 100%; left: 0; }
    .moduleBannerWithTextBox .banner { margin-left: -15px; margin-right: -15px; }
    .moduletext { text-align: center; padding: 0 10px; }
    .moduletext p { font-size: 1.7rem; }
    .moduleimage { padding: 0 10px 30px 10px; }
    .moduleimage.image-right { float: none; }
    .moduletext .link a { width: 250px; }
    .video-container { margin-left: -15px; margin-right: -15px; }
    .galleryWrapper { width: 100%; padding-left: 0; padding-right: 0 }
    .imageGridLarge .galleryGridSizer { width: 50%; }
    .imageGridLarge .galleryImage { width: 100%; overflow: hidden }
    .imageGridLarge .galleryImage.portrait { width: 50%; overflow: hidden; }
    .imageGridSmall .galleryGridSizer { width: 25%; }
    .imageGridSmall .galleryImage { width: 50%; overflow: hidden }
    .imageGridSmall .galleryImage.portrait { width: 25%; overflow: hidden; }
    .imagetext .imagetext-item { min-height: 1px; }
    .imagetext .imagetext-item img { width: 100%; }
    .newsList a.newsLink { flex-direction: column; }
    .newsList .newsButton { text-align: center; }
    .newsList figure.newsImage{ max-width: initial;}
    .newsList .newsContent { padding: 0 10px; }
    .services .services-item { min-height: 1px; }
    .childList .listItem { padding: 10px; }
    .childList h3{ font-size: 1.7em; height:auto;}
    .informationTxt h2 { font-size: 40px; }
    .blockContent .umb-block-grid__layout-item:has(.childitem) { width: 100%; }
    .blockText { text-align: center; padding: 0 10px; }
    .blockText.narrow { padding: 0; }
    .blockText p { font-size: 1.7rem; }
    .blockImage { padding: 0 10px 30px 10px; }

}
