html, body {
	padding: 0;
	margin: 0;
	background-color: #fff;
	text-align: center;
	font-size: 100%;
	overflow-x: hidden;
}

a:link, a:visited {
	color: #00aab6;
	font-weight: bold;
	text-decoration: underline;
	transition: color 0.5s;
	-webkit-transition: color 0.5s, text-decoration 0.5s;
}
a:hover, a:active {
	color: #ff0000 !important;
	font-weight: bold;
	text-decoration: underline !important;
}

h1 {
	font-family: 'Kreon', Arial, sans-serif !important;
	font-weight: bold;
	font-size: 28px !important;
	line-height: 100%;
	color: #00aab6 !important;
}

h2 {
	font-family: 'Kreon', Arial, sans-serif !important;
	font-weight: bold;
	font-size: 22px !important;
	line-height: 100%;
	color: #000000;
}

h3 {
	font-family: 'Kreon', Arial, sans-serif !important;
	font-weight: bold;
	font-size: 20px !important;
	line-height: 100%;
	color: #000000;
}

h4 {
	font-family: 'Kreon', Arial, sans-serif !important;
	font-weight: bold;
	font-size: 18px !important;
	line-height: 100%;
	color: #000000;
}

h5 {
	font-family: ’Kreon’, Arial, sans-serif !important;
	font-weight: bold;
	font-size: 16px !important;
	line-height: 100%;
	color: #000000;
}

p {
	font-family: Arial, sans-serif;
	font-size: 12px;
	line-height: 130%;
	color: #000000;
}

ul {
	font-size: 12px;
	padding-left: 25px;
}

@media (min-width: 992px) {
	h1 {
		font-family: ’Kreon’, Arial, sans-serif;
		font-weight: bold;
		font-size: 40px !important;
		line-height: 100%;
		color: #00aab6;
	}
	
	h2 {
		font-family: ’Kreon’, Arial,
		sans-serif;
		font-weight: bold;
		font-size: 32px !important;
		line-height: 100%;
		color: #000000;
	}
	
	h3 {
		font-family: ’Kreon’, Arial,
		sans-serif;
		font-weight: bold;
		font-size: 28px !important;
		line-height: 100%;
		color: #000000;
	}
	
	h4 {
		font-family: ’Kreon’, Arial,
		sans-serif;
		font-weight: bold;
		font-size: 24px !important;
		line-height: 100%;
		color: #000000;
	}
	
	p {
		font-family: Arial, sans-serif;
		font-size: 14px;
		line-height: 130%;
		color: #000000;
	}
	
	ul {
		font-size: 14px;
	}
	
	
}

@media (max-width: 768px) {
.container .row img{
		max-width:100%;
	}
}

.no-padding {
	padding: 0 0 0 0 !important;
}

@media (min-width: 768px) {
	.no-padding {
		padding: 0 15px 0 15px;
	}
}

#header {
	padding: 20px 0 0 0;
	position: relative;
	-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
	-moz-box-sizing: border-box;    /* Firefox, other Gecko */
	box-sizing: border-box;
	text-align: center;
}

@media (min-width: 768px) {
	#header {
		padding: 20px 10px 0 10px;
	}
}

@media (min-width: 1200px) {
	#header {
		text-align: left;
	}
}

#header .searchform {
	position: absolute;
	top: 20px;
	right: 0;
	display: none;
}

@media (min-width: 768px) {
	#header .searchform {
		display: block;
	}
}

.searchform input[type="search"] {
	border: 1px solid #969696;
	padding: 2px 4px 2px 4px;
	border-radius: 4px 0 0 4px;
	height: 26px;
}

.searchform input[type="submit"] {
	border: hidden;
	width: 26px;
	height: 26px;
	background: #969696 url('/media/layout/icon/search.png') no-repeat center center;
	vertical-align: bottom;
	border-radius: 0 4px 4px 0;
}

.navbar-toggle {
	float: none !important;
	margin: auto !important;
	background: url('/media/layout/icon/menu.png') no-repeat center center !important;
	padding: 15px 12px !important;
	width: 100%;
}

.navbar {
	text-align: left;
	background: #505050;
	margin-bottom: 0px !important;
	padding: 0 0 0 10px;
}

.navbar-header {
	text-align: center;
}

.navbar a {
	color: #FFF;
	font-size: 16px;
	text-decoration: none;
	background: url('/media/layout/icon/nuolet_lista.png') no-repeat 0 50%;
	padding: 10px 0 10px 25px !important;
	transition: all 0.5s;
}

.navbar a:hover {
	color: #FFF !important;
	background: url('/media/layout/icon/nuolet_navigointi.png') no-repeat 0 50% !important;
	text-decoration: none !important;
	padding: 10px 0 10px 35px !important;
}

#header .nav>li>a:hover {
	background: none transparent;
}

@media (min-width: 768px) {
	.navbar {
		background: none transparent;
		margin-bottom: 10px !important;
	}
	
	.navbar a {
		font-size: inherit;
	}
}

@media (min-width: 768px) {
	#header .nav>li>a {
		width: 85px;
		display: inline-block !important;
		padding: 80px 0 0 0 !important;
		margin: 0 5px 0 5px;
		color: #505050;
		text-decoration: none;
		text-align: center;
	}
	
	.navbar #Etusivu {
		background: url('/media/layout/icon/navi_etusivu.png') no-repeat center center;
	}
	
	.navbar #Ravirata {
		background: url('/media/layout/icon/navi_ravirata.png') no-repeat center center;
	}
	
	.navbar #Raviurheilu {
		background: url('/media/layout/icon/navi_raviurheilu.png') no-repeat center center;
	}
	
	.navbar #Kalenteri {
		background: url('/media/layout/icon/navi_kalenteri.png') no-repeat center center;
	}
	
	.navbar #Uutiset {
		background: url('/media/layout/icon/navi_uutiset.png') no-repeat center center;
	}
	.navbar #Galleria {
		background: url('/media/layout/icon/navi_galleria.png') no-repeat center center;
	}
	
	.navbar #Yhteystiedot {
		background: url('/media/layout/icon/navi_yhteystiedot.png') no-repeat center center;
	}
	
	#header .nav>li>a#Haku {
		display: none !important;
	}
	
	.navbar a:hover {
		color: #969696 !important;
		text-decoration: none !important;
	}
	
	.navbar #Etusivu:hover {
		background: url('/media/layout/icon/navi_etusivu_hover.png') no-repeat center center !important;
	}
	
	.navbar #Ravirata:hover {
		background: url('/media/layout/icon/navi_ravirata_hover.png') no-repeat center center !important;
	}
	
	.navbar #Raviurheilu:hover {
		background: url('/media/layout/icon/navi_raviurheilu_hover.png') no-repeat center center !important;
	}
	
	.navbar #Kalenteri:hover {
		background: url('/media/layout/icon/navi_kalenteri_hover.png') no-repeat center center !important;
	}
	
	.navbar #Uutiset:hover {
		background: url('/media/layout/icon/navi_uutiset_hover.png') no-repeat center center !important;
	}
	.navbar #Galleria:hover {
		background: url('/media/layout/icon/navi_galleria_hover.png') no-repeat center center !important;
	}
	
	.navbar #Yhteystiedot:hover {
		background: url('/media/layout/icon/navi_yhteystiedot_hover.png') no-repeat center center !important;
	}
}

@media (min-width: 992px) {	
	.nav, .navbar-nav {
		padding-left: 100px !important;
	}
}

@media (min-width: 1200px) {
	.navbar {
		position: absolute !important;
		bottom: 0;
		right: 0;
		text-align: right;
	}

	.navbar .container {
		width: auto;
	}
	
	.nav, .navbar-nav {
		padding-left: 0 !important;
	}
}

.mainImage {
	height: 150px;
}

@media (min-width: 768px) {
	.mainImage {
		height: 300px;
	}
}

@media (min-width: 992px) {
	.mainImage#etusivu {
		/*height: 450px;*/
		height: 550px;
	}
	
	.mainImage {
		height: 300px;
	}
}

.mainImage {
	background-position: center center !important;
}

.mainImage#etusivu {
	background: url('/media/layout/banners/paakuva_etusivu_2021_v3.jpg') no-repeat;
	background-size: cover;
}

.mainImage #ravirata {
	background: url('/media/layout/banners/paakuva_ravirata.jpg') no-repeat;
	background-size: cover;
}

.mainImage #palvelut {
	background: url('/media/layout/banners/palvelut.jpg') no-repeat;
	background-size: cover;
}

.mainImage #organisaatio {
	background: url('/media/layout/banners/organisaatio.jpg') no-repeat;
	background-size: cover;
}

.mainImage #nuorisotoiminta {
	background: url('/media/layout/banners/nuorisotoiminta.jpg') no-repeat;
	background-size: cover;
}

.mainImage #historia {
	background: url('/media/layout/banners/historia.jpg') no-repeat;
	background-size: cover;
}

.mainImage #raviurheilu {
	background: url('/media/layout/banners/raviurheilu.jpg') no-repeat;
	background-size: cover;
}

.mainImage #pelaaminen {
	background: url('/media/layout/banners/pelaaminen.jpg') no-repeat;
	background-size: cover;
}

.mainImage #derby {
	background: url('/media/layout/banners/derby.jpg') no-repeat;
	background-size: cover;
}

.mainImage #eliitti {
	background: url('/media/layout/banners/eliitti.jpg') no-repeat;
	background-size: cover;
}

.mainImage #kilpailijoille {
	background: url('/media/layout/banners/kilpailijoille.jpg') no-repeat;
	background-size: cover;
}

.mainImage #kalenteri {
	background: url('/media/layout/banners/kalenteri.jpg') no-repeat;
	background-size: cover;
}

.mainImage #uutiset {
	background: url('/media/layout/banners/uutiset.jpg') no-repeat;
	background-size: cover;
}

.mainImage #media {
	background: url('/media/layout/banners/media.jpg') no-repeat;
	background-size: cover;
}

.mainImage #yhteystiedot {
	background: url('/media/layout/banners/yhteystiedot.jpg') no-repeat;
	background-size: cover;
}
	
.row {
	margin-bottom: 10px;
	text-align: left;
}

@media (min-width: 768px) {
	.row {
		margin-bottom: 60px;
	}
	
	.row:first-child, .row:last-child {
		margin-bottom: 10px;
	}
}

#nextRaces {
	padding: 20px 10px;
	overflow: hidden;
}

#nextRaces .item {
	background: url('/media/layout/icon/nuolet_navigointi.png') no-repeat 0 50%;
	color: #969696;
	font-weight: bold;
	float: left;
	margin: 0 10px 0 0;
	padding: 0 0 0 40px;
	text-align: left;
}

#nextRaces .item:last-of-type {
		display: none;
	}

#nextRaces .item a {
	color: #969696;
	text-decoration: none;
}

#nextRaces .title {
	float: left;
	color: #505050;
	font-weight: bold;
	text-transform: uppercase;
	width: 100%;
	text-align: left;
	margin: 0 0 10px 0;
}

@media (min-width: 768px) {
	#nextRaces .title {
		width: 100px;
		margin: 0;
	}
	
	#nextRaces .item {
		margin: 0 0 0 40px;
	}
	
}

@media (min-width: 992px) {
	#nextRaces .item:last-of-type {
		display: block;
	}
}

#topNews {
	height: 440px;
}

.two-panes {
	display: none;
}

.one-pane {
	display: block;
}

.topNewsList {
	margin: auto;
	width: 100%;
	position: relative;
	text-align: center;
	padding: 0 20px;
}

.topNewsList-slides {
	margin: auto;
	/*width: 100% !important;*/
}

.one-pane .topNewsList {
	padding: 0 5px;
}

.newsItem {
	height: 420px;
	width: 280px;
	margin: auto;	
}

.newsItem:hover {
	opacity: 0.9;
	filter: alpha(opacity=90);
}
	
.newsItem .img {
	width: 100%;
	height: 280px;
	background: #fff url('/media/layout/logo/logo_killeri.png') no-repeat center center;
	background-size: 95%;
	border: 1px solid #00aab6;
	float: none;
	overflow: hidden;
}
	
/* .newsItem .img img {
	width: 100%;
} */
	
.newsItem .text {
	width: 100%;
	padding: 10px;
	height: 140px;
	background: #00aab6;
	float: none;
	text-align: left;
	box-sizing: border-box;
	overflow: hidden;
	
	white-space: pre-wrap; /* css-3 */    
	white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
	white-space: -pre-wrap; /* Opera 4-6 */    
	white-space: -o-pre-wrap; /* Opera 7 */    
	word-wrap: break-word; /* Internet Explorer 5.5+ */
}

@media (min-width: 768px) {
	#topNews {
		height: 200px;
	}
	
	.two-panes {
		display: block;
	}
	
	.one-pane {
		display: none;
	}

	.newsItem {
		height: 200px;
		width: 350px;
		margin: 0 10px 0 0;
	}
	
	.newsItem .img {
		width: 170px;
		height: 200px;
		float: left;
		overflow: hidden;
	}
	
	.newsItem .img img {
		width: auto;
		height: 100%;
	}
	
	.newsItem .text {
		width: 180px;
		padding: 10px;
		height: 200px;
		background: #00aab6;
		float: right;
		text-align: left;
		box-sizing: border-box;
	}
	
	.newsItem p {
		display: block !important;
	}
}

@media (min-width: 992px) {
	
	#topNews {
		height: 250px;
	}

	.newsItem {
		height: 250px;
		width: 460px;
		margin: 0 10px 0 0;
	}
	
	.newsItem .img {
		width: 250px;
		height: 250px;
		float: left;
		overflow: hidden;
	}
	
	.newsItem .img img {
		width: auto;
		height: 100%;
	}
	
	.newsItem .text {
		width: 210px;
		padding: 10px;
		height: 250px;
		background: #00aab6;
		float: right;
		text-align: left;
		box-sizing: border-box;
	}
	
	.newsItem .text h2 {
		font-size: 22px !important;
	}
}

@media (min-width: 1200px) {

	.newsItem {
		height: 280px;
		width: 560px;
		margin: 0 10px 0 0;
	}
	
	.newsItem .img {
		width: 280px;
		height: 280px;
		float: left;
		overflow: hidden;
	}
	
	.newsItem .img img {
		width: auto;
		height: 100%;
	}
	
	.newsItem .text {
		width: 280px;
		padding: 10px;
		height: 280px;
		background: #00aab6;
		float: right;
		text-align: left;
		box-sizing: border-box;
	}
	
	.newsItem .text h2 {
		font-size: 32px !important;
	}
}

.newsItem h2, .newsItem p {
	color: #FFF !important;
	margin: 0;
	margin-top: -30px;
}

.newsItem p {
	display: none;
}

.newsItem a, newsItem a:hover {
	font-weight: normal;
	text-decoration: none !important;
}

.topNewsList a.prev, .topNewsList a.next {
	position: absolute;
	top: 0px;
	z-index: 0;
	width: 20px;
	height: 100%;
}

.topNewsList a.prev {
	left: 0px;
	background-repeat: no-repeat;
	background-image: url('/media/layout/icon/nuoli_vasen_harmaa.png');
	background-position: left center;
	transition: background 0.5s;
	-webkit-transition: background: 0.5s;
}

.topNewsList a.prev:hover {
	background-image: url('/media/layout/icon/nuoli_vasen_turkoosi.png');
}

.topNewsList a.next {
	right: 0px;
	background-repeat: no-repeat;
	background-image: url('/media/layout/icon/nuoli_oikea_harmaa.png');
	background-position: right center;
	transition: background 0.5s;
	-webkit-transition: background: 0.5s;
}

.topNewsList a.next:hover {
	background-image: url('/media/layout/icon/nuoli_oikea_turkoosi.png');
}

#video {
	background: #FFF;
}

/*@media (min-width: 768px) {
	#youtube {
		height: 400px;
	}
}*/

.youtube {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	padding-top: 25px;
	height: 0;
	margin-bottom: 10px;
}

.youtube iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

#social {
	background: #FFF;
}

.tab-pane {
	border: 1px solid #333; 	
}

.nav-tabs {
	border-bottom: hidden !important;
}

.nav-tabs>li>a {
	border-radius: 0 !important;
	color: #555;
	text-decoration: none;
}

.nav-tabs>li.active>a {
	background: #555 !important;
	color: #FFF !important;
	border: 1px solid #555 !important;
}

#twitter-widget-0 {
	height: 300px !important;
}

@media (min-width: 768px) {
	#twitter-widget-0 {
		height: 245px !important;
	}
}

@media (min-width: 992px) {
	#twitter-widget-0 {
		height: 325px !important;
	}
}

@media (min-width: 1200px) {
	#twitter-widget-0 {
		height: 399px !important;
	}
}

#ads {
	padding: 10px 5px 10px 5px;
	overflow: hidden;
	text-align: center;
}

@media (min-width: 768px) {
	#ads {
		margin-top: -40px;
		margin-bottom: -50px;
	}
}

#news h1 a, #calendar a, #announcements a {
	text-decoration: none;
	font-weight: normal;
}

.calendar {
	width: 100%;
	border: 1px solid #000;
	text-align: center;
}

.calendar thead {
	background: #c8c8c8;
}

.calendar thead tr:first-child {
	background: #000;
	color: #fff;
	font-weight: bold;
}

.calendar th {
	text-align: center;
	padding: 5px 0;
	border: 1px solid #000;
}

.calendar td {
	padding: 5px 0;
	border: 1px solid #000;
	width: 12.5% !important;
}

.calendar td a {
	color: #FFF;
	text-decoration: none;
}

.calendar td a:hover {
	color: #fff !important;
}

.explanation {
	margin-bottom: 10px;
	font-size: 12px;
	clear: right;
}

.calendarLegend {
	width: 20px;
	height: 20px;
	vertical-align: middle;
	border: 1px solid #969696;
	float: left;
	margin-right: 5px;
}

.color p, .color a{
	font-weight: normal;
	color: #FFF;
}

.darkBlue {
	background: #0096eb;
}

.lightBlue {
	background: #28dcff;
}

.green {
	background: #7cbc4e;
}

.red {
	background: #ff0000;
}

.beige {
	background: #dcc8af;
}

.calendar .multiple,
.calendarLegend.multiple{
	background:#575752;
}

.big {
	table-layout: fixed;
	width: 100%;
	margin: 30px 0 20px 0;
	display: none;
}

.calendarNavi#prev {
	background: url('/media/layout/icon/nuoli_vasen_harmaa.png') no-repeat center center;
	transition: background 0.5s;
	-webkit-transition: background 0.5s;
}

.calendarNavi#prev:hover {
	background: url('/media/layout/icon/nuoli_vasen_turkoosi.png') no-repeat center center;
}

.calendarNavi#next {
	background: url('/media/layout/icon/nuoli_oikea_harmaa.png') no-repeat center center;
	transition: background 0.5s;
	-webkit-transition: background 0.5s;
}

.calendarNavi#next:hover {
	background: url('/media/layout/icon/nuoli_oikea_turkoosi.png') no-repeat center center;
}

.calendarNavi a {
	height: 40px;
	width: 30px;
	display: inline-block;
}

.small {
	margin: 20px 0 20px 0;
}

@media (min-width: 992px) {
	.big {
		display: table;
	}
	
	.small {
		display: none;
	}
}

.big td {
	height: 95px;
	text-align: left;
	padding: 5px;
	font-size: 12px;
	vertical-align: top;
	width: auto !important;
}

.big td p, .big td a {
	font-size: 12px;
}

.big thead td {
	text-align: center;
	height: auto;
}

#partners {
	background: #d6d6d6;
	padding: 10px 5px 10px 5px;
	overflow: hidden;
	text-align: center;
}

.campaing-logos {
	margin: auto;
	width: 100%;
	padding: 0 5%;
	position: relative;
	overflow: hidden;
	text-align: center;
}

.campaing-logos-slides {
	margin: auto;
	width: 90% !important;
	overflow: hidden;
}

#partners .logo, #ads .logo {
	float: left;
	background-color: #ffffff;
	text-align: center;
	padding: 0 5px;
	margin: 0 5px 0 10px;
}

#partners .logo .item, #ads .logo .item {
	width: 100px;
	height: 100px;
}

#ads .logo .item {
	padding-top: 30px;
}

.logo img {
	max-height: 100%;
	max-width: 100%;
}

@media (min-width: 768px) {
	.campaing-logos {
		padding: 0 3%;
	}
	
	.campaing-logos-slides {
		width: 100% !important;
	}
	
	#partners .logo, #ads .logo {
		margin: 0 5px 0 0;
}
	
	#partners .logo .item, #ads .logo .item {
		width: 124px;
		height: 124px;
	}
}

@media (min-width: 992px) {
	#partners .logo .item, #ads .logo .item {
		width: 113px;
		height: 113px;
	}
}

@media (min-width: 1200px) {
	#partners .logo .item, #ads .logo .item {
		width: 121px;
		height: 121px;
	}
}

.logo:hover {
	opacity: 0.9;
	filter: alpha(opacity=90);
}

.campaing-logos a.prev, .campaing-logos a.next {
	position: absolute;
	top: 0px;
	z-index: 0;
	width: 20px;
	height: 100%;
	
}

.campaing-logos a.prev {
	left: 0px;
	background-repeat: no-repeat;
	background-image: url('/media/layout/icon/nuoli_vasen_harmaa.png');
	background-position: left center;
	transition: background 0.5s;
	-webkit-transition: background: 0.5s;
}

.campaing-logos a.prev:hover {
	background-image: url('/media/layout/icon/nuoli_vasen_turkoosi.png');
}

.campaing-logos a.next {
	right: 0px;
	background-repeat: no-repeat;
	background-image: url('/media/layout/icon/nuoli_oikea_harmaa.png');
	background-position: right center;
	transition: background 0.5s;
	-webkit-transition: background: 0.5s;
}

.campaing-logos a.next:hover {
	background-image: url('/media/layout/icon/nuoli_oikea_turkoosi.png');
}

#footer {
	padding: 20px;
	background: #505050;
	text-align: center;
}

#footer p {
	color: #fff;
}

#footer a {
	text-decoration: none !important;
	color: #fff !important;
	font-weight: normal;
	text-transform: uppercase;
	line-height: 1.2em;
	transition: all 1s;
}

#footer a:hover {
	text-decoration: none !important;
	color: #fff !important;
	font-weight: normal;
	text-transform: uppercase;
}

#footer a::after {
	content: ' | ';
}

#footer a:last-of-type::after {
	content: ' ';
}

.someButtons {
	margin-top: 20px;
}

.someButtons a::after {
	content: ' ' !important;
}

.someButtons a {
	transition: all 0.5s;
}

.someButtons img:hover {
	transform: rotate(-7deg);
	-webkit-transform: rotate(-7deg);
	-ms-transform: rotate(-7deg);
	height: 30px;
}

.someButtons img {
	height: 25px;
	margin: 0 5px 0 5px;
	transition: all 0.5s;
}

/*** SISÄSIVU ***/

#subNavigation {
	padding: 0 10px 0 10px;
}

#subNavigation a {
	background: url('/media/layout/icon/nuolet_navigointi.png') no-repeat 0 50%;
	padding: 10px 0 10px 35px;
	display: inline-block;
	height: 40px;
	width: 46.2%;
	color: #969696;
	text-decoration: none;
}

@media (min-width: 768px) {
	#subNavigation a {
		width: auto;
		margin: 0 10px 0 0;	
	}
}

@media (min-width: 992px) {
	#subNavigation a {
		width: auto;
		margin: 0 30px 0 0;	
	}
}

.tilat {
	max-width: 100%;
	margin-bottom: 5px;
}

#derbyWinners {
	width: 100%;
}

#derbyWinners td, #eliitti td {
	border: 1px solid #000;
	padding: 5px;
	text-align: center;
	font-size: 12px;
}

.pelaaminenIntro {
	width: 48%;
	float: left;
	margin: 0 2% 0 0;
}

@media (min-width: 768px) {
	.pelaaminenIntro {
		width: 23%;
	}
}

.pelaaminenIntro p {
	padding: 5px 0 0 10px;
}

.pelaaminenIntro img {
	max-width: 100%;
}

.newsList ul {
	list-style-type: none;
	padding: 0px;
	margin: 0px;
}

.newsList ul li {
	background-image: url('/media/layout/icon/nuolet_lista.png');
	background-repeat: no-repeat;
	background-position: 0px 50%; 
	padding-left: 25px;
	margin-bottom: 5px;
}

.newsList a {
	color: #000;
	font-weight: normal;
	text-decoration: none;
}

.newsList h3 a {
	color: #000;
	text-decoration: none;
	background: none transparent;
	padding-left: 0;
	font-weight: bold;
}

p.date {
	color: #969696;
}

.gallery {
	overflow: hidden;
}

.gallery .item {
	float: left;
	width: 46.2%;
	position: relative;
	text-align: center;
	margin: 10px 10px 0 0;
	overflow: auto;
	border: solid 1px #00aab6;
	overflow: hidden;
}

.gallery .item p {
	font-size: 10px;
	white-space: pre-wrap; /* css-3 */    
	white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
	white-space: -pre-wrap; /* Opera 4-6 */    
	white-space: -o-pre-wrap; /* Opera 7 */    
	word-wrap: break-word; /* Internet Explorer 5.5+ */
}

.gallery .item-image {
	float: left;
	width: 100%;
	background-position: center center;
	background-repeat: no-repeat;
	position: relative;
	padding: 5px;
	transition: all 0.5s;
}

.gallery .item.in-album {
	max-height:130px;
}

.gallery .item img {
	max-height: 90%;
	max-width: 100%;
}

@media (min-width: 768px) {
	.gallery .item {
		min-height: 130px;
		width: 29%;
	}
}

@media (min-width: 992px) {
	.gallery .item {
		width: 20%;	
	}
}

.gallery .item-image:hover {
	opacity: 0.9;
	filter: alpha(opacity=90);
}

.magnify {
	width: 24px;
	height: 24px;
	border-radius: 12px;
	background: #00aab6 url('/media/layout/icon/search.png') no-repeat center center;
	background-size: 60%;
	display: inline-block;
	position: absolute;
	right: 5px;
	bottom: 0;
	opacity: 0.9;
	filter: alpha(opacity=90);
	transition: all 0.5s;
}

.folder {
	width: 24px;
	height: 24px;
	border-radius: 12px;
	background: #00aab6 url('/media/layout/icon/nuoli_oikea_valkoinen.png') no-repeat center center;
	background-size: 40%;
	display: inline-block;
	position: absolute;
	right: 5px;
	bottom: 0;
	transition: all 0.5s;
}

.gallery .item:hover .folder, .gallery .item:hover .magnify {
	transform: rotate(360deg);
	-webkit-transform: rotate(360deg);
	width: 32px;
	height: 32px;
	border-radius: 16px;
}

#toGallery {
	width: 100%;
	height: 200px;
	background: url('/media/layout/banners/eliitti.jpg') no-repeat center center;
	background-size: cover;
	position: relative;
	-webkit-transition: opacity 0.5s box-shadow 0.5s linear; /* For Safari 3.1 to 6.0 */
	transition: opacity 0.5s linear, box-shadow 0.5s linear;
}

#toGallery h1 {
	color: #fff !important;	
	position: absolute;
	bottom: 0;
	right: 10px;
	font-size: 42px !important;
	text-shadow: 2px 2px 2px #333;
}

#toGallery:hover {
	opacity: 0.9;
	box-shadow: 0px 0px 4px #505050;
}

.fancybox-skin {
	padding: 0 !important;
}

:focus { outline: none; }

.formHolder td {
	padding: 5px 0;
}

.formHolder td:first-child {
	padding-right: 10px;
}

.formEmailinput, .formTextinput, .formTextarea, .formTelinput {
	padding: .4em;
	border: 1px solid #ccc;
}

.formEmailinput:focus, .formTextinput:focus, .formTextarea:focus, .formTelinput { border-color: #000fff; }

.formTextarea {
	overflow: auto;
}






















