/**** Clearfix ****/

.cf:before,
.cf:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.cf:after {
    clear: both;
}

/**
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */
.cf {
    *zoom: 1;
}

/**** FONT FACE

@font-face {
	font-family: 'GibsonBold';
	src: url('fonts/gibson-bold-webfont.eot');
	src: url('fonts/gibson-bold-webfont.eot?#iefix') format('embedded-opentype'),
		 url('fonts/gibson-bold-webfont.woff') format('woff'),
		 url('fonts/gibson-bold-webfont.ttf') format('truetype'),
		 url('fonts/gibson-bold-webfont.svg#gibsonbold') format('svg');
	font-weight: normal;
	font-style: normal;

}
@font-face {
	font-family: 'GibsonRegular';
	src: url('fonts/gibson-regular-webfont.eot');
	src: url('fonts/gibson-regular-webfont.eot?#iefix') format('embedded-opentype'),
		 url('fonts/gibson-regular-webfont.woff') format('woff'),
		 url('fonts/gibson-regular-webfont.ttf') format('truetype'),
		 url('fonts/gibson-regular-webfont.svg#gibsonregular') format('svg');
	font-weight: normal;
	font-style: normal;

}
@font-face {
	font-family: 'GibsonLightBold';
	src: url('fonts/gibson-semibold-webfont.eot');
	src: url('fonts/gibson-semibold-webfont.eot?#iefix') format('embedded-opentype'),
		 url('fonts/gibson-semibold-webfont.woff') format('woff'),
		 url('fonts/gibson-semibold-webfont.ttf') format('truetype'),
		 url('fonts/gibson-semibold-webfont.svg#gibsonsemibold') format('svg');
	font-weight: normal;
	font-style: normal;
}

Styles ****/

#modal_wrapper a.modal-link {
	color: white;
	text-decoration: none;
}
#modal_wrapper a.modal-link:visited {
	color: white;
}
#modal_wrapper a.modal-link:hover {
	color: black;
}
#modal_wrapper {
    display: none;
	position: absolute;
    top: 0;
    border-top: 1px solid rgba(255,255,255,0.8);
	width: 100%;
	height: 100%;
	min-height: 770px;
	background: rgb(168,13,122);
	background: rgba(168,13,122,.95);
    z-index: 1000;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
#modal_content {
	width: 780px;
	margin: 0 auto;
}
#modal_close {
	margin-top: 20px; 
    width: 100%;
    height: 80px;
    text-align: right;
    cursor: pointer;
    font-family: 'GibsonLightBold', Impact, sans-serif;
    font-size: 16px;
    color: white;
    vertical-align: middle;
}
#modal_close img {
    position: relative;
    top: 0px;
    margin-left: 10px;
}
#modal_headline {
	font-family: 'GibsonBold', Impact, sans-serif;
	font-size: 30px;
	margin: 0 0 20px 0;
	float: left;
	color: white;
}
#modal_share {
	float: right;
	text-transform: uppercase;
	font-size: 11px;
    margin-top: 9px;
}
.modal-share-btn {
	display: none;
}
/*
Discarded code for the old share link. Saved here just in case.

#modal_share:after {
	content: " ";
	width: 17px;
	height: 16px;
	display: inline-block;
	background: url(/statics/img/hise_modal/share-icon.png) no-repeat top center;
	margin-left: 5px;
	position: relative;
	top: 3px;
}
#modal_share:hover:after {
	background-position: bottom center;
}*/
#modal_video_image {
	display: table;
	width: 780px;
	height: 360px;
	background: url(/statics/img/hise_modal/video-image.jpg) no-repeat top center;
}
#modal_image_text_container {
	display: table-cell;
	vertical-align: middle;
	height: 100%;
	padding-left: 60px;
	font-family: 'GibsonBold', Impact, sans-serif;
	font-size: 48px;
	line-height: 48px;
	color: #FFFFFF;
}
#modal_play_btn, #modal_play_btn_2 {
	color: #f17034;
	display: block;
	cursor: pointer;
}
#modal_play_btn .img, #modal_play_btn_2 .img {
	display: inline-block;
	position: relative;
	top: 15px;
	width: 61px;
	height: 61px;
	background: url(/statics/img/hise_modal/play-btn.png) no-repeat top center;
}
#modal_play_btn:hover, #modal_play_btn_2:hover {
	color: black;
}
#modal_play_btn:hover .img, #modal_play_btn_2:hover .img {
	background-position: bottom center;
}
#modal_play_btn_3 {
	color: #ffffff;
	cursor: pointer;
	display: block;
	margin: 60px 0 0 0;
}
#modal_play_btn_3 .img {
	display: inline-block;
	position: relative;
	top: 5px;
	width: 20px;
	height: 20px;
	background: url(/statics/img/play-btn-pieni.png) no-repeat top center;
}
#modal_play_btn_3:hover {
	color: white;
	text-decoration: underline;
}
#modal_play_btn_3:hover .img {
/*	background-position: bottom center; */
}
#modal_play_btn_kettu {
	color: #ffffff;
	cursor: pointer;
	display: block;
	margin: -95px 0 0 0;
}
#modal_play_btn_kettu .img {
   	background: url("/statics/img/kettu.png") no-repeat scroll center top transparent;
   	height: 111px;
   	width: 117px;
   	float: right;
}
#modal_playing_video {
	display: none;
	background: black;
	width: 780px;
	height: 360px;
}
#modal_video_tray {
	margin-top: 20px;
}
#modal_video_list {
	margin: 0;
	padding: 0;
	list-style: none;
	width: 780px;
	counter-reset: video-number;
}
.modal-video-thumb-container {
	display: inline-block;
	float: left;
	margin: 0 10px 0 10px;
	width: 140px;
	cursor: pointer;
}
.modal-video-thumb-container:first-child {
	margin-left: 0;
}
.modal-video-thumb-container:last-child {
	margin-right: 0;
}
.modal-video-thumb-title {
	font-size: 11px;
    font-weight: normal;
    font-style: normal;
	text-transform: uppercase;
	text-align: center;
	line-height: 1.4em;
    font-family: 'GibsonRegular', Impact, sans-serif;
    color: white;
}
.modal-video-thumb-title:before {
	content: counter(video-number)".";
	counter-increment: video-number;
	font-weight: bold;
	color: #f17034;
}
.modal-video-thumb-container:hover .modal-video-thumb-title {
	color: black;
}
#modal_go_to_site_link {
    font-family: 'GibsonBold', Impact, sans-serif;
    font-size: 30px;
    display: block;
    text-align: center;
    color: #f17034;
    text-decoration: none;
    margin: 40px auto 0 auto;
}
#modal_go_to_site_link:hover {
    text-decoration: underline;
    color: black;
}