.img-thumbnail {
  padding: 0;
  background-color: #fff;
  border: none;
  border-radius: 0;
}
.gallery-wrap .gallery-summary-box {
  padding: 20px 0 30px 0;
}
.gallery-wrap .gallery-grid-item {
  display: block;
}
.gallery-wrap .link-type2 {
  padding-left: 0;
}
.gallery-wrap .gallery-grid-item .image-box {
  transition: all 0.5s;
  overflow: hidden;
  position: relative;
}
.gallery-wrap .gallery-grid-item:hover .image-box {
  box-shadow: 0 0 13px 0 rgba(0, 0, 0, 0.29);
  transform: scale(1.04);
  transition: all 0.5s;
}
.gallery-wrap .gallery-grid-item .image-box .img-disc {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -100%;
  opacity: 0;
  visibility: hidden;
  width: 100%;
  height: auto;
  padding: 0px 35px;
  display: flex;
  align-items: center;
  text-align: center;
  color: #ffffff;
  line-height: 1.5;
  background-color: rgba(168, 153, 158, 0.9);
  transition: all 0.4s;
}
.gallery-wrap .gallery-grid-item .image-box:hover .img-disc {
  left: 0;
  opacity: 1;
  visibility: visible;
}
.gallery-wrap .category-head {
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 0.67px;
  color: #000000;
  line-height: 1.2;
  padding-bottom: 17px;
  margin-bottom: 15px;
  position: relative;
  display: block;
  transition: all 0.3s;
}
.gallery-wrap .category-head:hover {
  color: #da291c;
}
.gallery-wrap .category-head:after {
  position: absolute;
  bottom: 0;
  width: 87px;
  content: "";
  height: 1px;
  background: #000000;
  left: 0;
  display: block;
}
.gallery-wrap .pagination-type1 {
  padding: 15px 0;
}
@media (max-width: 768px) {
  .gallery-wrap .category-head {
    font-size: 16px;
    line-height: 1.1;
    padding-bottom: 14px;
    margin-bottom: 12px;
  }
  .gallery-wrap .gallery-summary-box {
    padding: 20px 0 15px 0;
  }
}
@media (max-width: 657px) {
  .gallery-wrap .gallery-summary-box {
    padding: 15px 0 10px 0;
  }
}
/*POPUP*/
.mfp-wrap {
  left: 0;
  right: 0;
  width: auto;
  max-width: 1200px;
  margin: auto;
  padding: 0 15px;
}
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  .mfp-wrap {
    width: 1200px;
  }
}
.mfp-bg {
  background: #415364;
  opacity: 0.79;
}
.mfp-image-holder .mfp-figure {
  max-width: 677px;
  background: #ffffff;
  border: solid 1px #979797;
}
.mfp-image-holder img.mfp-img {
  padding: 20px;
}
.mfp-gallery .mfp-arrow:after,
.mfp-gallery .mfp-arrow:before {
  display: none !important;
}
.mfp-arrow {
  width: 71px;
  height: 71px;
  background-size: contain;
  opacity: 1 !important;
}
.mfp-arrow:hover {
  opacity: 0.5 !important;
}
.mfp-gallery .mfp-arrow-left {
  background: url(../images/gallery-left.svg) left center no-repeat;
  left: 5px;
}
.mfp-gallery .mfp-arrow-right {
  background: url(../images/gallery-right.svg) right center no-repeat;
  right: 20px;
}
.mfp-gallery button.mfp-close {
  background: #2f1944 !important;
  width: 38px !important;
  height: 38px !important;
  right: -10px;
  top: -10px;
  opacity: 1 !important;
  overflow: hidden !important;
  font-size: 0;
  text-indent: -999px;
  cursor: pointer !important;
  border: 2px solid #ffffff;
  border-radius: 50%;
  transition: all 0.3s;
}
.mfp-gallery button.mfp-close:hover {
  background: #ce132d !important;
}
.mfp-container {
  cursor: auto !important;
}

.mfp-gallery button.mfp-close:before,
.mfp-gallery button.mfp-close:after {
  position: absolute;
  left: 0px;
  content: " ";
  height: 16px;
  width: 1px;
  background-color: #ffffff;
  top: 0;
  bottom: 0;
  right: 0;
  margin: auto;
  opacity: 1 !important;
}
.mfp-gallery button.mfp-close:before {
  transform: rotate(45deg);
}
.mfp-gallery button.mfp-close:after {
  transform: rotate(-45deg);
}
.mfp-gallery .mfp-bottom-bar .mfp-counter {
  display: none;
}
.mfp-gallery .mfp-bottom-bar {
  left: 21px;
  right: 21px;
  bottom: 21px;
  top: auto;
  width: auto;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 10px;
}
.mfp-gallery .mfp-bottom-bar .mfp-title {
  padding-right: 0;
  color: #000;
  font-weight: 600;
}
.mfp-gallery .mfp-bottom-bar .mfp-title small {
  font-size: 13px;
  line-height: 16px;
  color: #000;
  margin-top: 4px;
}
@media (min-width: 980px) {
  .gallery-wrap .category-head {
    padding-right: 15%;
  }
  .mfp-gallery .mfp-arrow:active {
    margin-top: -55px;
  }
}
@media (min-width: 1600px) {
  .mfp-image-holder .mfp-figure {
    max-width: 900px;
  }
}
@media (max-width: 1199px) {
  .mfp-gallery .mfp-arrow-right {
    right: 5px;
  }
  .mfp-gallery .mfp-arrow-left,
  .mfp-gallery .mfp-arrow-right {
    background-color: rgba(47, 25, 68, 0.5);
    border-radius: 50%;
  }
}

@media (max-width: 768px) {
  .mfp-gallery .mfp-arrow-right {
    right: 10%;
  }
  .mfp-gallery .mfp-arrow-left {
    left: 10%;
  }
  .mfp-gallery button.mfp-close {
    right: -4px;
    top: -15px;
  }
  .mfp-gallery .mfp-bottom-bar {
    position: static;
    margin-top: 0px;
    padding-top: 0;
  }
}
@media (max-width: 767px) {
  .mfp-gallery .mfp-arrow-right {
    right: 5%;
  }
  .mfp-gallery .mfp-arrow-left {
    left: 5%;
  }
  .mfp-gallery .mfp-container {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .row.gallery-grid-type1 {
    margin-left: -7px;
    margin-right: -7px;
  }
  .row.gallery-grid-type1 .col-6 {
    padding-left: 7px;
    padding-right: 7px;
  }
  .mfp-image-holder img.mfp-img {
    padding: 10px;
  }

  .mfp-gallery button.mfp-close {
    width: 28px !important;
    height: 28px !important;
    right: -5px;
  }
  .mfp-gallery button.mfp-close:before,
  .mfp-gallery button.mfp-close:after {
    height: 12px;
  }
  .gallery-wrap .gallery-grid-item .image-box:hover .img-disc {
    left: -100%;
    opacity: 0;
    visibility: hidden;
  }
}
@media (max-width: 567px) {
  .mfp-gallery .mfp-arrow-right {
    right: 8%;
  }
  .mfp-gallery .mfp-arrow-left {
    left: 8%;
  }
  .mfp-gallery .mfp-arrow {
    width: 50px;
    height: 50px;
    background-size: contain !important;
    margin-top: -37px !important;
  }
}
