* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
} 

a {
  text-decoration: none;
  cursor: pointer;
  outline: 0;
}

.section-padding {
  padding-top: 80px;
}

.gallery-section {
  position: relative;
  z-index: 1;
}

.title {
  font-size: 46px;
  font-weight: 700;
  font-family: "Playfair Display", serif;
  color: #0094da;
} 

.filter {
  text-align: center;
  max-width: 1050px;
  margin: auto;
}

.btn_gallery {
 padding: 10px 20px;
    margin: 5px 4px 4px 0;
    display: inline-block;
    color: #003;
    background: #ffffff;
    border: 1px solid #ccd2e3;
    transition: all 0.4s;
    border-radius: 0px;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0px 2px 9px 0px #d2d7da;
}
.btn_gallery:hover,.btn-active {
  background: #0094da;
  color: #fff;
  -webkit-transform: translateY(3px);
  -ms-transform: translateY(3px);
  transform: translateY(3px);
}
.gallery {
  display: flex;
  justify-content: center;
  width: fit-content;
  max-width: 1320px;
  flex-wrap: wrap;
  margin: 25px auto;
  /* gap: 14px; */
}
.gallery a {
  display: flex;
}
.gallery img {
  width: 200px;
  height: 220px;
  object-fit: cover;
  transition: 0.3s ease-in-out;
  border-radius: 12px;
  overflow: hidden;
  margin: 10px 10px;
}

.gallery img:hover {
  transform: scale(1.1);
}

.sets .hide,
.sets .pophide {
  width: 0%;
  opacity: 0;
}

.closeBtn {
  position: absolute;
  font-size: 22px;
  font-weight: 500;
  right: 25px;
  top: 25px;
  color: white;
  transition: 0.5s linear;
  padding: 8px 40px;
  border-radius: 25px;
  background: #3f4eba;
  outline-offset: -6px;
  outline: 2px solid #fff;
}
.closeBtn:hover {
  cursor: pointer;
  background: white;
  color: black;
  outline: 2px solid #000;
}

.openDiv {
  width: 100%;
  height: 100vh;
  background: #000000e7;
  position: fixed;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  left: 0;
  z-index: 9999;
}
.imgPreview {
  width: 70%;
  object-fit: scale-down;
  max-height: 40vw;
  height: auto;
}
.prevButton,
.nextButton {
  transition: 1s linear;
  padding: 10px 35px;
  font-size: 18px;
  border: none;
  color: white;
  background: #0005;
  border-radius: 10px;
  border: 1px solid white;
  margin: 10px;
}
.prevButton:hover,
.nextButton:hover {
  background: #fff;
  color: black;
}

/* resposive CSS Code */

@media max-width: 1199px {
  .section-padding {
    padding-top: 70px;
  }
}
@media (max-width: 991px) {
  .section-padding {
    padding-top: 50px;
  }
}
@media (max-width: 767px) {
  .title {
    font-size: 36px;
  }
  .gallery img {
    margin: 8px 8px;
    width: 175px;
  }
  .closeBtn {
    padding: 6px 25px;
  }
  .prevButton,
  .nextButton {
    font-size: 18px;
    padding: 8px 25px;
  }
}

@media (max-width: 540px) {
  .section-padding {
    padding-top: 30px;
  }
  
  .gallery img {
    margin: 8px 6px;
    width: 155px;
  }

  .closeBtn {
    font-size: 18px;
    border-radius: 15px;
  }
  .prevButton,
  .nextButton {
    font-size: 18px;
    padding: 6px 20px;
    border-radius: 10px;
    margin: 5px;
  }

  .imgPreview {
    width: 90%;
    max-height: 50vh;
    height: auto;
  }
  
}


/* =========  end main gallery ============ */

/* =========  coaches ============ */



 

.gallery-box-container {
  display: flex;
  justify-content: space-between;
  flex: 0 1 90%;
  flex-wrap: wrap;
}

.gallery-box {
  display: block;
  color: #FFF;
  flex: 0 1 calc(25% - 15px);
  height: 400px;
  background: #fea200;
  border-radius: 10px;
  box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}
@media screen and (max-width: 1200px) {
  .gallery-box {
    flex: 0 1 calc(50% - 15px);
    margin: 15px 0;
  }
}
@media screen and (max-width: 640px) {
  .gallery-box {
    flex: 0 1 calc(100% - 15px);
  }
}
.gallery-box__img-container {
  display: block;
  width: 135%;
  height: 350px;
  background: #FFF;
  border-radius: 0 0 40px 40px;
  border: 2px solid #FFFFF8;
  transform: rotate(25deg);
  position: absolute;
  left: -15%;
  top: -75px;
  transition: all 0.4s ease;
  overflow: hidden;
}
@media screen and (max-width: 1200px) {
  .gallery-box__img-container {
    height: 420px;
    top: -180px;
  }
}
@media screen and (max-width: 900px) {
  .gallery-box__img-container {
    height: 420px;
    top: -120px;
  }
}
@media screen and (max-width: 640px) {
  .gallery-box__img-container {
    height: 450px;
    top: -190px;
  }
}
.gallery-box__img {
  display: block;
  width: 100%;
  transform: rotate(-25deg) scale(1.1);
  transition: all 0.4s ease;
}
.gallery-box__text-wrapper {
  transition: all 0.4s ease;
  position: absolute;
  left: 15px;
  top: 250px;
  width: 80%;
}
.gallery-box__text {
  font-weight: 500;
  font-size: 22px;
  padding: 8px 0;
  box-shadow: 8px 0 0 rgba(0, 0, 0, 0.7), -8px 0 0 rgba(0, 0, 0, 0.7);
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
  line-height: 2;
  background: rgba(0, 0, 0, 0.7);
}
@media screen and (max-width: 900px) {
  .gallery-box__text {
    font-size: 20px;
  }
}
.gallery-box:hover .gallery-box__img-container {
  width: 110%;
  height: 450px;
  border-radius: 0;
  transform: rotate(0);
  left: -2px;
  top: -120px;
}
.gallery-box:hover .gallery-box__img {
  display: block;
  width: 100%;
  transform: rotate(0deg) scale(1);
}
.gallery-box:hover .gallery-box__text-wrapper {
  top: 288px;
}

/* =========end  coaches ============ */





