
/* ****************************************** */
/*                                            */
/*         CSS light-box Image Gallery        */
/*        								      */
/*          (c) Joonatan Tola 2019-2022       */
/*                                            */
/* ****************************************** */


/* Common style */

@font-face{
	font-family: 'Reef';
	src: url('./Material-Design-Iconic-Font.woff2') format('woff2'), 
         url('./Material-Design-Iconic-Font.woff') format('woff'), 
         url('./Material-Design-Iconic-Font.ttf') format('truetype');
    font-display: swap;
}

body, h1, h2{   
    text-align:center;
    font-family: 'Reef', monospace; 
}




#thumblist {}

#thumblist img {
    border-radius: 2px;
}


figure {
	position: relative;
	overflow: hidden;
	text-align: center;
	cursor: pointer;
}

figure img {
	position: relative;
	opacity: 1;
}

figure figcaption {
	color: #fff;
	text-transform: uppercase;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	color: #444;
   	font-family: 'Lora', serif;
	line-height: 1.4;
	font-size: 22px;
	/*font-size: 1.25em;*/
	word-wrap: break-word;
}

figure figcaption::before,
figure figcaption::after {
	pointer-events: none;
}

figure figcaption {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	-webkit-transition: background 1.5s;
	transition: background 1.5s;
}

.sydan {
	display: table-cell;
    vertical-align: middle;
}


/* preview_image */

.preview_image_text {
    position: relative;
	bottom: 0;
  	left: 0;
	right: 0;
	margin: auto;
    text-align: center;
	vertical-align: middle;
	text-transform: uppercase;
	color: #444;
	color: #fff;
   	font-family: 'Lora', serif;
	line-height: 1.4;
	font-size: 20px;
	word-wrap: break-word;
	max-height: 100%;
	height: 100%;
	display: table;
	word-spacing: 0.15em;
	font-weight: 115;
	opacity: 0;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
    -webkit-transition: opacity 1s, -webkit-transform 1s;
	transition: opacity 1s, transform 1s;
}

@media only screen and (max-width: 1024px) {
	.preview_image_text { font-size: 18px;}
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
  .preview_image_text {
    font-size: 18px;
	font-weight: 140;
  }
}

@media screen and (max-width: 767px) {
	.preview_image_text {
	/*display: none;*/
	}
}


.light-box-preview-figure {
	background-image: url("https://www.sannakaisamaria.com/matsku/loader.gif");
	background-position: center;
	background-repeat: no-repeat;
	margin: auto;
	object-fit: contain;
	-webkit-background-size: contain;
	-moz-background-size: contain;
	-o-background-size: contain;
	background-size: contain;
}

.light-box-preview-figure img {
	/*-webkit-transition: opacity 1s, -webkit-transform 1s;
	transition: opacity 1s, transform 1s;*/
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-transition: opacity.4s cubic-bezier(.39,.83,.63,1.01), transform 1s;
	-ms-transition: opacity .4s cubic-bezier(.39,.83,.63,1.01), transform 1s;
	-o-transition: opacity .4s cubic-bezier(.39,.83,.63,1.01), transform 1s;
	-moz-transition: opacity .4s cubic-bezier(.39,.83,.63,1.01), transform 1s;
	transition: opacity .4s cubic-bezier(.39,.83,.63,1.01), transform 1s;
}

.light-box-preview-figure:hover img {
	-webkit-transform: scale3d(1.012,1.012,1);
	transform: scale3d(1.012,1.012,1);
}

@media (max-width: 768px) {
.light-box-preview-figure:hover img {
	-webkit-transform: none;
	transform: none;
	}
}


.light-box-preview-figure:hover .preview_image_text {
	opacity: 1;
	-webkit-transform: translate3d(0,0,0);
	transform: translate3d(0,0,0);
}


@media screen and (min-width: 768px) and (max-width: 1199px) {
  .preview_image_text {
		font-size: 22px;
		font-weight: 150;
  }
}

@media screen and (max-width: 767px) {
	.preview_image_text {
		font-size: 14px;
		font-weight: 120;
	}
	
	.light-box-preview-figure:hover img {
		/*opacity: 0.30;
		-webkit-transform: none;
		transform: none; */
   }
}


/* laatikot */

.container1 {
    display:block;
	width:49.99999%;
	max-width: 100%;
	position: relative;
	float: left;
	margin: 0px;
}

.container2 {
    display:block;
	width: 64.9999%;
	max-width: 100%;
	/*min-height: 440px;*/
	position: relative;
	float: left;
	margin: 0px;
}

.container2_right {
    display: block;
	width: 64.9999%;
	/*min-height: 440px;*/
	position: relative;
	float: left;
	margin: 0px;
}


/*2 kertaan toistuu*/
.container5 {
	display: block;
	float: left;
	width: 37.4999%;
	max-width:100%;
	position: relative;
	margin: 0px;
}

/*1 kerran toistuu*/
.container6 {
	display: block;
	float: left;
	width: 24.99999%;
	max-width:100%;
	/*max-height: 300px;*/
	position: relative;
	overflow: hidden;
	margin: 0px;
}

.container3_right {
	display: block;
	float: left;
	width: 34.99999%;
	max-width:100%;
	min-height: 400px;
	position: relative;
  	overflow: hidden;
	object-fit: cover;
	margin: 0px;
	object-position: 0% 140%;
}

.container3_box {
	display: block;
	float: left;
	width: 34.99999%;
	max-width:100%;
	min-height: 400px;
	position: relative;
  	overflow: hidden;
	object-fit: cover;
	margin: 0px;
	object-position: 0% 140%;
}

.width_100_spes {
	width: 100%;
	max-width:100%;
}

.width_60_spes {
	width: 60%;
	max-width:60%;
}

.width_40_spes {
	width: 40%;
	max-width:40%;
}

	.width_50_spes {
	width: 50%;
	max-width:50%;
}


.image2 {
  	opacity: 1;
  	display: block;
  	width: 100% !important;
  	min-height: 400px;
	max-height: 400px;
  	backface-visibility: hidden;
	overflow: hidden;
  	padding: 0;
  	object-fit: cover;
	-moz-transition: all 0.3s ease-in-out;
 	-webkit-transition: all 0.3s ease-in-out;
  	-o-transition: all 0.3s ease-in-out;
  	transition: all 0.3s ease-in-out;
	margin: 0px;
	
}

.image2_kohdistus {
  	opacity: 1;
  	display: block;
  	width: 100%;
  	min-height: 400px;
	max-height: 400px;
  	backface-visibility: hidden;
	overflow: hidden;
  	padding: 0;
  	object-fit: cover;
	-moz-transition: all 0.3s ease-in-out;
 	-webkit-transition: all 0.3s ease-in-out;
  	-o-transition: all 0.3s ease-in-out;
  	transition: all 0.3s ease-in-out;
	margin: 0px;
}

.image2_right {
  	opacity: 1;
  	display: block;
  	width: 100%;
  	min-height: 400px;
	max-height: 400px;
  	backface-visibility: hidden;
	overflow: hidden;
  	padding: 0;
	object-fit: cover;
	-moz-transition: all 0.3s ease-in-out;
 	-webkit-transition: all 0.3s ease-in-out;
  	-o-transition: all 0.3s ease-in-out;
  	transition: all 0.3s ease-in-out;
	margin: 0px;
}

.image2_box {
  	opacity: 1;
  	display: block;
  	width: 100%;
	min-height: 400px;
	max-height: 400px;
  	backface-visibility: hidden;
	overflow: hidden;
  	padding: 0;
	object-fit: cover;
	-moz-transition: all 0.3s ease-in-out;
 	-webkit-transition: all 0.3s ease-in-out;
  	-o-transition: all 0.3s ease-in-out;
  	transition: all 0.3s ease-in-out;
	margin: 0px;
}

/* IE 10 and above*/
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
	.ie11up {
		width: 200% !important;
		max-width: 200% !important;
	}
}
/* ie11 */
_:-ms-fullscreen, :root .ie11up { width: 200% !important;
		max-width: 200% !important; 
}

/* ie 10 */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
	.exit_ { /*gallery exit */
		right: 15% !important;
		top: 34% !important;
	}
}

/* ei11 */
_:-ms-fullscreen, :root 	.exit_ { /*gallery exit */
		right: 15% !important;
		top: 34% !important;
	}



.salataide {
	object-position: 15% 0%;
}

.kyyhky1 {
	object-position:left top;
}

.selviytyjat {
	object-position:left bottom;
}

.posti_restante {
	object-position: right bottom;
}


.image1 {
  	opacity: 1;
  	display: block;
  	width: 100%;
  	max-height:100%;
  	transition: .3s ease;
  	-moz-transition: .3s ease;
  	-webkit-transition: .3s ease;
  	backface-visibility: hidden;
  	padding: 0px;
	margin: 0px;
}

.image3 {
  opacity: 1;
  display: block;
  width: 100%;
  min-height:400px;
  transition: .3s ease;
  -moz-transition: .3s ease;
  -webkit-transition: .3s ease;
  backface-visibility: hidden;
  padding: 0;
  object-fit: cover;
}

div.container1 img, div.container2 img, div.container3 img, div.container3_right img, div.container5 img, div.container6 img  {
	/*width: 100%;
	height: auto;*/
}


.light-box-preview-padding {
	padding: 10px;
}


@media only screen and (max-width: 999px) {
	.image2_kohdistus {
		object-fit: cover;
		object-position: 0% 20%;
	}

	.image2_right {
	overflow:hidden;
	}

	.container3_box {
		width: 100% !important;
		object-fit: cover;
		overflow:hidden;
		object-position: -50% 40%;
	}
	.container2_right {
		width: 100% !important;
		object-fit: cover;
		overflow:hidden;
		/*object-position: -50% 40%;*/
	}
	
	.container5 {
	    width: 100% !important;
   		margin: 0;
	    object-fit: cover;
  	}
	
	.container6 {
	    width: 100% !important;
   		margin: 0;
	    object-fit: cover;
		/*object-position: 0% -250%;*/
  	}

	.width_60_spes, .width_40_spes {
	width: 100%;
	max-width:100%;}

}


.text1 { 
 /*background-color: #444; */
	background-color:rgba(0, 0, 0, 0);
 	color: #444;
   	font-family: 'Lora', serif;
	line-height: 2;
	font-size: 18px;
	word-wrap: break-word;
  /*padding: 16px 16px; */
}

@media only screen and (max-width: 765px) {
	.container3_right {
		width: 100% !important;
		object-fit: none;
		object-position: 0 40%;
	}
	
	.container3_box { 
		width: 100% !important;
		max-height: 75%;
		object-fit: none;
		object-position: 60% 40%;
	}
	
	.image2_box {
 	 	opacity: 1;
	  	display: block;
		max-width:100%;
	  	transition: .3s ease;
 	 	-moz-transition: .3s ease;
  		-webkit-transition: .3s ease;
  		backface-visibility: hidden;
 	 	padding: 0px 0px 0px 0px; 	
		object-fit: cover;
	}	
	
	.image2_kohdistus {
 	 	opacity: 1;
	  	display: block;
		max-width:100%;
	  	transition: .3s ease;
 	 	-moz-transition: .3s ease;
  		-webkit-transition: .3s ease;
  		backface-visibility: hidden;
 	 	padding: 0px 0px 0px 0px; 	
		object-fit: cover;
		overflow: hidden;
		max-height: none;
	}
	
	.image2_right {
 	 	opacity: 1;
	  	display: block;
		max-width:100%;
		min-height: 50%;
	  	transition: .3s ease;
 	 	-moz-transition: .3s ease;
  		-webkit-transition: .3s ease;
  		backface-visibility: hidden;
 	 	padding: 0px 0px 0px 0px; 	
		object-fit: cover;
		overflow: hidden;
		object-position: 0% 90%;
		/*max-height: none;*/
	}

	.mina_ite {
		object-position: 0% 0%;
	}
	
	.container1, .container2, .container3 {
	    width: 100% !important;
   		margin: 0;
	    object-fit: cover;
		overflow: hidden;
  	}

	.container5 {
		width: 100% !important;
   		padding: 0;
	    object-fit: cover;
		overflow: hidden;
	}
	
	.container6 {
		width: 100% !important;
   		margin: 0;
		max-height: 400px;
	    object-fit: cover;
  	}
		
	.text1 {
		background-color:rgba(0, 0, 0, 0);
 		color: #444;
   		font-family: 'Lora', serif;
		line-height: 1;
		font-size: 14px;
	}
	
	.image1 {
  		opacity: 1;
	  	display: block;
	  	width: 100%;
 	 	transition: .3s ease;
  		-moz-transition: .3s ease;
 	 	-webkit-transition: .3s ease;
 	 	backface-visibility: hidden;
 	 	padding: 0px 0px 0px 0px; 
	}
	
	.image2 {
 	 	opacity: 1;
	  	display: block;
		max-width:100%;
		/*min-height: unset;*/
	  	transition: .3s ease;
 	 	-moz-transition: .3s ease;
  		-webkit-transition: .3s ease;
  		backface-visibility: hidden;
 	 	padding: 0px 0px 0px 0px; 	
		object-fit: cover;
	}	
	
	.image3 {
  		opacity: 1;
	  	display: block;
	  	width: 100%;
 	 	transition: .3s ease;
  		-moz-transition: .3s ease;
 	 	-webkit-transition: .3s ease;
 	 	backface-visibility: hidden;
 	 	padding: 0px 0px 0px 0px; 
	}
	
	.light-box-preview-padding {
		padding: 10px 0px 10px 0px;
	}

	.add_extra_padding_mobile {
		padding-left: 20px;
	}
}

@media only screen and (max-width: 480px) {
	.width_50_spes {
		width: 100%;
		max-width:100%;
	}
	.add_extra_padding_mobile {
		padding-left: 0px;
	}
	.art_of_broken {
		object-position: 20% 0%;
	}
	.siunattu_hulluus {
		object-position: 75% 0%;
	}

	.selviytyjat {
		object-position: 50% 0%;
	}
	.hampaatvauvat {
		object-position: 85% 5%;
	}

	.mina_ite2 {
		object-position: left bottom;
	}

	.kyyhky1 {
		object-position: 50% 0%;
	}

	.irinka {
		object-position: 75% 50%;
	}

	.kaunista_ja_kielteista {
		object-position: right bottom;
	}

	.kaunista_ja_kielteista2 {
		object-position: left bottom;
	}

	.vauva1paperi {
		object-position: left bottom;
	}
}

/*.container1:hover img, .container2:hover img, .container3:hover img, .container3_right:hover img, .container5:hover img, .container6:hover img, .container2_right:hover img, .container3_box:hover img {
	opacity: 0.4;
}*/

.container1:hover img + figcaption, .container2:hover img + figcaption, .container3:hover img + figcaption, .container3_box:hover img + figcaption, .container3_right:hover img + figcaption, .container5:hover img + figcaption, .container6:hover img + figcaption, .container2_right:hover img + figcaption, .container3_box:hover + figcaption img {
	background: rgba(0,0,0,0.6);
	-webkit-transition: background 1.5s;
	transition: background 1.5s;
}

@media (max-width: 768px) {
	.container1:hover img + figcaption, .container2:hover img + figcaption, .container3:hover img + figcaption, .container3_box:hover img + figcaption, .container3_right:hover img + figcaption, .container5:hover img + figcaption, .container6:hover img + figcaption, .container2_right:hover img + figcaption, .container3_box:hover + figcaption img {
	-webkit-transform: none;
	transform: none;
	background: unset;
	}

	.container1:hover img, .container2:hover img, .container3:hover img, .container3_box:hover img, .container3_right:hover img, .container5:hover img, .container6:hover img, .container2_right:hover img, .container3_box:hover img {
	opacity: 0.6;
	}

}
/* DEPRICATED
.container2_right:hover .middle1, .container3_box:hover .middle1, .container1:hover .middle1, .container2:hover .middle1, .container3:hover .middle1, .container3_right:hover .middle1, .container5:hover .middle1, .container6:hover .middle1 {
  opacity: 1;
}


*/


/* lisäkkeet ????????????????????????????? */


.infoa {
	background: rgba(0,0,0,.7);
	max-height:20%;
    width:100%;
    position: absolute;
	padding-left:198px;
	padding-right:190px;
	line-height:20px;
    bottom: 0;
	opacity: 1;
	text-align: center;
	font-size: 100%;
	word-wrap: break-word;
	color: #ffffff;
    font-family: 'Lora', serif;
    font-size: 14px;
}

/* Styles the thumbnail */

a.lightbox img {
	height: 150px;
	border: 3px solid white;
	box-shadow: 0px 0px 12px rgba(0,0,0,.3);
	margin: 94px 20px 20px 20px;
}
/* Styles the lightbox, removes it from sight and adds the fade-in transition */

.exit { /**styling the exit button**/
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    opacity:0.70;
}

.exit_ { /**styling the exit button**/
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 80px;
    display: flex;
	z-index:10000;

}

.pallo:hover, .pallo:focus {
	background: #00b4ab;
	cursor: pointer !important;	
	opacity: .9; 
	transition: opacity .4s ease-in-out;
}

.exitristi:hover::before, .exitristi:focus::before {
	color: #00b4ab;
	cursor: pointer !important;	
	opacity: .9; 
	transition: opacity .4s ease-in-out;
}

.pallo {
	color: rgb(255, 255, 255);
	background-color: rgb(35, 35, 35);
	border-radius: 50%;
	box-sizing: content-box;
	font-size: 36px;
	line-height: 36px;
	padding: 10px;
	text-align: center;
	transition: opacity .2s ease-in-out;
	width: 36px;
	height: 36px;
	display: inline-block;
	/*font: normal normal normal 14px/1 'Material-Design-Iconic-Font';*/
    font-family: 'Reef', monospace; 
	font-size: inherit;
	text-rendering: auto;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}


.exitristi {
	position: absolute;
	box-sizing: content-box;
	display: inline-block;
	margin-left: 10px;
	color: #fff;
	text-align: center;
	text-decoration: none;
	transition: all .2s ease-in-out;
	width: 24px;
	font-size: 24px;
	line-height: 24px;
	outline: none;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.musta.exitristi {
	color: #000;
}

.spinner1 {
	text-align: center;
	vertical-align: middle;
	line-height: 90px;
	font-size: 38px;
	-webkit-animation: spinnerissa 1.5s infinite linear;
    animation: spinnerissa 1.5s infinite linear;
}

.spinner1:before {
	content: '\f1c6';
}

@keyframes spinnerissa {
	0% {
		-webkit-transform: rotate(0deg);
		transform: rotate(0deg);
	}

	100% {
		-webkit-transform: rotate(359deg);
		transform: rotate(359deg);
	}
}

@-webkit-keyframes spinnerissa {
	0% {
		-webkit-transform: rotate(0deg);
		transform: rotate(0deg);
	}

	100% {
		-webkit-transform: rotate(359deg);
		transform: rotate(359deg);
	}
}

.pallo.left:before { content: '\f2fa'; }

.pallo.right:before { content: '\f2fb'; }

.exitristi:before { content: '\f136'; }

.pallo.right:before, .pallo.left:before, .exitristi:before, .zoomi:after {
	font-size: 33px !important;
	font-weight: 400 !important;
	line-height: 1.09em !important;
}

@media all and (min-width: 1920px) {
	.pallo {
		height: 65px;
		width: 65px;
	}
	.pallo.right:before, .pallo.left:before, .exitristi:before, .zoomi:after {
		font-size: 45px !important;
		font-weight: 400 !important;
		line-height: 1.09em !important;
	}
	.exitristi {
		top: 5%;
		right: 20%;
	}
}

@media all and (min-width: 2044px) {
	.pallo.right:before, .pallo.left:before, .exitristi:before, .zoomi:after {
		font-size: 35px !important;
		font-weight: 400 !important;
		line-height: 1.09em !important;
	}

}

@media all and (min-width: 3800px) {
	.pallo.right:before, .pallo.left:before, .exitristi:before, .zoomi:after {
		font-size: 55px !important;
		font-weight: 400 !important;
		line-height: 1.09em !important;
	}
	.exitristi {
		top: 15%;
		right: 20%;
	}
}



.zoomi:after {
    content: '\f1ee';
	font-size: 40px !important;
}

.pallo.right:before, .pallo.left:before, .exitristi:before, .spinner1:before, .zoomi:after {
	/*font: normal normal normal 14px/1 'Material-Design-Iconic-Font';*/
    font-family: 'Reef', monospace; 
	font-variant-numeric: tabular-nums;
	-webkit-font-smoothing: antialiased;
    text-rendering: auto;
}

.preload_gallery_fonts{}

.full_sc .light_box_link img:hover, .full_sc .light_box_link img:focus { 
	filter: invert(47%) sepia(75%) saturate(658%) hue-rotate(131deg) brightness(98%) contrast(101%) !important;
}

.full_sc { opacity:0.9; }

.kuva_true {
    position: absolute;
    left: 20%;
	top: 10%; 
}

.num_text {
    position: absolute;
    opacity: 1;
    right: 70px;
	color: #fff;
	margin-top: 2.5px;
	font-size: 0.6em;
	user-select: none;
}


@media (max-width: 768px) {  .num_text {  font-size: 0.8em; } }
@media (min-width: 400px) {  .num_text {  font-size: 1em; } }

.kuva_true {
    position: absolute;
    right: 20px;
    opacity: 0.7;
}


.exit_button {
    width: 33px;
    opacity: 0.70;
}

.oikea {
    position: absolute;
    top: 45%;
    /*width: 70px;*/
    bottom: 45%;
    right: 1.5em;
	z-index: 2;
    opacity:0.70;
}

@media (min-width: 1920px) {  .oikea {  font-size: 0.8em; } }


.vasen {
    position: absolute;
    top: 45%;	
    margin-left: 1.5em;
    bottom: 45%;
    left: 0;
    z-index: 999;
    opacity: 0.70;
}


.vasen_yla {
    position: absolute;
    top: 20px;
    width: 30px;
    margin-left:20px;
    left: 0;
    z-index: 999;
    display: block;
    opacity: 0.70;
}


@media only screen and (min-width: 768px) and (max-width: 1024px) { .exit { top: 19px;} }

@media only screen and (max-width: 765px) {
	.exit { top: 19px;}	
	.oikea { width:50px;}
	.vasen {margin-left:1px;}	
	.infoa {
		background: rgba(0,0,0,.8);
		max-height:40%;
		padding-left:25px;
		padding-right:25px;
		font-size: 14px;
	}
}

.touch .pallo, .touch .vasen_yla {
	/*touch devices */
	display: none;
}


.height_100 {}

.width_100 {}

.lightbox-target-image {
	position: absolute;
	/*opacity: 0;*/
	opacity:1;
	margin: auto;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	max-height: 0%;
	max-width: 0%;
	/*height: 100%; ei-toimi vielä */
	text-align: center;
	border: 0px solid white;
	box-shadow: 8px 8px 8px 8px rgba(0,0,0,.2);
	box-sizing: border-box;
	-webkit-animation-name:fadeIn;
	-moz-animation-name: fadeIn;
	-ms-animation-name: fadeIn;
	-o-animation-name: fadeIn;
	animation-name: fadeIn;
	animation-duration: 1s;
	-webkit-animation-duration: 1s;
	-moz-animation-duration: 1s;
	-o-animation-duration: 1s;
}

.lightbox-target {
	position: fixed;
	display:none;
	top: -100%;
	left:0;
	width: 100%;
	background: rgba(0,0,0,.98);
	overflow: hidden;
	z-index: 1000;
	opacity: 0;
	-webkit-transition: opacity .4s ease-in-out;
	-moz-transition: opacity .4s ease-in-out;
	-o-transition: opacity .4s ease-in-out;
	transition: opacity .4s ease-in-out;
}


@media (max-width: 812px) { .lightbox-target { background: rgba(0,0,0,.94); } }

@media (max-width: 768px) {
	.lightbox-target {
		background: rgba(0,0,0,.93);
	}
	
	.lightbox-target-image {
		-webkit-animation-name: none;
		-moz-animation-name: none;
		-ms-animation-name: none;
		-o-animation-name: none;
		animation-name: none;
		animation-duration: 0s;
		-webkit-animation-duration: 0s;
		-moz-animation-duration: 0s;
		-o-animation-duration: 0s;
	}
}

/*
.lightbox-target:target {
	display: block;
	outline:none;
	top: 0;
	bottom: 0;
	opacity:1;
}
*/

.exit_button {
    opacity:1 !important;
}

.lightbox-target:target img {
	opacity:1;
	max-height: 100%;
	max-width: 100%;
	overflow: hidden;
}


.lightbox-target:target img.lightbox-target-image {
}

.lightbox-target:target a.lightbox-close {
	top: 0px;
}

.tietotaito::after {
	content: "Käynnistä video/ääni painamalla PLAY-nappia!";
}

*, *:after, *:before { -webkit-box-sizing: border-box; box-sizing: border-box; }

.clearfix:before, .clearfix:after { display: table; content: ''; }
.clearfix:after { clear: both; }

@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.fadeIn {
  -webkit-animation-name: fadeIn;
  animation-name: fadeIn;
}

@-webkit-keyframes fadeInDown {
  from {
    opacity: 0;
    -webkit-transform: translate3d(0, -100%, 0);
    transform: translate3d(0, -100%, 0);
  }

  to {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}









/*
.video-container {
    overflow: hidden;
    position: relative;
    width:100%;
}

.video-container::after {
    padding-top: 56.25%;
    display: block;
    content: '';
}

.video-container {
	opacity: 1;
	clear: initial;
	margin: 0 auto;
	display: block;
	height: 100vh;

}

*/

.lightbox-target:target iframe {
	opacity:1;
	/*max-height: 100%;
	max-width: 100%;*/
	overflow: hidden;

}


.clearfix::after {
  content: "";
  clear: both;
  display: table;
}


.light-ifame {
	position: absolute;
	margin: auto;
	opacity:0;
	display: none;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	width:100%;
	height:100%;
	/*height: 100%; ei-toimi vielä */
	text-align: center;
	border: 0px solid white;
	box-shadow: 8px 8px 8px 8px rgba(0,0,0,.2);
	box-sizing: border-box;
	-webkit-animation-name:fadeIn;
	-moz-animation-name: fadeIn;
	-ms-animation-name: fadeIn;
	-o-animation-name: fadeIn;
	animation-name: fadeIn;
	animation-duration: 1s;
	-webkit-animation-duration: 1s;
	-moz-animation-duration: 1s;
	-o-animation-duration: 1s;
}


.ifame-target {
	background: rgba(0,0,0,.98);
	background: rgba(185, 154, 61, 0.92);
	overflow: hidden;
	z-index: 1000;
	opacity: 1;
	/*height: 100vh;*/
	height: 100%;
	-webkit-transition: opacity .4s ease-in-out;
	-moz-transition: opacity .4s ease-in-out;
	-o-transition: opacity .4s ease-in-out;
	transition: opacity .4s ease-in-out;
}

iframe {
	top:25%;
	bottom:25%;
	right:0;
	left:0;
	margin:auto;
	position:absolute;
	z-index: 9999;
	max-width:100%;
}


.fancybox-close {
	/* youtube-playerin nappulat */
 	background-color: #008CBA;
  	border: none;
  	color: white;
	cursor: pointer;
  	padding: 13px 28px;
  	text-align: center;
  	text-decoration: none;
  	display: inline-block;
  	font-size: 1em;
}

.fancybox-close:hover {
 	background-color: #998CBA;

}



.iframe_infoa {
	/* youtubelinkin alatietopalkki, infoa normaalisti */
	background: rgba(0,140,186,0.7);
	max-height: 20%;
    width: 100%;
    position: absolute;
	bottom:0;
	padding-left: 198px;
	padding-right: 190px;
	padding: 1em;
	line-height: 1.5em;
	opacity: 1;
	text-align: center;
	word-wrap: break-word;
	color: white;
    font-size: 1em;
}

.kaannos_infoa {
	background: rgba(255, 255, 255, 0.99);
    position: absolute;
	bottom:0;
	top:0;
	left:0;
	right:0;
	margin: 0 auto;
	padding-left: 198px;
	padding-right: 190px;
	padding: 1em;
	line-height: 2em;
	opacity: 1;
	text-align: center;
	font-size: 100%;
	word-wrap: break-word;
	color: black;
    font-size: 2em;
	position: absolute;
	z-index: 2;
	max-width:100%;
	overflow: auto;
	margin: 0;
    padding: 0;
}


.fulli {
  display: block;
  z-index: 10000;
  bottom: 50%;
  position: absolute;
}



.button__ {
position: absolute;
  top: 50%; right: 50%;
  transform: translate(50%,-50%);
  border: 0;
  background: transparent;
  box-sizing: border-box;
  width: 0;
  height: 74px;
  border-color: transparent transparent transparent #202020;
  transition: 100ms all ease;
  cursor: pointer;
  border-style: solid;
  border-width: 37px 0 37px 60px;
}
.button__.paused {
  border-style: double;
  border-width: 0px 0 0px 60px;
}
.button__:hover {
  border-color: transparent transparent transparent #404040;
}


















/* SOUND */

