/*
Theme Name: Rakennus Vieska Oy Child Theme
Template: twentyseventeen
Version: 1.0
*/

.site-content {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}


/* HERO SECTION */
@media screen and (max-width: 767px) {
    .herocontainer {
        position: relative;
        top: -180px;
        left:5%;
        right:-5%;
    }

    .heroimage img {
        height: 40vh !important;
        width: 100vw !important;
    }
	
	.herosection {
		height: calc(100vh-300px) !important;
	}
}

/* Tablet */
@media screen and (min-width: 768px) and (max-width: 899px) {
    .herocontainer {
        position: relative;
        top: -180px;
        left:50px;
    }
}

/* Laptop */
@media screen and (min-width: 900px) and (max-width: 1365px) {
    .herocontainer {
        position: relative !important;
        top: -180px !important;
        left:50px !important;
    }
    
    .heroimage {
        height: 50vh !important;
        width: 100vw !important;
    }
}

@media screen and (min-width: 1366px) {
    .herosection {
        position: relative !important;
		height: 70vh !important;
		min-height: initial !important;
    }
	
    .herocontainer {
     	position: absolute !important;
        top: 50% !important;
        left: 20vw !important;
        transform: translate(0, -50%) !important;
        overflow: hidden !important;
    }

    .heroimage {
        position: absolute !important;
        top: 50% !important;
        right: 20vw !important;
        height: 80% !important;
        width: 50vw !important;
        transform: translate(0, -50%) !important;
        overflow: hidden !important;
    }
}