html {
  min-height: 100%;
  /* make sure it is at least as tall as the viewport */
  position: relative;
}

body {
  height: 100%;
}

#im_wrapper {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  /*max-height: 60em;*/
}

#im_wrapper div {
  left: -500px;
  width: 10em;
  /*125px*/
  height: 9em;
  /*125px*/
  position: absolute;
  background: #fff url("../images/sample-cake.jpg") no-repeat;
  cursor: pointer;
  -moz-box-shadow: 1px 1px 3px #000;
  -webkit-box-shadow: 1px 1px 3px #000;
  box-shadow: 1px 1px 3px #000;
  z-index: 10;
  background-size: 60em 36em !important;
}
#im_wrapper div .hidden_comment {
  display: none;
}

#im_wrapper div img {
  float: left;
  width: 9em;
  /*115px*/
  height: 8.1em;
  /*115px*/
  margin: 0.5em 0 0 0.5em;
}

.im_loading {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  margin: -35px 0px 0px -35px;
  background: #fff url("../images/loader.gif") no-repeat center center;
  width: 70px;
  height: 70px;
  z-index: 9999;
  -moz-border-radius: 10px;
  -webkit-border-radius: 10px;
  border-radius: 10px;
  -moz-box-shadow: 1px 1px 3px #000;
  -webkit-box-shadow: 1px 1px 3px #000;
  box-shadow: 1px 1px 3px #000;
  opacity: 0.7;
  filter: progid:DXImageTransform.Microsoft.Alpha(opacity=70);
}

.im_next, .im_prev {
  width: 50px;
  height: 50px;
  position: fixed;
  bottom: 50%;
  margin-top: -25px;
  cursor: pointer;
  opacity: 0.7;
  z-index: 1000;
  -moz-box-shadow: 0px 0px 3px #000;
  -webkit-box-shadow: 0px 0px 3px #000;
  box-shadow: 0px 0px 3px #000;
  -moz-border-radius: 2px;
  -webkit-border-radius: 2px;
  border-radius: 2px;
  filter: progid:DXImageTransform.Microsoft.Alpha(opacity=70);
}

.im_comment {
  width: 20em;
  height: 4.5em;
  position: absolute;
  z-index: 11;
  top: 50%;
  left: 50%;
  margin-left: -10em;
  margin-top: -2.25em;
}
.im_comment #comment_cube {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
}
.im_comment #comment_cube div {
  width: 100%;
  height: 100%;
  display: none;
  position: absolute;
  background: white;
  border: 1px solid #000000;
  -webkit-box-shadow: 1px 1px 3px #000;
  box-shadow: 1px 1px 3px #000;
  border-radius: 1em;
}
.im_comment #comment_cube div .text-centerer {
  display: table;
}
.im_comment #comment_cube div .text-centerer .image-comment {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
  font-size: 1.3em;
}
.im_comment #comment_cube .front {
  transform: rotateY(0deg) translateZ(2.25em);
}
.im_comment #comment_cube .top {
  transform: rotateX(90deg) translateZ(2.25em);
}
.im_comment #comment_cube .back {
  transform: rotateX(180deg) translateZ(2.25em);
}
.im_comment #comment_cube .bottom {
  transform: rotateX(-90deg) translateZ(2.25em);
}

.im_next:hover, .im_prev:hover {
  opacity: 0.9;
}

.im_next {
  background: #fff url("../images/next.png") no-repeat center center;
  right: -50px;
  /*10 to show*/
}

.im_prev {
  background: #fff url("../images/prev.png") no-repeat center center;
  left: -50px;
  /*10 to show*/
}

#pages {
  position: absolute;
  height: 3em;
  overflow: hidden;
  margin: 0 auto;
  left: 0;
  right: 0;
  z-index: 11;
  bottom: .25em;
  max-width: 100%;
}
#pages div {
  width: 2em;
  height: 2em;
  border-radius: 50%;
  background: #ffffff;
  display: table;
  float: left;
  margin-top: 0.5em;
  margin-left: .25em;
  margin-right: .25em;
  -moz-box-shadow: inset 0px 0px 1px 1px rgba(0, 0, 0, 0.75);
  -webkit-box-shadow: inset 0px 0px 1px 1px rgba(0, 0, 0, 0.75);
  box-shadow: inset 0px 0px 1px 1px rgba(0, 0, 0, 0.75);
  transition: box-shadow .5s;
}
#pages div a {
  width: 100%;
  height: 100%;
  font-size: 1.5em;
  display: table-cell;
  vertical-align: middle;
  text-align: center;
  font-family: 'Kaushan Script', cursive;
  color: #000;
}
#pages div a:visited {
  color: #000;
}
#pages div.more-pages a {
  font-family: cursive !important;
}
#pages div:hover {
  -moz-box-shadow: inset 0px 0px 10px 4px rgba(210, 95, 210, 0.75);
  -webkit-box-shadow: inset 0px 0px 10px 4px rgba(210, 95, 210, 0.75);
  box-shadow: inset 0px 0px 10px 4px rgba(210, 95, 210, 0.75);
}
#pages div.current-page {
  -moz-box-shadow: 0px 0px 10px 4px rgba(210, 95, 210, 0.75);
  -webkit-box-shadow: 0px 0px 10px 4px rgba(210, 95, 210, 0.75);
  box-shadow: 0px 0px 10px 4px rgba(210, 95, 210, 0.75);
  font-weight: 700;
  margin-left: .5em;
  margin-right: .5em;
}
#pages div.current-page a {
  color: #6C006C;
}
#pages div.current-page:hover a {
  color: #000;
}

.hr-spacer {
  position: absolute;
  width: 90%;
  height: 5em;
  margin-top: -2.5em;
  margin-left: -45%;
  top: 50%;
  left: 50%;
  z-index: 0;
}

footer {
  display: none !important;
}

#add-image-panel {
  width: 14.5em;
  height: 4em;
  background: rgba(255, 255, 255, 0.9);
  position: fixed;
  right: 5%;
  bottom: 0;
  z-index: 10;
  border-radius: 1em 1em 0 0;
  border-left: 1px solid #000;
  border-top: 1px solid #000;
  border-right: 1px solid #000;
  -webkit-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.75);
  box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.75);
  overflow: hidden;
}
#add-image-panel form {
  margin: .5em;
}
#add-image-panel form input[type="submit"] {
  display: block;
  margin: .5em auto 0;
}

#add-image-panel.minimized {
  cursor: pointer;
}

#add-image-panel.minimized:hover {
  -webkit-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.75);
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.75);
}

@media screen and (max-width: 1050px) {
  #im_wrapper div {
    width: 6em;
    height: 5.4em;
    background-size: 36em 21.6em !important;
  }

  #im_wrapper div img {
    width: 5.4em;
    height: 4.86em;
    margin: 0.3em 0 0 0.27em;
  }

  #im_comment {
    width: 18em;
    height: 2.7em;
    margin-left: -9em;
    margin-top: -1.35em;
  }
  #im_comment #comment_cube div .text-centerer .image-comment {
    font-size: 1.1em;
  }
}
@media screen and (max-width: 480px) {
  #im_wrapper div {
    width: 4em;
    height: 3.6em;
    background-size: 24em 14.4em !important;
  }

  #im_wrapper div img {
    width: 3.6em;
    height: 3.24em;
    margin: 0.2em 0 0 0.18em;
  }

  #im_comment {
    width: 20em;
    height: 3.6em;
    margin-left: -10em;
    margin-top: -1.8em;
  }
  #im_comment #comment_cube div .text-centerer .image-comment {
    font-size: 1em;
  }

  #pages {
    bottom: .1em;
  }
  #pages ol li {
    font-size: 1.3em;
    width: 1.5em;
    height: 1.5em;
  }
}
/* Every thumbnail have to have different background offset */
#im_wrapper div:nth-child(1) {
  background-position: -0em -0em;
}

#im_wrapper div:nth-child(2) {
  background-position: -10em -0em;
}

#im_wrapper div:nth-child(3) {
  background-position: -20em -0em;
}

#im_wrapper div:nth-child(4) {
  background-position: -30em -0em;
}

#im_wrapper div:nth-child(5) {
  background-position: -40em -0em;
}

#im_wrapper div:nth-child(6) {
  background-position: -50em -0em;
}

#im_wrapper div:nth-child(7) {
  background-position: -0em -9em;
}

#im_wrapper div:nth-child(8) {
  background-position: -10em -9em;
}

#im_wrapper div:nth-child(9) {
  background-position: -20em -9em;
}

#im_wrapper div:nth-child(10) {
  background-position: -30em -9em;
}

#im_wrapper div:nth-child(11) {
  background-position: -40em -9em;
}

#im_wrapper div:nth-child(12) {
  background-position: -50em -9em;
}

#im_wrapper div:nth-child(13) {
  background-position: -0em -18em;
}

#im_wrapper div:nth-child(14) {
  background-position: -10em -18em;
}

#im_wrapper div:nth-child(15) {
  background-position: -20em -18em;
}

#im_wrapper div:nth-child(16) {
  background-position: -30em -18em;
}

#im_wrapper div:nth-child(17) {
  background-position: -40em -18em;
}

#im_wrapper div:nth-child(18) {
  background-position: -50em -18em;
}

#im_wrapper div:nth-child(19) {
  background-position: -0em -27em;
}

#im_wrapper div:nth-child(20) {
  background-position: -10em -27em;
}

#im_wrapper div:nth-child(21) {
  background-position: -20em -27em;
}

#im_wrapper div:nth-child(22) {
  background-position: -30em -27em;
}

#im_wrapper div:nth-child(23) {
  background-position: -40em -27em;
}

#im_wrapper div:nth-child(24) {
  background-position: -50em -27em;
}

@media screen and (max-width: 1050px) {
  #im_wrapper div:nth-child(1) {
    background-position: -0em -0em;
  }

  #im_wrapper div:nth-child(2) {
    background-position: -6em -0em;
  }

  #im_wrapper div:nth-child(3) {
    background-position: -12em -0em;
  }

  #im_wrapper div:nth-child(4) {
    background-position: -18em -0em;
  }

  #im_wrapper div:nth-child(5) {
    background-position: -24em -0em;
  }

  #im_wrapper div:nth-child(6) {
    background-position: -30em -0em;
  }

  #im_wrapper div:nth-child(7) {
    background-position: -0em -5.4em;
  }

  #im_wrapper div:nth-child(8) {
    background-position: -6em -5.4em;
  }

  #im_wrapper div:nth-child(9) {
    background-position: -12em -5.4em;
  }

  #im_wrapper div:nth-child(10) {
    background-position: -18em -5.4em;
  }

  #im_wrapper div:nth-child(11) {
    background-position: -24em -5.4em;
  }

  #im_wrapper div:nth-child(12) {
    background-position: -30em -5.4em;
  }

  #im_wrapper div:nth-child(13) {
    background-position: -0em -10.8em;
  }

  #im_wrapper div:nth-child(14) {
    background-position: -6em -10.8em;
  }

  #im_wrapper div:nth-child(15) {
    background-position: -12em -10.8em;
  }

  #im_wrapper div:nth-child(16) {
    background-position: -18em -10.8em;
  }

  #im_wrapper div:nth-child(17) {
    background-position: -24em -10.8em;
  }

  #im_wrapper div:nth-child(18) {
    background-position: -30em -10.8em;
  }

  #im_wrapper div:nth-child(19) {
    background-position: -0em -16.2em;
  }

  #im_wrapper div:nth-child(20) {
    background-position: -6em -16.2em;
  }

  #im_wrapper div:nth-child(21) {
    background-position: -12em -16.2em;
  }

  #im_wrapper div:nth-child(22) {
    background-position: -18em -16.2em;
  }

  #im_wrapper div:nth-child(23) {
    background-position: -24em -16.2em;
  }

  #im_wrapper div:nth-child(24) {
    background-position: -30em -16.2em;
  }
}
@media screen and (max-width: 480px) {
  #im_wrapper div:nth-child(1) {
    background-position: -0em -0em;
  }

  #im_wrapper div:nth-child(2) {
    background-position: -4em -0em;
  }

  #im_wrapper div:nth-child(3) {
    background-position: -8em -0em;
  }

  #im_wrapper div:nth-child(4) {
    background-position: -12em -0em;
  }

  #im_wrapper div:nth-child(5) {
    background-position: -16em -0em;
  }

  #im_wrapper div:nth-child(6) {
    background-position: -20em -0em;
  }

  #im_wrapper div:nth-child(7) {
    background-position: -0em -3.6em;
  }

  #im_wrapper div:nth-child(8) {
    background-position: -4em -3.6em;
  }

  #im_wrapper div:nth-child(9) {
    background-position: -8em -3.6em;
  }

  #im_wrapper div:nth-child(10) {
    background-position: -12em -3.6em;
  }

  #im_wrapper div:nth-child(11) {
    background-position: -16em -3.6em;
  }

  #im_wrapper div:nth-child(12) {
    background-position: -20em -3.6em;
  }

  #im_wrapper div:nth-child(13) {
    background-position: -0em -7.2em;
  }

  #im_wrapper div:nth-child(14) {
    background-position: -4em -7.2em;
  }

  #im_wrapper div:nth-child(15) {
    background-position: -8em -7.2em;
  }

  #im_wrapper div:nth-child(16) {
    background-position: -12em -7.2em;
  }

  #im_wrapper div:nth-child(17) {
    background-position: -16em -7.2em;
  }

  #im_wrapper div:nth-child(18) {
    background-position: -20em -7.2em;
  }

  #im_wrapper div:nth-child(19) {
    background-position: -0em -10.8em;
  }

  #im_wrapper div:nth-child(20) {
    background-position: -4em -10.8em;
  }

  #im_wrapper div:nth-child(21) {
    background-position: -8em -10.8em;
  }

  #im_wrapper div:nth-child(22) {
    background-position: -12em -10.8em;
  }

  #im_wrapper div:nth-child(23) {
    background-position: -16em -10.8em;
  }

  #im_wrapper div:nth-child(24) {
    background-position: -20em -10.8em;
  }
}

/*# sourceMappingURL=gallery.css.map */
