
* {
  margin: 0px;
  padding: 0px;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}

html,
body {
  height: 100%;
}

.js body {
  overflow: hidden;
}

body {
  background: #EEE;
  cursor: default;
}

h1 {
  border-bottom: 2px solid;
  color: #666;
  font: 60px Lucida Sans unicode;
  margin-bottom: 30px;
  padding: 10px;
}

h1 span {
  font-size: .7em;
}

.js h1 {
  display: none;
}

#container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.no-js #container {
  display: none;
}

img {
  display: block;
  margin: 0px auto;
}

ul {
  list-style: none;
}

.no-js img {
  width: 100%;
  display: block;
}

.no-js li + li {
  border-top: 8px solid black;
}

#container > img:first-child {
  box-shadow: 0px 0px 20px #999;
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: none;
}

li {
  position: relative;
}


/** Thumbnails */
#thumbnails-wrapper {
  position: absolute;
  bottom: -60px;
  z-index: 2;
  opacity: 0.5;
  transition: bottom .5s, opacity .5s;
  overflow: hidden;
  width: 100%;
}

.initial-state #thumbnails-wrapper,
#thumbnails-wrapper.mouse-over {
  bottom: 0px;
  opacity: 1;
}

#thumbnails {
  list-style: none;
  overflow: hidden;
  height: 120px;
  position: relative;
}

#thumbnails > li {
  height: 120px;
  width: 120px;
  overflow: hidden;
  padding: 5px;
  position: absolute;
  transition: 0.5s left, 0.5s top;
  top: 0px;
}

#thumbnails img {
  max-height: 100%;
  max-width: 100%;
  cursor: pointer;
  border: 1px solid #666;
}

.mouse-over #thumbnails .active img {
  border: 3px solid orange;
  box-shadow: 0px 0px 5px orange;
}

/** When collapsed, show only the last three to indicate a bigger collection */
.inactive #thumbnails > li {
  left: 0px !important;
}

.inactive #thumbnails > li:last-child {
  left: 20px !important;
  top: 10px;
}

.inactive #thumbnails > li:nth-last-child(2) {
  left: 10px !important;
  top: 5px;
}


/** Loading */
img[src$="loader.gif"] {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-left: -64px;
  margin-top: -64px;
  z-index: 0;
}


/** Navigation */
.arrow {
  width: 34px;
  height: 72px;
  position: absolute;
  top: 50%;
  transition-duration: 0.33s;
  transition-property: width, opacity, box-shadow;
  opacity: 0.33;
  background: #EEE no-repeat center;
  box-shadow: 0px;
  z-index: 2;
}

.initial-state .arrow,
.arrow:hover {
  opacity: 1;
  width: 72px;
  box-shadow: 0px 0px 10px #666;
}

#left-arrow {
  background-image: url('left-arrow.png');
  left: 0%;
}

#right-arrow {
  background-image: url('right-arrow.png');
  right: 0%;
}

@media (min-width: 1900px) {
  .arrow {
    width: 50px;
  }

  .arrow:hover {
    width: 80px;
  }
}
