@media screen and (min-width: 769px) {
	
  .gallerySection {
	background-color: #e5e5e5;
    width: 100%;
    margin: 0 auto; }
  .gallerySection > div {
    width: 1020px;
    margin: 0 auto; }
  .bx-controls {
    position: absolute;
    z-index: 10;
    top: 0;
    left: 0;
    width: 100%; }
    .bx-controls .bx-prev,
    .bx-controls .bx-next {
      position: absolute;
      top: 210px;
      display: block;
      width: 40px;
      height: 160px;
      text-indent: -9999px; }
      .bx-controls .bx-prev:hover,
      .bx-controls .bx-next:hover {
        opacity: 0.6; }
    .bx-controls .bx-prev {
      left: -40px;
      background-image: url("../images/estate/btn-prev.png"); }
    .bx-controls .bx-next {
      right: -40px;
      background-image: url("../images/estate/btn-next.png"); }
  .caption {
    margin-top: -8px;
    text-align: right;
    font-size: 12px; } }

@media screen and (max-width: 768px) {
  .gallerySection {
    padding: 0 20px; }
  .bx-controls {
    position: absolute;
    z-index: 10;
    top: calc(26% - 40px);
    left: 0;
    width: 100%; }
    .bx-controls .bx-prev,
    .bx-controls .bx-next {
      position: absolute;
      top: -7VW;
      display: block;
      width: 20px;
      height: 80px;
      text-indent: -9999px; }
      .bx-controls .bx-prev:active,
      .bx-controls .bx-next:active {
        opacity: 0.6; }
    .bx-controls .bx-prev {
      left: -20px;
      background-image: url("../images/estate/btn-prev.png");
      background-size: cover; }
    .bx-controls .bx-next {
      right: -20px;
      background-image: url("../images/estate/btn-next.png");
      background-size: cover; }
  .caption {
    margin-top: -4px;
    text-align: right;
    font-size: 17px; } }

#gallery {
  position: relative; }
  #gallery .slider {
    padding: 0;
    z-index: 0 !important; }
  #gallery img {
    width: 100%;
    height: auto;
    vertical-align: bottom; }

#bx-pager,
#bx-pager2, 
#bx-pager3{
  position: relative;
  margin-top: 70px;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  /*justify-content: space-between;*/
  width: 100%; 
  justify-content:flex-start; 
  /*width: 50%; */
}
  #bx-pager a,
  #bx-pager2 a,
  #bx-pager3 a {
    width: 100%;
    font-size: 0;
    line-height: 0;
    padding: 0; }
  #bx-pager li,
  #bx-pager2 li,
  #bx-pager3 li {
    width: 150px;
    margin-bottom: 15px;
    margin-right: 24px;
    font-size: 0;
    line-height: 0;
    padding: 0; }
  #bx-pager li:nth-child(6n),
  #bx-pager2 li:nth-child(6n),
  #bx-pager3 li:nth-child(6n) {
    margin-right: 0px;}
  #bx-pager a img,
  #bx-pager2 a img,
  #bx-pager3 a img {
    filter: alpha(opacity=70);
    opacity: 0.7;
    -webkit-opacity: 0.7;
    -moz-opacity: 0.7;
    -ms-opacity: 0.7;
    -o-opacity: 0.7; }
  #bx-pager a.active img,
  #bx-pager2 a.active img,
  #bx-pager3 a.active img {
    filter: alpha(opacity=100);
    opacity: 1;
    -webkit-opacity: 1;
    -moz-opacity: 1;
    -ms-opacity: 1;
    -o-opacity: 1; }

.bx-caption {
  width: 100%;
  background: #eee;
  text-align: center;
  font-size: 13px;
  padding: 20px 0; }

@media only screen and (max-width: 768px) {
  #gallery {
    margin-bottom: 30px; }
  #bx-pager,
  #bx-pager2,
  #bx-pager3 {
    margin-top: 30px;
    width: 100%; }
    #bx-pager li,
    #bx-pager2 li,
    #bx-pager3 li {
      /*width: 14.6%;*/
      width: 30%;
      margin-bottom: 8px;
	margin-right: 5%;}
  #bx-pager li:nth-child(3n),
  #bx-pager2 li:nth-child(3n),
  #bx-pager3 li:nth-child(3n) {
    margin-right: 0px;} }
