/* kalenteri */

.Inputfields {
	list-style: none;
	margin-left: 0;
}

.Inputfields .toggle-icon {
	display: none;
}

button.ui-button {
	color: #0039a6;
    border: 2px solid #0039a6;
    background: transparent;
    font-weight: bold;
    padding: .5em;
    margin-top: 1rem;
}

button.ui-button:hover {
	background: #0039a6;
	color: white;
	cursor: pointer;
}

.nav-vertical ul {
	list-style: none;
}

.calendar-nav {
	height: 1rem;
	margin-bottom: 1em;
}

.calendar-nav a {
	font-size: .85rem;
}

.calendar-nav .next {
	float: left;
}

.calendar-nav .prev {
	float: right;
}

.calendar {
	width: 100%;
}

.calendar ul {
	margin: 0;
}

.calendar li {
	display: inline-block;
	list-style: none;
}

.calendar li a {
	font-size: 0;
    width: 15px;
    height: 15px;
    display: block;
    background: #006E90;
    border-radius: 50%;
    margin: .4rem;
    position: relative;
}

.calendar li a span.info {
    font-size: 1rem;
    position: absolute;
    left: 2rem;
    top: -2rem;
    background: #fff;
    z-index: 9;
    padding: 1rem;
    border: 1px solid;
}

#left-container .calendar h2 {
    font-size: 1rem;
}

#left-container .calendar ul {
    line-height: 12px;
}

#left-container .calendar li {
    padding: 0;
	margin: 0;
}

#left-container .calendar li p {
	display: none;
}

#left-container  .calendar li a {
    width: 10px;
    height: 10px;
    margin: .2rem;
}

/* gallery */

.gallery {
	margin-bottom: 2em;
	position: relative;
	z-index: 10;
}

.gallery .bd {
	margin: 10px;
}

.gallery img {
	margin: 0 auto;
}

.gallery .bd img {
	max-width: 70%;
	border: 1px solid #dfdfdf;
}

.gallery .slick-prev:before, 
.gallery .slick-next:before {
	color: #333;
}

/* types of galleries */

.slide-gallery .bd {
	display: none;
}

.basic-gallery .bd {
    margin: 1rem 0;
}

.basic-gallery .bd > div {
    display: inline-block;
    margin: 0 1% 0 0;
    width: 48%;
}

@media (min-width: 720px) {
	.basic-gallery .bd > div {
		margin: 0 .5rem 0 0;
		width: 23.5%;
	}
}

.basic-gallery > a > img {
	width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
}

.basic-gallery .bd img {
    max-width: 100%;
    border: 1px solid #dfdfdf;
    margin: 0 0 .5rem 0;
}

.left-gallery,
.right-gallery { 
    width: 30%;
    text-align: center;
}

.left-gallery > a,
.right-gallery > a { 
    display: block;
    padding: 10px;
}

.left-gallery .bd > div,
.right-gallery .bd > div { 
	margin-bottom: 20px;
}

.left-gallery .bd img,
.right-gallery .bd img { 
	width: 100%;
	max-width: 100%;
	height: auto;
}

.left-gallery {
    float: left;
    margin: 0 20px 20px -10px;
}

.right-gallery {
    float: right;
    margin: 0 -10px 20px 20px;
}

@media (max-width: 720px) {
	.left-gallery, .right-gallery {
	    width: 50%;
	}
}

/* filelist */

.mod-filelist {
	width: 100%;
	clear: both;
	margin-bottom: 2em;
}

.mod-filelist li {
	margin-bottom: 6px;
}

.mod-filelist a {
	margin-left: 6px;
}

/* contacts */

.contacts-group {
	margin: 0 -1rem;
}

.contacts-item {
	display: inline-block;
    padding: 1rem;
    width: 33.3333333%;
    margin-bottom: 2rem;
}

@media (max-width: 720px) {
	.contacts-item {
	    width: 50%;
	}
}

.contacts-image {
	margin: 0 0 .5rem;
}

.contacts-info p {
	margin: 0;
}

/* breadcrumb */

#breadcrumb {
	padding: 0;
	margin-bottom: 2em;
}

#breadcrumb li {
	font-size: .85rem;
	list-style: none;
	display: inline-block;
}

/* tags */

.tags {
	margin-bottom: 2em;
}

.tags a {
	display: inline-block;
	margin-right: 5px;
}

/* main-carousel */

.main-carousel {
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	
	overflow: hidden;
}

.main-carousel .slide {
	height: 300px;
	display: none;
	position: relative;

	background-position: 50%;
	background-size: cover;
	background-repeat: no-repeat;
}

@media (min-width: 992px) {
	.main-carousel .slide {
		height: 400px;
	}
}

.main-carousel .slide:first-child {
	display: block;
}

.main-carousel .carousel-content {
	position: absolute;
	left: 20%;
	bottom: 30%;
	padding: 20px;
}

.main-carousel .carousel-title {
	font-size: 2rem;
	font-weight: bold;
	color: #fff;
}

.main-carousel .carousel-summary {
	font-size: 1.5rem;
	color: #fff;
	color: rgba(255,255,255,0.6);
}

@media (min-width: 992px) {
	.main-carousel .carousel-title {
		font-size: 4rem;
	}

	.main-carousel .carousel-summary {
		font-size: 3rem;
	}
}

.main-carousel .slide img {
	max-width: 100%;
}

.main-carousel .slick-dots {
	bottom: 25px;
}

.main-carousel .pikalinkit {
	display: none;
	position: absolute;
	top: 0;
	right: 30%;
	margin-bottom: 4rem;
}

@media (min-width: 1000px) {
	#some-container #somet .content-block {
	    width: 25% !important;
	}
}

#some-container #somet .content-block .content-container {
    text-align: left;
    padding: 1rem;
    background: #f5f9fd;
}

.highlights {
	margin-bottom: 2rem;
}

.highlights-item {
	background: #fff;
}

.highlights-item .content {
	padding: 1rem;   
	background: #fff;
}

.highlights-item h2 {
	font-size: 18px;
	margin: 0 0 10px 0;
}

.highlights-item a {
	color: #000;
}

@media (max-width: 1024px) {

	.highlights {
		margin: 0 -.5rem;
	}

	.highlights-item {
	    display: inline-block;
	    width: 50%;
	    vertical-align: top;
	    padding: .5rem;
	}

}

@media (max-width: 600px) {

	.highlights-item {
	    width: 100%;
	}

}

/* banners */

.banners-container {
	overflow: hidden;
	padding: 20px 0;
}

.banners {
	text-align: center;
}

.banners img {
	display: block;
	margin: 0 auto;
}

.banners > div {
	margin-bottom: 10px;
}

.banners-items {
	margin-bottom: 2em;
}

.home-tpl .banners-item {
	padding: 1em;
	margin-bottom: 1em;
}

.home-tpl .banners-item img {
	margin: 10px auto;
	text-align: center;
	border: solid 1px #ddd;
	box-shadow: 0 0 12px rgba(0,0,0,0.025);
	max-width: 300px;
}

@media (max-width: 500px) {
	.home-tpl .banners-item img {
		max-width: 100%;
	}
}

@media (min-width: 768px) {
	.home-tpl .banners-container {
		padding-top: 2rem;
	}
	.home-tpl .banners-items {
		margin: 0;
	}
	.home-tpl .banners-item {
		text-align: center;
		display: inline-block;
		width: 20%;
		margin: 0;
	}
	.home-tpl .banners-item img {    
	    height: auto;
	    max-width: 100%;
	    max-height: 140px;
	    vertical-align: middle;
	    display: inline-block;
	}
}

/* content */

#main {
	border-top: 1px solid rgba(0,57,166,0.07);
	padding: 3rem 0 0;
}

@media (max-width: 700px) {
	#main {
		padding: 2rem 0 0;
	}
}

#content-container {
	margin-bottom: 4rem;
}

#content-container .body a {
	border-bottom: 1px solid;
}

#content-container .body a:hover {
	border-bottom: 1px solid transparent;
}

.body {
	margin-bottom: 2em;
}

.body ul,
.body ol {
	margin-left: 15px !important;
}

.body ul {
	list-style-type: disc; 
}

.body ol {
	list-style-type: decimal;
}

.align_left {
        float: left;
        margin: 0 1em 0.25em 0;
}
 
.align_right {
        float: right;
        margin: 0 0 0.25em 1em;
}
 
.align_center {
        display: block;
        margin-left: auto;
        margin-right: auto;
}

/* Pagination */
.MarkupPagerNav {
        margin: 1em 0; 
        font-family: Arial, sans-serif;
		overflow: hidden;
}
.MarkupPagerNav li {
	display: inline;
	list-style: none !important;
	margin: 0 !important;
}

.MarkupPagerNav li a,
.MarkupPagerNav li.MarkupPagerNavSeparator {
	display: block;
	float: left !important;
	padding: 2px 9px;                
	color: #fff !important;
	background: #2f4248;
	margin-right: 3px;
	font-size: 10px;
	font-weight: bold;
	text-transform: uppercase;
}
                
.MarkupPagerNav li.MarkupPagerNavOn a,
.MarkupPagerNav li a:hover {
	color: #fff;
	background: #db1174;
	text-decoration: none;
}

.MarkupPagerNav li.MarkupPagerNavSeparator {
	display: inline;
	color: #777;
	background: #d2e4ea;
	padding-left: 3px;
	padding-right: 3px;
}

/* content */

.align_left {
	/* for images placed in rich text editor */ 
	float: left;
	margin: 0 1em 0.5em 0; 
	position: relative;
	top: 0.5em;
	max-width: 50%; 
}

.align_right {
	/* for images placed in rich text editor */ 
	float: right;
	margin: 0 0 0.5em 1em;
	max-width: 50%; 
}

.align_center {
	/* for images placed in rich text editor */ 
	display: block;
	margin: 1em auto; 
	position: relative;
	top: 0.5em;
}

#content figure {
	display: table;
	width: 1px;
	margin: 1em 0;
}

#content figure img {
	display: table-row;
	margin-bottom: 0.5em;
}

#content figure figcaption {
	display: table-row;
	font-size: smaller;
	color: #777;
	line-height: 1.4em;
}

/* supernav */

.nav-vertical {
	margin-bottom: 2rem;
}

.nav-vertical li {
	position: relative;
}

.nav-vertical li a {
	display: block;
  	padding: 10px 15px;
}

.nav-vertical .more {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 9;
	cursor: pointer;
	padding: 10px 15px;
}

.nav-vertical .more:before {
	content: "+";
}

.nav-vertical .less:before {
	content: "-";
}

.nav-vertical li.open ul {
	display: block !important;
}

#menu-container {
	background: #fff;
}

.home-tpl #main {
	padding: 0;
}

#some-container {
	background: #fff;
}

h2.box-title {
	z-index: 99;
}

h2.box-title:hover i {
	right: -5px;
}

/* liittyvät henkilöt */

.related-items img {
	margin: 0 0 .5rem;
}

.related-items p {
	color: #000;
	margin: 0;
}

/* hampurilainen */

.hamburger {
	font-size: 1rem;
}

#hamburger-1 {
	float: right;
    margin-left: .75rem;
    margin-top: -.2rem;
}

#hamburger-1 .line{
	width: 25px;
	height: 4px;
	background-color: #0039a6;
	display: block;
	margin: 5px auto;
  -webkit-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
 
#hamburger-1:hover{
  cursor: pointer;
}

#hamburger-1.visible .line:nth-child(2){
  opacity: 0;
}

#hamburger-1.visible .line:nth-child(1){
  -webkit-transform: translateY(8px) rotate(45deg);
  -ms-transform: translateY(8px) rotate(45deg);
  -o-transform: translateY(8px) rotate(45deg);
  transform: translateY(8px) rotate(45deg);
}
  
#hamburger-1.visible .line:nth-child(3){   
  -webkit-transform: translateY(-10px) rotate(-45deg);
  -ms-transform: translateY(-10px) rotate(-45deg);
  -o-transform: translateY(-10px) rotate(-45deg);
  transform: translateY(-10px) rotate(-45deg);
}

@media screen and (min-width: 52.5em) and (max-width: 90em) {
    #menu-container .grid-container .large-4.cell {
        width: 100% !important;
	padding-top: .5em !important;
    }
    #menu-container .grid-container #menu {
        position: relative !important;
    }
}

table {
	overflow-x: auto !important;
	display: block;
	border: 0;
}

/* PATINA */
.magazine-category__list {
	margin: -.25rem;
	margin-bottom: 1.5rem;
	margin-top: 1rem;
	display: flex;
	flex-wrap: wrap;
	list-style-type: none;
}

.magazine-category__list-item {
	padding: .25rem;
}

.magazine-category--button {
	padding: .25rem .75rem;
	color: #0039a6;
	background-color: #d2e1f7;
	border-radius: 9999px;
	font-weight: 400;
	transition: .2s;
}

.magazine-category--button:hover {
	background-color: #9E5FA9;
	color: #FFF;
}

.magazine-category--button--active {
	color: #FFF;
	background-color: #9E5FA9;
	font-weight: 600;
	pointer-events: none;
}

.pager-container {
	margin-bottom: 1.5rem;
}

.MarkupPagerNav {
	margin: -.1rem;
}

.MarkupPagerNav li.MarkupPagerNavOn a {
	background-color: #9e5fa9;
}

.MarkupPagerNav li a {
	padding: .5rem 1rem;
	font-size: .875rem;
	text-transform: none;
	border-radius: .25rem;
	background-color: #0039a6;
	margin: .1rem;
}

.MarkupPagerNav li a:hover {
	background-color: #9e5fa9;
}