#galleryModal .modal-body {
    position: relative;
}

#galleryModal .nav-tabs {
    margin-bottom: 10px;
    border-bottom: none;
}

#galleryModal .nav-tabs li a {
    padding: 5px 15px;
}

#galleryModal .nav-tabs li.active a {
    color: #009687;
    border: none;
    border-bottom: 3px solid #009687;
}

#galleryModal .image-caption {
    text-align: right;
    margin-bottom: 5px;
}

#galleryModal .image-caption .caption {
    margin-right: 5px;
}

#galleryModal .carousel {
    position: relative;
}

#galleryModal .carousel .carousel-inner img.tall {
    width: auto;
    height: 100%;
    margin: 0 auto;
}

#galleryModal .carousel .carousel-caption {
    background: rgba(0,0,0,0.6);
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    padding-bottom: 0;
    padding-top: 8px;
}

#galleryModal .carousel-indicators {
    position: relative;
    top: 10px;
    left: 0;
    width: 100%;
    margin-left: 0;
}

#galleryModal .carousel-indicators li {
    text-indent: 0;
    display: inline-block;
    width: 10%;
    height: 50px;
    margin: 5px 0px;
}

#galleryModal .carousel-indicators li a {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

#galleryModal .carousel-indicators li img {
    width: 100%;
    height: 100%;
    border:2px solid #CCCCCC;
    padding: 2px;
    position: absolute;
    top: 0;
    left: 0;
}

#galleryModal .carousel-indicators .active img {
    border:2px solid #04BEF5;
}

#galleryModal .carousel-indicators .active {
    margin: 5px 0px;
    width: 10%;
    height: 50px;
}

#galleryModal .carousel-indicators a:focus img {
    border:2px solid #04BEF5;
}

#galleryModal .carousel-control.right,
#galleryModal .carousel-control.left {
    z-index: 1;
}

#galleryModal .carousel-control .glyphicon {
    color: white;
}

#galleryModal .spinner-bg {
    width: 100%;
    height: 100%;
    background: white;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
    border-radius: 6px;
    transition: all .2s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

#galleryModal .spinner{
  width: 50px;
  height: 50px;
  border-radius: 100%;
  position: relative;
}

#galleryModal .spinner:before, .spinner:after{
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  width: 100%;
  height: 100%;
  border-radius: 100%;
  border: 10px solid transparent;
  border-top-color: #128275;
}

#galleryModal .spinner:before{
  z-index: 100;
  animation: spin 1s infinite;
}

#galleryModal .spinner:after{
  border: 10px solid #ccc;
}

@keyframes spin{
  0%{
    -webkit-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100%{
    -webkit-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@media screen and (min-width:320px) and (max-width:360px) {
    #galleryModal .carousel-indicators{
        top:115px;
        left:95px;
    }
    #galleryModal .carousel-indicators li img{
        width:95%;
        height:50px;
    }
    #galleryModal .carousel-indicators li{
        width:20%;
        height:50px;
    }
    #galleryModal .carousel-indicators .active{
        width:20%;
        height:50px;
    }
}