@charset "UTF-8";

html{overflow-y: scroll;}
body,h1,h2,h3,p,quote,small,form,input,ul,li,ol,label{
	/* Page reset */
	margin:0px;
	padding:0px;
}
body{
	/* Setting default text color, background and a font stack */
	color:#444444;
	font-size:13px;
	font-family:Arial, Helvetica, sans-serif;
}

/* Gallery styles */
#gallery{
	-moz-border-radius-bottomleft:4px;
	-webkit-border-bottom-left-radius:4px;
	border-bottom-left-radius:4px;
	
	-moz-border-radius-bottomright:4px;
	-webkit-border-bottom-right-radius:4px;
	border-bottom-right-radius:4px;
	
	width:740px;
	overflow:hidden;
	margin:0px;
	padding:0px;
}

#slides{
	/* This is the slide area */
	/* jQuery changes the width later on to the sum of the widths of all the slides. */
	width:740px;
	overflow:hidden;
	display: block;
}
.slide{
	float:left;
	width:740px;
	margin-bottom: 1em;
}
.slide h3{
	text-align:left;
	width:740px;
}
.slide p{text-align:left;}
.slide p.photo{
	float: left;
	padding: 0;
}
#menu{
	/* This is the container for the thumbnails */
	height:76px;
	background:url(../common/img/life/year/img_other_e.png) left no-repeat;
	display: block;
}

ul{
	margin:0px;
	padding:0px;
}

li{
	/* Every thumbnail is a li element */
	width: auto;
	display:inline-block;
	list-style:none;
	height:35px;
	overflow:hidden;
	padding-right:5px;
}

li.inact:hover{
	/* The inactive state, highlighted on mouse over */
	background:#FF9;
}

li.act,li.act:hover{
	/* The active state of the thumb */
	background:#FF9;
}

li.act a{
	cursor:default;
}

.fbar{
	/* The left-most vertical bar, next to the first thumbnail */
	width:2px;
}

li a{
	display:block;
	height:35px;
	padding-top:0px;
}

a img{
	border:none;
}


/* The styles below are only necessary for the demo page */

#main{
	/* The main container */
	margin:0px auto;
	text-align:center;
	width:740px;
	position:relative;
}

a, a:visited {
	color:#0196e3;
	text-decoration:none;
	outline:none;
}

a:hover{
	text-decoration:underline;
}

p{
	padding:10px;
	text-align:center;
}

#main-MB{
	/* The main container */
	margin: 0;
	text-align:center;
	width:320px;
	position:relative;
	background: #f9be31;
	padding: 0;
    height: 400px;
    overflow: scroll;
}
#main-MB #menu{
	background: none;
}

#slides-MB{
	width:320px;
	overflow:hidden;
	display: block;
}
#slides-MB img{ max-width: 310px; height: auto;}
#slides-MB .slide p.photo{
	float: none;
	padding: 0 0.2em;
	text-align: center;
}
#slides-MB > .slide{
	width:100%;
	margin-bottom: 1em;
}
@media (max-width: 480px){
#slides-MB .slide p.photo.big img{
	width: 100%;
}
}
@media (max-width: 420px){
#slides-MB .slide img{
	width: 38%;
}
}