.main-container{
  text-align: center;
  position: relative;
  overflow-y: auto;
/*  max-height: 500px;*/
  margin-bottom: 80px;
  margin-top:20px;
}


#image-inc::-webkit-scrollbar-track {
  background-color: #ebebeb;
}

#image-inc::-webkit-scrollbar {
  width: 15px;
  background-color: #ebebeb;
}

#image-inc::-webkit-scrollbar-thumb {
  background-color: rgb(7, 15, 80);
  border: 2px solid rgb(7, 15, 80);
}

.square {
    /* float:left; */
    position: relative;
    width: 18%;
    padding-bottom: 18%; /* = width for a 1:1 aspect ratio */
    margin:5px;
    /*background-color:#1E1E1E;*/
    overflow:hidden;
    display: inline-block;
    border: 2px solid #fff;
}

.square:hover{
      border: 2px solid rgba(35, 43, 105, 0.81);
}

.content {
    position:absolute;
    height: 100%; /* = 100% - 2*5% padding */
    width: 100%; /* = 100% - 2*5% padding */
    /* padding: 5%; */
    background-image: url(../img/layout/loader.gif);
    background-position: center center;
    background-repeat: no-repeat;
    background-image: url('../img/layout/loader.gif');
}
.table{
    display:table;
    width:100%;
    height:100%;
}
.table-cell{
    display:table-cell;
    vertical-align:middle;
}

.content .rs{
    width:auto;
    height:auto;
    max-height:90%;
    max-width:100%;
}
/*  For responsive images as background */

.bg{
    background-position:center center;
    background-repeat:no-repeat;
    /* background-size:cover; */ /* you change this to "contain" if you don't want the images to be cropped */
    color:#fff;
    background-color: white;
}


.pagination-container{
  position: relative;
  /* background-color: #f5f5f5; */
  margin: 0 auto;
  text-align: center;
}
  

.gallery-images img {
   /* width: 100%; */
   height: 100%;
   position: absolute;
   top: -9999px;
   right: -9999px;
   bottom: -9999px;
   left: -9999px;
   margin: auto;
   min-width: 100%;
   min-height: 100%;
}


 /*@media (min-width:992px) and (max-width:768px){*/
 @media  (max-width:768px){

  .square{
    width: 23%;
    padding-bottom: 23%; /* = width for a 1:1 aspect ratio */
  }


 }
 @media  (max-width:663px){
  .square{
      width: 29%;
      padding-bottom: 29%; /* = width for a 1:1 aspect ratio */
    }

 }
 @media  (max-width:307px){
  .square{
      width: 98%;
      padding-bottom: 98%; /* = width for a 1:1 aspect ratio */
    }

 }

.item{
  height: 550px;
}

#carousel{
  margin: 20px 0;
}

.animated {
  -webkit-animation-duration: 0.4s;
  animation-duration: 0.4s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

@-webkit-keyframes fadeInUp {
  from {
    opacity: 0;
    -webkit-transform: translate3d(0, 100%, 0);
    transform: translate3d(0, 100%, 0);
  }

  to {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    -webkit-transform: translate3d(0, 100%, 0);
    transform: translate3d(0, 100%, 0);
  }

  to {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}

.fadeInUp {
  -webkit-animation-name: fadeInUp;
  animation-name: fadeInUp;
}


/* -- UPDATE -- */

.row-custom{

  margin-left: -15px;
  margin-right: -15px;

}

.jumbotron.gallery{

  height: auto;
  padding: 10% 0;

}

#img-gallery{

  margin-top: 2%;

}

#slider{

  background: #ececec;

}

.slides {

  display: table; 
  width: 100%; 

}

.slides .carousel-item{

  display: table-cell; 

}

.carousel-item .img-container{

  margin: 0;
  padding: 0;
  background: #ececec;
  height: 550px;
  background-size: cover !important;
  cursor: pointer;

}

.carousel-item .img-caption{

  margin: 0;
  padding: 0;
  background: #ececec;
  height: 550px;

}

.carousel-item .img-caption .caption-txt{

  padding: 5%;
  height: 470px;
  margin: 3% 0;
  overflow-y: auto;
  line-height: 24px;
  font-size: 15px;

}

.carousel-item .img-caption .caption-txt a{

  color: #333;

}

.carousel-item .img-caption .caption-txt a:hover{

  text-decoration: none;

}

#carousel{

  height: auto;
  clear: both;
  position: relative;
  top: -100px;
  overflow: hidden;

}

#carousel .slides li {

  cursor: pointer;
  padding: 80px 0;
  background-size: cover !important;
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
  border: 3px solid white;
  max-width: 226px !important;
  margin-right:10px !important;

}

#carousel .slides li.flex-active-slide{
  
  border: 3px solid #161c50;

}

#carousel .slides li.flex-active-slide{
    
  -webkit-filter: grayscale(0%);
  filter: grayscale(0%);

}

.custom-navigation{

  position: relative;    
  width: 42%;
  float: right;
  right: 0px;
  bottom: 130px;
  padding: 2%;
}

.custom-navigation a{

  display: inline-block;
  color: #0f164c;
  font-size: 16px;
  font-weight: bold;

}

.custom-navigation a:hover{

  text-decoration: none;  

}

.custom-navigation a i{

  font-size: 24px;
  vertical-align: middle;  
  -webkit-text-stroke: 2px #ececec;

}

.custom-navigation .flex-prev.flex-disabled,
.custom-navigation .flex-next.flex-disabled{

  color: #666;

}

.custom-navigation a.flex-next{

  float: right;

}


@media (max-width: 1024px){

  #carousel .slides li{

    max-width: 233px !important;

  }

}

@media (max-width: 991px){

  .custom-navigation{

    width: 51%;
    bottom: 120px;

  }

  .gal-btn{
    height:70px;
    font-size: 18px;
  }

}

@media (max-width: 736px){

  .carousel-item .img-container{

    height: 300px;
    float: none;
    display: block;
    position: relative;

  }

  .carousel-item .img-caption{

    height: 350px;
    float: none;
    display: block;
    position: relative;    

  }

  .carousel-item .img-caption .caption-txt{

    height: 170px;
    margin: 3%;
    padding: 2% 1%;
    position: absolute;

  }

  .custom-navigation{

    width: 100%;    

  }

  #carousel .slides li{

    width: 178px !important;

  } 

  #carousel .slides li{

    max-width: 174px !important;

  }

}

@media (max-width: 667px){

  #carousel .slides li{

    max-width: 200px !important;

  }

}

@media (max-width: 568px){

  #carousel{

    display: none;

  }

}

.gal-btn{

  font-size: 22px;
  font-family: Butler-Light, sans-serif;
  color: #0c0f46;
  height: 80px;
  background-color: white;  
  border: 2px solid #0c0f46;
  padding: 0 !important;
  margin: 1% 0; 
  word-wrap: normal;
  white-space: normal;

}

.gal-btn:hover,
.gal-btn.active:hover,
.gal-btn.active:focus{

  background-color: #0c0f46 !important;
  border: 2px solid #0c0f46 !important;
  color: white !important;  

}

.gal-btn.active{

  background-color: #0c0f46;
  border: 2px solid #0c0f46;
  color: white;  


}

@media (max-width: 414px){

  .gal-btn{

    font-size: 18px;
    line-height: 26px;
    height: 70px;

  }

  .carousel-item .img-caption .caption-txt{

    font-size: 14px;
    line-height: 22px;
    height: 225px;
    margin: 3% 2%;
    padding: 2% 1%;
    position: absolute;    

  }  

  .custom-navigation{

    width: 97.55%;
    bottom: 64px;
    background: #ececec;
    padding: 3%;
    margin: 0 auto;
    right: 4px;
  }

  .custom-navigation a{

    font-size: 15px;

  }  

}