html{height:100%}

/* Glisse: Hide elements by default */
#glisse-overlay, #glisse-close, #glisse-controls,#glisse-spinner{opacity:0;}

/* Glisse: Overlay */
#glisse-overlay {
    position:fixed;
    top:0;
    bottom:0;
    left:0;
    right:0;
    background-color:rgba(0,0,0,.75);
    z-index: 10000;
}
    #glisse-overlay.loading #glisse-spinner {opacity:1;} /* Display spinner */
    
/* Glisse: Overlay content */   
/* Glisse: Overlay content */
#glisse-overlay-content {
    position: fixed;
    z-index: 10001;
    top: 2%;
    right: 2%;
    bottom: 10%;
    left: 2%;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    opacity: 0;
    -moz-background-size:       contain;
    -webkit-background-size:    contain;
    -o-background-size:         contain;
    background-size:            contain;
    -webkit-backface-visibility:hidden;
    backface-visibility:        hidden;
}
    /* Hide images */
    #glisse-overlay-content img{display:none;}

    /* Shake effect */
    #glisse-overlay-content.shake {
        -webkit-animation: shake 600ms 1;
        -moz-animation:    shake 600ms 1;
        -ms-animation:     shake 600ms 1;
        -o-animation:      shake 600ms 1;
        animation:         shake 600ms 1;
    }

/* Glisse: Close button */
#glisse-close { cursor:pointer; }

/* Glisse: Spinner */
#glisse-spinner {
    position:fixed;
    top: 50%;
    left: 50%;
    margin: -40px 0 0 -40px;
    height: 80px;
    width: 80px;
    background:rgba(0,0,0,.6) url(/images/loader.gif) center center no-repeat;
    border-radius:6px;
}

/* Glisse: Controls bar */
/* Wrapper */
#glisse-controls {}
    
    /* Prev/Next button */
    .glisse-next a, .glisse-prev a{
        -webkit-transition:all 100ms ease;
        -moz-transition:all 100ms ease;
        -o-transition:all 100ms ease;
        -ms-transition:all 100ms ease;
        transition:all 100ms ease;
        -webkit-user-select:none;
        -moz-user-select:none;
        user-select:none;
    }
    #glisse-controls .ended a {opacity:.3;cursor:default;} /* disabled effect */

/* Glisse: Keyframes */
@-webkit-keyframes shake {
    0%, 100% {-webkit-transform: translateX(0);}
    10%, 30%, 50%, 70%, 90% {-webkit-transform: translateX(-10px);}
    20%, 40%, 60%, 80% {-webkit-transform: translateX(10px);}
}

@-moz-keyframes shake {
    0%, 100% {-moz-transform: translateX(0);}
    10%, 30%, 50%, 70%, 90% {-moz-transform: translateX(-10px);}
    20%, 40%, 60%, 80% {-moz-transform: translateX(10px);}
}

@-ms-keyframes shake {
    0%, 100% {-ms-transform: translateX(0);}
    10%, 30%, 50%, 70%, 90% {-ms-transform: translateX(-10px);}
    20%, 40%, 60%, 80% {-ms-transform: translateX(10px);}
}

@-o-keyframes shake {
    0%, 100% {-o-transform: translateX(0);}
    10%, 30%, 50%, 70%, 90% {-o-transform: translateX(-10px);}
    20%, 40%, 60%, 80% {-o-transform: translateX(10px);}
}

@keyframes shake {
    0%, 100% {transform: translateX(0);}
    10%, 30%, 50%, 70%, 90% {transform: translateX(-10px);}
    20%, 40%, 60%, 80% {transform: translateX(10px);}
}

//* gallery content */
#content {
  margin: 0;
  padding: 0 0 40px 0;
  text-align: center; }
#content h4{
    margin: 0 0 55px;
    background: #fff;
}
#content .gallery img {
  display: block;
  border: 1px solid transparent;
  -moz-transition: all 0.025s ease;
  -webkit-transition: all 0.025s ease;
  -o-transition: all 0.025s ease;
  transition: all 0.025s ease;}

#content .gallery li {
  display: inline-block;
  padding: 6px;
  margin: 10px;
  cursor: pointer;
  -moz-border-radius: 2px;
  -webkit-border-radius: 2px;
  -o-border-radius: 2px;
  -ms-border-radius: 2px;
  -khtml-border-radius: 2px;
  border-radius: 2px;
  -moz-transition: all 0.025s ease;
  -webkit-transition: all 0.025s ease;
  -o-transition: all 0.025s ease;
  transition: all 0.025s ease;
  list-style: none;
}

#content .gallery li:hover {
  background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #62b5ee), color-stop(100%, #0690e5));
  background-image: -webkit-linear-gradient(#62b5ee, #0690e5);
  background-image: -moz-linear-gradient(#62b5ee, #0690e5);
  background-image: -o-linear-gradient(#62b5ee, #0690e5);
  background-image: -ms-linear-gradient(#62b5ee, #0690e5);
  background-image: linear-gradient(#62b5ee, #0690e5);
  -moz-box-shadow: 0 0 0 1px #0873b9, inset 0 1px 0 #8bc8f2, 0 1px 5px rgba(0, 0, 0, 0.6);
  -webkit-box-shadow: 0 0 0 1px #0873b9, inset 0 1px 0 #8bc8f2, 0 1px 5px rgba(0, 0, 0, 0.6);
  -o-box-shadow: 0 0 0 1px #0873b9, inset 0 1px 0 #8bc8f2, 0 1px 5px rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 0 1px #0873b9, inset 0 1px 0 #8bc8f2, 0 1px 5px rgba(0, 0, 0, 0.6); }

#content .gallery li:hover img {
  border: 1px solid #0174bd; }

#glisse-close {
  display: none; }

#glisse-controls {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 -1px 0 #333333;
  background: #21A73F;;
  -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 3px rgba(0, 0, 0, 0.7);
  -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 3px rgba(0, 0, 0, 0.7);
  -o-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 3px rgba(0, 0, 0, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 3px rgba(0, 0, 0, 0.7);
  z-index: 10001;
  }

.glisse-next a, .glisse-prev a {
  position: absolute;
  display: block;
  left: 0;
  height: 39px;
  width: 39px;
  line-height: 40px;
  color: #fff;
  font-weight: bold;
  font-size: 24px;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 -1px 0 black; }

.glisse-next a:active, .glisse-prev a:active {
  text-shadow: 0 0 30px white, 0 0 10px white; }

.glisse-prev a {}

.glisse-next a {
  left: auto;
  right: 0;}

.glisse-legend {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 40px;
  right: 40px;
  text-align: center;
  line-height: 40px; }
  
.stack {
  display: inline-block;
  width: 100%;
  height: 160px;
  position: relative;
  margin: 0 0 40px 0;
  padding: 0;
  z-index: 0;
  list-style: none;
  }
  .stack:before {
    content: attr(data-count);
    display: block;
    position: absolute;
    top: 14px;
    left: 10px;
    font-size: 16px;
    font-weight: bold;
    z-index: 10;
    padding: 0 4px 0 32px;
    color: #FFF;
    pointer-events: none;
    opacity: .7; }
  .stack:after {
    content: "\f030";
    font-family: FontAwesome;
    display: block;
    position: absolute;
    top: 14px;
    left: 16px;
    font-size: 16px;
    z-index: 10;
    padding: 0;
    color: #FFF;
    pointer-events: none;
    opacity: .6; }
  .stack li {
    position: absolute;
    top: 8px;
    left: 8px;
    cursor: pointer;
    z-index: 1;
    -moz-transition: all 160ms ease-in;
    -webkit-transition: all 160ms ease-in;
    -o-transition: all 160ms ease-in;
    transition: all 160ms ease-in; }
    .stack li:first-child {
      z-index: 2; }
  .stack li:nth-child(2) {
    -moz-transform: rotate(5deg);
    -webkit-transform: rotate(5deg);
    -o-transform: rotate(5deg);
    -ms-transform: rotate(5deg);
    transform: rotate(5deg); }
  .stack li:nth-child(3) {
    -moz-transform: rotate(-5deg);
    -webkit-transform: rotate(-5deg);
    -o-transform: rotate(-5deg);
    -ms-transform: rotate(-5deg);
    transform: rotate(-5deg); }
  .stack img {
    display: block;
    width: 100%;
    height: 100%;
    border: 4px solid white;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    -o-border-radius: 4px;
    -ms-border-radius: 4px;
    -khtml-border-radius: 4px;
    border-radius: 4px;
    -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.51);
    -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.51);
    -o-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.51);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.51);
    -moz-transition: opacity 160ms ease;
    -webkit-transition: opacity 160ms ease;
    -o-transition: opacity 160ms ease;
    transition: opacity 160ms ease; }
  .stack:hover li:nth-child(2) {
    -moz-transform: rotate(7deg) translate(-6px, -3px);
    -webkit-transform: rotate(7deg) translate(-6px, -3px);
    -o-transform: rotate(7deg) translate(-6px, -3px);
    -ms-transform: rotate(7deg) translate(-6px, -3px);
    transform: rotate(7deg) translate(-6px, -3px); }
  .stack:hover li:nth-child(3) {
    -moz-transform: rotate(-5deg) translate(10px, 10px);
    -webkit-transform: rotate(-5deg) translate(10px, 10px);
    -o-transform: rotate(-5deg) translate(10px, 10px);
    -ms-transform: rotate(-5deg) translate(10px, 10px);
    transform: rotate(-5deg) translate(10px, 10px); }
  .stack:hover li:nth-child(4) {
    -moz-transform: rotate(-4deg) translate(-16px, -2px);
    -webkit-transform: rotate(-4deg) translate(-16px, -2px);
    -o-transform: rotate(-4deg) translate(-16px, -2px);
    -ms-transform: rotate(-4deg) translate(-16px, -2px);
    transform: rotate(-4deg) translate(-16px, -2px); }

.stack:last-of-type {
  margin-right: 0; }

/* Tab */
.tabbar {
  height: 40px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 40px;
  padding: 0 40px;
  color: white;
  -moz-box-shadow: inset 0 0 1px rgba(255, 255, 255, 0.05);
  -webkit-box-shadow: inset 0 0 1px rgba(255, 255, 255, 0.05);
  -o-box-shadow: inset 0 0 1px rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 1px rgba(255, 255, 255, 0.05);
  background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #222222), color-stop(100%, #111111));
  background-image: -webkit-linear-gradient(#222222, #111111);
  background-image: -moz-linear-gradient(#222222, #111111);
  background-image: -o-linear-gradient(#222222, #111111);
  background-image: -ms-linear-gradient(#222222, #111111);
  background-image: linear-gradient(#222222, #111111); }
  .tabbar p {
    float: left;
    margin-right: 10px; }



@media screen and (max-width: 640px) {
  .stack {
    margin: 0 auto 30px;
    display: block; }

  .stack:last-of-type {
    margin-right: auto; } }