/*
 * jQuery FlexSlider v2.0
 * Overrides / Custom 
 */

.flexslider {
  margin: 0 0 30px;
  border: 0;
  background-color: transparent;
}
.flex-viewport {
  border-radius: 5px;
  transition: all 1s ease 0s;
}
.flexslider .slides {
  background: #eee;
  border-radius: 5px;
}
#portfolio_tem .flexslider .slides {
  position: relative;  
  zoom: 1;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -ms-flex-align: center;
  -webkit-align-items: center;
  -webkit-box-align: center;
  align-items: center;
}
#aboutus .flexslider .slides li {
  position: relative;
}
#portfolio_tem .flexslider .slides li {
  position: unset !important;
}
#aboutus .flexslider .slides li img {
  border-radius: 5px;
}
#portfolio_tem .flexslider .slides li img {
  width:100%;
  object-fit: cover; /* contain; */
  object-position: center center;
  height: 400px; /* 500px; */
  max-height: 400px; /* 500px; */
  display: block;
  border-radius: 4px;
}
.flexslider .flex-caption {
  position: absolute;
  padding: 10px 0;
  bottom: 0;
  color: #fff;
  margin: 0;
  text-align: center;
  width: 100%;
  border-radius: 0 0 5px 5px;
}
#portfolio_tem .flex-slide .flex-caption {
  background: rgba(0,0,0,.4);
  text-shadow: none;
  font-size: 16px;
  line-height: 18px;
  bottom: -50px;
  z-index: 0;
  transition: all .25s;
}

#portfolio_tem .flex-slide:hover .flex-caption {
  bottom: 0;
  z-index: 9;
}

#portfolio_tem .flex-slide .image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  opacity: 0;
  overflow: hidden;
  z-index: 0;
}
#portfolio_tem .flex-slide:hover .image-overlay {
  opacity: 1;
  z-index: 1;
}
#portfolio_tem .flex-slide .image-overlay .overlay-icon {
  width: 70px;
  height: 70px;
  display: block;
  border-radius: 50%;
  opacity: 0;
  background-color: orange;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  position: absolute;
  top: -70px;
  left: 50%;
  margin-left: -35px;
  margin-top: 0;
}
#portfolio_tem .flex-slide .image-overlay .overlay-icon .fa {
  font-size: 40px;
  color: white;
  margin: 15px 0 0 18px;
}

#portfolio_tem .flex-slide:hover .image-overlay .overlay-icon {
  opacity: 0.6;
  top: 50%;
  margin-top: -35px;
}




#aboutus .flex-caption {
  background: rgba(0,0,0,.2);
  text-shadow: 0 -1px 0 rgba(0,0,0,.3);
  font-size: 18px;
  line-height: 20px;
}
.flex-control-paging li a {
  width: 18px;
  height: 18px;
  background: #2894DC; /* rgba(0, 0, 0, 0.3); */
  border: 3px solid #fff;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  -o-box-shadow: none;
  box-shadow: none;
}
.flex-control-paging li a:hover {
  background: orange;
}
.flex-control-paging li a.flex-active {
	background: orange;
  border: 3px solid orange;
}

#slider .flex-direction-nav a {
  margin: 0;
  top: calc(50% - 4rem);
  transition: all .25s;
  height: 6rem;
}

.product .flex-direction-nav .flex-nav-prev a,
.product .flex-direction-nav .flex-nav-next a {
  width: unset;
  padding: 2px;
}
.flex-direction-nav a:before {
  font-family: 'FontAwesome';
  line-height: 1;
  color: #fff;
  /*  text-shadow: 1px 1px 0 #fff, 1px 0 1px #fff, 0 1px 1px #fff; */
  text-shadow: 0 0 4px black;
  font-size: 80px;
}
.flex-direction-nav a.flex-next:before {
  content: '\f105';
}
.flex-direction-nav a.flex-prev:before {
  content: '\f104';
}


.product .flex-control-nav {
  background-color: #fff;
  padding: 1rem 0;
  position: relative;
  bottom: 0;
  z-index: 9;
}



@media (max-width: 767px) {
  #portfolio_tem .flexslider .slides li img {
    height: 300px;
    max-height:3500px;
  }
  #portfolio_tem .flexslider .flex-caption {
    position: relative;
  }
 .flexslider .slides,
 #portfolio_tem .flex-caption {
    background: #ddd;
    color: #333;
  }
}



#lightboxOverlay {
    position: fixed !important;
    top: 0;
    left: 0;
    height: 100% !important;
    width: 100% !important;
}

#lightbox {
    position: fixed !important;
    top: 50% !important;
    transform: translateY(-50%);
}