/*
Theme Name: Drammens Museum – Beaver Builder Child Theme
Theme URI: http://www.wpbeaverbuilder.com
Version: 1.0
Description: An example child theme that can be used as a starting point for custom development.
Author: The Beaver Builder Team
Author URI: http://www.fastlinemedia.com
template: bb-theme
*/

/* Typography */ 

/*
    Myfonts classes:
    
    h1.site-title { 
	    font-family: 'TTNormsPro-Italic';
    }
    h1.site-title { 
    	font-family: 'TTNormsPro-Regular';
    }
    h1.site-title { 
    	font-family: 'TTNormsPro-Bold';
    }
    h1.site-title { 
    	font-family: 'Albra-Regular';
    }

*/

html.pp-offcanvas-content-widget {
    margin-top: 0 !important;
}

body, h1, h2, h3, h4, h5, h6, p, ol, ul, a, input, submit,
.ttnorms-regular *, blockquote p cite {
    font-family: 'TTNormsPro-Regular';
}

h1, h2, h3, h4 {
    margin-bottom: 1rem;
}

p {
    margin-bottom: 2rem;
}

a.fl-button {
    font-family: 'TTNormsPro-Regular' !important;
}

.display-heading-bold h1 { 
    	font-family: 'TTNormsPro-Bold';
    	text-transform: uppercase;
}

blockquote, blockquote p,
.albra-regular * {
    font-family: 'Albra-Regular';
	font-size: 38px;
}

b, strong, bold { 
    	font-family: 'TTNormsPro-Bold';
}

i, em, italic { 
    font-family: 'TTNormsPro-Italic';
	font-style: normal;
}

@media only screen and (min-width: 1025px) {
    .lead, p.lead {
        font-size: 30px;
    }
}

.fl-post-meta {
    text-transform: uppercase;
}

.fl-post-meta-large {
    font-size: 30px;   
}

.fl-post-meta-medium {
    font-size: 22px;   
}

.fl-post-meta-small {
    font-size: 16px;   
}

ul.unstyled {
    list-style-type: none;
    padding-left: 0;
}

.post-holder {
	margin-bottom: 30px;
}
.post-tittel {
	margin-top: 20px;
}
.post-ingress p {
	font-size: 22px !important;
	margin-top: 10px;
}
.post-dato {
	font-size: 16px;
	text-transform: uppercase;
	
}

/* Buttons */

.uabb-creative-button-wrap a {
    border-radius: 0px !important;
}

/* Gutenberg button */
.wp-block-button__link {
	border-radius: 0px;
	font-size: 0.9em !important;
	margin-bottom: 2em;
}


/* Blockquotes */

blockquote, blockquote p {
    color: #333
}

.wp-block-quote {
	border: none;
	padding-left: 0px;
}

.wp-block-quote p:first-child {
	width: 100%;
	height: auto;   
  	position: relative;
  	z-index: 1;
}

.wp-block-quote p:first-child:before {
	border-bottom: 5px solid #F8C34D;
	content: "";
  	position: absolute;
  	left: 0;
  	bottom: -20px;
  	width: 50%; 
	
}
.wp-block-quote p cite {
	font-size: 20px;
	margin-top: 0px;
}


.wp-block-pullquote {
    border: 0 none;
}

.wp-block-pullquote p cite {
    border-top: .25em solid #F8C34D;
    padding-top: 30px;
    margin-top: 45px;
    display: block;
    font-size: 22px;
}

/* Header semi sticky */
.header {
    -webkit-transition-duration: .5s;
    transition-duration: .5s;
 
    -webkit-transition-timing-function: cubic-bezier( 0.215, 0.610, 0.355, 1.000 );
    transition-timing-function: cubic-bezier( 0.215, 0.610, 0.355, 1.000 );
 
    -webkit-transition-property: -webkit-transform;
    transition-property: transform;
}
 
.header--hidden {
    -webkit-transform: translateY( -100% );
    -ms-transform: translateY( -100% );
    transform: translateY( -100% );
}


/* Global menu and Tabs styles */


ul.menu li a,
.fl-post-more-link a,
.drm-category-widget .widget_categories ul a {
  display: inline-block;
  padding-left: 0px !important;
}

ul.menu li a::after,
.drm-tabs .pp-tabs-label .pp-tab-title:after,
.fl-post-more-link a:after,
.drm-category-widget .widget_categories ul a:after {
  content: '';
  width: 100%;
  height: 1px;
  display: block;
  background: #222222;
  transition: 300ms;
}

ul.menu li a:hover::after,
ul.menu li.current-menu-item a::after,
.drm-tabs .pp-tabs-label.pp-tab-active .pp-tab-title::after,
.fl-post-more-link a:hover:after,
.drm-category-widget .widget_categories ul a:hover::after {
  opacity: 0;
}

ul.menu-large li {
    margin: 0;
}

ul.menu-large li a {
    font-size: 22px;
    padding: 12px 12px 12px 0;
}

@media only screen and (min-width: 1025px) {
    ul.menu-large li a {
        font-size: 28px;
    }
}

.neg-menu ul.menu li a::after {
    background: #FFFDF8;
}

ul.menu li.show-for-large {
    display: none;
}

ul.menu li.show-for-small {
    display: inline-block;
}


@media only screen and (min-width: 768px) {
    ul.menu li.show-for-large {
        display: inline;
    }
    ul.menu li.show-for-small {
        display: none;
    }
}

.pp-tabs-horizontal .pp-tabs-labels .pp-tabs-label {
	padding: 15px 30px 12px 0px;
}

/* Overlay Menu */

/*
.overlay-menu-museet {
    height: 0%;
    opacity: 0;
    visibility: hidden;
    position: fixed;
    top: 101px !important;
    left: 0;
    width: 100%;
    transition: opacity .35s, visibility .35s, height .35s;
    overflow: hidden;
    z-index: 1000;
    background-color: #fffdf8;
}

.overlay-menu-museet.open {
    opacity: 1;
    visibility: visible;
    height: 100%;
}

.fl-builder-edit .postid-557  .overlay-menu-museet,
.fl-builder-edit .postid-72  .overlay-menu-museet {
    opacity: 1;
    visibility: visible;
    top: 0 !important;
    height: auto;
    position: static;
}

.fl-theme-builder-header-scrolled .site-header,
.pp-full-screen-menu-open .site-header,
body.overlay-open .site-header {
    background-color: #fffdf8;
    transition: background .35s ease-in-out;
}

body.overlay-open .site-header {
    position: fixed;
    width: 100%;
    z-index: 500;
}
*/

/* Mega Menu */

body:not(.single-fl-theme-layout) .fl-builder-content[data-overlay="1"]:not(.fl-theme-builder-header-scrolled):not([data-overlay-bg="default"]) .fl-row-content-wrap {
	
}

.drm-megamenu-row {
    width: 100%;
}

.menu .fl-has-submenu.mega-menu .sub-menu {
    box-shadow: none;
}
.fl-node-5fdcac99886ef .fl-menu .sub-menu {
	background-color: transparent; 
}
.site-header {
	z-index: 100 !important; 
}

.undermenu{
	background-color: rgba(255,253,248,1.00) !important;
	z-index: 99 !important;
}
.undermenu .fl-row-content-wrap {
	/*padding: 0px;*/
	padding-bottom: 100px;
	
}
.mega-menu .sub-menu {
	width: 100% !important;
}

.mega-menu .menu li {
	display: block !important;
}

/* Eng link */
.rightmenu {
	text-align: right;
}
.rightmenu .fl-html {
	display: flex;
	justify-content: flex-end;
}
.eng-link {
   font-size: 15px;
} 
.searchitem {
	margin-left: 35px; 
}

/* Front page smart slider */

.forsidesmartslider .titlerow {
	margin-left: 16.66% !important;
}
@media only screen and (max-width: 768px) {
	.forsidesmartslider .titlerow { 
		margin-left: 0% !important;
	}
}

.forsidesmartslider .n2-ss-layer {
	max-width: 2000px !important;
	margin: 0 auto;
}

.forsidesmartslider #n2-ss-3-arrow-previous, .forsidesmartslider #n2-ss-3-arrow-next {
	max-width: 40px !important;
	max-height: 40px !important;
	margin-bottom: 30px;

}
.forsidesmartslider #n2-ss-3-arrow-previous { 	margin-left: 2%; }
.forsidesmartslider #n2-ss-3-arrow-next { 		margin-left: 4%; }


@media only screen and (max-width: 1440px) {
	.forsidesmartslider #n2-ss-3-arrow-previous { 	margin-left: 1.5%; }
	.forsidesmartslider #n2-ss-3-arrow-next { 		margin-left: 2.5%; }
	
}
@media only screen and (max-width: 1024px) {
	.forsidesmartslider #n2-ss-3-arrow-previous, .forsidesmartslider #n2-ss-3-arrow-next { margin-left: 0%; }
	
}

.forsidesmartslider .n2-ss-layer div {
	/*font-size: 1vw;*/
}


/* Smart slider */

.forsideslider .titlerow.leftcol {
	width: 20% !important;
}
.forsideslider .titlerow.rightcol {
	width: 80% !important;
}




/* Global link styles */

.fl-rich-text p a,
p a,
.fl-post-more-link a, 
.drm-post-list.drm-in-media-list .fl-post-read-more a {
    text-decoration: underline;
}

/* Breadcrumb */
.pp-breadcrumbs {
	font-size: 16px !important;
}
.pp-breadcrumbs a span{
	text-decoration: underline !important;
}

/* Global Form styles */

input[type=text], input[type=password], input[type=email], input[type=tel], input[type=date], input[type=month], input[type=week], input[type=time], input[type=number], input[type=search], input[type=url], textarea {
    border: 1px solid #222222;
    border-radius: 0;
    padding: 16px;
    font-size: 16px;
}

input[type=text]:focus, input[type=password]:focus, input[type=email]:focus, input[type=tel]:focus, input[type=date]:focus, input[type=month]:focus, input[type=week]:focus, input[type=time]:focus, input[type=number]:focus, input[type=search]:focus, input[type=url]:focus, textarea:focus {
    background-color: #FFFDF8;
    border-color: #222222;
    outline: 0;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    border: 1px solid #49809C !important;
}

/* Custom Checkbox */

[type="checkbox"]:not(:checked),
[type="checkbox"]:checked {
    position: absolute;
    left: -9999px;
}
[type="checkbox"]:not(:checked) + label,
[type="checkbox"]:checked + label {
    position: relative;
    padding-left: 1.7em !important;
    padding-right: 1.7em !important;
    cursor: pointer;
    font-size: 20px;
}


[type="checkbox"]:not(:checked) + label:before,
[type="checkbox"]:checked + label:before {
    content: '';
    position: absolute;
    left: 0; 
    top: 0;
    width: 1.25em; 
    height: 1.25em;
    border: 1px solid #333;
    background: transparent;
    border-radius: 0px;
}

[type="checkbox"]:not(:checked) + label:after,
[type="checkbox"]:checked + label:after {
    content: '\2713\0020';
    position: absolute;
    top: .15em; left: .22em;
    font-size: 1.1em;
    line-height: 0.8;
    color: #333;
    transition: all .2s;
    font-family: 'Lucida Sans Unicode', 'Arial Unicode MS', Arial;
}

[type="checkbox"]:not(:checked) + label:after {
    opacity: 0;
    transform: scale(0);
}
[type="checkbox"]:checked + label:after {
    opacity: 1;
    transform: scale(1);
}

[type="checkbox"]:disabled:not(:checked) + label:before,
[type="checkbox"]:disabled:checked + label:before {
    box-shadow: none;
    border-color: #bbb;
    background-color: #ddd;
}
[type="checkbox"]:disabled:checked + label:after {
    color: #999;
}
[type="checkbox"]:disabled + label {
    color: #aaa;
}

[type="checkbox"]:checked:focus + label:before,
[type="checkbox"]:not(:checked):focus + label:before {
    border: 3px dotted #49809C;
}

label:hover:before {
    border: 3px solid #49809C !important;
}

/* Custom select box */

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    appearance: none;
    outline: 0;
    box-shadow: none;
    border: 0 !important;
    background: silver;
    background-image: none;
    border: 1px solid #333 !important;

    position: relative;
    display: flex;
    width: 100%;
    height: auto;
    background: transparent;
    overflow: hidden;
    border-radius: 0px;

    flex: 1;
    padding: 16px;
    color: #333;
    cursor: pointer;
    font-size: 16px;
    line-height: 1.4;
}

select::after {
    content: '\25BC';
    position: absolute;
    top: 0;
    right: 0;
    padding: 0 1em;
    background: #333;
    cursor: pointer;
    pointer-events: none;
    -webkit-transition: .25s all ease;
    -o-transition: .25s all ease;
    transition: .25s all ease;
}



/* Post "Cards" lists Powerpack */

.drm-post-card .pp-grid-style-4 .pp-post-title {
    width: auto !important;
    padding: 20px;
}

@media only screen and (min-width: 1025px) {
    padding: 30px;
}

/* Event lists */

.drm-event-list .fl-post-feed-post {
    display: flex;
    align-items: top;
    border-bottom: 0 none;
    min-height: 60px;
}

.drm-event-list .fl-post-feed-post .fl-post-image,
.drm-event-list .fl-post-feed-post .fl-post-text {
    display: inline-block;
    float: left;
}

.drm-event-list .fl-post-feed-post .fl-post-text {
    width: 100%;    
}

.drm-event-list .fl-post-feed-post.has-post-thumbnail .fl-post-image {
    width: 30%;    
    padding-right: 15px;
}

.drm-event-list .fl-post-feed-post.has-post-thumbnail .pp-content-grid-post-text {
    width: 80%;    
}

.drm-event-list .fl-post-feed-post .fl-post-meta {
    margin-bottom: 4px;
}

.drm-event-list .fl-post-title {
    margin-bottom: 0;
}

/* DRM post lists */

.drm-post-list .pp-content-post .fl-post-meta,
.drm-post-list .fl-post-grid-post .fl-post-meta {
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.drm-post-list .pp-content-post,
.drm-post-list .fl-post-grid-post {
    border: 0 none;
    background-color: transparent;
}

.drm-post-list .pp-content-post .fl-post-text,
.drm-post-list .fl-post-grid-post .fl-post-text {
    padding: 30px 20px;
}

.drm-post-list .pp-content-post .fl-post-image img,
.drm-post-list .fl-post-grid-post .fl-post-image img {
    min-width: 100%;
}

/* DRM post list exhibitions */

.drm-post-list.drm-exhibition-list .fl-post-text,
.drm-post-list.drm-dks-list .fl-post-text {
    width: 83.44%;
    margin-top: -60px;
    background-color: #FFFDF8;
    display: inline-block;
}

/* Museet i Media list */


.drm-post-list.drm-in-media-list .fl-post-text,
.drm-post-list.drm-in-media-list .fl-post-read-more {
    display: block;
    float: left;
}

.drm-post-list.drm-in-media-list .fl-post-feed-post {
    border-bottom: 0 none;
}

.drm-post-list.drm-in-media-list .fl-post-text {
    width: 66.66%;
}

.drm-post-list.drm-in-media-list .fl-post-read-more {
    width: 33.33%;
    text-align: right;
}

.drm-post-list.drm-in-media-list .fl-post-read-more a {
}

.drm-post-list.drm-in-media-list .fl-post-excerpt {
    margin-top: 15px;
}

.drm-post-list.drm-in-media-list .fl-post-excerpt * {
    font-size: 16px;
}

/* Ansatt */

.fl-post-meta-ansatt a {
    display: block;
    width: 100%;
}

/* Arenas */

table.drm-opening-hours {
    font-size: 16px;
    margin-bottom: 30px;
    width: 100% !important;
}

table.drm-opening-hours td {
    vertical-align: bottom;
}

table.drm-opening-hours td.description {
    width: 80%;
}

table.drm-opening-hours td.value {
    text-align: right;
    width: 30%;
}

/* Search result post list */

.drm-search-result-list .pp-content-post .pp-content-body {
    width: 100%;
}

.drm-search-result-list .pp-content-post .pp-post-image {
    width: 12%;
}

.drm-search-result-list .pp-content-post .pp-content-body {
    width: 88%;
}

/* Relevanssi Search */

.relevanssi-query-term {
    background-color: #E9EDD2;
    padding: 0 2px;
}

/* Search and Filter */

.searchandfilter ul {
    padding-left: 0;
}
    
.searchandfilter ul li {
    display: inline-block;
    min-width: 20%;
    padding-right: 15px
}

.searchandfilter ul li.sf-field-taxonomy-drm_calendar_tax,
.searchandfilter ul li.sf-field-post-meta-start_date {
    width: 100%;
}

.searchandfilter ul li.sf-field-taxonomy-drm_calendar_tax ul li {
  width: 100%;
}

.searchandfilter ul li.sf-field-post-meta-start_date ul li {
    width: 50%;
    padding-right: 15px;
}

.searchandfilter .sf-field-reset {
    font-size: 16px;
}

.searchandfilter label {
    width: 100% !important;
}

@media only screen and (min-width: 1024px) {
    .searchandfilter ul li.sf-field-taxonomy-drm_calendar_tax ul li,
    .searchandfilter ul li.sf-field-post-meta-start_date ul li{
      width: 33.33%;
    }
}

/* Responsive embeds in rich text editor */

.wp-block-embed__wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%;
}

.wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Logo gallery Exhibition */

.drm-logo-gallery .fl-photo-img {
    mix-blend-mode: multiply;
    
}

/* Frame styles */

.drm-frame .fl-col-content {
    position: relative;
    transform-style: preserve-3d;
    margin-right: 60px;
}

.drm-frame .fl-col-content::after {
    content: "";
    z-index: -1;
    position: absolute;
    top: 30px;
    right: -30px;
    left: 30px;
    width: 100%;
    height: 100%;
}

@media only screen and (max-width: 768px) {
    .drm-frame .fl-col-content {
        margin-right: 30px !important;
    }
}

.drm-frame.drm-frame-beige .fl-col-content:after {
    background-color: #F0EADD;
}

.drm-frame.drm-frame-red .fl-col-content:after {
    background-color: #D26F6C;
}

.drm-frame.drm-frame-yellow .fl-col-content:after {
    background-color: #F8C34D;
}

.drm-frame.drm-frame-blue .fl-col-content:after {
    background-color: #49809C;
}

.drm-frame.drm-frame-green .fl-col-content:after {
    background-color: #899345;
}


/* Bildegalleri karusell */
.drm_galleri .pp-image-carousel { 
	height: 23vw !important;
}

@media only screen and (max-width: 992px) {
	.drm_galleri .pp-image-carousel { 
		height: 38vw !important;
	}
	
}


@media only screen and (max-width: 768px) {
	.drm_galleri .pp-image-carousel { 
		height: 75vw !important;
	}
	
}

/* PP Infobox */

.pp-infobox-image {
    text-align: left !important;
}

/* Widget categories */

.drm-category-widget .widget_categories .widgettitle { 
    display: none;
}

.drm-category-widget .widget_categories ul li a {
    font-size: 18px;
}

/* Callout */
.drm-callout .fl-callout-icon-right-title .fl-callout-title span {
	vertical-align: top !important;
	margin-top: 5px !important;
	
}

/* Translatepress language switcher */


.languages .trp-ls-shortcode-current-language, .languages .trp-ls-shortcode-language, .trp-language-switcher > div, .trp-language-switcher > div > a:hover {
	border: none;
	background-color: transparent !important;
	color: #222 !important;
}

.languages .trp-ls-shortcode-current-language a, .languages .trp-ls-shortcode-language {
	font-size: 16px !important;
	color: #222 !important;
	
}

.trp-language-switcher {
	width: auto !important;
}


