/*!

	HesGallery v1.4.11

	Copyright (c) 2018-2019 Artur Medrygal <medrygal.artur@gmail.com>

	Product under MIT licence

*/

    .jg-animate-opacity{
      animation:opac 1.5s}@keyframes opac{from{opacity:0} to{opacity:1};
      -webkit-animation:opac 1.5s}@-webkit-keyframes opac{from{opacity:0} to{opacity:1};
    }
    .jg-animate-zoom {
      animation:animatezoom 1.5s}@keyframes animatezoom{from{transform:scale(0)} to{transform:scale(1)};
      -webkit-animation:animatezoom 1.5s}@-webkit-keyframes animatezoom{from{transform:scale(0)} to{transform:scale(1)};
    }
    
    .jg-animate-opacity2{
      animation:opac 2.0s}@keyframes opac{from{opacity:0} to{opacity:1};
      -webkit-animation:opac 2.0s}@-webkit-keyframes opac{from{opacity:0} to{opacity:1};
    }
    .jg-animate-zoom2 {
      animation:animatezoom 2.0s}@keyframes animatezoom{from{transform:scale(0)} to{transform:scale(1)};
      -webkit-animation:animatezoom 2.0s}@-webkit-keyframes animatezoom{from{transform:scale(0)} to{transform:scale(1)};
    }
    
    .jg-animate-opacity3{
      animation:opac 2.5s}@keyframes opac{from{opacity:0} to{opacity:1};
      -webkit-animation:opac 2.5s}@-webkit-keyframes opac{from{opacity:0} to{opacity:1};
    }
    .jg-animate-zoom3 {
      animation:animatezoom 2.5s}@keyframes animatezoom{from{transform:scale(0)} to{transform:scale(1)};
      -webkit-animation:animatezoom 2.5s}@-webkit-keyframes animatezoom{from{transform:scale(0)} to{transform:scale(1)};
    }
    
    .hg-transition2 {
      transform: none;
      -webkit-transform: none;
      animation:opac 2.5s}@keyframes opac{from{opacity:0} to{opacity:1};
      -webkit-animation:opac 2.5s}@-webkit-keyframes opac{from{opacity:0} to{opacity:1};
    }

#hgallery {
  display: block;
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  visibility: hidden;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  opacity: 0;
  -webkit-transition: 0.3s;
  transition: 0.3s;
  z-index: 99999;
}

.hg-disable-scrolling {
  overflow: hidden !important;
}

#hg-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1;
}

#hg-bg::after {
  content: '';
  position: absolute;
  display: block;
  top: 10px;
  right: 10px;
  width: 60px;
  height: 60px;
  /*background-image: url('button_close.png');*/
  background-position: center;
  background-size: contain;
  cursor: pointer;
  /*opacity: 0.8;*/
  z-index: 12;
}

#hg-bg::after:hover {
  background-color: white;
}

#hgallery.open {
  visibility: visible !important;
  opacity: 1;
}

#hg-pic-cont {
  /*max-width: calc(70% - 40px);*/
  max-width: calc(93% - 40px);
  max-height: 90vh;
  cursor: default;
  z-index: 12;
  position: relative;
  background-color: transparent;
  -webkit-transition: -webkit-transform 0.3s;
  transition: -webkit-transform 0.3s;
  transition: transform 0.3s;
  transition: transform 0.3s, -webkit-transform 0.3s;
  -webkit-transform: scale(1);
          transform: scale(1);
}

#hg-pic-cont.hg-transition {
  -webkit-transform: scale(0.1);
          transform: scale(0.1);
}

#hg-subtext {
  color: #ddd;
  font-size: 14px;
  position: absolute;
  display: block;
  left: 5px;
  top: calc(100% + 6px);
}

#hg-howmany {
/*
  padding: 0 5px 0 5px;
  color: #aaa;
  font-size: 14px;
   line-height: 14px;
  position: absolute;
  display: block;
  right: 5px;
  bottom: -20px;
  background-color: #000000;
  -webkit-border-radius:5px 5px 5px 5px;
  -moz-border-radius:5px 5px 5px 5px;
  border-radius:5px 5px 5px 5px;
*/  
  position: absolute;
  color: #aaa;
  background-color: #000000;
  bottom: 0;
  right: 0;
  margin: 12px;
  width: auto;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 20px;
  text-shadow: 0 1px 0 rgba(0,0,0,.4);
  display: block;
  overflow: hidden;
  white-space: nowrap;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-user-select: text;
  -khtml-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

#hg-pic {
  width: auto;
  height: auto;
  min-height: 100px;
  min-width: 100px;
  max-width: 100%;
  max-height: 90vh;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  display: block;
  cursor: default;
  -o-object-fit: contain;
     object-fit: contain;
  margin: 0;

  /*    border-radius: 5px;*/
}

#hg-pic:hover {
  -webkit-transform: none;
          transform: none;
  -webkit-box-shadow: none;
          box-shadow: none;
}

#hgallery button {
  position: absolute;
  display: block;
  margin: auto 0;
  width: 60px;
  height: 60px;
  z-index: 11;
  cursor: pointer;
  background-color: transparent;
  background-image: url('data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjZmZmZmZmIiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCiAgICA8cGF0aCBkPSJNOC41OSAxNi4zNGw0LjU4LTQuNTktNC41OC00LjU5TDEwIDUuNzVsNiA2LTYgNnoiLz4NCiAgICA8cGF0aCBkPSJNMC0uMjVoMjR2MjRIMHoiIGZpbGw9Im5vbmUiLz4NCjwvc3ZnPg==');
  background-size: contain;
  border: 0;
  outline: 0;
  opacity: 0;
  -webkit-transition: opacity 0.3s, visibility 0.3s;
  transition: opacity 0.3s, visibility 0.3s;
  visibility: hidden;
}

#hgallery.open button {
  visibility: visible;
  opacity: 0.5;
}

#hgallery button:hover {
  opacity: 1;
}

#hgallery button#hg-prev {
  left: 10px;
  -webkit-transform: rotate(180deg);
  transform: rotate(180deg);
}

#hgallery button#hg-prev:active {
  left: 7px;
}

#hgallery button#hg-next {
  right: 10px;
}

#hgallery button#hg-next:active {
  right: 7px;
}

#hgallery button#hg-close {
  right: 10px;
  position: absolute;
  display: block;
  top: 10px;
  right: 10px;
  width: 60px;
  height: 60px;
  background-image: url('button_close.png');
  background-position: center;
  background-size: contain;
  cursor: pointer;
  /*opacity: 0.8;*/
  z-index: 1000;
}

#hgallery button#hg-close:active {
  right: 10px;
}

#hgallery #hg-prev-onpic,
#hgallery #hg-next-onpic {
  position: absolute;
  top: 0;
  left: 0;
  width: 34%;
  height: 100%;
  cursor: pointer;
}

#hgallery #hg-next-onpic {
  right: 0;
  left: auto;
  width: 66%;
}

.hg-unvisible {
  opacity: 0 !important;
  visibility: hidden;
}

@media (max-width: 1100px) {
  #hg-pic-cont {
    max-width: calc(100% - 40px);
  }
}
