/*!
 * Justified Gallery - v3.6.3
 * http://miromannino.github.io/Justified-Gallery/
 * Copyright (c) 2016 Miro Mannino
 * Licensed under the MIT license.
 */
.justified-gallery {
  width: 100%;
  position: relative;
  overflow: hidden;
}
.justified-gallery > a,
.justified-gallery > div {
  position: absolute;
  display: inline-block;
  overflow: hidden;
  /* background: #888888; To have gray placeholders while the gallery is loading with waitThumbnailsLoad = false */
  filter: alpha(opacity=10);
  opacity: 0.1;
}
.justified-gallery > a > img,
.justified-gallery > div > img,
.justified-gallery > a > a > img,
.justified-gallery > div > a > img {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 10px;
  padding: 0;
  border: none;
  filter: alpha(opacity=0);
  opacity: 0;
}
/* .justified-gallery > a > .caption,
.justified-gallery > div > .caption {
  display: none;
  position: absolute;
  bottom: 0;
  padding: 5px;
  background-color: #000000;
  left: 0;
  right: 0;
  margin: 0;
  color: white;
  font-size: 12px;
  font-weight: 300;
  font-family: sans-serif;
}
.justified-gallery > a > .caption.caption-visible,
.justified-gallery > div > .caption.caption-visible {
  display: initial;
  filter: alpha(opacity=70)";
  opacity: 0.7;
  -webkit-transition: opacity 500ms ease-in;
  -moz-transition: opacity 500ms ease-in;
  -o-transition: opacity 500ms ease-in;
  transition: opacity 500ms ease-in;
} */
.justified-gallery > .entry-visible {
  filter: alpha(opacity=100);
  opacity: 1;
  background: none;
}
.justified-gallery > .entry-visible > img,
.justified-gallery > .entry-visible > a > img {
  filter: alpha(opacity=100);
  opacity: 1;
  -webkit-transition: opacity 500ms ease-in;
  -moz-transition: opacity 500ms ease-in;
  -o-transition: opacity 500ms ease-in;
  transition: opacity 500ms ease-in;
}
.justified-gallery > .jg-filtered {
  display: none;
}
.justified-gallery > .spinner {
  position: absolute;
  bottom: 0;
  margin-left: -24px;
  padding: 10px 0 10px 0;
  left: 50%;
  filter: alpha(opacity=100);
  opacity: 1;
  overflow: initial;
}
.justified-gallery > .spinner > span {
  display: inline-block;
  filter: alpha(opacity=0);
  opacity: 0;
  width: 8px;
  height: 8px;
  margin: 0 4px 0 4px;
  background-color: #000;
  border-radius: 6px;
}
.justified_img_box:hover {
  display: block;
  background: rgba(0, 0, 0, .7);
  cursor: pointer;
  -webkit-transition: background-color 0.8s ease-out !important;
  -moz-transition: background-color 0.8s ease-out !important;
  -o-transition: background-color 0.8s ease-out !important;
  transition: background-color 0.8s ease-out !important;

}
.justified_img_box img:hover {
opacity: 0.4 !important;
filter: alpha(opacity=45);
}
.gallery_video_box{
  float: left !important;
  width: 23%;
  max-height: 200px;
  margin: 15px 15px 0px 0px;
  position: relative;
  background: #fff;
  box-shadow: 0 0 10px #ccc;
  overflow: hidden;
  padding: 20px;
  justify-content: center;
}
.gallery_video_box .img {text-align: center; display: flex; align-items: center; justify-content: center;}
.gallery_video_box .btn_bottom {width: 100%; bottom: 0px; margin-top: 10px; z-index: 1; text-align: center !important; height: 40px; display: flex; align-items: center; justify-content: center;}
div.gallery_video_box .btn_bottom .btn {margin: 5px 0px;}
.gallery_video_box .btn_bottom .glyphicon{margin-right: 0px;}
.gallery_video_box .admin_button{position: absolute; top: 10px; right: 10px; }
.edit_gallery_video {width: 100%; text-align: center; height: 100px;}

@media only screen and (min-width: 320px) and (max-width: 480px){
  .gallery_video_box{width: 44%; margin: 15px 8px 0px 8px;}
  div.edit_gallery{width: 44% !important; margin: 15px 8px 0px 8px !important;}
  #justified_box_gallery{margin-right: 5px !important;}
  #embedVideo iframe{width: 260px !important;}
}
@media only screen and (min-width: 481px) and (max-width: 768px){
  .gallery_video_box{width: 30%; margin: 15px 6px 0px 6px;}
  div.edit_gallery{width: 30% !important; margin: 15px 6px 0px 6px;}
  #justified_box_gallery{margin: 15px 12px 0px 0px;}
   #embedVideo iframe{width: 400px !important;}
}
.fancybox-slide--iframe .fancybox-close-small,  .fancybox-slide--video .fancybox-close-small {top: -52px !important;}

 div.edit_gallery {
  float: left !important;
  width: 23%;
  height: 245px;
  margin: 15px 15px 0px 0px;
  position: relative;
  background: #fff;
  box-shadow: 0 0 10px #ccc;
  overflow: hidden;
  padding: 10px;
  justify-content: center;
}
div.edit_gallery_img {
  width: 100%;
  height: 160px;
  text-align: center;
  line-height: 150px;
  margin-top: 10px;
  top: 50%;
}
  div.edit_gallery img {
  max-width: 100%;
  max-height: 100%;
  vertical-align: middle;
}
div.edit_gallery .btn_bottom {width: 100%; bottom: 0px; margin-top: 10px; z-index: 1; text-align: center !important; height: 40px; display: flex; align-items: center; justify-content: center;}
div.edit_gallery .btn_bottom .btn {margin: 5px 0px;}
div.edit_gallery .btn_bottom .glyphicon{margin-right: 0px;}
