/*
███████  ██████  ███    ██ ████████ ███████
██      ██    ██ ████   ██    ██    ██
█████   ██    ██ ██ ██  ██    ██    ███████
██      ██    ██ ██  ██ ██    ██         ██
██       ██████  ██   ████    ██    ███████
*/


@font-face {
	font-family: "Martti Bold";
	font-style: normal;
	font-weight: 600;
	src: url("/fonts/Martti-Bold.ttf") format("truetype");
}
@font-face {
	font-family: "Martti";
	font-style: italic;
	font-weight: 600;
	src: url("/fonts/Martti-BoldItalic.ttf") format("truetype");
}
@font-face {
	font-family: "Martti";
	font-style: normal;
	font-weight: 800;
	src: url("/fonts/MarttiDisplay-Bold.ttf") format("truetype");
}
@font-face {
	font-family: "Martti";
	font-style: normal;
	font-weight: 400;
	src: url("/fonts/MarttiDisplay-Regular.ttf") format("truetype");
}
@font-face {
	font-family: "Martti";
	font-style: italic;
	font-weight: 400;
	src: url("/fonts/Martti-Italic.ttf") format("truetype");
}
@font-face {
    font-family: "Martti Regular";
    font-style: normal;
    font-weight: 400;
    src: url("/fonts/Martti-Regular.ttf") format("truetype");
}



/*
 ██████  ███████ ███    ██ ███████ ██████   █████  ██
██       ██      ████   ██ ██      ██   ██ ██   ██ ██
██   ███ █████   ██ ██  ██ █████   ██████  ███████ ██
██    ██ ██      ██  ██ ██ ██      ██   ██ ██   ██ ██
 ██████  ███████ ██   ████ ███████ ██   ██ ██   ██ ███████
*/

html,
body {
	overflow-x: hidden;
}

[class*="col-"] {
	padding-left: 10px !important;
	padding-right: 10px !important;
}
.row {
	margin-left: -10px;
	margin-right: -10px;
}

/*
väripaletti
rgb(0, 91, 152)
rgb(134, 183, 217)
rgb(147, 177, 204)
rgb(194, 219, 236)
rgb(251, 176, 59)
rgb(147, 149, 152)
rgb(204, 204, 204)
rgb(242, 242, 242)
alin väri väärin
*/
* {
    border: 0;
    padding: 0;
    margin: 0;
}
body {
	font-family: Arial, sans-serif;
	font-size: 20px;
	min-height: 100vh;
}

p,
h1,
h2,
h3,
h4 {
	margin: 0;
}
p{
	line-height: 26px;
}
a {
	color: rgb(0, 0, 0);
}
hr {
	border-top: 1px solid rgb(147, 149, 152);
	margin: 10px 0;
}

h1,
h2,
h3,
.ingressi,
.kirkkospan,
.palvelutspan,
.nav-header h4,
.nosto-teksti,
.listaus-teksti {
	font-family: "Martti Regular";
}
div.ingressi strong {
	font-size: 26px;
	line-height: 30px;
}
div.ingressi {
	padding: 0;
	padding-bottom: 10px;
}

.lz-logo-img {
	background: none !important;
}

/*
 ██████  ██████  ███    ██ ████████  █████  ██ ███    ██ ███████ ██████
██      ██    ██ ████   ██    ██    ██   ██ ██ ████   ██ ██      ██   ██
██      ██    ██ ██ ██  ██    ██    ███████ ██ ██ ██  ██ █████   ██████
██      ██    ██ ██  ██ ██    ██    ██   ██ ██ ██  ██ ██ ██      ██   ██
 ██████  ██████  ██   ████    ██    ██   ██ ██ ██   ████ ███████ ██   ██
*/
.container {
	width: 100%;
	max-width: 1200px;
}
body > stato-container.container {
	padding-top: inherit;
	padding-bottom: inherit;
	padding-left: 0;
	padding-right: 0;
}

.row-eq-height {
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
}
/*
 ██████  ██████  ███    ██ ████████ ███████ ███    ██ ████████
██      ██    ██ ████   ██    ██    ██      ████   ██    ██
██      ██    ██ ██ ██  ██    ██    █████   ██ ██  ██    ██
██      ██    ██ ██  ██ ██    ██    ██      ██  ██ ██    ██
 ██████  ██████  ██   ████    ██    ███████ ██   ████    ██
*/
.sisaltokuva {
	overflow: hidden;
	max-height: initial;
}
.sisaltokuva img {
	object-fit: cover;
}
#contentcarousel .yhteystiedot-reuna :not(:first-child) .header {
	background-color: #fff;
	color: #000;
}
#contentcarousel .yhteystiedot-reuna .header {
	background-color: rgb(0, 91, 152);
}
#contentcarousel .yhteystiedot-reuna .yhteystiedot {
    background-color: #fff;
}
/*
  pääkuvaa ei ole toteutettu taustakuvana, joten siitä syystä
  säätämistä negatiivisilla marginaaleilla, että kuva saadaan
  kiinni molempiin reunoihin /VilleH
  */
.ylio-kuva {
	max-height: 300px;
	overflow: hidden;
	margin-top: -1px;
	margin-left: calc((100% - 100vw) / 2 - 8px);
	padding: 0 !important;
	width: 100vw;
}
.ylio-kuva img {
	object-fit: fill;
	width: 100%;
	/*height: 100%;*/
}
.harmaa,
.reunaharmaa {
	background-color: rgb(242, 242, 242);
}
.reunaharmaa {
	padding: 0 !important;
	margin: 0 15px;
}
@media (max-width: 992px) {
	.reunaharmaa {
		margin: 0;
	}
}
.tapahtuma-tiedot span,
.uutis-tiedot span {
	display: inline;
}

/* ELE-PROTO YLEMPI, DIVIT POISTETTU SELECTORISTA KOSKA STATO:COL*/
header.betayellow {
	background-color: #feffe2;
	border-bottom: 1px solid #fff6a2;
}
header.white {
	height: 36px;
}

header.upper {
	background-color: rgb(0, 91, 152);
	height: 138px;
}
header.upper .container {
	padding: 0 7.5px;
}

.palvelutspan {
	margin: 0 10px;
}

.header-logo img {
	height: 90px;
}

/* ELE-PROTO ALEMPI*/

header.lower {
	height: 50px;
	background-color: rgb(147, 177, 204);
}
header.lower .container {
	padding: 0 7.5px;
}
header.mobile.lower {
	height: auto;
	padding-top: 10px;
	padding-bottom: 10px;
}

.mobile.lower .header hsrky-header-haku {
	display: flex;
	align-items: center;
}

.sitename--mobile {
	flex: 1;
}

.sitename--mobile h2 {
	color: #fff;
	font-size: 25px;
}

#contentcarousel.carousel:after {
	content: 'flickity';
 	display: none; /* hide :after */
}

@media screen and ( min-width: 1024px ) {
	/* disable Flickity for large devices */
	#contentcarousel.carousel:after {
		content: '';
	}
}
ul {
	padding-left: 20px;
}
ul.main-nav {
	padding: 0;
	padding-left: 0;
	line-height: 40px;
}
ul.main-nav li {
	padding: 0;
}
ul.main-nav li img.navicon {
	height: 18px;
}
ul.main-nav li a {
	float: right;
}
.main-nav li {
	width: 100%;
}
.main-nav li a:focus,
.main-nav li:focus {
	/* outline: none; */
}

/*
 ██████  ██████  ██      ██       █████  ██████  ███████ ███████
██      ██    ██ ██      ██      ██   ██ ██   ██ ██      ██
██      ██    ██ ██      ██      ███████ ██████  ███████ █████
██      ██    ██ ██      ██      ██   ██ ██           ██ ██
 ██████  ██████  ███████ ███████ ██   ██ ██      ███████ ███████
███    ███ ███████ ███    ██ ██    ██
████  ████ ██      ████   ██ ██    ██
██ ████ ██ █████   ██ ██  ██ ██    ██
██  ██  ██ ██      ██  ██ ██ ██    ██
██      ██ ███████ ██   ████  ██████
*/
div#srk_menu,
div#palvelut_menu,
div#palvelut_menu_mobile,
div#srk_menu_mobile {
	background-color: rgb(242, 242, 242);
	border-bottom: 2px solid rgb(0, 91, 152);
	width: 100%;
	height: 100%;
	overflow: hidden;
	position: absolute;
	z-index: 3;
	left: 0;
}


div#srk_menu {
	top:-50px;
}

/*HEADER*/
div.header-logo {
	margin: 20px 0 28px 0;
}
div.header-logo img {
	height: 90px;
}
@media (max-width: 992px) {
	div.header-logo {
		margin: 0 0 20px 0;
	}
}
/*HAKUKENTTÄ */
.search-bar-section {
	position:relative;
}
.search-bar {
	position:absolute;
}

.search-bar {
	left: 14.4%;
	z-index:2;
}



div.search-block > a {
	padding-right: 0.5em;
}
.search-bar.collapse,
.search-bar.collapsing {
  position: absolute !important;
}
/*
 ██████  ███████ ███    ██ ███████ ██████   █████  ██
██       ██      ████   ██ ██      ██   ██ ██   ██ ██
██   ███ █████   ██ ██  ██ █████   ██████  ███████ ██
██    ██ ██      ██  ██ ██ ██      ██   ██ ██   ██ ██
 ██████  ███████ ██   ████ ███████ ██   ██ ██   ██ ███████
*/




.nav > li > a {
	padding: 5px;
	display: inline;
	color: rgb(255, 255, 255);
}
.nav > li > a:hover,
.nav > li > a:active,
.nav > li > a:visited,
.nav > li > a:focus {
	background-color: transparent;
	color: rgb(255, 255, 255);
}
.nav > li > a:active {
	color: rgb(0, 91, 152);
}
.search {
	padding-bottom: 10px;
}

.header .header-logo {
	margin: 20px 0 28px 0;
}

@media(max-width:992px) {
	.header .header-logo {
		margin: 0;
	}
}
/* otsiggo-lomake */
div.content-header > h1 {
	color: rgb(255, 255, 255);
	line-height: 55px;
}
.content-header {
	background-color: rgb(0, 91, 152);
	height: 55px;
	padding: 0 0 0 20px;
	margin: 0 0 15px 0;
}

.content-header > h1 > input{
	background-color: rgb(0, 91, 152);
	width: 100%;
}

@media (max-width: 768px) {
	.content-header {
		height: 37px;
		padding-left: 5px;
	}
	div.content-header > h1 {
		font-size: 20px;
		line-height: 32px;
	}
}
@media (max-width: 505px) {
	div.content-header > h1 {
		font-size: 18px;
	}
}

ul.nimipv,
ul.kielilista {
	margin: 14px 0;
	padding-left: 0;
	float: right;
}
ul.nimipv li:not(:last-child):after {
	content: "|";
	margin: 0 5px;
}

[class*="-contenteditor-text-editor"] ul,
[class*="-contenteditor-text"] ul,
[class*="-contenteditor-text-editor"] ol,
[class*="-contenteditor-text"] ol {
	padding-left: 40px;
}

[class*="-contenteditor-text"] h1 {
	margin: 20px 0;
	padding: 0;
	margin-top: 0;
}

[class*="-contenteditor-text"] h2 {
	margin: 20px 0;
}

[class*="-contenteditor-text"] p {
	font-family: sans-serif;
	font-size: 20px;
	line-height: 26px;
	margin: 15px 0 !important;
}

[class*="-contenteditor-text"] a {
	font-family: sans-serif;
	color: rgb(0, 91, 152);
	text-decoration: underline;
}

[class*="-contenteditor-text"] blockquote {
	font-size: 30px;
	line-height: 36px;
	color: rgb(0, 91, 152);
	border-width: 0;
	font-family: "Martti Regular";
}

[class*="-contenteditor-text"] blockquote:before{
	content: open-quote;
	font-size:40px !important;
}

[class*="-contenteditor-text"] blockquote:after {
	content: close-quote;
	font-size:40px !important;
}

.keskilainaus,
blockquote,
blockquote * {
	font-size: 30px !important;
	line-height: 36px !important;
	color: rgb(0, 91, 152) !important;
	border-width: 0 !important;
	font-family: "Martti Regular" !important;
}
blockquote * {
	display: inline-block !important;
}

.keskilainaus,
blockquote {
	quotes: '\201c' '\201d';
}

.keskilainaus:before,
blockquote:before{
	content: open-quote;
	font-size:40px !important;
}
.keskilainaus:after,
blockquote:after {
	content: close-quote;
	font-size:40px !important;
}

.s-loader .loader-inner {
	border-color: #005293;
	border-bottom-color: #fff;
}

.s-loader .loader-outer {
	border-color: #93b1cc;
}


.modal--betawarning {
	color: #fff;
}
.modal--betawarning .modal-header {
	border-bottom: 0;
	padding-bottom: 0;
}
.modal--betawarning .modal-body {
	font-size:14px;
}
.modal--betawarning .modal-title {
	font-size:18px;
}
.modal--betawarning .modal-dialog {
	margin: 80px auto;
}
.modal--betawarning .modal-content {
	padding: 15px;
	background-color: #005b98;
	box-shadow: 0 0 5px rgba(0,0,0,0.2);
}
.modal--betawarning .close {
	position: absolute;
	right: 15px;
	top: 5px;
	font-size: 32px;
}
.crucis__column {
	float: right;
}

div.modal-dialog {
	width: unset;
	max-width: fit-content;
}

.hsrky-tilat address a {
	color: rgb(0, 91, 152);
	text-decoration: underline;
}

h1 + br,
h2 + br,
h3 + br,
h4 + br,
h5 + br {
    display:none;
}
