/**
 * Place your custom styles here.
 */

/* Paneelien rivityksen korjaus 14.04.2020 */
.field--name-field-hanketyyppi > .field--items {
	display: inline-block;
}
.projektit .infobox .infobox-content .field--label, .projektit .projektin-sisalto .field--label {
	vertical-align: top;
}
/* ======================================= */

body {
	font-family: "proxima-nova";
	color: #000;
	font-size: 14px;
	 -webkit-overflow-scrolling: touch;
    -ms-overflow-style: scrollbar;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1 {
	font-size: 40px;
	line-height: 45px;
	font-weight: 800;
	text-transform: uppercase;
	margin: 0;
}
h2 {
	font-size: 30px;
	line-height: 40px;
	font-weight: 800;
	text-transform: uppercase;
	margin: 0;
}
h3 {
	font-size: 17px;
	line-height: 26px;
	font-weight: 700;
	margin: 0;
}
p.ingress {
	font-size: 17px;
	line-height: 32px;
	font-weight: 100;
	margin: 0;
}
p {
	font-size: 15px;
	line-height: 26px;
	font-weight: 400;
	margin: 0;
}
a {
	color: #000;
}
li.active a {
	font-size: 14px;
	font-weight: 600;
	color: #000;
}
h3 a {
	font-size: 17px;
	line-height: 26px;
	font-weight: 600;
	margin: 0;
}
.blue-link  {
	font-weight: 600;
	color: #FFF;
	background: #21394D;
	border: 1px solid #21394D;
	display: inline-block;
    padding: 20px 35px;
    min-width: 166px;
    text-align: center;
    text-transform: uppercase;
	text-decoration: none;
}
.blue-link:hover {
	background: transparent;
	color: #000;
	text-decoration: none;
	border: 1px solid #000;
	-webkit-transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
    -o-transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
	text-decoration: none;
}
.blue-link:hover {
	background: #FFF;
	color: #000;
	text-decoration: none;
	border: 1px solid #000;
	text-decoration: none;
}
.blue-link a {
	padding: 23px 0;
	color: white;
	text-transform: uppercase !important;
	text-decoration: none !important;
}
.blue-link:hover a {
	color: #000;

}
.blue-link-abso {
	position: absolute;
	bottom: -30px;
}
.row-eq-height {
	display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
}
.user-logged-in .navbar-fixed-top {
	position: relative;
	background-color: transparent;
	z-index: 200;
}
.nopadding {
	padding: 0;
}
header .logo {
	width: 180px;
}
.footer .logo img {
	width: 140px;
}
.navbar-default {
	background-color: #FFF;
	border-color: transparent;
}
.navbar-default .navbar-collapse, .navbar-default .navbar-form {
	border-color: transparent;
}
.navbar-nav {
	float: right;
}
.navbar-default .navbar-nav>li>a {
	color: #000;
	font-weight: 500;
}
a:hover {
	color: #000;
}
.nav>li>a:hover {
	background-color: transparent;
}
.navbar-default .navbar-nav>.active>a, .navbar-default .navbar-nav>.active>a:hover, .navbar-default .navbar-nav>.active>a:focus {
	color: #000;
	border-bottom: 1px solid rgba(112, 112, 112, 0.75);
	background-color: transparent;
}
.region-sidebar-first nav ul {
	position: fixed;
	width: 170px
}
.region-sidebar-first nav ul li.active a {
	background: #21394D;
    color: #FFF;
}
.paragraph--type--otsikko-h2 h2:before {
content:"";
display:block;
height:80px; /* fixed header height*/
margin:-80px 0 0; /* negative fixed header height */
}
.paragraph-bottom {
	margin-bottom: 70px;
}
.main-container {
	margin-top: 77px;
}
.grey {
	background: #ededed;
	padding: 35px 50px;
	height: 100%;
}
.white {
	padding: 30px 40px;
}
.height100 {
	height: 100%;
}
.height275 {
	height: 275px;
}
.region-sidebar-first nav ul li a {
	padding: 10px 0 10px 5px;
	border-bottom: 1px solid rgba(112, 112, 112, 0.75);
}
.nostot {
	padding: 50px 0 70px 0;
}
.field--name-field-nosto {
	text-align: center;
}
.h2-viiva h2 {
	border-top: 1px solid #707070;
    border-bottom: 1px solid #707070;
    padding: 10px 0px;
    margin: 20px 0;
}
.h2-viiva h2 {
    border-bottom: 1px solid #707070;
    padding: 10px 0;
    margin: 20px 0;
}
.paragraph--type--_-col-textbox-image- {
	margin-bottom: 70px;
}
.field--name-field-otsikko-valkoinen {
	position: absolute;
	left: 0;
	top: 0;
}
.bg-700 {
	height: 700px;
	background-size: cover;
	background-position: 50% 50%;
}
.bg-400 {
	height: 480px;
	background-size: cover;
	background-position: 50% 50%;
}
.bg-200 {
	height: 200px;
	background-size: cover;
	background-position: 50% 50%;
}
.bg-350 {
	height: 350px;
	background-size: cover;
	background-position: 50% 50%;
}
.taustakuva-custom {
	height: 700px;
	background-size: cover;
	background-position: 50% 50%;
}
.width-20 {
	width: 20%;
	float: left;
}
.width-20 a img {
	margin-bottom: 10px;
}
.valkoinen-otsikko {
	color: #FFF;
	padding: 70px 0 0 20px;
	text-transform: none;
}
.field--name-field-otsikko-h2 h2 {
	text-align: center;
}
.paragraph--type--otsikko-h2 {
	margin: 70px 0 30px 0;
}
.paragraph--type--kokolevea-kuva {
	margin: 30px 0;
}
.paragraph--type--_-col-tekstilaatikko-ingressi- {
	margin-top: 30px;
}
.path-frontpage.field--name-field-ingressi {
	padding-top: 20px;
}
#panel {
	background: #FFF;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0 15px 48px 0;
    display:none;
}
.project-button {
	background: #FFF;
    padding: 7px;
    position: absolute;
    bottom: 5px;
   	border: 0;
   	z-index: 200;
   	opacity: 0.8;
}
.project-button:focus {
	border: 0;
	outline: 0;
}
.views-row:nth-child(1) .projektit .infobox .infobox-content {
	width: 300px;
}
.projektit .infobox .infobox-content .field--label,
.projektit .projektin-sisalto .field--label {
	display: inline-block;
	width: 35%;
}

.projektin-sisalto > .field > .field--item {
	width: 63%;
}

.infobox .infobox-content .field--item,
.projektit .projektin-sisalto .field--item,
.projektit .projektin-sisalto .field--items {
	display: inline-block;
}

.projektit .projektin-sisalto .field--items {
	display: inline-block;
	width: 63%;
}

.projektit .projektin-sisalto .field--name-field-hanketyyppi .field--items .field--name-name::after {
  content: ',';
}

.projektit .projektin-sisalto .field--name-field-hanketyyppi .field--items > .field--item:last-of-type .field--name-name::after {
  content: none;
}

.infobox > .infobox-content > .field,
.projektit .projektin-sisalto > .field {
	border-bottom: 1px solid #707070;
	padding: 5px 0px;
}
.infobox>.infobox-content>.field.luelisaa {
	border-bottom: 0;
}
.luelisaa a {
	font-weight: 600;
}
.projektit .rivi {
	margin-bottom: 50px;
}
.projektit .projektin-sisalto {
	padding: 50px;
}
.projektit h1 {
	border-bottom: 1px solid #707070;
	padding-bottom: 30px;
	margin-bottom: 30px;
}
.project {
	background-size: cover;
	background-repeat: no-repeat;
}
.projektit-nakyma .view-header {
  padding: 0 5px 0 15px;
}
.projektit-nakyma .views-row:nth-child(1) {
	float: left;
	width: 70%;
	position: relative;
	height: 500px;
	padding: 0 5px 0 15px;
}
.projektit-nakyma .views-row:nth-child(1) #panel {
	padding: 40px 15px;
	width: 300px;
}
.projektit-nakyma .views-row:nth-child(2) #panel {
	padding: 0 15px 48px 0;
	width: 100%;
}
.projektit-nakyma .views-row:nth-child(3) #panel {
	padding: 0 15px 48px 0;
	width: 100%;
}
.projektit-nakyma .views-row {
	float: left;
	width: 33.33%;
	position: relative;
	height: 250px;
	padding-right: 15px;
	padding-left: 15px;
}
.projektit-nakyma .views-row .project {
	height: 250px;
	border-top: 5px solid #FFF;
	border-right: 5px solid #FFF;
	border-bottom: 5px solid #FFF;
}
.projektit-nakyma .views-row:nth-child(1) .project {
	height: 500px;
}
.projektit-nakyma .views-row:nth-child(2) {
	float: right;
	width: 30%;
	position: relative;
	height: 250px;
	padding-right: 15px;
	padding-left: 0;
}
.projektit-nakyma .views-row:nth-child(2) .project {
	height: 250px;
	border-bottom: 5px solid #FFF;
}
.projektit-nakyma .views-row:nth-child(3) {
	float: right;
	width: 30%;
	position: relative;
	height: 250px;
	padding-right: 15px;
	padding-left: 0;
}
.projektit-nakyma .views-row:nth-child(3) .project {
	height: 250px;
}
.henkilo {
	margin-bottom: 50px;
}
.henkilo h3 {
	text-transform: uppercase;
}
.view-henkilot .view-content .henkilo:nth-child(3) .order-reverse,
.view-henkilot .view-content .henkilo:nth-child(4) .order-reverse {
	display: -webkit-flex;
	display: -ms-flexbox;
	display: -webkit-box;
	display: flex;
	-webkit-flex-direction: row-reverse;
	-moz-flex-direction: row-reverse;
	-ms-flex-direction: row-reverse;
	-webkit-box-orient: horizontal;
	-webkit-box-direction: reverse;
	        flex-direction: row-reverse;
}
.paragraph--type--_-col-tekstil {
	margin-bottom: 70px;
}
.paragraph--type--palvelut {
	margin: 30px 0;
}
.paragraph--type--tekstilaatikko-keskitetty- {
	text-align: center;
	padding: 30px 0;
}
.palvelut-boxi {
	clear: both;
    float: left;
    width: 100%;
    padding: 30px 0;
}
.palvelut-boxi img {
	float: left;
    margin-right: 30px;
}
.flex-center  {
	display: -webkit-flex;
	display: -ms-flexbox;
	display: -webkit-box;
	display: flex;
	-webkit-flex-direction: column;
	-moz-flex-direction: column;
	-ms-flex-direction: column;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
	        flex-direction: column;
    -webkit-justify-content: center;
    -moz-justify-content: center;
    -ms-justify-content: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}
#block-projektinleipa {
	margin: 70px 0;
}
.block-flippy {
	margin: 70px 0;
}
ul.flippy {
	display: -webkit-flex;
	display: -ms-flexbox;
	display: -webkit-box;
	display: flex;
	-webkit-align-items: center;
	-moz-align-items: center;
	-ms-align-items: center;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	-webkit-justify-content: center;
	-moz-justify-content: center;
	-ms-justify-content: center;
	-webkit-box-pack: center;
	    -ms-flex-pack: center;
	        justify-content: center;
}
ul.flippy li {
	display: -webkit-flex;
	display: -ms-flexbox;
	display: -webkit-box;
	display: flex;
	-webkit-align-items: center;
	-moz-align-items: center;
	-ms-align-items: center;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	background: #21394D;
	margin: 0 2px 0 2px;
	height: 65px;
    padding: 0 25px;
}
ul.flippy li svg {
	color: #FFF;
	font-size: 44px;
}
.fa-caret-left {
	margin-right: 15px;
}
.fa-caret-right {
	margin-left: 15px;
}
.blue-flippy a {
	color: #FFF;
    text-transform: uppercase;
}
.field--name-field-tekstilaatikko-ingres-harm p {
	font-size: 17px;
	line-height: 32px;
	font-weight: 100;
}
#block-tarvitsitkohankkeelletoteuttajaa {
	margin: 100px 0 30px 0;
}
#block-otayhteytta {
	text-align: center;
	margin-bottom: 50px;
	margin-top: 50px;
}
footer {
	background: #EDEAE7;
	padding: 50px 0;
}
#block-yritys {
	display: none;
}
.copyright {
	margin-top: 30px;
}
.copyright p {
	font-size: 13px;
	color: #7E7E7E;
}
.pdf {
	padding-bottom: 10px;
}
@media screen and (max-width: 1199px) {
.valkoinen-otsikko {
	padding: 20px 0 0 20px;
	font-size: 33px;
    line-height: 36px;
}
.region-sidebar-first nav ul {
	width: 140px;
}
.grey {
	padding: 35px 45px;
}
}
@media screen and (max-width: 1025px) {
	.valkoinen-otsikko {
		padding: 40px 0 0 20px;
		font-size: 26px;
		line-height: 32px;
	}
}
@media screen and (max-width: 991px) {
	.row-eq-height {
		display: block;
	}
	.region-sidebar-first nav ul {
	background: #FFF;
    z-index: 210;
    margin: 0;
    width: 100%;
    right: 0;
	padding: 0 15px 0 15px;
    top: 0;
    position: absolute;
    text-align: right;
}
.right-content {
	margin-top: 203px;
}
.region-sidebar-first nav ul li a {
	padding: 10px 5px;
}
.field--name-field-tekstilaatikko-20 .grey {
	padding: 20px 40px;
}
.blue-link-abso {
	position: relative;
	bottom: 0;
}
.width-20 {
	width: 33.33%;
	float: left;
}
}
@media screen and (max-width: 768px) {
.navbar-default .navbar-toggle,
.navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus {
	background-color: transparent;
	border: 0;
}
.navbar-toggle {
	margin-top: 20px;
}
.navbar-fixed-top .navbar-collapse {
	max-height: 100%;
}
.navbar-default .navbar-nav>.active>a, .navbar-default .navbar-nav>.active>a:hover, .navbar-default .navbar-nav>.active>a:focus {
	    margin-right: 15px;
    padding: 15px 0 10px 0;
}
.navbar-default .navbar-toggle .icon-bar {
	background-color: #bf2e19;
	height: 3px;
}
.navbar-default .navbar-nav>li>a {
	text-align: right;
}
.view-henkilot .view-content .henkilo .order-reverse {
    display: -webkit-flex;
	display: -ms-flexbox;
	display: -webkit-box;
	display: flex;
    -webkit-flex-direction: column-reverse;
	-moz-flex-direction: column-reverse;
	-ms-flex-direction: column-reverse;
	-webkit-box-orient: vertical;
	-webkit-box-direction: reverse;
	        flex-direction: column-reverse;
}
.view-henkilot .view-content .henkilo:nth-child(3) .order-reverse,
.view-henkilot .view-content .henkilo:nth-child(4) .order-reverse {
	display: -webkit-flex;
	display: -ms-flexbox;
	display: -webkit-box;
	display: flex;
	-webkit-flex-direction: column-reverse;
	-moz-flex-direction: column-reverse;
	-ms-flex-direction: column-reverse;
	-webkit-box-orient: vertical;
	-webkit-box-direction: reverse;
	        flex-direction: column-reverse;
}
.projektit .projektin-sisalto {
	padding: 15px;
}
.height480 {
	height: auto;
	margin-bottom: 15px;
}
.bg-400 {
	height: 200px;
}
.taustakuva-custom {
	height: 400px;
}
.width-20 {
	width: 33.33%;
	float: left;
}
.palvelut-boxi {
	text-align: center;
}
.palvelut-boxi img {
	float: none;
	margin: 0 0 10px 0;
}
.field--name-field-tekstilaatikko-palvelut p {
	text-align: center;
}
.field--name-field-tekstilaatikko-50-2 .field--item {
	margin-bottom: 15px;
}
.projektit-nakyma .views-row {
	width: 100%;
	margin-bottom: 15px;
	padding: 0 15px;
}
.projektit-nakyma .views-row .project {
	border-bottom: 0;
	border-top: 0;
    border-right: 0;
}
.projektit-nakyma .views-row:nth-child(1) .project {
	height: 250px;
}
.projektit-nakyma .views-row:nth-child(1) {
	width: 100%;
	padding: 0 15px;
	height: auto;
}
.projektit-nakyma .views-row:nth-child(2) {
	width: 100%;
	padding-left: 15px;
}
.projektit-nakyma .views-row:nth-child(3) {
	width: 100%;
	padding-right: 15px;
	padding-left: 15px;
}
.projektit-nakyma .views-row:nth-child(2) .project {
	border-bottom: 0;
}
.project-button {
	bottom: 0;
	right: 0;
	padding
	: 20px;
}
.infobox {
	position: relative;
}
#panel {
	width: 100%;
	padding: 40px 15px;
	font-size:0.8em;
}
#box {
	position: relative;
}
.paragraph--type--otsikko-h2 h2:before {
	content:"";
	display:block;
	height: 280px;
    margin: -235px 0 0;
}
ul.flippy {
	display: block;
	-webkit-justify-content: center;
	-moz-justify-content: center;
	-ms-justify-content: center;
	-webkit-box-pack: center;
	    -ms-flex-pack: center;
	        justify-content: center;
}
.menu--yritys {
	display: none;
	    float: right;
    margin: 7.5px -15px;
    clear: both;
    text-align: right;
}
.region-sidebar-first .menu--yritys {
	display: none;
}
.region-navigation-collapsible #block-yritys {
	display: block;
}
.right-content {
	margin-top: 0;
}
.path-projektit .right-content,
.path-taxonomy .right-content {
	margin-top: 204px;
}
}
@media screen and (max-width: 481px) {
h1 {
	font-size: 28px;
	line-height: 29px;
	font-weight: 800;
	text-transform: uppercase;
	margin: 0;
}
h2 {
	font-size: 22px;
    line-height: 30px;
	font-weight: 800;
	text-transform: uppercase;
	margin: 0;
}
h3 {
	font-size: 16px;
	line-height: 26px;
	font-weight: 600;
	margin: 0;
}
.projektit-nakyma .views-row:nth-child(2) {
	width: 100%;
	padding: 0 15px;
}
.projektit-nakyma .views-row:nth-child(3) {
	width: 100%;
	    padding: 0 15px;
}
.projektit-nakyma .views-row:nth-child(1) #panel {
	padding: 40px 15px;
    width: 100%;
}
.projektit-nakyma .views-row:nth-child(2) #panel {
	padding: 40px 15px;
    width: 100%;
}
.projektit-nakyma .views-row:nth-child(3) #panel {
	padding: 40px 15px;
    width: 100%;
}
.pikalinkit .navbar-nav {
	float: left;
}
.width-20 {
	width: 100%;
	float: left;
}
}

.flippy a {
	color: #ffffff;
}

ul.pager.js-pager__items {
	display: flex;
	justify-content: center;
	margin-right: 42px;
}

ul.pager.js-pager__items li {
	width: auto;
	list-style-type: none;
	list-style-image: none;
	background: none;
	white-space: nowrap;
}

ul.pager.js-pager__items li a {
	align-items: center;
	background: #21394d;
	margin: 0 2px 0 2px;
	height: 65px;
	padding: 20px;
	color: #ffffff;
}

ul.pager.js-pager__items li a:hover {
	color: #ffffff;
	text-decoration: none;
}
