@keyframes zoom {
  from {
    tranform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}

.image-gallery-descr {
  max-width: 900px;
  margin: 0 auto 40px;
  font-size: 18px;
  text-align: justify;
  text-align-last: center;
}

.not-front.page-image-gallery .main-container {
  min-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.not-front.page-image-gallery .main-container section {
  padding: 0;
}

.not-front.page-image-gallery .main-container > .row {
  margin: 0;
}

.not-front #full-gallery {
  padding-bottom: 15px;
}

.not-front #full-gallery .block-title {
  margin: 0;
}

.not-front #full-gallery .block-title::after {
  display: none;
}

.not-front #full-gallery .image-gallery-btn-wrapper {
  text-align: center;
}

.not-front #full-gallery .image-gallery-btn {
  font-weight: 300;
  color: #fff;
  background-color: #e01601;
  border-color: #e01601;
}

.not-front #full-gallery .image-gallery-btn:hover,
.not-front #full-gallery .image-gallery-btn:focus,
.not-front #full-gallery .image-gallery-btn:active {
  color: #ffffff;
  box-shadow: inset 0 0 10px 4px #ad1101;
}

.not-front #image-gallery {
  margin-bottom: 25px;
}

.not-front #image-gallery .images {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
}

.not-front #image-gallery .image-gallery-item {
  position: relative;
  min-height: 110px;
  padding: 0;
}

.not-front #image-gallery .image-gallery-item:not(.image-category-item)::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 70px;
  height: 70px;
  background-image: url("../images/zoom-in.svg");
  background-repeat: no-repeat;
  background-size: 70px;
  opacity: 0.5;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.not-front #image-gallery .image-gallery-item:hover {
  overflow: hidden;
}

.not-front #image-gallery .image-gallery-item .img-thumbnail {
  padding: 0;
  border: none;
  border-radius: 0;
}

.not-front #image-gallery .image-gallery-item:hover .img-thumbnail {
  z-index: -1;
  animation: zoom 0.4s ease-in-out forwards;
}

.not-front #image-gallery .image-gallery-item a {
  display: block;
}

.not-front #image-gallery .image-gallery-item h3:not(.image-category-title) {
  display: none;
}

.not-front #image-gallery .image-category-title {
  position: absolute;
  top: 50%;
  right: 25px;
  left: 25px;
  z-index: 1;
  margin: 0;
  text-align: center;
  background: rgba(255, 255, 255, 0.85) 10%;
  text-transform: uppercase;
  transform: translateY(-50%);
}

@media (max-width: 575px) {
  .not-front #image-gallery .image-category-title {
    left: 5px;
    right: 5px;
    padding: 5px 0;
  }
}

.not-front #image-gallery .image-category-title a {
  padding: 20px 0;
  font-size: 22px;
  color: #000;
}

@media (max-width: 575px) {
  .not-front #image-gallery .image-category-title a {
    padding: 0;
    font-size: 18px;
    line-height: 28px;
  }
}

#image-gallery-filter {
  max-width: 1200px;
  height: auto;
  padding: 30px;
  margin: 0 auto 35px;
  background-image: url(../images/filtr_bg.jpg);
  background-repeat: repeat-y;
  background-position: center;
}

#image-gallery-filter label.control-label {
  margin: 10px 0 0;
  font-size: 17px;
  font-weight: 500;
  color: #e01601;
  text-transform: uppercase;
}

#image-gallery-filter .form-group:not(:last-of-type):not(:first-of-type) {
  padding: 0 0 10px;
  margin-bottom: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.3);
}

#image-gallery-filter .form-checkboxes {
  display: flex;
  flex-wrap: wrap;
}

#image-gallery-filter .form-checkboxes .form-item {
  min-width: 180px;
}

#image-gallery-filter .form-checkboxes .form-item label.control-label {
  margin: 0 0 0 5px;
  font-size: 16px;
  font-weight: 300;
  color: #000;
  text-transform: none;
}

#image-gallery-filter .form-checkboxes .form-item label.control-label input {
  margin-right: 10px;
}

#image-gallery-filter .form-inline {
  display: block;
  margin-bottom: 0;
}

#image-gallery-filter .form-inline button {
  display: none !important;
}
