.grid-gallery {
  z-index: 6;
}
.grid-gallery .gallery-item {
  position: absolute;
}
.grid-gallery .gallery-item:nth-child(2) {
  left: 0%;
  top: 0px;
}

.grid-gallery .gallery-item:nth-child(3) {
  left: 25%;
  top: 0px;
}

.grid-gallery .gallery-item:nth-child(4) {
  left: 50%;
  top: 0px;
}

.grid-gallery .gallery-item:nth-child(5) {
  left: 75%;
  top: 0px;
}

.grid-gallery .gallery-item:nth-child(6) {
  left: 75%;
  top: 291.1px;
}

.grid-gallery .gallery-item:nth-child(7) {
  left: 25%;
  top: 345.975px;
}

.grid-gallery .gallery-item:nth-child(8) {
  left: 50%;
  top: 409.837px;
}

.grid-gallery .gallery-item:nth-child(9) {
  left: 0%;
  top: 510.612px;
}

.grid-gallery .gallery-item:nth-child(10) {
  left: 75%;
  top: 582.2px;
}

.grid-gallery .gallery-item:nth-child(11) {
  left: 50%;
  top: 612.125px;
}

.grid-gallery .gallery-item:nth-child(12) {
  left: 25%;
  top: 667.013px;
}

/*  */
.title-decor {
  position: relative;
  text-align: center;
  padding-bottom: 20px;
  margin-bottom: 20px;
}
.title-decor span {
  color: #f23849;
}
.title-decor:before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 45px;
  height: 4px;
  background-color: #f23849;
}
.slogan {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 40px;
  color: #ccc;
}
.section-title-bg {
  color: #f7f7f7;
  font-size: 245px;
  text-transform: uppercase;
  line-height: 0.8;
  position: absolute;
  left: 50%;
  max-width: 100%;
  top: 0;
  transform: translateX(-50%);
  font-weight: 700;
  white-space: nowrap;
  text-align: center;
  pointer-events: none;
  z-index: -1;
}
.s-fitness-gallery {
  padding: 45px 0;
}
.s-fitness-gallery .section-title-bg {
  top: 80px;
}
.row-gallery {
  margin: -1.132%;
}
.gallery-item {
  padding: 1.132%;
}
.gallery-item a {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  color: #fff;
}
.gallery-item a:before {
  content: "\f06e";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  z-index: 1;
  color: #fff;
  font-size: 30px;
  font-family: FontAwesome;
  display: flex;
  justify-content: center;
  align-items: center;
  -webkit-transition: 0.4s;
}
.gallery-item a:after {
  content: "";
  position: absolute;
  width: 95%;
  height: 95%;
  left: 50%;
  top: 50%;
  opacity: 0;
  margin-top: 40px;
  transform: translate(-50%, -50%);
  border: 7px solid #f23849;
  transition: 0.4s ease-in-out;
  pointer-events: none;
  z-index: 3;
}
.gallery-item a img {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  object-fit: cover;
  background-size: cover;
  transition: 0.5s;
}
.gallery-item a:hover:before {
  opacity: 1;
}
.gallery-item a:hover:after {
  opacity: 1;
  margin-top: 0;
}
.gallery-item a:hover .gal-item {
  opacity: 0;
  transform: translateY(30px);
}
.gallery-item .gal-item {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  z-index: 2;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0) 0, #000 64%);
  padding: 20px 20px 15px;
  transition: 0.4s;
}
.gallery-item .gal-item p {
  font-size: 14px;
}
.gallery-item .gal-item .title {
  text-transform: capitalize;
}
.gallery-item,
.grid-sizer {
  width: 25%;
}
@media (max-width: 1366px) {
  .section-title-bg {
    font-size: 200px;
  }
}
@media (max-width: 1199px) {
  .s-fitness-gallery {
    padding: 88px 0 100px;
  }
  .gallery-item a:after {
    border-width: 5px;
  }
  .gallery-item a:before {
    font-size: 22px;
  }
  .title-decor {
    margin-bottom: 17px;
  }
  .section-title-bg {
    font-size: 130px;
  }
  .gallery-item .gal-item p {
    font-size: 12px;
  }
  .gallery-item .gal-item .title {
    font-size: 16px;
  }
}
@media (max-width: 991px) {
  .gallery-item .gal-item {
    padding: 10px;
  }
}
@media (max-width: 767px) {
  .section-title-bg {
    font-size: 80px;
  }
  .s-fitness-gallery .section-title-bg {
    top: 98px;
  }
  .gallery-item,
  .grid-sizer {
    width: 33.33%;
  }
}
.grid-gallery .gallery-item:nth-child(2) a {
  height: 480px;
}
.grid-gallery .gallery-item:nth-child(3) a {
  height: 315px;
}
.grid-gallery .gallery-item:nth-child(4) a {
  height: 379px;
}
.grid-gallery .gallery-item:nth-child(5) a,
.grid-gallery .gallery-item:nth-child(6) a {
  height: 261px;
}
.grid-gallery .gallery-item:nth-child(7) a {
  height: 291px;
}
.grid-gallery .gallery-item:nth-child(8) a {
  height: 172px;
}
.grid-gallery .gallery-item:nth-child(9) a {
  height: 341px;
}
.grid-gallery .gallery-item:nth-child(10) a {
  height: 271px;
}
.grid-gallery .gallery-item:nth-child(11) a {
  height: 241px;
}
.grid-gallery .gallery-item:nth-child(12) a {
  height: 186px;
}
@media (max-width: 575px) {
  .gallery-item,
  .grid-sizer {
    width: 50%;
  }
  .gallery-item .gal-item p {
    display: none;
  }
  .gallery-item .gal-item .title {
    font-size: 14px;
  }
  .grid-gallery .gallery-item a {
    height: 220px !important;
  }
}
.gallery-item a img:first-child {
  transform: translatex(50%) scalex(2);
  opacity: 0;
  filter: blur(10px);
}
.gallery-item a img:nth-child(2) {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  object-fit: cover;
}
.gallery-item a:hover img:first-child {
  transform: translatex(0) scalex(1);
  opacity: 1;
  filter: blur(0);
}
.gallery-item a:hover img:nth-child(2) {
  transform: translatex(-50%) scalex(2);
  opacity: 0;
  filter: blur(10px);
}
.galleryVect1 {
  bottom: 0;
  left: -20px;
  z-index: -1;
  animation: floatX 9s ease-in-out infinite;
}
.galleryVect2 {
  top: 0;
  right: -100px;
  z-index: -5;
  animation: floatX 9s ease-in-out infinite;
}
