html {
	font-size: 62.5%;
}

body {
	font-family: Arial, sans-serif;
}

body {
	font-size: 1.3rem;
}

.is-ie:not(.is-edge) body.affix-top .ylatunniste {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 14;
	background: #fff;
}

.is-ie:not(.is-edge) body.affix-top main {
	padding-top: 115px;
	/* TÄHÄN HEADERIN KORKEUS */
}

hr {
	border-top: 0;
	border-bottom: solid 1px var(--tk-primary);
	margin: 0 -15px 50px -15px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: 'Martti', sans-serif;
}

h1 {
	font-size: 3.2rem;
}
h2 {
	font-size: 2.6rem;
}
h3 {
	font-size: 2rem;
	font-weight: bold;
}
h4 {
	font-size: 1.6rem;
	font-weight: bold;
	margin-top: 0;
}

main .row-block {
	margin-bottom: 50px;
}

main>.row-block:first-child {
	margin: 0;
}

main>.row-block:last-child {
	margin-bottom: 0;
}

main.uutissivu .row-block,
main.tapahtumasivu .row-block {
	margin-bottom: 10px;
}

main.uutissivu>.row-block:last-child {
	margin-bottom: 40px;
}

main.listaussivu {
	margin-top: 40px;
}

.wrap {
	max-width: none;
	margin: auto;
}

.palstaviiva {
	border-left: 1px solid #000;
}
.loader-inner{
	border-color:var(--tk-primary);
}

/*Takaisin ylös linkki*/

.takaisinylos {
	border-bottom: solid 1px var(--tk-primary);
	overflow: hidden;
}

.takaisinylos .wrap {
	height: 70px !important;
	justify-content: flex-end !important;
	display: flex;
}

.takaisinylos a {
	align-self: flex-end;
	background-color: var(--tk-primary);
	border-radius: 10px 10px 0 0;
	color: #fff !important;
	display: block;
	font-size: 1.6rem;
	font-weight: bold;
	margin-right: 20px;
	padding: 20px 10px 18px 10px;
	position: relative;
	text-decoration: none !important;
	text-transform: uppercase;
	z-index: 2;
}

/*Lataa lisää linkki*/

.lataalisaa {
	border-top: solid 1px var(--tk-primary);
	cursor: pointer;
	text-align: center;
}

.lataalisaa p {
	color: var(--tk-primary);
	font-family: 'Martti', serif;
	font-weight: bold;
	line-height: 2.2rem;
	padding-top: 10px;
}

.lataalisaa p::after {
	display: block;
	content: "\f063";
	font-family: 'FontAwesome';
}

@media (max-width: 768px) {
	main .row-block {
		margin-bottom: 0px;
	}
	.palstaviiva {
		border-left: 0;
	}
	.takaisinylos a {
		padding: 5px 10px;
	}
}

@media (max-width: 680px) {
	main.listaussivu {
		margin-top: 0;
	}
}


/* Muokkaustilan tyyli WYSIWYG*/
.contenteditable,
[contenteditable="true"],
.contenteditable:link,
[contenteditable="true"]:link,
.contenteditable:hover,
[contenteditable="true"]:hover,
.contenteditable:active,
[contenteditable="true"]:active,
.contenteditable:focus,
[contenteditable="true"]:focus {
	border: 0;
	outline: #ccc dotted 1px;
}

.noink,
.noink:link,
.noink:hover,
.noink:active,
.noink:focus,
.noink:visited {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background: transparent;
	border: 0;
	box-shadow: none;
	color: inherit;
	display: inline;
	font: inherit;
	margin: 0;
	padding: 0;
	width: 100%;
}
.viewmode {
	display:block;
}
.editmode {
	display:none;
}

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

i.messu {
	background: url('/images/tk/icons/apua_ja_tukea.svg') no-repeat center;
	background-size: contain;
}

i.kauppa {
	background: url('/images/tk/icons/shop_white.svg') no-repeat center;
	background-size: contain;
}

i.tapahtuma {
	background: url('/images/tk/icons/shop_white.svg') no-repeat center;
	background-size: contain;
}

i.musiikki {
	background: url('/images/tk/icons/koululainen.svg') no-repeat center;
	background-size: contain;
}

i.konsertti {
	background: url('/images/tk/icons/konsertti.svg') no-repeat center;
	background-size: contain;
}

i.taidenayttely {
	background: url('/images/tk/icons/taidenayttely.svg') no-repeat center;
	background-size: contain;
}


.ikoni {
	background-size: contain;
	background-color: var(--tk-primary)!important;
	display: block;
	height: 40px;
	width: 40px;
}
i.ikoni.adventti { background: url('/images/tk/icons/contenticons/adventti.svg') no-repeat; }
i.ikoni.apuajatukea { background: url('/images/tk/icons/contenticons/apua_ja_tukea.svg') no-repeat; }
i.ikoni.avuksimuille { background: url('/images/tk/icons/contenticons/avuksi_muille.svg') no-repeat; }
i.ikoni.enkeltensunnuntai { background: url('/images/tk/icons/contenticons/enkelten_sunnuntai.svg') no-repeat; }
i.ikoni.haat { background: url('/images/tk/icons/contenticons/haat.svg') no-repeat; }
i.ikoni.hallinto { background: url('/images/tk/icons/contenticons/hallinto.svg') no-repeat; }
i.ikoni.hartaus { background: url('/images/tk/icons/contenticons/hartaus.svg') no-repeat; }
i.ikoni.hautaus { background: url('/images/tk/icons/contenticons/hautaus.svg') no-repeat; }
i.ikoni.info { background: url('/images/tk/icons/contenticons/info.svg') no-repeat; }
i.ikoni.joulu { background: url('/images/tk/icons/contenticons/joulu.svg') no-repeat; }
i.ikoni.kahvila { background: url('/images/tk/icons/contenticons/kahvila.svg') no-repeat; }
i.ikoni.kansainvalisyys { background: url('/images/tk/icons/contenticons/kansainvalisyys.svg') no-repeat; }
i.ikoni.kaste { background: url('/images/tk/icons/contenticons/kaste.svg') no-repeat; }
i.ikoni.kauppa { background: url('/images/tk/icons/contenticons/kauppa.svg') no-repeat; }
i.ikoni.keskustelu { background: url('/images/tk/icons/contenticons/keskustelu.svg') no-repeat; }
i.ikoni.koululainen { background: url('/images/tk/icons/contenticons/koululainen.svg') no-repeat; }
i.ikoni.lapset { background: url('/images/tk/icons/contenticons/lapset.svg') no-repeat; }
i.ikoni.musiikki { background: url('/images/tk/icons/contenticons/musiikki.svg') no-repeat; }
i.ikoni.nuoret { background: url('/images/tk/icons/contenticons/nuoret.svg') no-repeat; }
i.ikoni.opiskelija { background: url('/images/tk/icons/contenticons/opiskelija.svg') no-repeat; }
i.ikoni.paasiainen { background: url('/images/tk/icons/contenticons/paasiainen.svg') no-repeat; }
i.ikoni.partio { background: url('/images/tk/icons/contenticons/partio.svg') no-repeat; }
i.ikoni.pienryhmat { background: url('/images/tk/icons/contenticons/pienryhmat.svg') no-repeat; }
i.ikoni.pyhainpaiva { background: url('/images/tk/icons/contenticons/pyhainpaiva.svg') no-repeat; }
i.ikoni.retket { background: url('/images/tk/icons/contenticons/retket.svg') no-repeat; }
i.ikoni.rippikoulu { background: url('/images/tk/icons/contenticons/rippikoulu.svg') no-repeat; }
i.ikoni.suvivirsi { background: url('/images/tk/icons/contenticons/suvivirsi.svg') no-repeat; }
i.ikoni.taidenayttely { background: url('/images/tk/icons/contenticons/taidenayttely.svg') no-repeat; }
i.ikoni.vanhukset { background: url('/images/tk/icons/contenticons/vanhukset.svg') no-repeat; }
i.ikoni.yhteistyoprojektit { background: url('/images/tk/icons/contenticons/yhteistyoprojektit.svg') no-repeat; }

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

.nimipaivat {
	color: #333333;
	font-size: 1.2rem;
	margin: auto;
	padding: 5px 30px;
}
.nimipaivat a{
	color: #333333;
}

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

.ylatunniste {
	background-color: #fff;
	border-top: solid 1px var(--tk-primary);
	display: block;
	height: 115px;
	padding: 0 20px;
	position: -webkit-sticky;
	position: -moz-sticky;
	position: -o-sticky;
	position: -ms-sticky;
	position: sticky;
	top: 0;
	z-index: 5;
}

.ylatunniste nav > * > div,
.ylatunniste nav > * > ul {
	display: inline-block;
	line-height: 115px;
	vertical-align: middle;
}

.ylatunniste nav {
	/* max-width: 1920px; */
	margin: auto;
	position: relative;
}


/* Leijutuksen tunkkausta ipadille*/

@-webkit-keyframes repaint {
	from {
		width: 99.9%;
	}
	to {
		width: 100%;
	}
}

@-moz-keyframes repaint {
	from {
		width: 99.9%;
	}
	to {
		width: 100%;
	}
}

@keyframes repaint {
	from {
		width: 99.9%;
	}
	to {
		width: 100%;
	}
}

.affix-top {
	-webkit-animation: repaint 100ms;
	-moz-animation: repaint 100ms;
	-ms-animation: repaint 100ms;
	animation: repaint 100ms;
}


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

.logo {
	width: 276px;
	height: 78px;
}

.logo .img-responsive {
	display: inline-block;
	max-height:100%;
}

@media (max-width: 1325px) {
	.logo {
		width: 220px;
		height: 67px;
	}
}

@media (max-width: 768px) {
	.logo {
		width: 140px;
		height: 42px;
	}
}


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

.paanavi {
	list-style: none;
	padding: 0 15px;
	padding-right: 100px;
}

.paanavi li {
	display: inline-block;
	font-size: 1.2rem;
	font-weight: bold;
	padding: 0 10px;
	text-transform: uppercase;
	line-height: 2rem;
}

.paanavi li.selected::after {
	display: block;
	content: " ";
	width: 25px;
	border-bottom: 2px solid var(--tk-primary);
	margin: auto;
	margin-top: 10px;
}

.paanavi li a {
	color: var(--tk-primary);
	text-decoration: none !important;
}

@media (max-width: 1270px) {
	.ylatunniste nav .paanavi {
		display: inline;
		white-space:nowrap;
	}
	.paanavi li {
		/*max-width: 12.5%;*/
		text-align: center;
	}
}

@media (max-width: 1270px) {
	.paanavi li {
		/*max-width: 9%;*/
		text-align: center;
	}
}

@media (max-width: 1056px) {
	.ylatunniste nav .paanavi {
		display: none;
	}
}


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

#haku {
	position: absolute;
	top: 32px;
	right: 40px;
	padding: 5px 10px;
	border: solid 1px #fff;
	border-bottom: none;
	transition: border-color 0.4s;
}

.hakukentta {
	display: none;
	line-height: initial;
	position: absolute;
	top: 32px;
	right: -5px;
	padding: 15px;
	z-index: 1;
	width: 295px;
}

#hakukentta input {
	border-radius: 0;
	border: solid 1px silver;
	border-right: 0;
	line-height: 1.7rem;
	padding: 5px;
	width: calc(100% - 70px);
}

#hakukentta button.pull-right {
	background-color: var(--tk-primary);
	border: solid 1px var(--tk-primary);
	color: #fff;
	line-height: 1.7rem;
	padding: 5px 10px;
	width: 70px;
}

.haku-nappi {
	cursor: pointer;
	display: block;
	height: 30px;
	background: url('/images/tk/icons/suurennuslasi.svg') no-repeat;
	background-size: contain;
	background-color: var(--tk-primary);
	border: 0;
	width: 30px;
}

@media (max-width: 768px) {
	#haku {
		position: absolute;
		top: 40px;
		right: 40px;
	}
	.hakukentta {
		border-radius: 5px 5px 5px 5px;
		right: -5px;
		top: 27px;
	}
}


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

.alanavi {
	position: absolute !important;
	top: 35px;
	right: 0;
}

.alanavi-nappi {
	cursor: pointer;
	display: block;
	height: 35px;
	width: 35px;
	background: url('/images/tk/icons/menu.svg') no-repeat;
	background-size: contain;
	background-color: var(--tk-primary);
}

#alanavi-dropdown {
	left: auto;
	right: 0;
	width: 250px;
	line-height: normal;
	max-height: calc(100vh - 115px);
	overflow-y: auto;
}

#alanavi-dropdown ul {
	list-style: none;
	padding: 0 30px
}

#alanavi-dropdown ul.subnav {
	padding-top: 5px;
}

#alanavi-dropdown ul li {
	padding: 5px 0;
}

#alanavi-dropdown ul li a {
	color: #333;
}

#alanavi-dropdown ul.somelinkit li:first-child {
	border-top: 1px solid #333;
	padding-top: 15px;
}

#alanavi-dropdown ul.kielilinkit li:last-child {
	border-bottom: 1px solid #333;
	padding-bottom: 15px;
}

@media (max-width: 768px) {
	.alanavi {
		position: absolute !important;
		top: 43px;
		right: 0;
	}
	#alanavi-dropdown {
		left: initial;
		right: -15px;
		top: 45px;
		width: 240px;
		line-height: normal;
	}
}


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

.ylaosa {
	text-align: center;
	background: #fff;
	height: calc(100vh - 142px);
	margin: 0 -30px;
	position: relative;
	overflow: hidden;
}

.ylaosa #aukioloaika {
	padding: 20px;
    font-weight: bold;
}

.ylaosa .taustakuva {
	width: 100%;
	/* max-width: 1920px; */
	height: auto;
	position: absolute;
	height: 100%;
	background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
	left: 50%;
	transform: translate(-50%, 0);
}

.ylaosa .wrap {
	line-height: calc(100vh - 142px);
	max-width: 1220px;
}

.nosto {
	background-color: #fff;
	border: solid 1px var(--tk-primary);
	display: inline-block;
	height: 250px;
	line-height: initial;
	margin: 10px;
	padding: 20px;
	position: relative;
	text-align: left;
	width: calc(33% - 20px);
	vertical-align: middle;
}

.nosto h2 {
	font-size: calc(18px + 0.5vw);
	line-height: calc(22px + 0.5vw);
	margin: 0;
	margin-bottom: 10px;
	overflow: hidden;
}

.nosto h2>* {
	display: inline-block;
	vertical-align: text-bottom;
}
.nosto h2 .ikoni {
	float:left;
	margin-right:5px;
}
.nosto h2>span {
	display: inline-block;
	margin-top: 10px;
	width: calc(100% - 55px);
}

.nosto .luelisaa {
	bottom: 20px;
	color: #b37e10;
	font-weight: bold;
	left: 20px;
	position: absolute;
	text-decoration: none !important;

}
.nosto .luelisaa::after {
    content: "\f061";
    font-family: 'FontAwesome';
    font-weight: normal;
    padding: 0 5px;
}

.nosto a, .nosto p {
	line-height: normal;
}

.nosto h2 .icon {
	display: inline-block;
	height: 40px;
	width: 40px;
	background: url('/images/tk/kirja.png') no-repeat;
	background-size: contain;
}

.nosto h2 .icon.usko {
	background-image: url('/images/tk/icons/messu_green.svg');
}

.nosto h2 .icon.krypta {
	background-image: url('/images/tk/icons/krypta.svg');
}

.nosto h2 .icon.shop {
	background-image: url('/images/tk/icons/shop_green.svg');
}
.ylaosa .background--mobile {
	display: none;
	width: 100%;
}
@media (max-width: 1000px) {
	.ylaosa .nosto {
		width: 230px;
		height: 200px;
	}
	.ylaosa .nosto h2 {
		font-size: 2rem;
	}
}

@media (max-width: 768px) {
	.ylaosa {
		height: auto;
		min-height: 300px;
	}
	.ylaosa .nosto {
		background-color: #fff;
		border: none;
		border-top: solid 1px var(--tk-primary);
		display: block;
		height: auto;
		line-height: initial;
		margin: 0;
		padding: 20px;
		position: relative;
		text-align: left;
		width: auto;
	}
	.ylaosa .nosto h2 {
		font-size: 2.6rem;
	}
	.ylaosa .nosto p {
		padding-bottom: 15px;
	}
	.ylaosa .taustakuva {
		display: block;
	}
	.ylaosa .etusivu.background--mobile {
		display: block;
	}
}

@media (max-width: 520px) {
	.ylaosa .taustakuva {
		display: none;
	}
	.ylaosa .osiosivu.background--mobile {
		display: block;
	}
}


/*sisaltojohdanto*/

.sisaltosivu .ylaosa .wrap {
	line-height: calc(100vh - 142px);
	max-width: 1200px;
}

.sisaltosivu .ylaosa {
	margin: 0 -15px;
}

.sisaltojohdanto {
	background-color: #fff;
	display: inline-block;
	line-height: normal;
	padding: 20px;
	margin: 15px;
	position: relative;
	text-align: left;
	vertical-align: middle;
}

.sisaltojohdanto h1 {
	margin-top: 0;
}

.ankkurilinkit a {
	font-weight: bold;
	color: #dda33b;
	margin-top: 5px;
	margin-bottom: 5px;
	padding-left: 0 !important;
	text-decoration: none !important;
}

.ankkurilinkit a:not(.ui-sortable-placeholder)::after {
	content: "\f061";
	font-family: 'FontAwesome';
	font-weight: normal;
	padding: 0 5px;
}

@media (max-width: 768px) {
	.sisaltojohdanto {
		background-color: #fff;
		display: inline-block;
		line-height: initial;
		padding: 10px;
	}
}

@media (max-width: 540px) {
	.sisaltojohdanto {
		margin: 10px;
		padding: 5px;
	}
	.sisaltosivu .ylaosa .wrap {
		line-height: 1em;
	}
}


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

.tapahtumalista {
	padding-right: 10px;
}

.tapahtumalistamusiikki {
	padding-left: 10px;
}

.tapahtumalista h2,
.tapahtumalistamusiikki h2 {
	margin-top: 0;
	margin-bottom: 30px;
}

.tapahtumat {
	list-style: none;
	padding: 0;
}

.tapahtumat a {
	outline: none;
	color: #333;
	text-decoration: none !important;
}

.tapahtumat .tapahtuma .ikoni,
.tapahtumat .tapahtuma .tiedot {
	display: inline-block;
	vertical-align: top;
}

.tapahtumat .ikoni {
	display: block;
	width: 40px;
	height: 40px;
	margin-right: 15px;
	background-color: var(--tk-primary);
	padding: 0;
}

.tapahtumat .ikoni i {
	display: block;
	width: 100%;
	height: 100%;
}

.tapahtumat .tapahtuma {
	margin-bottom: 20px;
}

.tapahtuma .tiedot {
	width: calc(100% - 101px);
}

.tapahtuma .tiedot .klo::before {
	content: "\f017";
	font-family: "FontAwesome";
	padding: 0 5px;
}

.tapahtuma .tiedot h3.nimi {
	margin: 0;
	margin-bottom: 5px;
}


/*Tapahtumarajaus ja tapahtumalistaus*/

.tapahtumarajaus .valiotsikko,
.tapahtumalistaus .pvm-valiotsikko {
	background-color: var(--tk-primary);
	color: #fff;
	font-family: Arial, sans-serif;
	font-size: 1.4rem;
	padding: 5px;
}

.tapahtumarajaus .valiotsikko {
	cursor: pointer;
}

.tapahtumarajaus .rajausehdot {
	display: block;
}

.tapahtumarajaus .rajausehdot .row-block {
	margin-bottom: 0;
}

.tapahtumarajaus button.pull-right {
	background-color: var(--tk-primary);
	color: #fff;
	padding: 5px 20px;
	border: solid 1px #b8d8b6;
}

.tapahtumalistaus h1 {
	margin-top: 0;
}

.tapahtumalistaus .tapahtumat {
	list-style: none;
	padding: 0;
}

.tapahtumalistaus .tapahtumat .tapahtuma .aika::before {
	padding: 0 5px 0 0;
	content: "\f073";
	font-family: "FontAwesome";
	color: var(--tk-primary);
}

.tapahtumalistaus .tapahtumat .tapahtuma .paikka::before {
	display: inline-block;
	padding: 0 5px 0 15px;
	content: "\f041";
	font-family: "FontAwesome";
	color: var(--tk-primary);
}

.tapahtumasivu .tapahtuma-tiedot span {
	display: block;
	padding-bottom: 5px;
}

.tapahtumasivu .tapahtuma-tiedot span img {
	max-width: 18px;
	max-height: 18px;
	margin-right: 10px;
}

@media (max-width: 768px) {
	.tapahtumalista {
		padding-right: 0;
	}
	.tapahtumalistamusiikki {
		padding-left: 0;
	}
	.tapahtumat .ikoni {
		display: block;
		width: 45px;
		height: 45px;
		margin-right: 10px;
		background-color: var(--tk-primary);
		padding: 0;
	}
	.tapahtuma .paikka {
		clear: both;
	}
	.tapahtumalistaus .tapahtumat .tapahtuma .paikka::before {
		padding-left: 0;
	}
	.tapahtuma .tiedot {
		width: calc(100% - 60px);
	}
}

@media (max-width: 640px) {
	.tapahtumarajaus .rajausehdot {
		display: none;
	}
	.tapahtumalistaus {
		margin-top: 10px;
	}
}


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

.uutisrajaus .valiotsikko {
	background-color: var(--tk-primary);
	color: #fff;
	cursor: pointer;
	font-family: Arial, sans-serif;
	font-size: 1.4rem;
	padding: 5px;
}

.uutisrajaus .rajausehdot {
	display: block;
}

.uutisrajaus .rajausehdot .row-block {
	margin-bottom: 0;
}

.uutisrajaus button.pull-right {
	background-color: var(--tk-primary);
	color: #fff;
	padding: 5px 20px;
	border: solid 1px #b8d8b6;
}

.uutislistaus h1 {
	margin-top: 0;
}

.uutiset {
	list-style: none;
	padding: 0;
}

.uutiset a {
	color: #333;
	outline: none;
	text-decoration: none !important;
}

.uutiset .uutinen .ikoni,
.uutiset .uutinen .tiedot {
	display: inline-block;
	vertical-align: top;
}

.uutiset .ikoni {
	background-color: var(--tk-primary);
	display: block;
	height: 40px;
	margin-right: 15px;
	padding: 0;
	width: 40px;
}

.uutiset .ikoni i {
	display: block;
	width: 100%;
	height: 100%;
}

.uutiset .uutinen {
	margin-bottom: 20px;
}

.uutinen .tiedot {
	width: calc(100% - 101px);
}

.uutinen .tiedot .klo::before {
	content: "\f017";
	font-family: "FontAwesome";
	padding: 0 5px;
}

.uutinen .tiedot h3.nimi {
	margin: 0;
	margin-bottom: 5px;
}

.uutiset .ikoni {
	display: block;
	width: 40px;
	height: 40px;
	margin-right: 15px;
	background-color: var(--tk-primary);
}

@media (max-width: 768px) {
	.uutiset .ikoni {
		width: 45px;
		height: 45px;
		margin-right: 10px;
		background-color: var(--tk-primary);
	}
	.uutinen .tiedot {
		width: calc(100% - 60px);
	}
}

@media (max-width: 640px) {
	.uutisrajaus .rajausehdot {
		display: none;
	}
	.uutislistaus {
		margin-top: 10px;
	}
}


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

.uutissivu .content:first-child>.row-block:first-child {
	margin: 0 -30px;
}

.uutissivu .ingressi,
.tapahtumasivu .ingressi {
	font-family: "Martti";
}

.uutissivu .uutis-tiedot,
.tapahtumasivu .tapahtuma-tiedot {
	margin-bottom: 10px;
}

.uutissivu .share,
.tapahtumasivu .share {
	padding: 15px;
	border-top: solid 1px var(--tk-primary);
}

.uutissivu .share {
	margin-top: 10px;
}

.tapahtumasivu .share {
	padding: 15px 0;
}

.tapahtumasivu .related {
	margin: 0 -15px;
	/*tapahtumasivun html erilainen kuin uutisen. Kunnes yhdenmukaistetaan niin mennään tällä /VH*/
}

.uutissivu .related {
	margin-bottom: 20px;
}

.uutissivu .tags h1,
.tapahtumasivu .tags h1 {
	font-size: 2.4rem;
}

.uutissivu .tag,
.tapahtumasivu .tag {
	display: inline-block;
	background-color: var(--tk-primary);
	padding: 5px 10px;
	margin: 5px;
	border-radius: 15px;
}

.uutissivu .tag a,
.tapahtumasivu .tag a {
	color: #fff;
	font-family: "Martti";
	font-weight: bold;
	text-decoration: none !important;
}

.sidebar-item .kuvagalleria .pikkukuvat {
	margin: 0 -5px;
}

.sidebar-item .kuvagalleria .kuvakehys {
	float: left;
	width: calc(33% - 10px);
	position: relative;
	height: 0;
	padding-bottom: calc(33% - 10px);
	overflow: hidden;
	margin: 5px;
}

@media (max-width: 768px) {
	.sidebar-item .kuvagalleria .kuvakehys {
		float: left;
		width: calc(20% - 10px);
		position: relative;
		height: 0;
		padding-bottom: calc(20% - 10px);
		overflow: hidden;
		margin: 5px;
	}
}


/*
██   ██  █████  ██   ██ ██    ██ ████████ ██    ██ ██       ██████  ███████
██   ██ ██   ██ ██  ██  ██    ██    ██    ██    ██ ██      ██    ██ ██
███████ ███████ █████   ██    ██    ██    ██    ██ ██      ██    ██ ███████
██   ██ ██   ██ ██  ██  ██    ██    ██    ██    ██ ██      ██    ██      ██
██   ██ ██   ██ ██   ██  ██████     ██     ██████  ███████  ██████  ███████
*/
.output.stato-datepicker {
	border: 1px solid #ccc !important;
	border-right: 0 !important;
	border-radius: 4px 0 0 4px;
	height: 34px;
    padding: 6px 12px;
    font-size: 14px;
	width: calc(100% - 4rem);
}
.icons.stato-datepicker {
	background-color: #eee;
	border: 1px solid #ddd;
	border-radius: 0 4px 4px 0;
	color: #555;
	float: left;
	font-size: 14px;
	font-weight: normal;
	height: 34px;
	line-height: 18px;
	margin-left: 0;
	padding: 6px 12px;
	position: relative;
	text-align: center;
	top: 0;
	width: 4rem;
}
.xdsoft_datetimepicker.xdsoft_inline {
	position:relative !important;
}
@media (min-width: 768px) {
	.sticky-rajaus {
		display: block;
		padding: 0 20px;
		position: -webkit-sticky;
		position: -moz-sticky;
		position: -o-sticky;
		position: -ms-sticky;
		position: sticky;
		top: 115px;
		z-index: 5;
	}
	.is-ie:not(.is-edge) .sticky-rajaus {
		position:static;
		top: 0;
	}
}
.hakurajaus .rajausehdot {
	display: block;
}

.hakurajaus .valiotsikko {
	background-color: var(--tk-primary);
	color: #fff;
	font-family: Arial, sans-serif;
	font-size: 1.4rem;
	padding: 5px;
}

.hakurajaus .rajausehdot .row-block {
	margin-bottom: 0;
}

.hakurajaus button.pull-right {
	background-color: var(--tk-primary);
	color: #fff;
	padding: 5px 20px;
	border: solid 1px #b8d8b6;
}

.hakutulos {
	background-color: #e7e7e7;
	padding: 10px;
	margin-bottom: 20px;
}

.hakutulos h3.nimi {
	margin: 0;
	margin-bottom: 5px;
}

.hakutulos .klo::before {
	content: "\f017";
	font-family: "FontAwesome";
	padding: 0 5px;
}

.hakutulos.tapahtuma .tiedot,
.hakutulos.uutinen .tiedot {
	width: 100%;
}

.hakutulos .ikoni,
.hakutulos.yhteystieto .kasvokuva {
	display: inline-block !important;
	margin-right: 15px;
	width: 40px;
	vertical-align: top;
}

.hakutulos .ikoni {
	height: 40px;
}

.hakutulos .kuvaus {
	display: inline-block;
	width: calc(100% - 101px);
	vertical-align: top;
}

@media (max-width: 768px) {
	.hakutulos.yhteystieto .kasvokuva {
		margin-right: 10px;
		width: 45px;
	}
	.hakutulos .ikoni {
		width: 45px;
		height: 45px;
		margin-right: 10px;
		background-color: var(--tk-primary);
	}
	.hakutulos .kuvaus {
		width: calc(100% - 60px);
	}
}

@media (max-width: 640px) {
	.hakurajaus .rajausehdot {
		display: none;
	}
}


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

.somesekalista {
	margin: 0 -10px;
	position: relative;
}

.somesekalista .nosto {
	background-color: #e7e7e7;
	border: 0;
	height: 384px;
	margin: 10px;
	padding: 20px;
	position: relative;
	text-align: left;
	width: 384px;
	overflow: hidden;
}

.somesekalista .someikoni {
	background-size: contain;
	background-repeat: no-repeat;
	height: 50px;
	left: 15px;
	position: absolute;
	top: 15px;
	width: 50px;
	z-index: 2;
}

.somesekalista .someikoni.facebook {
	background-image: url('/images/tk/icons/facebook.svg');
}

.somesekalista .someikoni.instagram {
	background-image: url('/images/tk/icons/instagram.svg');
}

.somesekalista .someikoni.twitter {
	background-image: url('/images/tk/icons/twitter.svg');
}

.somesekalista .nosto .somesisalto {
	position: relative;
	height: 100%;
	width: 100%;
	z-index: 1;
}

.somesekalista .nosto .somesisalto p {
	margin-top: 60px;
}

.somesekalista .nosto a .somesisalto p {
    color:#333;
    text-decoration:none;
}

.somesekalista .nosto a:hover .somesisalto p {
    text-decoration:underline;
}

.somesekalista .nosto .somesisalto .somekuva {
	background-size: cover;
	background-repeat: no-repeat;
	display: block;
	height: calc(100% + 40px);
	left: -20px;
	position: absolute;
	top: -20px;
	width: calc(100% + 40px);
}

@media (max-width: 1650px) {
	.somesekalista {
		text-align: center;
	}
	.somesekalista .nosto {
		height: 315px;
		width: 315px;
	}
}

@media (max-width: 1050px) {
	.somesekalista {
		text-align: center;
	}
	.somesekalista .nosto {
		height: 250px;
		width: 250px;
		overflow: hidden;
	}
}

@media (max-width: 920px) {
	.somesekalista .nosto {
		height: 220px;
		width: 220px;
	}
}

@media (max-width: 768px) {
	.somesekalista .nosto {
		height: 200px;
		width: 200px;
	}
}

@media (max-width: 720px) {
	.somesekalista .nosto {
		height: 180px;
		width: 180px;
	}
}

@media (max-width: 660px) {
	.somesekalista .nosto {
		height: 150px;
		width: 150px;
	}
}

@media (max-width: 560px) {
	.somesekalista {
		margin-left: -15px;
		margin-right: -15px;
	}
	.somesekalista .nosto {
		background-color: #e7e7e7;
		border: 0;
		height: 0;
		margin: 0;
		padding: 0;
		padding-top: 100%;
		position: relative;
		text-align: left;
		width: 100%;
		overflow: hidden;
	}
	.somesekalista .nosto .somesisalto {
		position: absolute;
		top: 0;
		left: 0;
		bottom: 0;
		right: 0;
	}
	.somesekalista .nosto .somesisalto p {
		margin: 80px 30px;
	}
}


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

.share .facebook img,
.share .twitter img,
.share .instagram img,
.share .email img {
	max-height: 40px;
	max-width: 40px;
}


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

.mediasisalto {
	display: block;
	background: #fff;
	margin: 0 -15px;
	width: calc(100% + 30px);
}

.mediasisalto * {
	margin: auto;
	width: 100%;
}

@media (max-width: 1940px) {
	.mediasisalto * {
		width: calc(100% + 30px);
	}
}

@media (max-width: 768px) {
	.mediasisalto {
		min-height: auto;
	}
}


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

.palstablokki {
	padding-top: 40px;
	/* height: calc(100vh - 115px); */
	position: relative;
	overflow: hidden;
	/* margin-bottom: -61px; */
}



/*
.palstablokki * {
	z-index: 2;
}
*/
.palstablokki .wrap {
	height: calc(100vh - 215px);
	display: flex;
	align-items: center;
	justify-content: center;
	/* max-width: 1200px; */
}

.palstablokki .wrap > div,
.palstablokki .wrap .contentedito {
	display: block;
	flex-grow: 1;
	float: none;
}

.palstablokki div .contenteditor {
	background-color: #fff;
	display: block;
}

@media (min-width: 768px) {
	.palstablokki .wrap div .contenteditor {
		max-height: calc(100vh - 235px);
		overflow: hidden;
	}
	.palstablokki .contenteditor .img-responsive {
		max-height: calc(100vh - 250px);
	}
}


.palstablokki.taustakuvalla .contenteditor {
	padding: 15px 20px;
}

.palstablokki.taustakuvalla .col-sm-6:nth-child(even) .contenteditor {
	margin-right: 5px;
}

.palstablokki .wrap div .contenteditor iframe {
	margin-bottom: 30px;
}

.palstablokki .contenteditor .img-responsive {
	margin: 0 auto;
}

.palstablokki .taustakuva {
	background-size: cover;
	position: absolute;
	height: 100%;
	top: 0;
	left: 50%;
	transform: translate(-50%, 0);
	width: 100%;
	/* max-width: 1920px; */
	z-index: -1;
}

.palstablokki h2 {
	margin-top: 0;
}

.palstablokki .center {
	text-align: center;
	margin: auto;
	display: block!important;
}

.palstablokki .center iframe.video {
	max-width: 90%;
}

.palstablokki.kaksipalstaa .kuvagalleria .pikkukuvat {
	margin: 0 -5px;
}

.palstablokki.kaksipalstaa .kuvagalleria .kuvakehys {
	float: left;
	width: calc(20% - 10px);
	position: relative;
	height: 0;
	padding-bottom: calc(20% - 10px);
	margin: 5px;
	overflow: hidden;
}

.palstablokki.yksipalsta .kuvagalleria .pikkukuvat {
	margin: 0 -5px;
}

.palstablokki.yksipalsta .kuvagalleria .kuvakehys {
	float: left;
	width: calc(10% - 10px);
	position: relative;
	height: 0;
	padding-bottom: calc(10% - 10px);
	margin: 5px;
	overflow: hidden;
}

.palstablokki a {
	color: #dda33b;
	text-decoration: none !important;
}

.palstablokki .contenteditor .contenteditor-wrapper p>a::after {
	content: "\f061";
	/*padding-left: 10px;*/
	padding-left: 4px;
	font-family: 'FontAwesome';
	/*font-size: 2rem;*/
}

.palstablokki .contenteditor .contenteditor-wrapper p>a[href='undefined']::after,
.palstablokki .contenteditor .contenteditor-wrapper p>a[href^='/material/attachments/']::after {
	content: "\f0c6";
	/*padding-left: 10px;*/
	padding-left: 4px;
	font-family: 'FontAwesome';
	/*font-size: 2rem;*/
}

@media (max-width: 540px) {
	.palstablokki {
		height: auto;
		padding: 0;
		margin-bottom: 10px;
	}
	.palstablokki .taustakuva {
		width: 0;
		height: 0;
	}
	.palstablokki .wrap {
		height: auto;
		display: block;
	}
	.palstablokki .wrap .col-xs-12,
	.palstablokki .wrap .col-xs-12.col-sm-6 {
		display: block;
		float: none;
		margin-top: 10px;
		padding-bottom: 0;
		width: 100%;
	}
	.palstablokki .wrap div .contenteditor {
		display: block;
		max-height: initial;
		padding: 0;
	}
	.palstablokki.yksipalsta .kuvagalleria .kuvakehys {
		width: calc(20% - 10px);
		padding-bottom: calc(20% - 10px);
	}
}

@media (max-width: 768px) {
	.palstablokki {
		/* margin-bottom: -33px; */
		/* height: calc(100vh - 115px); */
	}
	.takaisinylos {
		display: none;
	}
	.palstablokki .wrap {
		clear: both;
		height: inherit;
	}
}

.palstablokki .contenteditor figure img {
	max-height: calc(100vh - 235px);
	width: auto !important;
}



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

.alatunniste {
	color: #fff;
	background-color: var(--tk-primary);
	padding: 30px 20px;
	position: relative;
	margin-top: 0;
}

.alatunniste .wrap {
	position: relative;
	max-width: 1920px;
}

.alatunniste .row-block {
	max-width: 1230px;
	margin: 0 auto;
}

.alatunniste .wrap .logo {
	/*background-image: url('/images/tk/kirkkologo.png');*/
	background-size: contain;
	background-repeat: no-repeat;
	bottom: 0;
	content: " ";
	display: block;
	height: 50px;
	position: absolute;
	right: -10px;
	width: 160px;
	z-index: 1;
}


/*TEKSTI*/


/*LINKKILISTA*/

.linkkilista ul {
	list-style: none;
	padding: 0;
}

.linkkilista a {
	color: #fff;
}

.linkkilista a::after {
	content: " \f061";
	font-family: 'FontAwesome';
}

@media (max-width: 1350px) {
	.alatunniste {
		padding: 30px 0px;
	}
	.alatunniste .wrap::before {
		right: 5px;
	}
}

@media (max-width: 1050px) {
	.alatunniste {
		padding: 30px 15px;
	}
	.alatunniste .wrap {
		padding-bottom: 60px;
	}
	.alatunniste .row-block {
		margin: 0 -15px;
	}
	.alatunniste .wrap::before {
		left: 0;
		right: auto;
	}
}

@media (max-width: 768px) {
	.teksti {
		margin-top: 20px;
	}
}


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

.aukioloajat th {
	font-weight: normal;
	padding-right: 15px;
}

.aukioloajat td .fa {
	padding: 0 5px;
}



/* proge */

progress {
	/* Positioning */
	position: fixed;
	left: 0;
	top: 0;

	/* Dimensions */
	width: 100%;
	height: 5px;

	/* Reset the appearance */
	-webkit-appearance: none;
		-moz-appearance: none;
			  appearance: none;

	/* Get rid of the default border in Firefox/Opera. */
	border: none;

	/* Progress bar container for Firefox/IE10+ */
	background-color: transparent;

	/* Progress bar value for IE10+ */
	color: red;
 }

 progress::-webkit-progress-bar {
	background-color: transparent;
 }

 progress::-webkit-progress-value {
	background-color: red;
 }

 progress::-moz-progress-bar {
	background-color: red;
 }








 stato-frame#nav{
    background-color:rgb(147,177,204);
}
.hsrky-hallinta-header-ylatunniste-ylatunniste nav.header {
	position:relative;
}


.etusivu-etusivu-etusivu-murupolku, .hsrky-etusivu-etusivu-etusivu-murupolku {
    display: none !important;
}

#my-booking-button {
	width: 200px;
	height: 50px;
	border: 0;
	background-color: var(--tk-primary);
	color: #fff;
}

.lisaatapahtumia a {
	color: var(--tk-primary);
	font-weight: bold;
	text-decoration: none !important;
	font-size: 20px;
	cursor: pointer;
}
