/***********************************************************************************
* Gallery
***********************************************************************************/
#gallery-images-navigate-left,
#gallery-images-navigate-right {
  z-index: 500;
  font-size: 5em;
  color: #fff;
}

#preview-close {
  cursor: pointer;
  display: inline;
  vertical-align: middle;
  padding: 1em;
}
#preview-close img {
  max-width: 25px;
}

#preview-img-count, #preview-title {
  color:#FFF;
  font-weight: 800;
}

#gallery-preview-wrapper {
  display: none;
  position: fixed;
  top: 0; bottom: 0;
  left: 0; right: 0;
  z-index: 1000;
}

.close-icon {
  width: 12%;
  display: inline-block;
}

.anim-trans, body {
  -webkit-transition: left 300ms ease-in-out, top 300ms ease-in-out, opacity 300ms ease-in-out, transform 300ms ease-in-out; 
  -moz-transition: left 300ms ease-in-out, top 300ms ease-in-out, opacity 300ms ease-in-out, transform 300ms ease-in-out; 
  -ms-transition: left 300ms ease-in-out, top 300ms ease-in-out, opacity 300ms ease-in-out, transform 300ms ease-in-out; 
  -o-transition: left 300ms ease-in-out, top 300ms ease-in-out, opacity 300ms ease-in-out, transform 300ms ease-in-out; 
  transition: left 300ms ease-in-out, top 300ms ease-in-out, opacity 300ms ease-in-out, transform 300ms ease-in-out; 
}

.anim-trans-arrows {
  -webkit-transition: left 300ms ease-in-out, top 300ms ease-in-out, opacity 300ms ease-in-out, box-shadow 300ms ease-in-out; 
  -moz-transition: left 300ms ease-in-out, top 300ms ease-in-out, opacity 300ms ease-in-out, box-shadow 300ms ease-in-out; 
  -ms-transition: left 300ms ease-in-out, top 300ms ease-in-out, opacity 300ms ease-in-out, box-shadow 300ms ease-in-out; 
  -o-transition: left 300ms ease-in-out, top 300ms ease-in-out, opacity 300ms ease-in-out, box-shadow 300ms ease-in-out; 
  transition: left 300ms ease-in-out, top 300ms ease-in-out, opacity 300ms ease-in-out, box-shadow 300ms ease-in-out; 
}

#img-wrapper, #big-gallery-image #img-wrapper > img,
#img-wrapper, #big-gallery-image #img-wrapper > video {
  -webkit-transition: all 300ms ease-in-out; 
  -moz-transition: all 300ms ease-in-out; 
  -ms-transition: all 300ms ease-in-out; 
  -o-transition: all 300ms ease-in-out; 
  transition: all 300ms ease-in-out; 
}

.toTopLeft {
  top: -25px;
  left: -50px;
}

.toZero {
  top: 0;
  left: 0;
}

.hide {
  opacity: 0;
}

.show {
  opacity: 1;
}

.gallery-thumb-title {
  position: absolute;
  top: 0;
  left: 0; right: 0;
  padding: 0.5em;
  background: rgba(0,0,0,0.65);
  border-bottom: rgba(255,57,44,1) 5px solid;
}

.gallery-thumb-photographer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5em;
  font-size: 0.8em;
  margin: 0;
  background: rgba(0,0,0,0.65);
}


.trans-left {
  -webkit-transform: translateX(-100vw);
  -moz-transform: translateX(-100vw);
  -ms-transform: translateX(-100vw);
  -o-transform: translateX(-100vw);
  transform: translateX(-100vw);
}

.trans-right {
  -webkit-transform: translateX(100vw);
  -moz-transform: translateX(100vw);
  -ms-transform: translateX(100vw);
  -o-transform: translateX(100vw);
  transform: translateX(100vw);
}
#big-gallery-image {
position: fixed; 
top: -50%; 
left: -50%; 
width: 200%; 
height: 200%;
z-index: 15000;
visibility:hidden;
opacity:0;
transition:opacity 0.2s linear;
}

#img-wrapper {
  /*background: #000;*/
  background: rgba(0,0,0,0.90);
}

#big-gallery-image > #img-wrapper > img,
#big-gallery-image > #img-wrapper > video {
  position: absolute; 
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0; 
  margin: auto; 
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  width: auto;
  height: auto;
  overflow: hidden;
}
#big-gallery-image > #img-wrapper > video {
  max-width: 75%;
  max-height: calc(100% - 50px);
}

#img-wrapper {
  position: absolute;
  top: 25%; 
  left: 25%; 
  right: 25%; 
  bottom: 25%; 
  overflow: hidden;
}

.gallery-image-wrapper {
border:1px solid rgba(255,255,255,0.4);
margin-bottom:10px;
margin-right: 10px;
float: left;
height: 9.5em;
height: 12.5em;
/*height: 12vw;*/
width: 16em;
width: 20em;
overflow: hidden;
background: rgba(0,0,0,0.25);
}

.gallery-image-wrapper.act {
border:rgba(255,57,44,1) 1px solid;
}

.gallery-image-wrapper img {
width:100%;
}

#gallery-images-navigate-left {
  position:absolute;
  left: 25%;
  top: 25%;
  bottom: 25%;
  width: 5%;
  cursor: pointer;
}
#gallery-images-navigate-left span {
  position:absolute;
  top:calc(50% - 40px);
  left: 0;
  padding: 30px;
}

#gallery-images-navigate-left img {
  height: 4.5em;
  position:absolute;
  left: 1.25em;
  top: calc(50% - 2.25em);
  background:rgba(0,0,0,0.25);
  padding: 1em;
}

#gallery-images-navigate-right {
  position:absolute;
  right: 25%;
  top:25%;
  bottom: 25%;
  width: 5%;
  cursor: pointer;
}
#gallery-images-navigate-right span {
  position:absolute;
  top:calc(50% - 40px);
  right: 0;
  padding: 30px;
}

#gallery-images-navigate-right img {
  height: 4.5em;
  position: absolute;
  right: 1.25em;
  top: calc(50% - 2.25em);
  background:rgba(0,0,0,0.25);
  padding: 1em;
}

#gallery-view-full-image a {
background:rgba(0,0,0,0.25);
border-bottom:rgba(255,57,44,1) 1px solid;
display:inline-block;
padding:0.25em 0.5em;
text-decoration:none;
}

.gallery-img-wrapper {
  clear: both;
}
#img-wrapper, #img-wrapper *,
#gallery-images-navigate-left, #gallery-images-navigate-left *,
#gallery-images-navigate-right, #gallery-images-navigate-left * {
  -webkit-user-select: none; 
  -moz-user-select: none;     
  -ms-user-select: none;      
  user-select: none;
}

#preview-info {
  position: absolute;
  top: 25%;
  left: 25%;
  right: 25%; 
}

#preview-info p {
  position: absolute;
  top: 0;
  padding: 1em;
  z-index: 1000;
}

#preview-info p.left, #preview-info-2 p.left {
  left: 0;
  text-align: left;  
  margin: 0;
}

#preview-info p.right, #preview-info-2 p.right {
  padding: 1em 0 0 0;
  right: 0;
  text-align: right;
}

#preview-info-2 p.left {
  float: left;
}

#preview-info-2 p.right {
  padding: 1em;
  margin: 0;
  right: 0;
  float: right;
}

#preview-info a,
#preview-info a:hover,
#preview-info a:focus,
#preview-info-2 a,
#preview-info-2 a:hover,
#preview-info-2 a:focus {
  text-decoration: none !important;
  color: #fff;
  outline: 0!important;
  border-bottom: 0px!important;
}

#preview-info-2 {
  position: absolute;
  bottom: 25%;
  left: 25%;
  right: 25%;
  clear: both;
  z-index: 1000;
}


#preview-info-2 p {
  padding: 1em;
  z-index: 1000;
}

@media (max-width: 560px) {
  #preview-info-2 p.left, #preview-info-2 p.right {
    float: none;
    text-align: center;
  }
}

@media (min-width: 1280px) { 

  #gallery-images-navigate-left img, 
  #gallery-images-navigate-right img {
    transition: transform 300ms ease-in-out;
  } 
  
  #gallery-images-navigate-left:hover img {
    transform: translateX(-1.25em);
  
  }
  
  #gallery-images-navigate-right:hover img {
    transform: translateX(1.25em);
  }
  
}
@media (max-width: 640px) {
  .gallery-image-wrapper {
    width: calc(100% / 2 - 15px);
    height: 0;
    padding-bottom: calc(56.25% / 2);
    margin: 0 5px 10px 5px;
  }
}

@media (max-width: 400px) {
  .gallery-image-wrapper {
    width: calc(100% - 15px);
    height: 0;
    padding-bottom: calc(56.25%);
    margin: 0 5px 10px 5px;
  }
  .gallery-image-wrapper a {
    transition: color 0.25s ease-in-out;
  }
  
  .preview-close {
    text-decoration: none;
    color: #fff;
  }
}

#img-list {
margin: 2em -7.5px 0;
}

#img-list a {
border:0;
display:block;
position:relative;
width: auto;
float: left;
margin: 0 5px 5px 0;
padding: 0;
}

#img-list a img {
display:block;
float: left;
max-width: 100%;
}

#img-list a:hover {
border:0;
}

#img-list a:after {
background:rgba(0,0,0,0.15);
content:"";
display:block;
position:absolute;
top:0;
right:0;
bottom:0;
left:0;
-webkit-transition: background 300ms ease-in-out;
-moz-transition: background 300ms ease-in-out;
-ms-transition: background 300ms ease-in-out;
-o-transition: background 300ms ease-in-out;
transition: background 300ms ease-in-out;
}

#img-list a:hover:after {
background:rgba(0,0,0,0);
}