.services-gallery-box {
    background-color: white;
    position: relative;
    top: 100px;
    margin: 10px auto 100px auto;
    border-radius: 20px;
    width: 95%;
    padding: 20px;
    text-align: center;
}

.services-gallery-box h3 {
    color: #23323d;
    margin-bottom: 30px;
}

.filterDiv {
    float: left;
/*    display: none;*/
    height: 164px;
    margin: 0px;
    width: 130px;
    overflow: hidden;
}


.filterDiv img {
    margin: 0px;
    position: relative;
    width: 100%;
    transition: 0.6s ease;
    }
    
.filterDiv img:hover {
    filter: brightness(75%);
}

.show {display: block;}

.btn {
    border: none;
    outline: none;
    padding: 12px 16px;
    background-color: #f1f1f1;
    cursor: pointer;
    transition: 0.5s ease;
}

.btn:hover {background-color: #ddd;}

.btn.active {
    background-color: #666;
    color: white;
}

.portfolio-modal {
    max-width: 660px;
}

.portfolio-modal img {
    margin: auto;
    max-height: 400px;
    max-width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
/*    border: 1px solid #333;*/
}

.portfolio-modal p span {
    font-weight: 600;
    font-variant: small-caps;
}

.portfolio-modal li {
    float: left;
    margin: 10px 10px 0px 0px;
    font-weight: 600;
    font-variant: small-caps;
}

/*========================================GRID STYLING=========================================*/

.services-gallery-grid {
    display: grid;
    margin: 0px auto 20px auto;
    position: relative;
    width: 280px;
    grid-template-columns: 130px 130px;
    grid-gap: 20px;
}

/*========================================Page links=========================================*/

.page-link-div {
    position: relative;
    width: 280px;
    margin: 0px auto;
    display: flex;
    justify-content: space-between;
}

.page-link-div a {user-select: none;}

.page-link-div a:hover {
    color: #bbb;
}

/*========================================IMAGE SCROLLING IN MODALS=========================================*/

.mySlides {display:none;}

/* Slideshow container */
.slideshow-container {
  max-width: 600px;
  position: relative;
  margin: 0px auto 15px auto;
  background-color: #ddd;
  height: 420px;
  padding: 10px 0px 10px 0px;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: #ddd;
}

.prev {left: 0;}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* The dots/bullets/indicators */
.dot {
  cursor:pointer;
  height: 13px;
  width: 13px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: hidden;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1.5s;
  animation-name: fade;
  animation-duration: 1.5s;
}

@-webkit-keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}

@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}

/*========================================MEDIA QUERIES===========================================*/

/*=====================Screen size = 360px to 639px=====================*/
@media screen and (min-width: 360px){

}
/*=====================Screen size = 640px to 767px=====================*/
@media screen and (min-width: 640px){

.services-gallery-grid {
    width: 430px;
    grid-template-columns: 130px 130px 130px;
}

.page-link-div {width: 430px;}

}
/*=====================Screen size = 768px to 1023px=====================*/
@media screen and (min-width: 768px){

}
/*=====================Screen size = 1024px to 1199px=====================*/
@media screen and (min-width: 1024px){

.services-gallery-grid {
    width: 730px;
    grid-template-columns: 130px 130px 130px 130px 130px;
}

.page-link-div {width: 730px;}

}
/*=====================Screen size = 1200px to 1599px=====================*/
@media screen and (min-width: 1200px){

}
/*=====================Screen size = 1400px and above=====================*/
@media screen and (min-width: 1400px){

.services-gallery-grid {
    width: 1030px;
    grid-template-columns: 130px 130px 130px 130px 130px 130px 130px;
}

.page-link-div {width: 1030px;}

}