.bordered {
  border: 1px solid red;
}

#carouselExampleSlidesOnly1 {
  position: relative;
  height: auto;
}

#carouselExampleSlidesOnly1 .carousel-inner {
  background-color: #cccccc;
}


.learn-more-caption {
  position: absolute;
  top: 3rem;
  left: 5rem;
  width: 30%;
  height: auto;
  padding: 1rem;
  background-color: rgba(9,9,9,0.7);
  height: auto;
  color: #fff;
  transform: scale(1.1);
}


#currentImg {
  width: 100%;
  height: auto;
  transform: scale(1.1);
}

.learn-more {
  display: none;
}

.thumb-slide {
  display: grid;
  justify-content: center;
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax( 10%, 1fr));
  width: 86%;

  position: absolute;
  bottom: 1rem;
  left:0;
  right:0;
}

.thumb-image {
  position: relative;
  margin: 0.25rem;

}


.thumb-image img{
  width: 100%;
  filter: grayscale(1);
  transition: all .3s linear;
}

.thumb-image.active img {
  filter: none !important;
  /* border: 3px solid rgba(36, 104, 231, 0.842); */
}

.thumb-image:hover img {
  filter: none !important;
  cursor: pointer;
}

.text-image {
  /* position: absolute !important;
  display: block !important;
  bottom: 0 !important;
  left: 0 !important; */
  width: 2.1vw !important;
  height: 2.1vw !important;
  min-width: 20px !important;
  min-height: 20px !important;
  background-color: #fff;
  border-radius: 50%;
  transition: all ease .2s
}



.thumb-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: right;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  z-index: 2;
  padding: 5px 0;
  font-size: 1.2vw;
  margin: 0 3px 3px 3px;
  transition: all ease-in-out .2s;
  display: flex;
  align-content: center;
  justify-content: center;
}

.thumb-text:hover {
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.8);
  color: #000;
}

.text-p{
  /* padding-top: 0.3rem; */
  padding-left: 0.3rem;
  color: #fff;
}

.thumb-text:hover .text-p {
  cursor: pointer;
  color: #000;
}

.thumb-text img {
  /* position: absolute !important;
  display: block !important; */
  /* bottom: 0 !important;
  left: 0 !important; */
  width: 100% !important;
  height: 100% !important;
  /* border: 1px solid red !important; */
}

.text-p {
  font-size: 1.2vw;
}

.thumb-slider-wrapper .btn {
  position: absolute;
  bottom: 2.5vw;
  /* border: 1px solid red; */
}

.thumb-slider-wrapper .btn span {
  font-size: 3.5vw;
  color: #fff;
  opacity: 0.6;
  transition: all .3s linear;
  /* border: 1px solid red; */
}

.thumb-slider-wrapper .btn span:hover {
  opacity: 1;
  color: #fff;
}

.btn-prev {
  left: 2%;
}

.btn-next {
  right: 2%;
}

.thumb-btn span {
  top: 1rem;
}

.thumb-slider-wrapper {
  /* border: 1px solid blue; */
  position: relative;
  bottom: 0;
  top: 0;
}


.animate {
  
  transform: scale(1);
  background-color: rgba(9, 9, 9, 0.1);    
  left:-100%;
  opacity: .3;
  animation: displayImage 0.5s ease-out 1 backwards;
}

@keyframes displayImage {

  from {
    transform: scale(1);
    background-color: rgba(9, 9, 9, 0.05);    
    left: -100%;
    opacity: .05;

  }



  to {
      transform: scale(1.1);
      background-color: rgba(9, 9, 9, 0.3);    
      left: 5rem;
      opacity: 1;


  }

  /* 5% {
      transform: scale(1);
      background-color: rgba(9, 9, 9, 0.05);    
      left: -100%;
      opacity: .5;

  }

  

10% {
      opacity: 1;
      transform: scale(1.1);
      background-color: rgba(9, 9, 9, 0.3);    
      left: 0;

  }

  20% {
    opacity: 1;
    transform: scale(1.1);
    background-color: rgba(9, 9, 9, 0.3);    
    left: 0;

}

30% {
  opacity: 1;
  transform: scale(1.1);
  background-color: rgba(9, 9, 9, 0.3);    
  left: 0;

}

40% {
  opacity: 1;
  transform: scale(1.1);
  background-color: rgba(9, 9, 9, 0.3);    
  left: 0;

}

50% {
  opacity: 1;
  transform: scale(1.1);
  background-color: rgba(9, 9, 9, 0.3);    
  left: 0;

}

60% {
  opacity: 1;
  transform: scale(1.1);
  background-color: rgba(9, 9, 9, 0.3);    
  left: 0;

}

70% {
  opacity: 1;
  transform: scale(1.1);
  background-color: rgba(9, 9, 9, 0.3);    
  left: 0;

}

80% {
  opacity: 1;
  transform: scale(1.1);
  background-color: rgba(9, 9, 9, 0.3);    
  left: 0;

}

90% {
  opacity: 1;
  transform: scale(1.1);
  background-color: rgba(9, 9, 9, 0.3);    
  left: 0;

}

100% {
  opacity: 1;
  transform: scale(1.1);
  background-color: rgba(9, 9, 9, 0.3);    
  left: 0;

} */
}


@keyframes animateActive {
  

  to {
      filter: none;
  }
}

@media only screen and (max-width: 1100px) {
  .learn-more-caption {
   width: 70%;
   margin: 0 auto;
   font-size: .5vh;   
  }
}

@media only screen and (max-width: 850px) {
  .learn-more-caption {
   width: calc(100% - 10rem);
   margin: 0 auto;
   font-size: .5vh;   
  }

  .text-p {
    display: none;
  }

  .thumb-slide {
      position: relative;
      margin-top: 2.5rem;
      width: 100%;
  }
  
  #carouselExampleSlidesOnly1 {
      /* background-color: rgba(195, 195, 195, 0.3); */
      height: calc(100% + 2rem);
  }

  .thumb-slider-wrapper {
      padding-top: 2rem;
      /* border: 1px solid red; */
  }

  .thumb-slider-wrapper .btn span {
      color: #333;
      font-size: 2.5rem;
  }

  .thumb-slider-wrapper .btn span:hover {
      color: #000;
  }

  .thumb-slider-wrapper .btn {
      top: 0;
      bottom: unset;
      /* border: 1px solid red; */
      z-index: 1;
      /* margin: 0.5rem 0; */
  }

  .btn-prev {
      left: 30%;
  }
  
  .btn-next {
      right: 30%;
  }

  .thumb-image span {
      display: none;
  }
}


@media only screen and (max-width: 640px) {

  .learn-more-caption {
    top: 1.5rem;
  }
 
  .thumb-slide {
      width: 90%;
      grid-template-columns: repeat(auto-fit, minmax( 30%, 1fr));
  }
  #caption p {
      display: none;
  }

  #caption {
      display: grid;
      align-items: center;
      /* align-content: center; */
      text-align: center;
      grid-row-gap: 1rem;
  }

  .text-p {
    display: none;
  }
  
}