@import url('../animate.css');
#inner{
  min-height: inherit;
  height: initial;
}
#gallery{
  margin-top: 120px;
  margin-bottom: -5px;
}

#gallery .top{
    margin-left: 8%;
}


#gallery .top hgroup{
    color: rgb(162, 162, 162);
    margin: 0;
}

#gallery .top hgroup h1{
  margin: 0;
}

#gallery .white-separator{
  border-bottom: 5px solid rgb(87, 179, 105);
  width: 35px;
  padding-top: 45px;
  margin-bottom: 50px;
}

#gallery .albums {
    display: table;
    width: 100%;
}
#gallery .more-line {
    display: table;
    width: 100%;
    background-color: rgb(87, 179, 105);
    bottom: 0;
    height: 50px;
    text-align: center;
    color: white;
    font-size: 30px;
    padding-top: 6px;
    cursor: pointer;
    margin-top: -5px;
}
#gallery > .albums > .album-item {
	display: none ;
}
#gallery > .albums > .album-item.loaded {
	display: block;
	float:left;
}
#gallery .albums > .album-item {
    position: relative;
    margin-top: -5px;
    width: 25%;
    text-align: center;
    height: 260px;
    overflow: hidden;
}
#gallery .album-details .album-item {
	margin-top: inherit;
}

#gallery .albums > .album-item .item-content,
#gallery .albums > .album-item .item-content .float-content > *{
  display: none;
}
#gallery .albums > .album-item .item-content {
    position: absolute;
    color: white;
    background: rgba(87, 179, 105,.8);
    width: 101%;
    height: 100%;
    top: 0;
    bottom: 0;
    animation: fadeIn .5s ease-out;
    animation-fill-mode: forwards;
}


#gallery .albums > .album-item:hover .item-content{
    display: table;
}
#gallery .albums > .album-item:hover .item-content .float-content > *{
    display: block;
}
#gallery .albums > .album-item .item-content .float-content {
    display: table-cell;
    vertical-align: middle;
}

#gallery .albums .float-content .date {
    text-align: center;
    width: 100%;
    opacity: 0;
    animation: fadeInUp .5s linear;
    animation-delay: .5s;
    animation-fill-mode: forwards;
}

#gallery .albums .float-content .title {
    text-transform: uppercase;
    width: 100%;
    font-size: 18px;
    padding: 20px;
    opacity: 0;
    animation: fadeIn 0.7s ease-out;
    animation-delay: .5s;
    animation-fill-mode: forwards;
}

#gallery .albums .float-content .button {
    width: 100%;
    opacity: 0;
    animation: bounceIn 0.7s ease-out;
    animation-delay: .4s;
    animation-fill-mode: forwards
}

#gallery .albums .float-content .button button {
    margin: auto;
    text-transform: uppercase;
    border: 2px white solid;
    transition: 1s background-color;
}
#gallery .albums .float-content .button button:hover {
    background-color: white;
    color: black;
}
#gallery .albums .float-content .info {
    padding: 20px 0px;
    opacity: 0;
    animation: fadeIn 0.7s ease-out;
    animation-delay: .4s;
    animation-fill-mode: forwards;
}

#gallery .albums .float-content .info > i {
    font-size: 20px;
    padding: 0px 5px;
}
#gallery .albums > .album-item .preview {
    position: relative;
    height: 100%;
    overflow: hidden;
}
/*
#gallery .albums > .album-item .preview > img {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: table;
}
*/
/* Albums description */
#gallery .album-details {
    display: none;
    width: 100%
}
#gallery .album-details.active {
    display: table;
}
#gallery .album-details article{
  text-align: center;
}
#gallery .album-details article > .title {
    font-size: 45px;
    padding: 0px 5%;
    opacity: 0;
    animation: fadeIn 0.7s ease-out;
    animation-delay: .4s;
    animation-fill-mode: forwards;
}

#gallery .album-details article > .details {
    padding: 0px 5%;
    padding-bottom: 35px;
    opacity: 0;
    animation: fadeIn 0.7s ease-out;
    animation-delay: .7s;
    animation-fill-mode: forwards;
}
#gallery .album-details .close {
    opacity: 1;
    animation: bounceIn 0.7s ease-out;
    animation-delay: .7s;
    animation-fill-mode:backwards;
    width: 100%;
    text-align: center;
    padding-bottom: 20px;
}

#gallery .album-details .close .glyphicon{
  color: rgb(87, 179, 105);
  font-size: 40px;
}

#gallery .album-details.load .album-item {
    opacity: 0;
    animation: fadeIn 0.2s ease-out;
    animation-fill-mode: forwards;
}
#gallery .album-details .album-item a{
	display: block !important;
}

#gallery .album-details .gallery .album-item {
    display: inline-block;
		opacity: 0;
    width: 33%;
    overflow: hidden;
    float: left;
}
#gallery .album-details .gallery .album-item img{
  opacity: .7;
	transition: 1s opacity;
}
#gallery .album-details .gallery .album-item img:hover {
  opacity: 1;
  cursor: pointer;
}
#gallery .album-details > *{
  display: none;
}
#gallery .album-details.active > *{
  display: block;
}

/* Album details out*/
#gallery .album-details.active-out article > .title {
    animation: fadeOut 0.4s ease-out;
    animation-delay: .2s;
    animation-fill-mode: both;
}

#gallery .album-details.active-out article > .details {
    animation: fadeOut 0.5s ease-out;
    animation-delay: .7s;
    animation-fill-mode: both;
}
#gallery .album-details.active-out .close {
    animation: bounceOut 0.7s ease-out;
    animation-delay: .7s;
    animation-fill-mode: both;
}

#gallery .album-details .album-item.load {
	  animation: fadeIn 0.7s ease-out;
		animation-delay: 1s;
    animation-fill-mode:forwards;
}
#gallery .album-details.active-out .album-item {
    animation: fadeOut 0.7s ease-out;
    animation-delay: 1s;
    animation-fill-mode: both;
}

/* Loading */
#gallery .albums.loading{
    animation: fadeOut 0.2s ease-out;
    animation-delay: 1.5s;
    animation-fill-mode: forwards;
}
#gallery .albums > .album-item.loading .item-content{
	display: table;
}
#gallery .albums > .album-item.loading .item-content .float-content > *{
	display: block;
}
#gallery .albums > .album-item .uil-spin-css {
  display: none !important;
}
#gallery .albums > .album-item.loading .uil-spin-css {
    display: table !important;
    background: none;
    position: absolute;
    opacity: 0;
    left: 0;
    right: 0;
    bottom: 5px;
    width: 64px;
    margin: auto;
    transform: translateX(-25%) scale(0.2) !important;
    height: 64px;
    animation: fadeIn 1s linear;
    animation-fill-mode: forwards;
}
#gallery .albums > .album-item.loading .title{
    animation: fadeOutLeft 0.7s ease-out;
    animation-delay: .4s;
    animation-fill-mode: backwards;
}
#gallery .albums > .album-item.loading .date,
#gallery .albums > .album-item.loading .button{
    animation: fadeOutLeft 0.4s ease-out;
    animation-delay: .7s;
    animation-fill-mode: backwards;
}
#gallery .albums > .album-item.loading .info,
#gallery .albums > .album-item.loading .loading-pulse{
	display: block !important;
    animation: fadeOut 0.4s ease-out;
    animation-delay: 1s;
    animation-fill-mode: backwards;
}

/* Loader spin */
@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}
@keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}
@-webkit-keyframes pulse {
  50% {
    background: white;
  }
}
@keyframes pulse {
  50% {
    background: white;
  }
}

.loading-pulse {
  position: relative;
	display: none !important;
	margin: auto;
  width: 6px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
  -webkit-animation: pulse 750ms infinite;
          animation: pulse 750ms infinite;
  -webkit-animation-delay: 250ms;
          animation-delay: 250ms;
}
.loading-pulse:before, .loading-pulse:after {
  content: '';
  position: absolute;
  display: block;
  height: 16px;
  width: 6px;
  background: rgba(255, 255, 255, 0.2);
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  -webkit-animation: pulse 750ms infinite;
          animation: pulse 750ms infinite;
}
.loading-pulse:before {
  left: -12px;
}
.loading-pulse:after {
  left: 12px;
  -webkit-animation-delay: 500ms;
          animation-delay: 500ms;
}

@media screen and (max-width: 1150px){
  #gallery .top hgroup h1{
    text-align: center;
  }
  #gallery .white-separator{
    margin: 0 auto;
    margin-bottom: 50px;
  }
}


@media screen and (max-width: 992px){
  #gallery > .albums > .album-item.loaded{
    width: 50%;
  }
}

@media screen and (max-width: 600px){
  #gallery > .albums > .album-item.loaded{
    width: 100%;
  }
  
  #gallery .album-details .album-item.load{
    width: 50%;
  }
  
}

