/*
 Theme Name:   Twenty Sixteen Child
 Theme URI:    http://example.com/twenty-fifteen-child/
 Description:  Twenty Sixteen Child Theme
 Author:       Christopher Andersson
 Author URI:   http://silicab.se
 Template:     twentysixteen
 Version:      1.0.0
 License:      GNU General Public License v2
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  twenty-sixteen-child
*/


.custom-logo-link img {
    height: 100%;
    /*width: auto;*/
    max-width: 100px;
    /*margin-left: auto;*/
    /*margin-right: auto;*/
}


@media screen and (min-width: 44.375em) and (max-width: 56.875em) {
	.entry-header,
	.post-thumbnail,
	.entry-content,
	.entry-summary,
	.entry-footer,
	.comments-area,
	.image-navigation,
	.post-navigation,
	.page-header,
	.page-content,
	.content-bottom-widgets {
		margin-right: 7%;
		margin-left: 7%;
	}
}


@media screen and (min-width: 986px) and (max-width: 1350px) {

    .custom-logo-link {
        display: inline-block;
        margin-right: 15px;
    }

    .custom-logo-link img {
        max-width: 80px;

    }

    #site-tile-description-container {
        display: inline-block;
        height: 80px;
        vertical-align: middle;
    }

    #site-header-menu {
	margin-top: -0.5em;
    }

    /*Gör att den första menyns "pil" hamnar rätt*/
    #menu-nav > li:first-of-type > ul:before,
    #menu-nav > li:first-of-type > ul:after {
        border-style: solid;
        content: "";
        position: absolute;
    }

    #menu-nav > li:first-of-type > ul:before {
        border-color: #d1d1d1 transparent;
        border-width: 0 10px 10px;
        right: 102px;
        top: -9px;
    }

    #menu-nav > li:first-of-type > ul:after {
        border-color: #fff transparent;
        border-width: 0 8px 8px;
        right: 104px;
        top: -7px;
    }

    /*Gör att den första menyn "vecklas ut" till höger istället för vänster*/
    #menu-nav > li:first-of-type:hover > ul,
    #menu-nav > li:first-of-type.focus > ul {
        left: 0;
        right: auto;
    }

    #menu-nav > li:nth-of-type(-n+2) > ul li:hover > ul,
    #menu-nav > li:nth-of-type(-n+2) > ul li.focus > ul {
        left: 100%;
        right: auto;
    }

    #menu-nav > li:nth-of-type(-n+2) > ul li.menu-item-has-children > a:after {
        content: "\f432";
    }

}


@media all and (min-width: 1350px) {

    .site-header {
        padding: 0;
    }



    #page {
        margin-top: 4px;
        min-height: 100vh;
    }

    .site-inner {
        min-height: 80vh;
    }

    .site-content {
        min-height: 70vh;
    }



    .custom-logo-link {
        display: inline;
    }

    .custom-logo-link img {
        height: 100%;
        width: auto;
    }

    .site-description {
        font-size: 0.7125rem;
        margin: 0;
    }

    #site-tile-description-container {
        display: inline-block;
        vertical-align: middle;
        padding-left: 10px;
    }

    .site-inner, #umu-toplink, #masthead, #content {
        max-width: 1780px;
        /*min-width: 600px;*/
        margin-right: auto;
        margin-left: auto;
        padding: 0 2.5455%;
    }

    .site-title {
        display: inline;
        font-size: 1rem;
    }

    .site-inner {
        padding: 0;
        /*margin-top: 4rem;*/
        margin-top: 2rem;
        /*max-width: 1880px;*/
    }

    .site-branding {
        flex: none;
        height: 80%;
    }



    #menu-nav {
        display: flex;
        flex-direction: row;
    }

    #menu-nav li {
        flex-grow: 1;
        text-align: center;
    }



    .no-sidebar .entry-header, .no-sidebar .entry-content, .no-sidebar .content-bottom-widgets {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .site-branding {
        margin: 0;
    }

    .site-header {
        /*padding: 0 4.5455%;*/
        /*border-bottom: 1px solid darkgrey;*/
    }

    .site-header-menu {
        margin: 0;
        height: 100%;
        /*padding-left: 20px;*/

    }

    .site-header-main {
        justify-content: space-between;
        padding: 10px 0;
        height: 6rem;
    }
    #masthead {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: 100%;
        /*height: 5.7rem;*/
        /*top: 50%;*/
        position: relative;
        /*margin-top: -3.7rem;*/

        /*padding: 10px 0;*/
        /*height: 6rem;*/
    }

    #mastheadContainer {
        border-bottom: 1px solid #e1e1e1;
        width: 100%;
        z-index: 20;
        background-color: white;
        height: 5.7rem;
    }

    .fixedTop {
        top: 0;
        position: fixed;
    }

    .admin-bar .fixedTop {
        top: 32px;
    }

    #headerContainer {
        /*border-bottom: 1px solid darkgrey;*/
        height: 7.5rem;
        background-color: white;
        /*position: fixed;*/
        z-index: 50;
        width: 100%;
    }

    .primary-menu .menu-item {
        /*align-self: center;*/
    }

    .menu-nav-container {
        /*border-top: 1px solid #C6C6C6;*/
    }

    #site-header-menu, #site-navigation, .menu-nav-container, #menu-nav, #menu-nav .menu-item {
        height: 100%;
    }


    #menu-nav .current-menu-item, #menu-nav .current-menu-ancestor {
        border-bottom: 3px solid rgb(20,128,146);
        box-sizing: content-box;
        /*margin-bottom: -18px;*/

    }



    #menu-nav > li > a {
        margin-top: -21px;
        position: relative;
        top: 50%;
    }

    #menu-nav .current-menu-ancestor > a {
        /*margin-top: -20px;*/
        /*position: relative;*/
        /*top: 50%;*/
    }
    #menu-nav > li.current-menu-ancestor, #menu-nav > li.current-menu-item {
        margin-top: -1px;
    }

    .primary-menu > li > ul {
        margin-top: 18px;
        top: 50%;
    }

    .main-navigation ul ul ul {
        /*top: 0;*/
        /*margin-top: -1px;*/
    }

    /*För att få korrekt avstånd när border läggs till*/
    #menu-nav > .current-menu-item > a {
        /*margin-top: -20px;*/
    }


}
@media all and (max-width: 1525px){


    /*#site-header-menu {*/
    /*!*display: none;*!*/
    /*}*/

    /*#menu-toggle {*/
    /*!*display: block;*!*/
    /*!*right: 0px;*!*/
    /*!*position: relative;*!*/
    /*}*/
}


@media screen and (min-width: 61.5625em) {
    .site-main {
        /*margin-bottom: 5.25em;*/
        margin-bottom: 0.25em;
    }
}


@media screen and (min-width: 63em) {
    #menu-nav li {
        text-align: left;
    }
}

@media screen and (max-width: 83.1em) {
    .arpw-li:first-of-type {
        display: none;
    }
}

@media screen and (max-width: 73em) {
    .arpw-li:last-of-type {
        display: none;
    }
}

@media print {
    .site-header {
        padding: 0;
    }
}

@media screen and (min-width: 56.875em) {
    .no-sidebar .entry-header,
    .no-sidebar .entry-content,
    .no-sidebar .entry-summary,
    .no-sidebar .entry-footer,
    .no-sidebar .comments-area,
    .no-sidebar .image-navigation,
    .no-sidebar .post-navigation,
    .no-sidebar .pagination,
    .no-sidebar .page-header,
    .no-sidebar .page-content,
    .no-sidebar .content-bottom-widgets {
        margin-right: 7%;
        margin-left: 7%;
    }
}

.bwg_standart_thumb_spun2_0 {
    border: 2px solid black;
}


.gallery img, .petrolframe, .imgmap-frontend-image img {
    border: 5px solid #e1e1e1;
}

.entry-content h5 {
    color: rgb(20, 128, 146);
}


body.admin-bar:not(.custom-background-image)::before {
    top: 0;
}

body:not(.custom-background-image)::before, body:not(.custom-background-image)::after {
    display: none;
}

body, .menu-item, .site-title {
    font-family: "Gotham SSm A", "Gotham SSm B", Merriweather, Georgia, serif;
}

/*För att förhinda ett sträck under pilarna på metaslider*/
.flex-direction-nav a {
box-shadow: none;
}

.entry-title {
color: rgb(20, 128, 146);
}


#umu-topbar {
    background-color: #1a1a1a;
    font-size: 0.8rem;
    height: 1.8rem;
}

#umu-toplink {
    padding-top: 0;
}

#umu-toplink img {
    height: 1.5rem;
    vertical-align: text-bottom;
}

#umu-toplink a {
    color: white;
    height: 100%;
    display: inline-block;
}



#masthead {
    padding-top: 0;
}

.site {
    margin: 0;
}

body, .menu-item, .site-title, .entry-title, .site-description {
    font-family: "Gotham SSm A", "Gotham SSm B", Merriweather, Georgia, serif;
}

p {
    font-family: Georgia, serif;
    font-size: 18px;
}

p a, p a:visited, p a:focus {
    color: #006699;
}
