/**
* @package com_mshanimagegallery
* @author U.G.T.N.K. Gamage http://www.webcommsglobal.com
* @copyright Copyright (c) 2010 - 2020 webcommsglobal
*/

.clearfix {
  *zoom: 1;
}
.clearfix:before,
.clearfix:after {
  display: table;
  content: "";
  line-height: 0;
}
.clearfix:after {
  clear: both;
}

.mshanimagegallery-gallery-wrapper {
  padding: 30px;
}

.gallery-image-row {
  margin: 0 -15px;
}

/*Album List*/
.mshanimagegallery-album {
  display: block;
}

.mshanimagegallery-album-description {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 20px;
}

.mshanimagegallery-album > a {
  display: block;
  position: relative;
  overflow: hidden;
}

.mshanimagegallery-album > a img {
  width: 100%;
}

.mshanimagegallery-album > a:after {
  position: absolute;
  height: 100%;
  width: 100%;
  content: "";
  bottom: 0;
  left: 0;
  transform: translateX(0px) rotateY(0deg);
  background: rgba(0, 0, 0, .6);
  opacity: 1;
  transition: .3s all linear;
  visibility: visible;

}

.mshanimagegallery-album-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 15px;
  z-index: 1;
}

.mshanimagegallery-album-info:after {
  position: absolute;
  height: 0;
  width: 100%;
  content: "";
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, .6);
  opacity: 1;
  transition: height 400ms;
  z-index: -1;
}

.mshanimagegallery-album-title {
  display: block;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, .9);
  text-decoration: none;
  font-weight: bold;
  margin: 0 0 5px;
  outline: 0;
  -webkit-transition: color 400ms;
  transition: color 400ms;
}

.mshanimagegallery-album-title:hover,
.mshanimagegallery-album-title:focus,
.mshanimagegallery-album-title:active {
  outline: 0;
  text-decoration: none;
}

.mshanimagegallery-album-meta {
  display: block;
  margin: -5px;
}

.mshanimagegallery-album-meta > span {
  display: block;
  float: left;
  margin: 5px;
  font-size: 13px;
  line-height: 1;
  font-weight: bold;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, .6);
  -webkit-transition: color 400ms;
  transition: color 400ms;
}

.mshanimagegallery-album-meta > span:hover,
.mshanimagegallery-album-meta > span:active,
.mshanimagegallery-album-meta > span:focus {
  outline: 0;
  text-decoration: none;
}

.mshanimagegallery-album:hover > a:after {
  opacity: 1;
  transform: perspective(500px) rotateY(-90deg);
  left: 0;
  visibility: visible;

}

.mshanimagegallery-album a:hover > .mshanimagegallery-album-info:after { 
  left: 0;
  height: 100%;
  bottom: 0;
}

.mshanimagegallery-album:hover .mshanimagegallery-album-title {
  color: #fff;
}

.mshanimagegallery-album:hover .mshanimagegallery-album-meta > span {
  color: rgba(255, 255, 255, .8);
}

/* Gallery */
.mshanimagegallery-gallery {
  display: block;
}
.mshanimagegallery-gallery-item {
  cursor: zoom-in;
  display: block;
}

.mshanimagegallery-gallery-item {
  cursor: url("../images/plus_sign1.png"), auto;
  display: block;
  position: relative;
}

.mshanimagegallery-gallery-item .img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden
}

.mshanimagegallery-gallery-item .img-overlay:after {
  position: absolute;
  height: 100%;
  width: 100%;
  content: "";
  top: 0;
  left: 0;
  transform: perspective(500px) rotateY(-90deg);
  background: rgba(0, 0, 0, .7);
  opacity: 0;
  transition: .4s all linear;
  visibility: hidden;
}

.mshanimagegallery-gallery-item img {
  width: 100%;
}

.mshanimagegallery-gallery-item:hover .img-overlay:after {
  opacity: 1;
  visibility: visible;
  transform: translateX(0px) rotateY(0deg);
  left: 0;

}

/*
.mshanimagegallery-gallery-item > div {
  position: relative;
}

.mshanimagegallery-gallery-item > div:after {
  content: " ";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  z-index: 1;
  background: -moz-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(0,0,0,.3) 100%);
  background: -webkit-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,.3) 100%);
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,.3) 100%);
  opacity: 0;
  -webkit-transition: opacity 400ms;
  transition: opacity 400ms;
}

.mshanimagegallery-gallery-item:hover > div:after {
  opacity: 1;
}

.mshanimagegallery-gallery-item-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  z-index: 2;
  opacity: 0;
  -webkit-transition: opacity 400ms;
  transition: opacity 400ms;
}

.mshanimagegallery-gallery-item:hover .mshanimagegallery-gallery-item-content {
  opacity: 1;
}
*/
.mshanimagegallery-gallery-item-title {
  display: block;
  color: #fff;
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.2;
  font-weight: bold;
  letter-spacing: 1px;
}

/*Modal*/
.mshanimagegallery-modal-open {
  overflow: hidden;
}

.mshanimagegallery-modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1033;
  background: rgba(0, 0, 0, 0.8);
  overflow: hidden;
  text-align: center;
  cursor: zoom-out;
}

.mshanimagegallery-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  background: #000;
  z-index: 1034;
  max-width: 100%;
  max-height: 100%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.mshanimagegallery-next,
.mshanimagegallery-prev {
  position: fixed;
  top: 0;
  width: 40px;
  height: 100%;
  opacity: 0;
  -webkit-transition: opacity 300ms;
  transition: opacity 300ms;
}
.mshanimagegallery-next {
  right: 0;
}

.mshanimagegallery-prev {
  left: 0;
}

.mshanimagegallery-modal-wrapper:hover .mshanimagegallery-next,
.mshanimagegallery-modal-wrapper:hover .mshanimagegallery-prev {
  opacity: 1;
}

.mshanimagegallery-next > span,
.mshanimagegallery-prev > span {
  display: block;
  position: relative;
  top: 50%;
  width: 16px;
  height: 16px;
  border-top: 5px solid #fff;
}

.mshanimagegallery-next > span {
  left: -3px;
  border-right: 5px solid #fff;
  transform: rotate(45deg) translateY(-50%);
  -webkit-transform: rotate(45deg) translateY(-50%);
}

.mshanimagegallery-prev > span {
  left: 22px;
  border-left: 5px solid #fff;
  transform: rotate(-45deg) translateY(-50%);
}

.mshanimagegallery-hidden,
.mshanimagegallery-close.mshanimagegallery-hidden {
  display: none;
}

.mshanimagegallery-close,
.mshanimagegallery-close:hover,
.mshanimagegallery-close:active,
.mshanimagegallery-close:focus {
  display: block;
  font-size: 30px;
  height: 36px;
  width: 36px;
  line-height: 36px;
  color: rgba(255, 255, 255, .8);
  font-weight: bold;
  text-align: center;
  position: absolute;
  top: -36px;
  right: -10px;
  text-decoration: none;
  outline: none;
  -webkit-transition: color 300ms;
  transition: color 300ms;
}

.mshanimagegallery-close:hover {
  color: #fff;
}

.mshanimagegallery-modal-close:hover,
.mshanimagegallery-modal-close:active,
.mshanimagegallery-modal-close:focus {
  color: #2384d3;
}

.mshanimagegallery-image-wrapper {
  position: relative;
}

.mshanimagegallery-modal-body {
  overflow: hidden;
}

.mshanimagegallery-image-content {
  position: absolute;
  z-index: 1;
  background: rgba(0, 0,0, .8);
  color: #fff;
  bottom: 0;
  left: 0;
  right: 0;
  font-size: 14px;
  line-height: 24px;
  padding: 10px;
  text-align: left;
  -webkit-animation: fadeInUp 300ms;
  animation: fadeInUp 300ms;
}

.mshanimagegallery-image-title {
  font-size: 16px;
  font-weight: bold;
  display: block;
}

.mshanimagegallery-gallery-stat {
  font-weight: bold;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  float: right;
}

.mshanimagegallery-gallery-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-left: -12px;
  margin-top: -12px;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  border: 0.25rem solid rgba(255, 255, 255, .2);
  border-top-color: #fff;
  -webkit-animation: spin 1s infinite linear;
  animation: spin 1s infinite linear;
}

.plr-0 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}


@-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;
  }
}

@-webkit-keyframes fadeInUp {
  from {
    opacity: 0;
    -webkit-transform: translate3d(0, 100%, 0);
    transform: translate3d(0, 100%, 0);
  }

  to {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    -webkit-transform: translate3d(0, 100%, 0);
    transform: translate3d(0, 100%, 0);
  }

  to {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }
}
