/*
=====================
  GALLERY STYLES
=====================
*/

.ccm-page .gallery-edit {
  background: #eee;
  height: 100px;
  margin: 0 0 15px 0;
  padding: 20px;
  text-align: center;
}

.ccm-page .gallery-edit i {
  font-size: 24px;
}

.ccm-page .gallery-title {
  font-family: Arial, sans-serif;
  font-size: 28px;
  font-weight: 500;
}

.lg-backdrop {
  background-color: rgba(0, 0, 0, .8) !important;
}

.ccm-page .lightgallery  {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;

  -webkit-flex-flow: row wrap;
  -moz-flex-flow: row wrap;
  -ms-flex-flow: row wrap;
  flex-flow: row wrap;

  justify-content: flex-start;
  -webkit-justify-content: flex-start;
  -webkit-box-pack: flex-start;
  -moz-box-pack: flex-start;
  -ms-flex-pack: flex-start;

  overflow: auto;
  margin: 5px -15px 25px;
}

.ccm-page .lightgallery .thumb-item {
  overflow: hidden;
  padding: 15px;
  text-align: center;
  /*width: 16.6666%;*/
  width: 33.3333%;
}

.ccm-page .lightgallery .thumb-item img {
  border: 1px solid #eee;
  display: block;
  padding: 4px;
  transition: border-color .3s;
  margin: 0 auto;
}

.ccm-page .lightgallery .thumb-item:hover img {
  border-color: #5d99e2;
}

/*
==========================
  GALLERY STYLES MASONRY
==========================
*/

.ccm-page .lightgallery-masonry {
  opacity: 0;
  position: relative;
}

.ccm-page .lightgallery-masonry-loading {
  margin: 0 0 5px 0;
  text-align: center;
  transition: opacity .3s;
}

.ccm-page .loader {
  border-radius: 50%;
  display: inline-block;
  height: 32px;
  margin: 0 0 0 10px;
  perspective: 800px;
  pointer-events:none;
  position: relative;
  top: 10px;
  width: 32px;
}

.ccm-page .loader .inner {
  border-radius: 50%;
  box-sizing: border-box;
  height: 100%;
  position: absolute;
  width: 100%;
}

.ccm-page .loader .inner.one {
  animation: rotate-one 1s linear infinite;
  border-bottom: 3px solid #3e4141 !important;
  left: 0%;
  top: 0%;
}

.ccm-page .loader .inner.two {
  animation: rotate-two 1s linear infinite;
  border-right: 3px solid #3e4141 !important;
  right: 0%;
  top: 0%;
}

.ccm-page .loader .inner.three {
  animation: rotate-three 1s linear infinite;
  border-top: 3px solid #3e4141 !important;
  bottom: 0%;
  right: 0%;
}

@keyframes rotate-one {
  0% {
    transform: rotateX(35deg) rotateY(-45deg) rotateZ(0deg);
  }
  100% {
    transform: rotateX(35deg) rotateY(-45deg) rotateZ(360deg);
  }
}

@keyframes rotate-two {
  0% {
    transform: rotateX(50deg) rotateY(10deg) rotateZ(0deg);
  }
  100% {
    transform: rotateX(50deg) rotateY(10deg) rotateZ(360deg);
  }
}

@keyframes rotate-three {
  0% {
    transform: rotateX(35deg) rotateY(55deg) rotateZ(0deg);
  }
  100% {
    transform: rotateX(35deg) rotateY(55deg) rotateZ(360deg);
  }
}

.ccm-page .lightgallery-masonry .thumb-item {
  cursor: pointer;
  margin: 0 4px 4px 0;
  position: relative;
}

.ccm-page .lightgallery-masonry .thumb-item img {
  max-width: inherit;
  width: 100%;
}

.ccm-page .lightgallery-masonry .thumb-item:hover .text-container {
  -webkit-box-shadow: inset 0px 0px 600px 0px rgba(0,0,0,0.9);
  -moz-box-shadow: inset 0px 0px 600px 0px rgba(0,0,0,0.9);
  box-shadow: inset 0px 0px 600px 0px rgba(0,0,0,0.9);
}

.ccm-page .lightgallery-masonry .thumb-item:hover .text-container .title {
  opacity: 1;
}

.ccm-page .lightgallery-masonry .thumb-item:hover .text-container .description {
  opacity: 1;
}

.ccm-page .lightgallery-masonry .thumb-item .text-container {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;

  -webkit-flex-flow: column wrap;
  -moz-flex-flow: column wrap;
  -ms-flex-flow: column wrap;
  flex-flow: column wrap;

  justify-content: center;
  -webkit-justify-content: center;
  -webkit-box-pack: center;
  -moz-box-pack: center;
  -ms-flex-pack: center;

  align-items: center;
  -webkit-align-items: center;

  /*border: 2px solid #fff;*/
  color: #fff;
  height: 100%;
  left: 0;
  position: absolute;
  text-shadow: 0 0 6px rgba(0,0,0,.9);
  top: 0;
  transition: box-shadow .3s, opacity .3s;
  width: 100%;
}

.ccm-page .lightgallery-masonry .thumb-item .text-container .title {
  font-family: "Lato", Arial, sans-sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.1em;
  margin: 0 0 5px 0;
  opacity: 0;
  text-align: center;
  transition: opacity .3s;
  width: 100%;
}

.ccm-page .lightgallery-masonry .thumb-item .text-container .description {
  font-family: "Lato", Arial, sans-sans-serif;
  font-size: 14px;
  opacity: 0;
  text-align: center;
  transition: opacity .3s;
}

@media (max-width: 991px) {

  .ccm-page .lightgallery  {
    margin: 20px -10px;
  }

  .ccm-page .lightgallery .thumb-item {
    padding: 10px;
  }
}

@media (max-width: 767px) {

  .ccm-page .lightgallery  {
    margin: 20px -3px;
  }

  .ccm-page .lightgallery .thumb-item {
    padding: 3px;
    width: 25%;
  }

  .ccm-page .lightgallery .thumb-item img {
    padding: 2px;
  }
}
