/*
 Theme Name:   Web-Veistämö Lankku Child Theme
 Theme URI:    
 Description:  Child theme for Weistamo-Lankku.
 Author:       Web-Veistämö Oy
 Author URI:   http://web-veistamo.fi
 Template:     weistamo-lankku
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  webveistamo-child
*/

body{
    font-family: 'Open Sans', sans-serif;
}

a{
    color: #373a3c;
    -webkit-transition: color .3s;
    -moz-transition: color .3s;
    transition: color .3s;
}

a:hover {
    color: #ba0000;
}

p > a {
    text-decoration: underline;
}

h2 {
    text-align: center;
    text-transform: uppercase;
}

.wrapper {
    /*max-width: 1000px;*/
    max-width: none;
    margin: 0 auto;
}

.container {
    max-width: 1000px;
}

.entry-content {
    padding-bottom: 0;
}

.home .container {
    max-width: none;
    padding: 0;
}

.site-header {
    position: relative;
    /*margin-top: 2em;*/
    margin-top: 0;
}

.site-logo {
	float: left;
}

.site-logo img {
	max-width: 50px;
}

.site-logo h1 {
	display: inline-block;
}

.site-logo h2{
	display: inline-block;
    font-size: .8em;
    text-transform: uppercase;
    width: 165px;
    line-height: 1.4em;
    margin-left: 1em;
    font-weight: 600;
}

#nav-wrapper {
    flex: 1;
}

#navbar-inner {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.site-header .navbar .nav {
    float: right;
    margin-top: 0.5em;
}

.site-header.headroom--pinned .navbar {
    /*margin-top: 2em;*/
    margin-top: 0;
}

.site-header.headroom--not-top .navbar, .site-header.headroom--animating .navbar {
    /*-webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);*/
    margin-top: 2em;
    -webkit-transition: transform .3s;
    -moz-transition: transform .3s;
    transition: transform .3s;
}

.site-header.headroom--not-top .navbar {
    margin-top: 0;
}

/*.headroom--top   {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #d4d4d4;
}*/

.navbar-nav .nav-link {
	color: #000;
	text-transform: uppercase;
}
.navbar-nav .current-menu-position {
    border-bottom: 2px solid #be0000;
}

.navbar-nav .nav-link:hover, .navbar-nav .current-menu-position a {
    color: #ba0000;
}

#header-some-logos {
	text-align: right;
}

#footer-some-logos{
    text-align: center;
}

#header-some-logos i, #footer-some-logos i {
    margin: 0 .5em;
    opacity: .7;
}

.entry-content {
    padding-top: 0;
}

.home-section {
    padding: 3em 1.5em;
}

.home-section.first-section{
    background: #efefef;
    text-align: center;
    margin-top: -1.5em;
}

.home-section:nth-child(odd) {
    background: #efefef;
}

.home-section.first-section img:first-child{
    margin-bottom: 3em;
}

.home-section-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.home-section-inner > h2{
    margin: 0 0 1.5em 0;
}

.home-section-inner > img{
    margin-bottom: 3em;
}

.simple-theme.wp-posts-carousel {
    /*max-height: 500px;*/
    overflow: hidden;
}

.simple-theme.wp-posts-carousel .wp-posts-carousel-slide {
    padding: 0!important;
}

.simple-theme.wp-posts-carousel .wp-posts-carousel-container {
    border: none!important;
    padding: 0!important;
}

.simple-theme.wp-posts-carousel .wp-posts-carousel-container:hover {
    border-color: transparent!important;
    background: transparent!important;
    border: none;
}

.simple-theme.wp-posts-carousel .wp-posts-carousel-image {
    padding-top: 0 !important;
    height: 60vh;
    background-size: cover;
    background-position: center;
}

.simple-theme.wp-posts-carousel .wp-posts-carousel-image img {
    width: 100% !important;
    /*position: relative;
    top: 50%;
    transform: translateY(-50%);*/
}

.simple-theme.wp-posts-carousel .wp-posts-carousel-details {
    padding: 0;
}

.simple-theme.wp-posts-carousel .owl-dots {
    width: 100%;
    position: absolute;
    top: 65%;
    opacity: 1;
    margin-top: 0;
}

.carousel-title-wrap {
    position: absolute;
    top: 50%;
    -moz-transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    text-align: center;
    z-index: 9;
    width: 100%;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,.6);
}

.carousel-title-wrap h3 {
    font-size: 4em;
    text-transform: uppercase;
}

.simple-theme.wp-posts-carousel .owl-dots .owl-dot.active span {
    background: #be0000!important;
}

.simple-theme.wp-posts-carousel .owl-dots .owl-dot span {
    width: 12px;
    height: 12px;
    background: transparent !important;
    border: 2px solid #be0000;
}

.simple-theme.wp-posts-carousel .owl-nav div:before {
    margin-left: 0px;
    margin-top: -2px;
}

.simple-theme.wp-posts-carousel .owl-nav .owl-prev:before {
    margin-left: 0px;
}

.simple-theme.wp-posts-carousel:hover .owl-controls .owl-nav .owl-prev:hover, .simple-theme.wp-posts-carousel:hover .owl-controls .owl-nav .owl-next:hover {
    color: #be0000!important;
}

.home-section iframe {
    max-width: 100%;
}

#groups-grid {
    margin-bottom: 1rem;
}

.groups-grid-item {
    display: inline-block;
    width: 46%;
    margin: 2%;
    cursor: pointer;
    text-align: center;
    position: relative;
    vertical-align: top;
    border: 2px solid transparent;
    -moz-transition: .3s all;
    -webkit-transition: .3s all;
    transition: .3s all;
}

.groups-grid-item:hover{
    border: 2px solid #be0000;
    opacity: .8;
}

.groups-grid-item.focus{
    opacity: 1;
    transition: none;
}

.groups-grid-item.not-focus{
    transition: none;
}

.groups-grid-item .item-title {
    position: absolute;
    /*bottom: 0;*/
    text-align: center;
    width: 100%;
    margin: 2% 0;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,.6);
    /*position: relative;*/
    top: 50%;
    -moz-transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    background: rgba(0,0,0,.3);
    padding: .5em .5em;
}

.groups-grid-item .item-title h3 {
    text-transform: uppercase;
}

.groups-grid-item li {
    list-style-type: none;
}

.grid-item-content {
    position: fixed;
    left: 300%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,.9);
    top: 0;
    z-index: 9;
    opacity: 0;
    -webkit-transition: opacity .3s;
    -moz-transition: opacity .3s;
    transition: opacity .3s;
}

.grid-item-content.selected {
    left: 0;
    top: 0;
    opacity: 1;
}

.grid-item-content-inner {
    width: 80%;
    margin: 0 auto;
    padding: 3em;
    background: rgba(0,0,0,.6);
    color: #fff;
    max-height: 400px;
    overflow: scroll;
    overflow-x: hidden;
    position: relative;
    top: 50%;
    -moz-transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}

::-webkit-scrollbar {
    width: 0px;  /* remove scrollbar space */
    background: transparent;  /* optional: just make scrollbar invisible */
}
/* optional: show position indicator in red */
::-webkit-scrollbar-thumb {
    background: #FF0000;
}

.grid-item-content-inner:before {
    font-family: "FontAwesome";
    content: "\f00d";
    font-size: 2.5em;
    position: absolute;
    right: .3em;
    top: 0;
}

#team-grid {
    margin-top: 3em;
    margin-bottom: 1rem;
}

.team-grid-item {
    display: inline-block;
    width: 29%;
    margin: 2%;
    /*cursor: pointer;*/
    text-align: center;
    vertical-align: top;
    position: relative;
}

.team-grid-item .team-img-wrap {
    max-width: 150px;
    height: auto;
    margin: 0 auto;
    margin-bottom: 1em;
    border-radius: 100%;
    width: 150px;
    height: 150px;
    border: 2px solid rgba(190,00,00,.7);
    overflow: hidden
}

.team-grid-item img {
    width: 150px;
    height: 150px;
}

.team-grid-item .item-title {
    text-align: center;
    width: 100%;
}

.team-grid-item p {
    padding-bottom: 1em;
}

.team-grid-linkedin {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
}

/*.team-grid-item ul{
    padding-left: 0; 
}*/

/*.team-grid-item li {
    /*text-align: left;*/
/*    text-align: center;
    list-style-type: none;
    margin-bottom: 1em;
}*/

/*.google-maps-widget {
    width: 100%;
    text-align: center;
    margin-top: 3em;
}*/

.footer {
    /*background-color: #F5F5F5;*/
    background-color: #efefef;
}

.footer .credits, .footer .widgets {
    max-width: 1000px;
    margin: 0 auto;
}

.footer .credits {
    padding-top: 1em;
    position: relative;
}

.footer .textwidget {
    font-size: 1.3em;
    text-align: center;
}

.footer .textwidget iframe {
    width: 100%;
}

.footer .widget {
    text-align: center;
}

.footer .widget:nth-child(4){
    width: 100%;
}

#footer-logo-grayscale{
    width: 50px;
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
    margin: 0 auto;
    margin-bottom: 1em;
    opacity: .7;
}

.footer .logo-grayscale {
    /*width: 300px;
    position: absolute;
    right: 3em;
    margin-top: -8em;*/
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
    max-width: 80%;
}

.footer-content-wrap{
    display: inline-block;
    text-align: left;
}

.page-header {
    padding: .5em 2rem;
}

.container article {
    width: 29%;
    display: inline-block;
    margin: 2%;
    position: relative;
    border: 3px solid transparent;
    vertical-align: top;
}

.container article:hover{
    border: 3px solid #be0000;
    opacity: .8;
}

.container article a, .container article .entry-meta .date {
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,.6);
}

.container article img {
    width: 100%;
}

.container article .entry-header {
    /*position: absolute;
    top: 50%;
    -moz-transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);*/
    width: 100%;
    text-align: center;
    background: rgba(0,0,0,.3);
    padding: 1em;
}

.container article > a:hover, .container article > a:active {
    text-decoration: none;
}

.container article .entry-header h2{
    line-height: 1.2em;
    font-size: 1.3em;
    text-transform: none;
}

.pagination{
    width: 100%;
    text-align: center;
}

.container article .entry-header .author, .container article .entry-header .comments, .container article > p, .container article .entry-footer {
    display: none;
}

.comments {
    max-width: 1000px;
    margin: 2rem auto;
}

.single .entry-content {
    padding-top: 3em;
    padding-bottom: 2rem;
}

.navbar-toggler, .navbar-toggler:focus, .navbar-toggler:hover {
    color: #be0000;
    font-size: 2em;
    float: right;
}

#nav-wrapper.navbar-toggleable-sm.collapse.in, #nav-wrapper.navbar-toggleable-sm.collapsing {
    background: #fff;
}

.back-to-top {
    position: fixed;
    bottom: 1em;
    right: 1em;
    font-size: 3em !important;
    cursor: pointer;
    opacity: 0;
    -moz-transition: all .3s;
    -webkit-transition: all .3s;
    transition: all .3s;
}

.back-to-top:hover{
    color: #ba0000;
}

#catlist-wrap{
    text-align: center;
    margin-top: 2em;
    margin-bottom: 1em;
}

li.cat-item {
    display: inline-block;
    list-style-type: none;
}

li.cat-item a {
    color: #be0000;
    border: 2px solid #be0000;
    padding: .5em;
}

.entry-content > .vfbp-form {
    margin: 3em auto;
}

#vfbField13{
    display: none;
}

#vfbField13.visible{
    display: block;
}

@media only screen and (max-width: 1000px){
    .home-section-inner {
        padding: 0 1em;
    }

    /*.footer .credits, .footer .widgets {
        padding: 0 1em;
    }*/
}

@media only screen and (max-width: 768px){

    .admin-bar .site-header.headroom.headroom--not-top.headroom--pinned .navbar{
        margin-top: 2.5em;
    }

    #nav-wrapper.navbar-toggleable-sm.collapse.in .nav, #nav-wrapper.navbar-toggleable-sm.collapsing .nav {
        width: 100%;
    }

    .site-header .navbar .nav {
        margin: 80px 15px 2rem;
    }

    .navbar-nav .current-menu-position{
        border-bottom: none;
        text-align: center;
    }

    .navbar-nav .current-menu-position a {
        border-bottom: 2px solid #be0000;
        display: inline-block;
    }

    #header-some-logos {
        text-align: center;
        position: absolute;
        bottom: .5em;
        width: 100%;
    }

    #header-some-logos i:first-child {
        margin-left: 0;
    }

    .site-header .navbar .nav {
        margin-right: 0!important;
    }

    .carousel-title-wrap h3 {
        font-size: 2.5em;
    }

    .groups-grid-item {
        display: inline-block;
        width: 100%;
        margin: 5% 0;
        cursor: pointer;
    }

    .team-grid-item {
        display: inline-block;
        width: 100%;
        margin: 5% 0;
        cursor: pointer;
    }

    .grid-item-content-inner {
        width: 95%;
        margin-top: 1em;
        font-size: .85em;
        height: 420px;
        padding: 2em 1em;
    }

    .container article {
        width: 46%;
        margin: 2%;
    }

    .grid-item-content-inner:before {
        font-size: 2em;
    }

    .footer {
        padding-top: 2em;
    }

    .footer .widget {
        margin-bottom: 2em;
    }

    .footer .logo-grayscale {
        /*margin: 2em 0;*/
        max-width: 200px;
    }

    .back-to-top {
        bottom: 1em;
        right: .3em;
    }

    .post-navigation .post-title {
        display: none;
    }
}

@media only screen and (max-width: 500px){
    .back-to-top {
        bottom: 2em;
        right: .2em;
        font-size: 2em !important;
    }
}

@media only screen and (max-width: 450px){
    .container article {
        width: 100%;
        margin: 0;
        margin-bottom: .5em;
    }
}













/* Small devices (48em and up)*/
@media (min-width: 34em) {
    
}

/* Medium devices (tablets, 48em and up)*/
@media (min-width: 48em) {
    
}

/* Large devices (desktop, 48em and up)*/
@media (min-width: 48em) {
    
}

/* Large devices (desktops, 62em and up)*/
@media (min-width: 62em) {
    
}

/* Extra large devices (large desktops, 75em and up)*/
@media (min-width: 75em) {

}

/* Post dates temporalily hidden */
.page-header time, .entry-meta time{
    display: none;
}

/* Quickfix hide for footer everywhere else but home */
.footer .container .widgets:first-child{
    display: none;
}

.home .footer .container .widgets:first-child{
    display: block;
}
