.block-type-portfolio_gallery .swiper {
  width: 100%;
  height: 100%;
}

.block-type-portfolio_gallery .swiper-slide {
  text-align: center;
  font-size: 18px;
  height:auto;
  /* Center slide text vertically */
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
}

.block-type-portfolio_gallery .swiper-slide img {
  display: block;
  width: 100%;
}

.block-type-portfolio_gallery .swiper {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.block-type-portfolio_gallery .swiper-slide {
  background-size: contain;
  background-position: center;
  background-repeat:no-repeat;
}

.block-type-portfolio_gallery .main-images .swiper-slide {
  padding-bottom:50%;
}

.block-type-portfolio_gallery .mySwiper {
  height: 20%;
  box-sizing: border-box;
  padding: 40px 0;
}

.block-type-portfolio_gallery .mySwiper .swiper-slide {
  /*width: 25%;
  height: auto;*/
  opacity: 0.4;
  cursor: pointer;
}

.block-type-portfolio_gallery {
  user-select:none;
}

.block-type-portfolio_gallery .mySwiper .swiper-slide-thumb-active {
  opacity: 1;
}


.block-type-portfolio_gallery .nav-container {
    display: flex;
    flex-direction: row;
    width: auto;
    justify-content: flex-start;
    align-content: space-between;
    margin-left: 0px;
    user-select: none;
    
}



.block-type-portfolio_gallery .mySwiper2 .swiper-button-prev, .block-type-portfolio_gallery .mySwiper2 .swiper-button-next {
  position: relative;
  top: auto;
  width: auto;
  left: auto;
  right: auto;
  height: auto;
  margin-top: auto;
  color:white;
  font-size: 10px;
}

.block-type-portfolio_gallery .outer-nav {
  padding-top:20px;
}
.block-type-portfolio_gallery .nav-container .swiper-button-next {
  margin-left:40px;
}

.block-type-portfolio_gallery .swiper-button-next:after, .swiper-rtl .swiper-button-prev:after, .block-type-portfolio_gallery .swiper-button-prev:after, .swiper-rtl .swiper-button-next:after {
  display:none;
}

@media screen and (max-width:800px) {
  .block-type-portfolio_gallery .swiper-thumbs {
    display:none;
  }
  .block-type-portfolio_gallery .main-images .swiper-slide {
    padding-bottom:70%;
  }
}