:not(.modal-body) > .core-gallery {
  height: 400px;
}
:not(.modal-body) > .core-gallery div {
  height: 100%;
}
:not(.modal-body) > .core-gallery .loading-slick {
  text-align: center;
  font-size: 80px;
  padding-top: 85px;
  color: #ccc;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ececec;
  -webkit-transition: opacity 1s ease;
  transition: opacity 1s ease;
}
:not(.modal-body) > .core-gallery .loading-slide {
  -webkit-animation: fa-spin 1s infinite linear;
  animation: fa-spin 1s infinite linear;
  position: absolute;
  top: 112.5px;
  left: 0;
  right: 0;
  margin-top: -15px;
  text-align: center;
  font-size: 30px;
  color: #ccc;
}
:not(.modal-body) > .core-gallery .slides {
  margin: 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
:not(.modal-body) > .core-gallery .slides.slick-initialized {
  overflow: visible;
}
:not(.modal-body) > .core-gallery .slides.slick-initialized + .loading-slide + .loading-slick {
  opacity: 0;
  pointer-events: none;
}
:not(.modal-body) > .core-gallery .slides .slick-dots {
  bottom: 15px;
}
:not(.modal-body) > .core-gallery .slides .slick-dots li,
:not(.modal-body) > .core-gallery .slides .slick-dots button,
:not(.modal-body) > .core-gallery .slides .slick-dots button:before {
  height: 8px;
  width: 8px;
  padding: 0;
  line-height: 8px;
}
:not(.modal-body) > .core-gallery .slide {
  position: relative;
  outline: none !important;
}
:not(.modal-body) > .core-gallery .slide:hover {
  cursor: pointer;
}
:not(.modal-body) > .core-gallery img {
  max-width: 100%;
  max-height: 100%;
  opacity: 1;
  -webkit-transition: opacity 1s ease;
  transition: opacity 1s ease;
  z-index: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
}
:not(.modal-body) > .core-gallery img.slick-loading {
  opacity: 0;
}
:not(.modal-body) > .core-gallery .slick-prev {
  left: 15px;
  z-index: 2;
}
:not(.modal-body) > .core-gallery .slick-next {
  right: 15px;
}
:not(.modal-body) > .core-gallery .video {
  position: relative;
}
:not(.modal-body) > .core-gallery .video .sound {
  display: none;
  position: absolute;
  left: 15px;
  bottom: 10px;
  width: 23px;
  height: 20px;
  color: #fff;
  opacity: 0.4;
  -webkit-transition: opacity 0.5s ease;
  transition: opacity 0.5s ease;
}
:not(.modal-body) > .core-gallery .video .sound i {
  font-size: 20px;
  display: none;
}
:not(.modal-body) > .core-gallery .video .sound.muted i:first-child {
  display: inline-block;
}
:not(.modal-body) > .core-gallery .video .sound:not(.muted) i:last-child {
  display: inline-block;
}
:not(.modal-body) > .core-gallery .video .sound:hover {
  cursor: pointer;
  opacity: 1;
}
.gallery-modal {
  padding: 0 !important;
}
.gallery-modal .modal-dialog {
  width: calc(100% - 20px);
  height: calc(100% - 20px);
}
@media only screen and (min-width: 768px) {
  .gallery-modal .modal-dialog {
    width: calc(100% - 60px);
    height: calc(100% - 60px);
  }
}
.gallery-modal .modal-dialog div:not(.slick-slide):not(img) {
  height: 100%;
}
.gallery-modal .modal-content {
  background-color: #000;
}
.gallery-modal .close {
  position: absolute;
  right: 15px;
  top: 8px;
  color: #fff;
  font-size: 35px;
  font-weight: normal;
}
.gallery-modal .modal-body {
  position: relative;
}
.gallery-modal .core-gallery {
  position: relative;
  padding-bottom: 65px;
}
.gallery-modal .core-gallery .loading-slick {
  text-align: center;
  font-size: 80px;
  color: #ccc;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #000;
  -webkit-transition: opacity 1s ease;
  transition: opacity 1s ease;
  z-index: 1;
}
.gallery-modal .core-gallery .loading-slick:before {
  position: absolute;
  top: 50%;
  margin-top: -95px;
  left: 50%;
  margin-left: -40px;
}
.gallery-modal .core-gallery .loading-slide {
  -webkit-animation: fa-spin 1s infinite linear;
  animation: fa-spin 1s infinite linear;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-left: -15px;
  margin-top: -65px;
  text-align: center;
  font-size: 30px;
  color: #ccc;
}
.gallery-modal .slides {
  z-index: 1;
}
.gallery-modal .slides .slide {
  position: relative;
  outline: none !important;
}
.gallery-modal .slides .slide img {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translateY(-50%) translateX(-50%);
  transform: translateY(-50%) translateX(-50%);
  max-height: 100%;
  max-width: 100%;
}
.gallery-modal .slides .slick-arrow {
  display: block;
  position: absolute;
  font-size: 50px;
  opacity: 0.6;
  -webkit-transition: opacity 0.4s ease;
  transition: opacity 0.4s ease;
  height: 40px;
  top: 50%;
  margin-top: -20px;
  z-index: 1;
}
.gallery-modal .slides .slick-arrow.previous {
  left: 50px;
}
.gallery-modal .slides .slick-arrow.next {
  right: 50px;
}
.gallery-modal .slides .slick-arrow:hover {
  opacity: 1;
  cursor: pointer;
}
.gallery-modal .slides .slick-prev {
  left: 25px;
}
@media only screen and (min-width: 992px) {
  .gallery-modal .slides .slick-prev {
    left: 50px;
  }
}
.gallery-modal .slides .slick-next {
  right: 25px;
}
@media only screen and (min-width: 992px) {
  .gallery-modal .slides .slick-next {
    right: 50px;
  }
}
.gallery-modal .slides .slick-dots {
  bottom: 25px;
}
.gallery-modal .slides .slick-dots button:before {
  color: #fff;
}
.gallery-modal .thumbs {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 54px !important;
  margin: 0 auto !important;
}
.gallery-modal .thumbs.slick-initialized {
  overflow: visible;
}
.gallery-modal .thumbs.slick-initialized + .loading-slide + .loading-slick {
  opacity: 0;
  pointer-events: none;
}
.gallery-modal .thumbs .slide {
  padding: 0 2px;
  outline: none !important;
}
.gallery-modal .thumbs .slide.video i {
  font-size: 25px;
  padding: 12px 25px;
}
.gallery-modal .thumbs .slide * {
  border: 2px solid transparent;
}
.gallery-modal .thumbs .slide:hover,
.gallery-modal .thumbs .slide.slick-current {
  cursor: pointer;
}
.gallery-modal .thumbs .slide:hover *,
.gallery-modal .thumbs .slide.slick-current * {
  border-color: #fff;
}
.gallery-modal .slick-slider {
  margin: 0;
}
.gallery-modal [data-video] {
  position: relative;
}
.gallery-modal [data-video] .sound {
  display: none;
  position: absolute;
  left: 50px;
  bottom: 35px;
  width: 23px;
  height: 20px;
  color: #fff;
  opacity: 0.4;
  -webkit-transition: opacity 0.5s ease;
  transition: opacity 0.5s ease;
}
.gallery-modal [data-video] .sound i {
  font-size: 28px;
  display: none;
}
.gallery-modal [data-video] .sound.muted i:first-child {
  display: inline-block;
}
.gallery-modal [data-video] .sound:not(.muted) i:last-child {
  display: inline-block;
}
.gallery-modal [data-video] .sound:hover {
  cursor: pointer;
  opacity: 1;
}
