body{
  margin:0;
  color :#999;
  font-size: 14px;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #eee;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #aaa;
}

*{
  font-family: open sans;
  -webkit-user-select: none;  /* Chrome all / Safari all */
  -moz-user-select: none;     /* Firefox all */
  -ms-user-select: none;      /* IE 10+ */
  user-select: none;          /* Likely future */
}

@font-face {
  font-family: "open sans";
  src: url("fonts/OpenSans-Regular-webfont.eot");
  src: url("fonts/OpenSans-Regular-webfont.eot?#iefix") format("embedded-opentype"), url("fonts/OpenSans-Regular-webfont.woff") format("woff"), url("fonts/OpenSans-Regular-webfont.ttf") format("truetype"), url("fonts/OpenSans-Regular-webfont.svg#open_sansregular") format("svg");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "open sans";
  src: url("fonts/OpenSans-Light-webfont.eot");
  src: url("fonts/OpenSans-Light-webfont.eot?#iefix") format("embedded-opentype"), url("fonts/OpenSans-Light-webfont.woff") format("woff"), url("fonts/OpenSans-Light-webfont.ttf") format("truetype"), url("fonts/OpenSans-Light-webfont.svg#open_sanslight") format("svg");
  font-weight: lighter;
  font-style: normal;
}

@font-face {
  font-family: "open sans";
  src: url("fonts/OpenSans-Bold-webfont.eot");
  src: url("fonts/OpenSans-Bold-webfont.eot?#iefix") format("embedded-opentype"), url("fonts/OpenSans-Bold-webfont.woff") format("woff"), url("fonts/OpenSans-Bold-webfont.ttf") format("truetype"), url("fonts/OpenSans-Bold-webfont.svg#open_sansbold") format("svg");
  font-weight: bold;
  font-style: normal;
}

.title{
  font-weight: bold;
  color: #000;
  font-size: 16px;
}


/*---------------sidebar----------------*/

.sidebar{
  width: 200px;
  padding : 10px;
  box-sizing: border-box;ba
  padding: 10px;
  line-height:30px;
}

.sidebar h1{
  font-size: 28px;
  color: #000;
  margin-top: 20px;
  padding:0;
}

.sidebar .menu{
  list-style: none;
  cursor: pointer;
  padding: 0;
  margin-top: 50px;
}

.sidebar .menu li{
  margin-bottom: 10px;
  transition: padding 0.2s;
}

.sidebar .menu li:hover{
  color: #000;
  padding-left: 5px;

}

.sidebar .menu li.selected{
  color: #fff;
  background: #000;
  padding-left: 15px;
  margin-left: -10px;
  padding-right: 20px;
  display: inline-block;
}

/*----------------content----------------*/

.content{
  position: absolute;
  left: 190px;
  right:0px;
  top:0;
  bottom:0;
  overflow: auto;
}

/*----------------gallery----------------*/

.gallery{
  width: 850px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  padding-left:10px;
  padding-top: 30px;
}

.gallery-item{
  width: 200px;
  height: 200px;
  background: #f6f6f6;
  float: left;
  margin-right: 10px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.1);
  box-sizing: border-box;
}

.gallery-item .gallery-item-title{
  position: absolute;
  background: #fff;
  font-weight: bold;
  color:#000;
  height:50px;
  box-sizing: border-box;
  font-size: 14px;
  top: 100%;
  width:100%;
  padding-top: 5px;
  margin-top: 0px;
  /*white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;*/
  padding-left: 5px;
  transition: margin-top 0.2s;
}

.gallery-item:hover .gallery-item-title{
  margin-top: -50px;
}

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

/*.gallery-title{
  margin-right: 10px;
  margin-bottom: 20px;
  font-size: 28px;
  box-sizing: border-box;
  color: #999;
  font-weight: bold;
  line-height: 1;
}*/

.gallery-title{
  width: 410px;
  height: 200px;
  float: left;
  margin-right: 10px;
  margin-bottom: 10px;
  font-size: 40px;
  box-sizing: border-box;
  color: #666633;
  font-weight: lighter;
  padding: 10px;
  text-transform: uppercase;
}

@media all and (max-width: 1100px) {
  .gallery{
    width: 640px;
    width: 100%;
    clear: both;
  }
}

@media all and (max-width: 900px) {
  .gallery{
    width: 550px;
  }
  .gallery-item{
    width: 170px;
    height: 170px;
  }
  /*.gallery-title{
    width: 350px;
    height: 170px;
    padding: 0;
    float: left;
  }*/
}

/*----------------gallery-modal----------------*/

.gallery-modal{
  background: #fff;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height:100%;
  visibility: hidden;
  opacity: 0;
}

.gallery-modal-content{
  position: absolute;
  top: 20px;
}

.gallery-modal-infos{
  text-align:right;
  position: absolute;
  right: 50%;
  left: 0;
  line-height: 30px;
}

.gallery-modal img{
  position: absolute;
  left: 50%;
  border: 1px solid rgba(0,0,0,0.1);
}

.gallery-modal-close-button{
  position: absolute;
  width: 18px;
  height: 18px;
  right:20px;
  top: 20px;
  background:url(images/ui/close.png);
}

.gallery-modal-prev-button, .gallery-modal-next-button{
  position: absolute;
  width: 18px;
  height: 36px;
  top: 50%;
  margin-top: -18px;
}

.gallery-modal-prev-button{
  background: url(images/ui/prev.png);
  left: 20px;
}

.gallery-modal-next-button{
  background: url(images/ui/next.png);
  right: 20px;
}

.gallery-modal-close-button, .gallery-modal-prev-button, .gallery-modal-next-button{
  opacity: 0.3;
  cursor: pointer;
}


.gallery-modal-close-button:hover, .gallery-modal-prev-button:hover, .gallery-modal-next-button:hover{
  opacity: 1;
}

.page{
  width: 550px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  padding-left:10px;
  padding-top: 30px;
}

ul.events{
 margin: 0;
  padding: 0;
  list-style: none;
}

ul.events li::after{
  display: block;
  clear: both;
  content: '';
}

ul.events li{
  margin-top: 30px;
}

ul.events .date{
  float: left;
  width: 130px;
}

ul.events .event{
  font-weight: bold;
  color: #000;
  float: left;
  width: 400px;
}

ul.events .event .event-details{
  font-size: 12px;
  font-weight: normal;
  color: #666;
}

.page h1{
  font-size: 40px;
  box-sizing: border-box;
  color: #666633;
  font-weight: lighter;
  padding: 10px;
  text-transform: uppercase;
  margin: 0;
  padding: 0;
  margin-bottom: 80px;
}

.page h1 .author{
  font-weight: bold;
  font-size : 12px;
}

/*--------------------Contact form -----------------------------------*/

.contact{
  position: relative;
}

.contact-form {
  position: relative;
  margin-top: 10px;
}

.page .contact-form-message{
  text-align: center;
  padding: 6px;
  border-radius: 5px;
  font-size: 14px;
  position: absolute;
  width: 100%;
  box-sizing: border-box;
  color: #930;
  background: #ffc;
}

.page .contact .contact-form-message-error{
  color: #900;
  background: #fcc;
}

.page .contact .contact-form-message-success{
  color: #090;
  background: #cfc;
}

.contact-form{
  margin-top: 44px;
  position: absolute;
}

.contact-form input[type=text],
.contact-form input[type=email],
.contact-form textarea{
  width:100%;
  box-sizing: border-box;
  margin-bottom: 10px;
  background: #eee;
  border: none;
  padding: 10px;
}

.contact-form input[type=text],
.contact-form input[type=email],
.contact-form input[type=button]{
  height : 34px;
}

.contact-form textarea{
  height: 200px;
}
.contact-form-input-error{
  background-color: #fcc !important;
}

.contact-form input[type=button]{
  background: #fff;
  width: 200px;
  box-sizing: border-box;
  border: 1px solid #999;
  font-weight: bold;
  color: #999;
}

.contact-form input[type=button]:hover{
  color: #000;
  border-color: #000;
}
