/*
Theme Name: Sogelag i Vanylven
Theme URI: http://www.osberget.no/
Author: Magne Grimstad at Osberget AS, Maxim Kukulinsky at RASAMAX SIA
Author URI: http://www.osberget.no/
Description: Sogelag i Vanylven Wordpress theme
Version: 1.0.0
Tags: sogelag osberget rasamax
Text Domain: sogelag
*/
/**
 * Reset CSS instead of Normalize inside of Bootstrap
 */

/* Page commons */
body {

}

* > 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;
}

.position-cover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.bg-cover {
    background: center no-repeat;
    background-size: cover;
}

.bg-contain {
    background: center no-repeat;
    background-size: contain;
}

.object-fit-cover {
    object-fit: cover;
}

.shadow-sm-hover {
    transition: box-shadow .25s;
}

.shadow-sm-hover:hover {
    box-shadow: 0 0 1rem rgba(0,0,0,.20);
}

/* Fixed aspect ratio images */
.fixed-aspect-ratio-image {
    display: block !important;
    padding-top: 100%;
    background: center no-repeat;
    background-size: cover;
}

.fixed-aspect-ratio-image.r-54 {
    padding-top: 54%;
}

.z-index-1 {
    z-index: 1;
}

.accessible-hidden {
    display: inline;
    height: 0;
    width: 0;
    font-size: 0;
    overflow: hidden;
    -ms-appearance: none;
    -moz-appearance: none;
    -o-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    border: none;
    border-color: transparent;
    box-shadow: none;
}






main {
    min-height: calc(100vh - 40px);
}

body.admin-bar main {
    min-height: calc(100vh - 40px - 32px);
}



body .lg-toolbar .lg-close,
.close-button {
    position: relative;
    width: 16px;
    height: 16px;
    border: 0;
    border-color: white;
}
body .lg-toolbar .lg-close:before,
body .lg-toolbar .lg-close:after,
.close-button:before,
.close-button:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    border-bottom-color: inherit;
    border-bottom-style: solid;
    border-bottom-width: 2px;
    -webkit-transform: translate(-50%, -50%) rotate(45deg);
    -ms-transform: translate(-50%, -50%) rotate(45deg);
    transform: translate(-50%, -50%) rotate(45deg);
}
body .lg-toolbar .lg-close:after,
.close-button:after {
    -webkit-transform: translate(-50%, -50%) rotate(-45deg);
    -ms-transform: translate(-50%, -50%) rotate(-45deg);
    transform: translate(-50%, -50%) rotate(-45deg);
}



#header {
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
    height: 88px;
}

.logo-text {
    font-size: 28px;
}

#searchform {
    position: relative;
}

#search {
    height: 48px;
    background-color: #ecf0f0;
    border: 0;
    border-radius: 1000px;
}

#searchsubmit {
    position: absolute;
    top: 50%;
    left: 20px;
    font-size: 0;
    width: 16px;
    height: 16px;
    border: none;
    box-shadow: none;
    background-color: transparent;
    background-image: url(images/search.svg);
    background-repeat: no-repeat;
    background-position: center;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

#searchbyvoice {
    position: absolute;
    top: 50%;
    right: 20px;
    font-size: 0;
    width: 16px;
    height: 16px;
    border: none;
    box-shadow: none;
    background-color: transparent;
    background-image: url(images/voice_search.svg);
    background-repeat: no-repeat;
    background-position: center;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    border-radius: 100%;
    padding: 10px;
}

#searchbyvoice:focus {
    outline: none;
}

#searchbyvoice.speaking {
    box-shadow: 0 0 5px #0b7773;
}

@media screen and (max-width: 767px) {
    #searchbyvoice {
        right: 60px;
    }
}

#searchform-mobile-checkbox {
    font-size: 0;
    width: 16px;
    height: 16px;
    -ms-appearance: none;
    -moz-appearance: none;
    -o-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    border: none;
    box-shadow: none;
    background-color: transparent;
    background-image: url(images/search.svg);
    background-repeat: no-repeat;
    background-position: center;
}
#searchform-mobile-checkbox:focus {
    outline: none;
}

#search-close-button {
    position: absolute;
    top: 50%;
    right: 20px;
    font-size: 0;
    width: 16px;
    height: 16px;
    border: 0;
    border-color: #22B7A0;
    box-shadow: none;
    background-color: transparent;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    margin: 0;
}


@media (max-width: 767px) {
    #searchform {
        position: fixed;
        top: 0;
        left: 0;
        width: 0;
        height: 88px;
        padding-top: 20px;
        padding-bottom: 20px;
        background-color: white;
        opacity: 0;
        overflow: hidden;
        transition: opacity 0.5s, width 0s 0.5s;
        z-index: 1005;
    }


    body.admin-bar #searchform {
        top: 46px;
    }


    #search {
        width: 100%;
        background-color: white;
        border-radius: 0;
    }

    #searchform-mobile-checkbox:checked ~ #searchform {
        opacity: 1;
        width: 100%;
        transition: opacity 0.5s, width 0s;
    }

    .search-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 0;
        height: 100vh;
        background-color: #ECF0F0;
        opacity: 0;
        transition: opacity 0.5s, width 0s 0.5s;
        z-index: 1000;
    }

    #searchform-mobile-checkbox:checked ~ .search-overlay {
        opacity: 1;
        width: 100vw;
        transition: opacity 0.5s, width 0s;
    }


    body.admin-bar .search-overlay {
        top: 46px;
        height: calc(100vh - 46px);
    }
}

.contact-label {
    position: absolute;
    top: 8px;
    left: 0;
    -webkit-transform: translate(-50%, -50%) rotate(-90deg) translate(-50%, 50%);
    -ms-transform: translate(-50%, -50%) rotate(-90deg) translate(-50%, 50%);
    transform: translate(-50%, -50%) rotate(-90deg) translate(-50%, 50%);
}


#go-to-top {
    position: fixed;
    width: 40px;
    height: 40px;
    right: 40px;
    bottom: 40px;
    opacity: 0;
    max-width: 0;
    border: 2px solid #22B7A0;
    transition: opacity .5s max-width .5s 0s;
    z-index: 3;
    cursor: pointer;
}

#go-to-top.visible {
    opacity: 1;
    max-width: 40px;
    transition: opacity .5s;

}

.arrow-down {
    display: inline-block;
    position: relative;
    width: 18px;
    height: 18px;
}

#go-to-top:before,
#go-to-top:after,
.arrow-down:before,
.arrow-down:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    border-color: #22B7A0;
    border-style: solid;
    border-width: 0;
}

#go-to-top:before,

.arrow-down:before {
    height: 15px;
    border-left-width: 2px;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.arrow-down:after {
    height: 10px;
    width: 10px;
    border-left-width: 2px;
    border-bottom-width: 2px;
    -webkit-transform: translate(-48%, -40%) rotate(-45deg);
    -ms-transform: translate(-48%, -40%) rotate(-45deg);
    transform: translate(-48%, -40%) rotate(-45deg);
}

#go-to-top:after {
    height: 10px;
    width: 10px;
    border-top-width: 2px;
    border-right-width: 2px;
    -webkit-transform: translate(-50%, -60%) rotate(-45deg);
    -ms-transform: translate(-50%, -60%) rotate(-45deg);
    transform: translate(-50%, -60%) rotate(-45deg);
}




/* Menu */
#main-menu-button {
    width: 18px;
    height: 18px;
    font-size: 0;
    line-height: 0;
    background-image: url(images/menu.svg);
    background-position: center;
    background-repeat: no-repeat;
    margin: 0;
}

#main-navigation-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    -webkit-box-shadow: 0px 0 0px rgba(0, 0, 0, 0.39);
    box-shadow: 0px 0 0px rgba(0, 0, 0, 0.39);
    -webkit-transform: translateX(-100%);
    -ms-transform: translateX(-100%);
    transform: translateX(-100%);
    -webkit-transition: -webkit-transform 0.3s, -webkit-box-shadow 0.3s;
    transition: -webkit-transform 0.3s, -webkit-box-shadow 0.3s;
    transition: transform 0.3s, box-shadow 0.3s, -webkit-transform 0.3s, -webkit-box-shadow 0.3s;
    z-index: 1000;
}

body.admin-bar #main-navigation-container {
    top: 32px;
    height: calc(100vh - 32px);
}


@media (max-width: 767px) {
    body.admin-bar #main-navigation-container {
        top: 46px;
        height: calc(100vh - 46px);
    }
}


#menu-checkbox:checked ~ #main-navigation-container {
    -webkit-transform: translateX(0);
    -ms-transform: translateX(0);
    transform: translateX(0);
    -webkit-box-shadow: 4px 0 22px rgba(0, 0, 0, 0.39);
    box-shadow: 4px 0 22px rgba(0, 0, 0, 0.39);
}


#close-main-menu-button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    margin: 0;
}


.submenu-checkbox {
    position: absolute;
    top: 5px;
    right: 0;
    width: 16px;
    height: 16px;
    -ms-appearance: none;
    -moz-appearance: none;
    -o-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    border: none;
    border-color: transparent;
    box-shadow: none;
}

.submenu-checkbox:focus {
    outline: none;
}


.submenu-checkbox:before,
.submenu-checkbox:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: white;
    -webkit-transition: transform 0.3s;
    -ms-transition: transform 0.3s;
    transition: transform 0.3s;
}

.submenu-checkbox:before,
.submenu-checkbox:checked:after {
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}
.submenu-checkbox:after {
    -webkit-transform: translateY(-50%) rotate(90deg);
    -ms-transform: translateY(-50%) rotate(90deg);
    transform: translateY(-50%) rotate(90deg);
}


#main-navigation-container .list a {
    display: inline-block;
    padding-right: 20px;
}

#main-navigation-container .list a:hover {
    color: inherit;
}

#main-navigation-container .menu > .list > .list-item > a {
    font-weight: bold;
    text-transform: uppercase;
}

.submenu-checkbox ~ .list {
    overflow: hidden;
    max-height: 0;
    transition: max-height .3s cubic-bezier(0, 1, 0, 1);
}

.submenu-checkbox:checked ~ .list {
    max-height: 1000px;
    transition: max-height .5s cubic-bezier(1, 0, 1, 0);
}





.inner-container {
    width: 100%;
    max-width: 715px;
    margin-left: auto;
    margin-right: auto;
}

.side-block {
    width: 200px;
}

.side-menu .current-page,
.side-menu a:hover {
    display: inline-block;
    text-decoration: none;
}

.side-menu a:after {
    content: "";
    opacity: 0;
    display: block;
    margin-top: 4px;
    border-bottom: 2px solid #22B7A0;
}

.side-menu .current-page:after,
.side-menu a:hover:after {
    opacity: 1;
}




.gallery-wrapper {
    margin-left: -40px;
    margin-right: -40px;
}

.gallery-item img {
    height: 474px;
}

.gallery-item .caption {
    display: none;
}


body .lg-actions .lg-next,
body .lg-actions .lg-prev,
.slick-arrow,
.slick-dots > li button {
    font-size: 0;
    -ms-appearance: none;
    -moz-appearance: none;
    -o-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    border: none;
    background: transparent;
    box-shadow: none;
}

.slick-arrow:focus,
.slick-dots > li button:focus {
    outline: 0;
}

.slick-arrow {
    position: absolute;
    bottom: 0;
    width: 18px;
    height: 18px;
}


body .lg-actions .lg-next,
body .lg-actions .lg-prev {
    width: 18px;
    height: 18px;
}

body .lg-actions .lg-next:before,
body .lg-actions .lg-prev:before,
body .lg-actions .lg-next:after,
body .lg-actions .lg-prev:after,
.slick-arrow:before,
.slick-arrow:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
}

body .lg-actions .lg-next:before,
body .lg-actions .lg-next:after,
.slick-arrow.slick-next:before,
.slick-arrow.slick-next:after {
    left: initial;
    right: 50%;
}


body .lg-actions .lg-next:before,
body .lg-actions .lg-prev:before,
.slick-arrow:before {
    width: 15px;
    height: 2px;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    background-color: #22B7A0;
}

body .lg-actions .lg-next:after,
body .lg-actions .lg-prev:after,
.slick-arrow:after {
    width: 10px;
    height: 10px;
    border-bottom: 2px solid #22B7A0;
    border-left: 2px solid #22B7A0;
    -webkit-transform: translate(-60%, -50%) rotate(45deg);
    -ms-transform: translate(-60%, -50%) rotate(45deg);
    transform: translate(-60%, -50%) rotate(45deg);
}

body .lg-actions .lg-next:after,
.slick-arrow.slick-next:after {
    -webkit-transform: translate(60%, -50%) rotate(-135deg);
    -ms-transform: translate(60%, -50%) rotate(-135deg);
    transform: translate(60%, -50%) rotate(-135deg);
}

body .lg-actions .lg-next:before,
.slick-arrow.slick-next:before {
    -webkit-transform: translate(50%, -50%);
    -ms-transform: translate(50%, -50%);
    transform: translate(50%, -50%);
}


body .lg-actions .lg-prev,
.slick-prev {
    left: 50px;
}
body .lg-actions .lg-next,
.slick-next {
    right: 50px;
}

.slick-dots {
    font-size: 0;
    padding: 50px 0 0;
    list-style: none;
    text-align: center;
}

.slick-dots > li {
    display: inline-block;
    padding: 5px;
}

.slick-dots > li button {
    width: 6px;
    height: 6px;
    background-color: #B9DDD7;
    border-radius: 1000px;
    padding: 0;
}

.slick-dots > li.slick-active button {
    background-color: #22B7A0;
}



@media (max-width: 767px) {
    main {
        min-height: 100vh;
    }

    body.admin-bar main {
        min-height: calc(100vh - 46px);
    }

    .gallery-wrapper {
        margin-left: -20px;
        margin-right: -20px;
    }

    .gallery-item img {
        height: 208px;
    }
}





























/* Product gallery */
body .lg-thumb-outer.lg-grab,
body .lg-backdrop,
body .lg-sub-html {
    background: #fff;
}

/*overlay*/
body .lg-outer.lg-start-zoom.lg-use-css3.lg-css3.lg-slide.lg-grab.lg-show-after-load.lg-pull-caption-up.lg-has-thumb.lg-can-toggle.lg-visible.lg-thumb-open {
    overflow: hidden;
    overflow-y: auto;
    height: 100%;
}

body .lg-outer .lg {    /*container*/
    display: flex;
    flex-direction: column;
    overflow: unset;
    padding: 80px 20px 50px;
}

body .lg-outer .lg-inner, /*gallery container*/
body .lg-sub-html { /*description*/
    position: relative;
}

body .lg-outer .lg-inner {  /*gallery container*/
    flex: 1 1 auto;
}

body .lg-outer.lg-pull-caption-up.lg-thumb-open .lg-sub-html {  /*description*/
    bottom: unset;
}

body .lg-toogle-thumb.lg-icon { /*thumbnail collapse button*/
    display: none;
}

body .lg-hide-items .lg-toolbar {   /*top bar - show always*/
    opacity: 1;
    -webkit-transform: none;
    -ms-transform: none;
    transform: none;
}

body.admin-bar .lg-toolbar.lg-group {   /*top bar - admin panel shift*/
    top: 32px;
}

body .lg-toolbar.lg-group { /*top bar - bg color*/
    background: transparent;
    height: 100%;
    width: 10%;
    right: 0;
    left: initial;
}

body .lg-toolbar #lg-counter {
    position: absolute;
    bottom: 40px;
    right: 15%;
    padding: 0;
    color: #70D5C5;
}


body .lg-actions {
    z-index: 1090;
}

body .lg-sub-html { /*description*/
    padding: 0;
    color: #414141;
}

body .lg-outer .lg-img-wrap {   /*image container*/
    padding: 0;
}

body .lg-toolbar .lg-close {  /*close button*/
    background: none;
    top: 20px;
    right: 20px;
    border-color: #22B7A0;
}

@media (min-width: 992px) {
    body .lg-outer .lg-img-wrap {
        padding: 0;
    }

    body .lg-outer .lg {    /*container*/
        min-height: unset;
    }

}

@media (max-width: 767px) {
    body .lg-outer .lg {
        padding: 40px 50px;
    }

    body .lg-actions .lg-next {
        right: 20px;
    }

    body .lg-actions .lg-prev {
        left: 20px;
    }
}



/* Search */
.truncate-overflow p {
    width: 100%;
    overflow: hidden;
    position: relative; 
    line-height: 1.5em;
    max-height: 3em; 
    text-align: justify;  
    margin-right: -1em;
    padding-right: 1em;
}

.truncate-overflow p:before {
    content: '…';
    position: absolute;
    right: 0;
    bottom: 0;
}

.truncate-overflow p:after {
    content: '';
    position: absolute;
    right: 0;
    width: 1em;
    height: 1em;
    margin-top: 0.5em;
    background: #ecf0f0;
}

span.highlight {
    background-color: rgba(34, 183, 160, 0.25);
}


/* Side shortcut */
#side-shortcut {
    position: fixed;
    top: 50%;
    left: 0;
    -webkit-transform: translate(-50%, -50%) rotate(-90deg) translateY(50%);
    -ms-transform: translate(-50%, -50%) rotate(-90deg) translateY(50%);
    transform: translate(-50%, -50%) rotate(-90deg) translateY(50%);
    padding: 5px 33px 7px 33px;
    border-bottom-right-radius: 21px;
    border-bottom-left-radius: 21px;
    font-size: 14px;
    text-transform: uppercase;
}


#side-shortcut:hover {
    text-decoration: none;
}