#gallerySec {
  position: relative;
  margin-bottom: var(--space-between-sections);
  overflow: hidden;
  padding-inline: 50px;
  color: var(--primary-color);
}

#gallerySec .topContent {
  position: relative;
  width: 70%;
  margin: 0 auto 10px auto;
  text-align: center;
}

#gallerySec .topContent h1 {
  margin: 0;
  font-size: var(--font-title-size);
  text-transform: uppercase;
  color: var(--primary-color);
  font-weight: 500;
  line-height: 70px;
}

#gallerySec .topContent h1 br {
  display: block;
}

#gallerySec .gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 150px;
  gap: 20px;
}


#gallerySec .gallery>div {
  overflow: hidden;
  break-inside: avoid;
  display: block;
}

#gallerySec .gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

#gallerySec .gallery div:hover img {
  transform: scale(1.03);
}


#gallerySec .gallery>div:nth-child(10n+1) {
  grid-column: span 1;
  grid-row: span 2;
}

#gallerySec .gallery>div:nth-child(10n+2) {
  grid-column: span 1;
  grid-row: span 2;
}

#gallerySec .gallery>div:nth-child(10n+3) {
  grid-column: span 1;
  grid-row: span 4;
}

#gallerySec .gallery>div:nth-child(10n+4) {
  grid-column: span 1;
  grid-row: span 2;
}

#gallerySec .gallery>div:nth-child(10n+5) {
  grid-column: span 1;
  grid-row: span 2;
}

#gallerySec .gallery>div:nth-child(10n+6) {
  grid-column: span 1;
  grid-row: span 2;
}

#gallerySec .gallery>div:nth-child(10n+7) {
  grid-column: span 1;
  grid-row: span 2;

}

#gallerySec .gallery>div:nth-child(10n+8) {
  grid-column: span 1;
  grid-row: span 2;

}

#gallerySec .gallery>div:nth-child(10n+9) {
  grid-column: span 1;
  grid-row: span 4;

}

#gallerySec .gallery>div:nth-child(10n+10) {
  grid-column: span 2;
  grid-row: span 4;

}

#gallerySec .gallery>div:nth-child(10n+13) {
  grid-column: span 1;
  grid-row: span 3;

}

#gallerySec .gallery>div:nth-child(10n+19) {
  grid-column: span 1;
  grid-row: span 2;

}

#gallerySec .gallery>div:nth-child(10n+20) {
  grid-column: span 1;
  grid-row: span 2;

}



/* #iPad Pro - Large Screens beyond 1024px
================================================== */
@media only screen and (min-width: 959px) and (max-width: 1180px) {
  #gallerySec .topContent h1 {
    font-size: 50px;
    line-height: 60px;
  }

  #gallerySec .topContent p {
    font-size: 16px;
    line-height: 26px;
  }
}

/* #Tablet (Portrait)
================================================== */
/* Note: Design for a width of 768px */
@media only screen and (min-width: 768px) and (max-width: 959px) {
  #gallerySec {
    padding-block: 70px;
  }

  #gallerySec .topContent {
    width: 100%;
  }

  #gallerySec .topContent h1 {
    font-size: 40px;
    line-height: 50px;
  }

  #gallerySec .topContent p {
    font-size: 16px;
    line-height: 26px;
  }

  #gallerySec .gallery {
    padding-bottom: 82px;
  }

  #gallerySec .gallery .gallery-slider .owl-dots {
    right: auto;
    left: 0;
  }

  #gallerySec .gallery .gallery-slider .owl-dots .owl-dot {
    width: 32px;
    height: 32px;
    margin: 0 5px;
  }

  #gallerySec .gallery .gallery-slider .owl-dots .owl-dot:first-child {
    margin-left: 0;
  }

  #gallerySec .gallery .gallery-slider .owl-dots .owl-dot:last-child {
    margin-right: 0;
  }

  #gallerySec .gallery .gallery-slider .owl-dots .owl-dot:before,
  #gallerySec .gallery .gallery-slider .owl-dots .owl-dot:after {
    display: none;
  }

  #gallerySec .gallery .gallery-slider .owl-dots .owl-dot span {
    width: 8px;
    height: 8px;
  }

  #gallerySec .gallery .customNav {
    bottom: 5px;
  }

  #gallerySec .gallery .customNav #counter {
    font-size: 17px;
    line-height: 17px;
  }

  #gallerySec .gallery .customNav #counter span {
    font-size: 30px;
    line-height: 20px;
  }
}

/*  #Mobile (Portrait)
================================================== */
/* Note: Design for a width of 320px */
@media only screen and (max-width: 767px) {
  #gallerySec {
    padding-inline: 20px;
  }

  #gallerySec .topContent {
    width: 100%;
    margin-bottom: 30px;
  }

  #gallerySec .topContent h1 {
    line-height: 40px;
  }

  #gallerySec .topContent p {
    line-height: 26px;
  }

  #gallerySec .gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  #gallerySec .gallery>div {
    grid-column: span 2 !important;
    grid-row: span 2 !important;
  }
}