#photo {
  width: 90%;
  margin: 0 auto;
}

#photo h1{
  text-align: center;
  margin-bottom: 0.5em !important;
}
#photo .navigation{
  height: 75px;
  text-align: center;
  width: 85%;
  max-width: 450px;
  margin: 0 auto;
}
#photo .previous, #photo .next{
  padding: 0px;
  display: block;
  width: 40px;
  height: 25px;
}
#photo .previous{
  float: left;
  background: url(/images/previous.gif) no-repeat;
}
#photo .next{
  float: right;
  background: url(/images/next.gif) no-repeat;
}
#photo .back{
  font-size: 0.9em;
  color: #aaa;
  text-decoration: none;
}
#photo .back:hover{
  text-decoration: underline;
}
#photo p{
  margin: 0 0 10px 0;
}
#photo .image{
  clear: both;
  text-align: center;
}
#photo .image img{
  border: 1px solid #111;
  width: 90%;
  max-width: 450px;
}
#photo .description{
  width:90%;
  margin: 1em auto;
  font-size:0.9em;
  text-align: center;
}
#gallery {
  margin-left: 20px;
}

.content #gallery ul{
  margin: 0;
  padding: 0;
}
.content #gallery ul li {
  margin: 0 5px 5px 0;
  list-style-type: none;
  float: left;
  width: 120px;
  height: 125px;
  line-height: 120px;
  text-align: center;
  border: 1px solid #ccc;
  background-color: #ffffff;
}

.content #gallery ul li:hover {
  border: 1px solid #aaa;
}

.content #gallery li img {
  vertical-align: middle;
  border-top: 0px solid #000;
  border-bottom: 0px solid #000;
  width: 80%;
}

@media all and (min-width: 768px) {

  #gallery {
    margin-left: 50px;
  }
  .content #gallery ul li {
    margin: 0 5px 5px 0;
    list-style-type: none;
    float: left;
    width: 150px;
    height: 155px;
    line-height: 150px;
    text-align: center;
    border: 1px solid #ccc;
    background-color: #ffffff;
  }
  .content #gallery ul li:hover {
    border: 1px solid #aaa;
  }
  .content #gallery li img {
    vertical-align: middle;
    border-top: 0px solid #000;
    border-bottom: 0px solid #000;
    width: 100%;
  }

}