/*
Theme Name: Brandalfriskule
Theme URI: http://www.osberget.no/
Author: Magne Grimstad at Osberget AS, Maxim Kukulinsky at RASAMAX SIA
Author URI: http://www.osberget.no/
Description: Osberget Wordpress theme 1
Version: 1.44
Tags: osberget rasamax
Text Domain: osberget-theme
*/
/**
 * 1.0 - Normalize
 *
 * Normalizing styles have been helped along thanks to the fine work of
 * Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normalize.css/
 */
html {
    font-family: sans-serif;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

article, aside, details, figcaption, figure, footer, header, main, menu, nav, section, summary {
    display: block;
}

audio, canvas, progress, video {
    display: inline-block;
    vertical-align: baseline;
}

audio:not([controls]) {
    display: none;
    height: 0;
}

[hidden], template {
    display: none;
}

a {
    background-color: transparent;
}

abbr[title] {
    border-bottom: 1px dotted;
}

b, strong {
    font-weight: 700;
}

small {
    font-size: 80%;
}

sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sup {
    top: -0.5em;
}

sub {
    bottom: -0.25em;
}

img {
    border: 0;
}

svg:not(:root) {
    overflow: hidden;
}

figure {
    margin: 0;
}

hr {
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
}

code, kbd, pre, samp {
    font-size: 1em;
}

button, input, optgroup, select, textarea {
    color: inherit;
    font: inherit;
    margin: 0;
}

select {
    text-transform: none;
}

button {
    overflow: visible;
}

button, input, select, textarea {
    max-width: 100%;
}

button, html input[type="button"], input[type="reset"], input[type="submit"] {
    -webkit-appearance: button;
    cursor: pointer;
}

button[disabled], html input[disabled] {
    cursor: default;
    opacity: .5;
}

button::-moz-focus-inner, input::-moz-focus-inner {
    border: 0;
    padding: 0;
}

input[type="checkbox"], input[type="radio"] {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin-right: 0.4375em;
    padding: 0;
}

input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

input[type="search"] {
    -webkit-appearance: textfield;
}

input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

fieldset {
    border: 1px solid #d1d1d1;
    margin: 0 0 1.75em;
    min-width: inherit;
    padding: 0.875em;
}

fieldset > :last-child {
    margin-bottom: 0;
}

legend {
    border: 0;
    padding: 0;
}

textarea {
    overflow: auto;
    vertical-align: top;
}

optgroup {
    font-weight: bold;
}


/* Edit buttons */
body .wp-edit-button {
    position: absolute;
    font-size: 16px;
    right: 0;
    top: 0;
    opacity: 0;
    color: #f8f5f2;
    background: #023874;
    padding: 10px 20px;
    text-decoration: none;
    margin-bottom: 0;
    z-index: 1;
    border-bottom: none;
    -webkit-transition: opacity .25s, background-color .25s, color .25s;
    -moz-transition: opacity .25s, background-color .25s, color .25s;
    -o-transition: opacity .25s, background-color .25s, color .25s;
    -ms-transition: opacity .25s, background-color .25s, color .25s;
    transition: opacity .25s, background-color .25s, color .25s;
}

body .wp-edit-button-set {
    font-size: 0;
    position: absolute;
    right: 0;
}

body .wp-edit-button-set .wp-edit-button {
    position: static;
    display: inline-block;
}

/* main:hover .wp-edit-button,
section:hover .wp-edit-button,
footer:hover .wp-edit-button {
    opacity: 1;
} */

main,
.front-page-category {
    position: relative;
}

article:hover .wp-edit-button,
header:hover .wp-edit-button,
section:hover .wp-edit-button,
#main:hover .wp-edit-button,
footer:hover .wp-edit-button {
    opacity: 1;
}

.wp-edit-button:hover {
    background-color: #f8f5f2;
    color: #023874;
}

.wp-edit-button.top-200 {
    top: 200px;
}

/* Page commons */
* > p:first-child {
    margin-top: 0;
}

* > p:last-child {
    margin-bottom: 0;
}

.alignleft {
    float: left;
    margin: 0 20px 10px 0;
}

.alignright {
    float: right;
    margin: 0 0 10px 20px;
}

.aligncenter {
    margin: 0 auto 10px auto;
    display: block;
}

/* Header */
#site-header {
    position: relative;
    background: #fff;
    padding-top: 30px;
    padding-bottom: 40px;
    position: relative;
    z-index: 2;
    -webkit-box-shadow: 0px 2px 4px 0px rgba(232,232,232,1);
    -moz-box-shadow: 0px 2px 4px 0px rgba(232,232,232,1);
    box-shadow: 0px 2px 4px 0px rgba(232,232,232,1);
}

/* Content blocks */
.content-block {
    width: 1064px;
    margin: 0 auto;
    max-width: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0 20px;
    /* position: relative; */
}

/* Logo */
#site-logo img {
    display: block;
    max-width: 100%;
    height: 50px;
    width: auto;
    float: left;
}

#site-logo:after {
    content: '';
    display: block;
    clear: both;
}

.logo-text {
    float: right;
    color: black;
}

.logo-text p:first-child {
    margin-top: 0;
}

.logo-text p:last-child {
    margin-bottom: 0;
}

.logo-text a {
    color: inherit;
}

/* Main menu */
#main-navigation-container {
    text-align: left
}
#menu-main-menu {
    padding: 0;
    margin: 15px 0;
}
.primary-menu input[type="checkbox"],
.primary-menu label {
    display: none;
}
.primary-menu {
    list-style-type: none;
    padding-left: 0;
    margin: 30px 0 0 0;
}
.primary-menu ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}
.primary-menu > li {
    display: inline-block;
    vertical-align: middle;
    margin: 0 8px;
    position: relative;
}
.primary-menu > li:first-child {
    margin-left: 0;
}
.primary-menu .menu-item a {
    font-size: 12px;
    color: black;
    text-transform: uppercase;
    text-decoration: none;
    -webkit-transition: color .7s;
    -moz-transition: color .7s;
    transition: color .7s;
}
.primary-menu .menu-item.current-menu-item > a,
.primary-menu .menu-item.current-post-ancestor > a,
.primary-menu .menu-item.current-post-parent > a,
.primary-menu .menu-item.current-category-parent > a,
.primary-menu .menu-item > a:hover {
    color: #d7362c;
}

/* Main menu - Hide subcategories in main menu */
.primary-menu .sub-menu {
    position: absolute;
    z-index: 2;
    top: 100%;
    left: -8px;
    width: 200px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0s linear .5s, opacity .5s;
    opacity: 0;
}

.primary-menu:not(.menu-hide-hover) li:hover > .sub-menu {
    overflow: visible;
    max-height: 10000px;
    opacity: 1;
    transition: max-height 0s, opacity .5s;
}

.primary-menu .sub-menu li {
    padding: 5px 8px;
    position: relative;
}

.primary-menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
}

/* Side menu */
.side-menu {
    margin-top: 0;
    padding-left: 0;
}

.side-menu,
.side-menu ul {
    list-style-type: none;
    margin: 0;
}

.side-menu > li {
}

.side-menu .menu-item a {
    font-size: 12px;
    color: #333333;
    text-transform: uppercase;
    text-decoration: none;
    -webkit-transition: color .7s;
    -moz-transition: color .7s;
    transition: color .7s;
}

.side-menu .menu-item.current-menu-item > a,
.side-menu .menu-item.current-post-ancestor > a,
.side-menu .menu-item.current-post-parent > a,
.side-menu .menu-item.current-category-parent > a,
.side-menu .menu-item > a:hover {
    color: #d7362c;
}

/* Side menu - Hide subcategories in side menu */
.side-menu .sub-menu {
    display: none;
    padding-left: 20px;
}

.side-menu > li > .sub-menu {
    padding-left: 0;
}

.side-menu > li > a,
.side-menu li {
    display: none;
}

/* Side menu - expand marked sub menus */
.side-menu li.expanded,
.side-menu li.expanded > .sub-menu,
.side-menu li.expanded > .sub-menu > li {
    display: block;
}

.side-menu .sub-menu li {
}

/* Main */
#main {
    width: 1064px;
    max-width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
    vertical-align: top;
    font-size: 18px;
}

main:after {
    content: '';
    display: block;
    clear: both;
}

/* Articles in main */
#main article {
    margin-bottom: 65px;
    position: relative;
}
#main article h1,
#main article h2 {
    font-size: 35px;
    color: #333333;
    margin: 0 0 30px 0;
}
#main article h2 a {
    color: #333333;
}
#main article .article-picture {
    margin-bottom: 25px;
    font-style: italic;
}
#main article .article-picture img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 20px auto;
}
#main article .article-ingress {
    font-size: 24px;
    color: #333333;
    margin-bottom: 25px;
}
#main article .article-ingress p {
    margin: 0;
}
#main article .article-ingress img {
    display: block;
    max-width: 100%;
    margin: 15px auto;
}
#main article .article-text {
    font-size: 18px;
    color: #333333;
}
#main article .article-text p:first-child {
    margin-top: 0;
}
#main article .article-text p:last-child {
    margin-bottom: 0;
}
#main article .article-text img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 15px auto;
}
#main article .article_text a {
    color: #668bf0;
    text-decoration: underline;
}

.article-content > div {
    float: left;
    box-sizing: border-box;
}

.article-content > .article-text {
    width: 66.66%;
    padding-right: 10px;
}

.article-sidebar {
    float: left;
    width: 300px;
    min-height: 100px;
    box-sizing: border-box;
    padding-right: 40px;
}

.article-content > .article-sidebar {
    width: 33.33%;
    padding-left: 10px;
}

body .article-sidebar + article {
    float: left;
    width: calc(100% - 300px);
}

body #main .article-sidebar + article .article-content > .article-text {
    width: 100%;
}

.article-sidebar h3 {
    margin-top: 0;
    color: #333333;
}

.article-content:after {
    content: '';
    display: block;
    clear: both;
}

.article-archive-item {
    display: block;
    color: black;
    font-size: 18px;
    text-decoration: none;
    border-bottom: 1px solid #000000;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

/* Share bar */
.article-sharebar {
    margin-top: 20px;
    border-top: 1px solid #A0A0A0;
    padding-top: 20px;
}

.article-sharebar a {
    text-decoration: none;
    margin-right: 5px;
}

.article-sharebar svg {
    height: 30px;
    width: auto;
}

.article-share-mail-icon path {
    fill: #B4B4B4;
}

/* Article - attachments */
.post-attachments {
    margin-bottom: 20px;
}

.post-attachments a {
    display: block;
    color: black;
}

.post-attachments a:before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 15px;
    margin-bottom: -5px;
    background: no-repeat url('images/attachment-icon.svg');
    background-size: contain;
}

.post-attachments a + a {
    margin-top: 10px;
}

/* Article - gallery */
.post-gallery {
    clear: both;
    font-size: 0;
    margin-left: -20px;
}

.post-gallery-thumb-image {
    padding-top: 67%;
    background-size: cover;
}

.post-gallery a {
    display: block;
    position: relative;
    display: inline-block;
    vertical-align: top;
    width: calc(100% / 3 - 20px);
    margin-left: 20px;
    margin-bottom: 20px;
    text-align: left;
}

.post-gallery a:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    background-image: none;
    background-repeat: no-repeat;
    background-position: center;
    -webkit-transition: background .5s;
    -moz-transition: background .5s;
    transition: background .5s;
}

.post-gallery a:hover:after {
    background-color: rgba(0, 0, 0, 0.49);
    background-image: url('images/magnifying_glass_white.svg');
}

.article-content > .post-gallery {
    float: none;
}

/* Category - sidebar */
.category-sidebar,
.category-content {
    float: left;
    box-sizing: border-box;
}

.category-content {
    width: 66.66%;
    padding-right: 10px;
}

.category-sidebar {
    width: 33.33%;
    padding-left: 10px;
}

body.category main:after {
    content: '';
    display: block;
    clear: both;
}

/* Front page */
.front-page-section {
    position: relative;
}



/* Frontpage picture */
#frontpage-picture {
    display: -webkit-flex;
    display: -moz-flex;
    display: flex;
    background-color: #fff;
    -webkit-background-size: cover;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    padding: 40px 0;
    height: 470px;
}
#frontpage-picture .content-block {
    -webkit-align-self: flex-end;
    align-self: flex-end;
}
.frontpage-picture-heading,
.frontpage-picture-heading a {
    font-size: 50px;
    color: #fff;
    text-transform: uppercase;
    text-decoration: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 1);
    margin: 0 0 10px 0;
}
.frontpage-picture-text {
    width: 70%;
    font-size: 18px;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 1);
}
.frontpage-picture-text p {
    margin: 0;
}
.frontpage-picture-text a {
    text-decoration: none;
    color: #fff;
}
.frontpage-picture-text a.button-link {
    display: inline-block;
    font-size: 12px;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    text-shadow: none;
    background: #424242;
    padding: 20px 30px;
    margin: 10px 0;
}
.button-link {
    display: inline-block;
    font-size: 12px;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    text-shadow: none;
    background: #424242;
    padding: 20px 30px;
    margin: 10px 0;
}

/* Map */
.map-container .google-map {
    height: 800px;
}

/* Paralax section */
.parallax {
    width: 100%;
    max-width: 1240px;
    padding: 0 20px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin:  0 auto;
}

.parallax-container {
    height: 565px;
    padding: 200px 0 143px 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.parallax h3 {
    color: white;
    text-align: center;
    font-size: 48px;
    font-weight: 400;
    margin: 0 0 100px 0;
}

/* Big image */
.big-image {
    height: 565px;
    padding: 20px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    overflow-x: hidden;
}

.big-image-content,
.slide-content {
    width: 1064px;
    max-width: 100%;
    padding: 0 20px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0 auto;
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.big-image h2,
.slide h2 {
    color: white;
    /* text-align: center; */
    font-size: 48px;
    font-weight: 400;
    margin: 0 0 50px 0;
}

.big-image-text,
.slide-text {
    color: white;
    font-size: 24px;
}

.big-image:before,
.slide:before {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
}

.big-image .button-link,
.slide .button-link {
    margin-top: 50px;
}

/* News widget */
.news-widget-button-container {
    text-align: center;
}

/* Facebook 6 items */
.feed-item-picture {
    display: block;
    padding-top: 65%;
    background-size: cover;
    background-position: center;
    /* width: 150px; */
    display: block;
    margin: 0 auto;
    /* border-radius: 50%; */
    margin: -25px -25px 0 -25px;
    position: relative;
}

.section-heading-left {
    width: 50%;
    display: inline-block;
    vertical-align: middle;
    font-size: 30px;
    color: #fff;
    text-transform: uppercase;
}

.section-heading-right {
    width: 50%;
    display: inline-block;
    vertical-align: middle;
    text-align: right;
}
.section-heading-right button {
    margin-left: 14px;
    color: #fff;
    background-color: #668bf0;
    background-position: center center;
    background-repeat: no-repeat;
    -webkit-transition: background-color .7s, background-image .7s, color .7s;
    -moz-transition: background-color .7s, background-image .7s, color .7s;
    transition: background-color .7s, background-image .7s, color .7s;
}
.section-heading-right button.active,
.section-heading-right button:hover {
    background-color: #fff;
    color: #668bf0;
}
#facebook-button {
    background-image: url('images/facebook-icon.png');
}
#facebook-button.active,
#facebook-button:hover {
    background-image: url('images/facebook-icon-blue.png');
}
#instagram-button {
    background-image: url('images/instagram-icon.png');
}
#instagram-button.active,
#instagram-button:hover {
    background-image: url('images/instagram-icon-blue.png');
}
#mixed-rss-items {
    font-size: 0;
    margin-top: 25px;
    margin-left: -20px;
    text-align: left;
}
#mixed-rss-items .feed-item {
    display: inline-block;
    vertical-align: top;
    width: 320px;
    background: #5b7bd4;
    margin-left: 20px;
    margin-bottom: 20px;
    opacity: 1;
    -webkit-transition: opacity .5s;
    -moz-transition: opacity .5s;
    transition: opacity .5s;
}
#mixed-rss-items .feed-item.facebook {
    background-image: url('images/facebook-icon.png');
    background-position: calc(100% - 22px) calc(100% - 17px);
    background-repeat: no-repeat;
}
#mixed-rss-items .feed-item.instagram {
    background-image: url('images/instagram-icon.png');
    background-position: calc(100% - 19px) calc(100% - 14px);
    background-repeat: no-repeat;
}
#mixed-rss-items.loading {
    background: url('images/spinner.gif') no-repeat center center;
}
#mixed-rss-items.loading .feed-item {
    opacity: 0;
}

#mixed-rss-items .feed-item-picture img {
    display: block;
    width: 100%;
    -webkit-background-size: cover;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
#mixed-rss-items .feed-item-heading {
    padding: 0 20px;
    font-size: 14px;
    color: #fff;
    text-transform: uppercase;
    margin-top: 15px;
    overflow: hidden;
    height: 15px;
    text-align: left;
}
#mixed-rss-items .feed-item-text {
    padding: 0 20px;
    font-size: 14px;
    color: #fff;
    line-height: 1.5;    
    margin-top: 15px;
    overflow: hidden;
    height: 42px;
    text-align: left;
}
#mixed-rss-items .feed-item-text p {
    margin: 0;
}
#mixed-rss-items .feed-item-link {
    padding: 0 20px;
    margin-top: 15px;
    margin-bottom: 15px;
    text-align: left;
}
#mixed-rss-items .feed-item-link a {
    font-size: 10px;
    color: #a8bfff;
    text-transform: uppercase;
    text-decoration: underline;
}
.mixed-rss-see-more-container {
    text-align: center;
    position: relative;
}
.mixed-rss-see-more-links {
    position: absolute;
    right: 0;
    top: 50%;
    -o-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    transform: translateY(-50%);
}
.mixed-rss-see-more-links a {
    display: block;
    margin-top: 8px;
    font-size: 10px;
    color: #fff;
    text-transform: uppercase;
    text-decoration: underline;
}
.mixed-rss-see-more-links a:first-child {
    margin-top: 0;
}
/* Bli medlem on frontpage */
#frontpage-bli-medlem {
    background: #fff;
    font-size: 0;
    position: relative;
}
.frontpage-bli-medlem-article {
    width: 100%;
    padding: 30px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
.frontpage-bli-medlem-article > tbody > tr > td {
    vertical-align: middle;
    width: 50%;
}
.frontpage-bli-medlem-article .last-td {
    background: #d7362c;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAABCAQAAACr1TyxAAAADklEQVR42mP8/58BDwAAOwMCAMBnGFYAAAAASUVORK5CYII=);
    background-repeat: repeat-y;
    background-position: left top;
}
.frontpage-bli-medlem-picture {
    padding-right: 15px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
.frontpage-bli-medlem-picture img {
    display: block;
    margin: 0 0 0 auto;
    max-width: 100%;
    height: auto;
}
.frontpage-bli-medlem-texts {
    max-width: 570px;
    margin: 0 auto;
    text-align: center;
    padding: 30px 30px 30px 45px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
.frontpage-bli-medlem-heading {
    font-size: 30px;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.frontpage-bli-medlem-text {
    font-size: 18px;
    color: #fff;
    margin-bottom: 40px;
}
.frontpage-bli-medlem-text p {
    margin: 0 0 20px 0;
}
.frontpage-bli-medlem-text a {
    color: #fff;
}
.frontpage-bli-medlem-link p {
    margin: 0;
}
.frontpage-bli-medlem-link a {
    font-size: 12px;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border: 2px solid #fff;
    padding: 0 20px;
    line-height: 40px;
    height: 40px;
    display: inline-block;
    background: none;    
}

/* News */
.news {
    background: #f5f5f5;
    padding-top: 35px;
    padding-bottom: 50px;
}
.news .section-sub-heading {
    font-size: 13px;
    color: #668bf0;
    text-transform: uppercase;
    text-align: center;
}

.news-feed {
    font-size: 0;
    margin-left: -20px;
    text-align: left;
}

.section-heading + .news-feed {
    margin-top: 50px;
}

.news-feed:empty {
    margin-top: 0;
}

.news-feed .feed-item {
    display: inline-block;
    vertical-align: top;
    width: 100%;
    /* background: #fff;
    margin-left: 20px;
    margin-bottom: 20px;
    padding: 25px; */
    padding-left: 20px;
    padding-bottom: 20px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    position: relative;
}

.news-feed.news-columns-2 .feed-item {
    width: 50%;
}

.news-feed.news-columns-3 .feed-item {
    width: 33.33%;
}

.news-feed.news-columns-4 .feed-item {
    width: 25%;
}

.news-feed.news-columns-5 .feed-item {
    width: 20%;
}

.news-feed.news-columns-6 .feed-item {
    width: 16.66%;
}

.feed-item-picture:after {
    content: '';
    display: block;
    position: absolute;
    background-repeat: no-repeat;
    background-size: 100%;
    width: 30px;
    height: 30px;
    top: 10px;
    right: 10px;
}

.feed-item-picture.no-image:after {
    width: 150px;
    height: 150px;
    top: calc(50% - 75px);
    right: calc(50% - 75px);
    filter: grayscale(1);
    opacity: 0.2;
}

.feed-type-facebook .feed-item-picture:after {
    background-image: url('images/facebook-icon.svg');
}

.feed-type-instagram .feed-item-picture:after {
    background-image: url('images/instagram-icon.svg');
}

.feed-item-content {
    padding: 25px;
    background: white;
}

.news-feed .feed-item-picture img {
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    width: 55%;
    display: block;
    margin: 0 auto;
    -webkit-background-size: cover;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.news-feed .feed-item-heading {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    text-align: left;
    margin-top: 15px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.news-feed .feed-item-heading:empty {
    display: none;
}

.news-feed .feed-item-text {
    font-size: 14px;
    color: #666;
    text-align: left;
    margin-top: 10px;
    overflow: hidden;
    height: 35px;    
}
.news-feed .feed-item-link {
    text-align: left;
    margin-top: 15px;    
}
.news-feed .feed-item-link a {
    font-size: 10px;
    color: #668bf0;
    text-decoration: underline;
    text-transform: uppercase; 
}
.news-feed-load-button-container {
    margin-top: 20px;
    text-align: center;
}
.news-feed-load-button-container a {
    display: inline-block;
    text-transform: uppercase;
    color: #668bf0;
    border: 2px solid #668bf0;
}

/* Text widget */
.text-widget-content {
    width: 1064px;
    margin: 0 auto;
    max-width: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 50px 20px;
}

.text-widget p:first-child {
    margin-top: 0;
}

.text-widget p:last-child {
    margin-bottom: 0;
}

.text-widget-content iframe {
    max-width: 100%;
}

/* Banners */
.banners {
    background: #fff;
    padding: 20px 0 40px 0;
}
.banners-title {
    font-size: 14px;
    color: rgb(207, 46, 46);
    font-weight: 400;
    text-transform: uppercase;  
}
.banners-items {
    font-size: 0;
    margin-left: -20px;
    margin-top: 30px;
    text-align: center;
}
.banners-item {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    width: calc(100% / 6 - 20px);
    min-width: 300px;
    margin: 0 0 20px 20px;
}
.banners-item img {
    display: block;
    max-width: 100%;
    margin: 0 auto;
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
    -webkit-transition: -webkit-filter 1s;
    -moz-transition: filter 1s;
    transition: filter 1s;
}
.banners-item:hover img {
    -webkit-filter: grayscale(0);
    filter: grayscale(0);
}

/* Headings */
h1.section-heading {
    font-size: 40px;
    color: #424242;
    text-transform: uppercase;
    margin: 0 0 15px 0;
}

h2.section-heading {
    font-size: 30px;
    color: #424242;
    text-transform: uppercase;
    margin: 0 0 10px 0;
    text-transform: none;
}

.section-heading.content-block {
    margin-left: auto;
    margin-right: auto;
}

.section-heading .social-icon {
    float: right;
    width: 30px;
    margin-left: 10px;
}

/* Buttons on frontpage */
.frontpage-button {
    font-size: 12px;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border: 2px solid #fff;
    padding: 0 20px;
    line-height: 40px;
    height: 40px;
    display: inline-block;
    vertical-align: middle; 
    background: none;  
}

/* Footer */
#footer {
    padding-top: 50px;
    padding-bottom: 60px;
    position: relative;
    background-color: #424242 !important;
}
#footer .content-block {
    font-size: 0;
}
#footer .footer-article {
    display: inline-block;
    vertical-align: top;
    width: 50%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
.footer-article-heading {
    font-size: 30px;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.footer-article-text {
    font-size: 14px;
    color: #fff;
}
#footer .footer-article a {
    color: #fff;
}
.footer-article-text p:first-child {
    margin-top: 0;
}
.footer-article-text p:last-child {
    margin-bottom: 0;
}

/* Footer - logo */
.footer-logo img {
    max-width: 100%;
}

.footer-logo,
.footer-logo + .footer-article {
    float: left;
    width: 50%;
    box-sizing: border-box;
}

.footer-logo {
    padding-right: 10px;
}

.footer-logo + .footer-article {
    padding-left: 10px;
}

#footer .content-block:after {
    content: '';
    display: block;
    clear: both;
}

/* Mobile menu button */
#mobile-menu-button,
#mobile-menu-checkbox {
    display: none;
}

/* 404 */
.err-404-article h1 {
    text-align: center;
}
.err-404-article .article-text img {
    display: block;
    margin: 0 auto;
}

/* Contact Form 7 basics support */
.wpcf7 {
    font-size: 18px;
}

span.wpcf7-list-item {
    margin: 0;
}

.wpcf7-list-item + .wpcf7-list-item {
    margin-left: 20px;
}

.wpcf7-form-control-wrap {
    margin-bottom: 10px;
    display: block;
}

.wpcf7-text,
.wpcf7-quiz,
.wpcf7-textarea {
    font-size: 18px;
    width: 100%;
    box-sizing: border-box;
    padding: 5px 10px;
}

.wpcf7-textarea {
    resize: vertical;
}

.wpcf7-date,
.wpcf7-number,
.wpcf7-select {
    font-size: 18px;
    box-sizing: border-box;
    padding: 5px 10px;
}

/* Slider */
.slide {
    background-size: cover;
    background-position: center;
    position: relative;
    height: 100%;
}

.slider .bx-prev,
.slider .bx-next {
    position: absolute;
    top: 45%;
    font-size: 0;
    display: block;
    width: 20px;
    height: 20px;
    border-top: 5px solid white;
    border-left: 5px solid white;
    z-index: 100;
 }

.slider .bx-next {
    right: 3%;
    -webkit-transform: rotate(135deg);
    -moz-transform: rotate(135deg);
    transform: rotate(135deg);
}

.slider .bx-prev {
    left: 3%;
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.bx-pager {
    position: absolute;
    z-index: 51;
    bottom: 27px;
    width: 100%;
    text-align: center;
}

.bx-pager-item {
    display: inline-block;
}

.bx-pager-item + .bx-pager-item {
    margin-left: 12px;
}

.bx-pager-link {
    display: block;
    font-size: 0;
    width: 12px;
    height: 12px;
    border: 1px solid white;
    border-radius: 50%;
    -webkit-transition: background-color .25s;
    -moz-transition: background-color .25s;
    transition: background-color .25s;
}

.bx-pager-link.active {
    background-color: white;
}

.slider .wp-edit-button {
    z-index: 51;
}

/* Chrome radio and checkboxes - others SUCK, especially IE that !supports! -webkit-min-device-pixel-ratio */
/*@media screen and (-webkit-min-device-pixel-ratio:0) {    

.wpcf7-checkbox:not(*:root) input,
.wpcf7-radio:not(*:root) input,
.wpcf7-acceptance:not(*:root) {
    width: 0;
    margin-right: 30px;
    height: 19px;
}

.wpcf7-checkbox:not(*:root) input:before,
.wpcf7-radio:not(*:root) input:before,
.wpcf7-acceptance:not(*:root):before {
    content: '✓';
    color: transparent;
    display: inline-block;
    width: 25px;
    height: 25px;
    border: 1px solid #A8A8A8;
    padding: 0 0 5px 5px;
    margin-right: 10px;
    transition: color .25s;
    box-sizing: border-box;
    cursor: pointer;
}

.wpcf7-radio:not(*:root) input:before {
    content: '●';
    border-radius: 50%;
    padding: 0 0 3.5px 6.5px;
}

.wpcf7-list-item:not(*:root) input:checked:before,
.wpcf7-acceptance:not(*:root):checked:before {
    color: black;
}

}*/

.wpcf7-list-item label {
    cursor: pointer;
}

.wpcf7-submit {
    box-sizing: border-box;
    width: 100%;
    border: none;
    padding: 5px 10px;
    background: #528CF2;
    color: white;
}


/* Mobile view */
@media screen and (max-width:1024px) {

    /* Prevent font scaling in landscape */
    html {
        -webkit-text-size-adjust: 100%;
    }
    /* Fix for iPhone phone number highliting */
    a[href^="tel:"]{
        color:inherit !important;
        text-decoration:none;
    }

    /* Header */
    #site-header {
        padding-top: 0;
        padding-bottom: 0;
    }
    #site-logo {
        padding-top: 20px;
        padding-bottom: 20px;
        max-width: 70%;
        display: inline-block;
        vertical-align: middle;
    }
    #site-logo img {
        float: none;
    }

    .logo-text {
        float: none;
        margin-top: 10px;
    }
    #main-navigation-container {
        max-width: 30%;
        display: inline-block;
        vertical-align: middle;
    }

    /* Menu button text */
    #mobile-menu-button-text {
        display: inline-block;
        vertical-align: middle;
        font-size: 12px;
        text-transform: uppercase;
        color: #1d1d1b;
        padding-right: 15px;
        -webkit-transition: color .7s;
        -moz-transition: color .7s;
        transition: color .7s;        
    }
    #mobile-menu-checkbox:checked + #mobile-menu-button-text {
        color: #fff;
    }

    /* Menu button */
    #mobile-menu-button {
        display: -webkit-flex;
        display: -moz-flex;
        display: flex;
        -webkit-box-align: center;
        -webkit-align-items: center;
        -ms-flex-align: center;
        align-items: center;               
        height: 100%;
        padding: 0 20px;
        position: absolute;
        z-index: 100;
        top: 0;
        right: 0;
        cursor: pointer;
        background: #fff;
        -webkit-transition: background .7s;
        -moz-transition: background .7s;
        transition: background .7s;
    }
    #mobile-menu-checkbox:checked + #mobile-menu-button {
        background: #668aef;
    }
    .hamburger-menu-button {
        display: inline-block;
        vertical-align: middle;
        width: 25px;
        margin: 0 auto 0 auto;
        cursor: pointer;
    }
    .hamburger-menu-button > div > div {
        height: 3px;
        margin-top: 5px;
        background: #1d1d1b;
        -webkit-transition: -webkit-transform .7s, background .7s;
        -moz-transition: -moz-transform .7s, background .7s;
        -ms-transition: -ms-transform .7s, background .7s;
        -o-transition: -o-transform .7s, background .7s;
        transition: transform .7s, background .7s;
    }
    .hamburger-menu-button > div > div:first-child {
        margin-top: 0;
    }
    #mobile-menu-checkbox:checked + .hamburger-menu-button > div > div {
        background: #fff;
    }
    #mobile-menu-checkbox:checked + .hamburger-menu-button > div > div:first-child {
        -moz-transform: translateX(0px) translateY(6px) rotate(45deg);
        -webkit-transform: translateX(0px) translateY(6px) rotate(45deg);
        -o-transform: translateX(0px) translateY(6px) rotate(45deg);
        -ms-transform: translateX(0px) translateY(6px) rotate(45deg);
        transform: translate(0,6px) rotate(45deg);
    }
    #mobile-menu-checkbox:checked + .hamburger-menu-button > div > div:nth-child(2) {
        -moz-transform: scale(0,0);
        -webkit-transform: scale(0,0);
        -o-transform: scale(0,0);
        -ms-transform: scale(0,0);
        transform: scale(0,0);
    }
    #mobile-menu-checkbox:checked + .hamburger-menu-button > div > div:last-child {
        -moz-transform: translateX(0px) translateY(-6px) rotate(-45deg);
        -webkit-transform: translateX(0px) translateY(-6px) rotate(-45deg);
        -o-transform: translateX(0px) translateY(-6px) rotate(-45deg);
        -ms-transform: translateX(0px) translateY(-6px) rotate(-45deg);
        transform: translate(0,-6px) rotate(-45deg);
    }    

    /* Mobile menu */
    #site-navigation {
        width: 100%;
        position: absolute;
        top: 100%;
        right: 0;
        z-index: 100;
        max-height: 0;
        overflow: hidden;
        background: rgba(102, 138, 239, .9);
        padding: 0 20px;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        -webkit-transition: max-height .7s cubic-bezier(0, 0, 0, 1);
        -moz-transition: max-height .7s cubic-bezier(0, 0, 0, 1);
        transition: max-height .7s cubic-bezier(0, 0, 0, 1);
    }
    #mobile-menu-checkbox:checked + #site-navigation {
        max-height: 1000px;
        -webkit-transition: max-height .7s cubic-bezier(1, 0, 1, 1);
        -moz-transition: max-height .7s cubic-bezier(1, 0, 1, 1);
        transition: max-height .7s cubic-bezier(1, 0, 1, 1);
    }
    #site-navigation ul {
        margin: 0;
        padding: 0;
    }
    #site-navigation > ul {
        padding: 30px 0 20px 0;
        text-align: left;
    }
    #site-navigation li {
        display: block;
        margin: 0;
    }

    /* Categories in mobile menu */
    .primary-menu .menu-item a {
        color: #000;
        display: inline-block;
        margin-left: 20px;
        margin-bottom: 10px;
    }
    .primary-menu .menu-item.current-menu-item > a, 
    .primary-menu .menu-item.current-post-ancestor > a, 
    .primary-menu .menu-item.current-post-parent > a, 
    .primary-menu .menu-item.current-category-parent > a, 
    .primary-menu .menu-item > a:hover {
        color: #354a83;
    }

    /* Subcategories expand button */
    .primary-menu label {
        display: inline-block;
        vertical-align: middle;
        width: 8px;
        height: 15px;
        opacity: 0;
    }
    .primary-menu .menu-item-has-children > label {
        opacity: 1;
        cursor: pointer;
    }
    .primary-menu label > span {
        display: block;
        -webkit-transition: -webkit-transform .5s .2s;
        -moz-transition: -moz-transform .5s .2s;
        -ms-transition: -ms-transform .5s .2s;
        -o-transition: -o-transform .5s .2s;
        transition: transform .5s .2s;
        height: 2px;
        background: #fff;
    }    
    .primary-menu label > span:first-child {
        margin-top: 4px;
        -moz-transform: translateX(0px) translateY(2px) rotate(90deg);
        -webkit-transform: translateX(0px) translateY(2px) rotate(90deg);
        -o-transform: translateX(0px) translateY(2px) rotate(90deg);
        -ms-transform: translateX(0px) translateY(2px) rotate(90deg);
        transform: translate(0, 2px) rotate(90deg);
    }

    .primary-menu input[type="checkbox"] {
        display: inline-block;
        width: 15px;
        height: 15px;
        opacity: 0;
        margin-right: -15px;
        z-index: 2;
        position: relative;
    }

    .primary-menu input[type="checkbox"]:checked + label > span:first-child {
        -moz-transform: translateX(0px) translateY(2px) rotate(0);
        -webkit-transform: translateX(0px) translateY(2px) rotate(0);
        -o-transform: translateX(0px) translateY(2px) rotate(0);
        -ms-transform: translateX(0px) translateY(2px) rotate(0);
        transform: translate(0, 2px) rotate(0);
    }

    /* Subcategories */
    #site-navigation ul.sub-menu {
        position: static;
        background: transparent;
        display: block;
        padding-left: 15px;
        overflow: hidden;
        max-height: 0;
        -webkit-transition: max-height .7s cubic-bezier(0, 0, 0, 1);
        -moz-transition: max-height .7s cubic-bezier(0, 0, 0, 1);
        transition: max-height .7s cubic-bezier(0, 0, 0, 1);
    }
    #site-navigation input[type="checkbox"]:checked ~ .sub-menu {
        max-height: 1000px;
        -webkit-transition: max-height .7s cubic-bezier(1, 0, 1, 1);
        -moz-transition: max-height .7s cubic-bezier(1, 0, 1, 1);
        transition: max-height .7s cubic-bezier(1, 0, 1, 1);
    }

    /* Facebook on forntpage */
    #facebook-6-rss {
        text-align: center;
    }

    /* Mixed rss on frontpage */
    #mixed-rss-items {
        margin-top: 35px;
        text-align: center;
    }
    #mixed-rss-items.loading {
        background-position: calc(50% + 16px) 50px;
    }

    /* Bli medlem */
    .frontpage-bli-medlem-article {
        padding: 20px;
    }
    .frontpage-bli-medlem-article > tbody > tr > td {
        width: 100%;
        display: block;
    }
    .frontpage-bli-medlem-picture {
        padding: 0;
        margin-bottom: 20px;
    }
    .frontpage-bli-medlem-picture img {
        margin-left: auto;
        margin-right: auto;
    }
    .frontpage-bli-medlem-article .last-td {
        background-image: none;
    }
    .frontpage-bli-medlem-texts {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Rss at the bottom */
    .news-feed {
        text-align: center;
    }

    /* Menu on the left side */
    #site-navigation-secondary {
        display: none;
    }

    /* Main section */
    /* #main {
        padding-top: 30px;
        padding-bottom: 50px;
    } */
    #main article {
        margin-bottom: 40px;
    }

    /* Google map */
    body #googleMap {
        height: 320px;
    }
}

/* Facebook rss AND Mixed rss on frontpage AND rss at the bottom of the page */
@media screen and (max-width:600px) {
    /* Facebook */
    #facebook-6-rss {
        margin-left: 0;
    }
    #facebook-6-rss .feed-item {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    /* Mixed rss */
    .section-heading-left {
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 35px;
    }
    .section-heading-right {
        display: block;
        width: 100%;
        text-align: center;
    }
    .section-heading-right button:first-child {
        margin-left: 0;
    }
    #mixed-rss-items {
        margin-left: 0;
    }
    #mixed-rss-items.loading {
        background-position: center 50px;
    }    
    #mixed-rss-items .feed-item {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    .mixed-rss-see-more-container {
        display: -webkit-box;
        display: -moz-box;
        display: box;
        -webkit-box-orient: vertical;
        -moz-box-orient: vertical;
        box-orient: vertical;
    }
    .mixed-rss-see-more-container > a {
        -webkit-box-ordinal-group: 2;
        -moz-box-ordinal-group: 2;
        box-ordinal-group: 2;
        display: block;
        width: auto;
        max-width: 100px;
        margin: 0 auto;        
    }
    .mixed-rss-see-more-links {
        position: static;
        text-align: right;
        margin-bottom: 30px;
        -webkit-transform: none;
        -moz-transform: none;
        transform: none;
        -webkit-box-ordinal-group: 1;
        -moz-box-ordinal-group: 1;
        box-ordinal-group: 1;
    }

    /* Rss at the bottom of the page */
    .news-feed {
        margin-left: 0;
    }

    .news-feed .feed-item,
    .news-feed.news-columns-2 .feed-item,
    .news-feed.news-columns-3 .feed-item {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        float: none;
        padding-left: 0;
    }

    /* Map */
    .map-container .google-map {
        height: 300px;
    }

    /* Article - sidebar */
    .article-content > .article-text,
    .article-content > .article-sidebar,
    /* Category - sidebar */
    .category-sidebar,
    .category-content {
        float: none;
        width: 100%;
        padding-right: 0;
        padding-left: 0;
    }

    #main > .article-sidebar + article {
        float: none;
        width: 100%;
    }

    #main {
        display: -moz-box; 
        display: -webkit-box;
        display: box;
        -moz-box-orient: vertical;
        -webkit-box-orient: vertical; 
        box-orient: vertical;
    }

    #main > .article-sidebar {
        float: none;
        width: 100%;
        min-height: 0;
        padding-right: 0;
        -ms-box-ordinal-group: 2;
        -moz-box-ordinal-group: 2;
        -webkit-box-ordinal-group: 2;
    }

    #main > .article-sidebar + article {
        -ms-box-ordinal-group: 1;
        -moz-box-ordinal-group: 1;
        -webkit-box-ordinal-group: 1;
    }

}

/* Footer */
@media screen and (max-width:700px) {
    #footer .footer-article {
        width: 100%;
        text-align: center;
        margin-top: 50px;
    }
    #footer .footer-article:first-child {
        margin-top: 0;
    }
}

/* Screens smaller than iPhone 6 Plus */
@media screen and (max-width:413px) {
    /* Big picture on frontpage */
    #frontpage-picture {
        padding: 20px 0;
        height: auto;
        min-height: 320px;
    }
    .frontpage-picture-heading,
    .frontpage-picture-heading a {
        font-size: 24px;
    }
    .frontpage-picture-text {
        font-size: 14px;
        width: 100%;
    }
}