#gallerySec {
  position: relative;
  padding-top: 70px;
  padding-bottom: 70px;
  overflow: hidden;
}

#gallerySec .gallery-slider .owl-stage-outer {
  overflow: visible;
  height: 570px;
}

#gallerySec .gallery-slider .owl-stage {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  height: 100%;
}

#gallerySec .gallery-slider .owl-item {
  height: 385px;
  opacity: 0.5;
  transform: none;
  transition: all 0.3s ease-out;
}

#gallerySec .gallery-slider .owl-item.active.center {
  height: 570px;
  opacity: 1;
}

#gallerySec .gallery-slider .item {
  position: relative;
  height: 100%;
  overflow: hidden;
}

#gallerySec .gallery-slider .item img {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

#gallerySec .customNav {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

#gallerySec .customNav button {
  width: 17px;
  padding: 0;
  background-color: transparent !important;
  filter: var(--color-filter-icon-black);
}

#gallerySec .customNav #counter {
  width: 80px;
  margin: 0 5px;
  font-family: var(--font-text-family);
  font-weight: 400;
  font-size: 17px;
  color: var(--color-black);
  line-height: 17px;
  text-align: center;
}

#gallerySec .customNav #counter span {
  font-family: "var(--font-text-family)";
  color: var(--color-primary);
  font-weight: 700;
}

@media only screen and (min-width: 959px) and (max-width: 1180px) {
  #gallerySec .gallery-slider .owl-stage-outer {
    height: 420px;
  }
  #gallerySec .gallery-slider .owl-item {
    height: 320px;
  }
  #gallerySec .gallery-slider .owl-item.active.center {
    height: 420px;
  }
}

@media only screen and (min-width: 768px) and (max-width: 959px) {
  #gallerySec .gallery-slider .owl-stage-outer {
    height: 360px;
  }
  #gallerySec .gallery-slider .owl-item {
    height: 280px;
  }
  #gallerySec .gallery-slider .owl-item.active.center {
    height: 360px;
  }
}

@media only screen and (max-width: 767px) {
  #gallerySec{
    padding-bottom: 0;
  }

  #gallerySec .gallery-slider {
    width: calc(100% + 30px);
    margin-left: -15px;
  }
  #gallerySec .gallery-slider .owl-stage-outer {
    overflow: hidden;
    height: auto;
  }
  #gallerySec .gallery-slider .owl-stage {
    display: block;
  }
  #gallerySec .gallery-slider .owl-item {
    height: auto;
  }
  #gallerySec .gallery-slider .owl-item.active.center {
    height: auto;
  }
  #gallerySec .gallery-slider .item img {
    position: static;
    transform: translateY(0%);
  }
}
