.gallery {
  width: 100%;
  height:100%;
  margin:0 auto;
max-height: 800px;
  margin-top: 420px;
}

.gallery-container {
  align-items: center;
  display: flex;
  height: 760px;
  margin: 0 auto;
  max-width: 1000px;
  position: relative;
}

.gallery-item {
  height:500px;
  opacity: .4;
  position: absolute;
  transition: all 0.3s ease-in-out;
  background-image: url("Carousel_Background.svg");
  background-repeat:no-repeat, no-repeat;
  background-position: center center, center center;
  background-size:  65%, contain;
  width: 500px;
  z-index: 0;
}

.gallery-item.gallery-item-selected {
  /* box-shadow: 0 0 30px rgba(255, 255, 255, 0.6), 0 0 60px rgba(255, 255, 255, 0.45), 0 0 110px rgba(255, 255, 255, 0.25), 0 0 100px rgba(255, 255, 255, 0.1); */
  height: 500px;
  opacity: 1;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  z-index: 2;
}

.gallery-item.gallery-item-previous,
.gallery-item.gallery-item-next {
  height: 200px;
  opacity: 1;
  width: 200px;
}

.gallery-item.gallery-item-previous {
  left: 30%;
  transform: translateX(-50%);
}

.gallery-item.gallery-item-next {
  left: 70%;
  transform: translateX(-50%);
}

.gallery-item.gallery-item-first {
  left: 15%;
  transform: translateX(-50%);
  display: none;
}

.gallery-item.gallery-item-last {
  left: 85%;
  transform: translateX(-50%);
  display:none;
}

.gallery-controls {
   display: flex;
   justify-content: center; 
 
}

.gallery-controls button {
  border: 0;
  font-size: 0px;
  margin: 0 20px;
  padding: 0 12px;

}

.gallery-controls button:focus {
  outline: none;
}

.gallery-controls-previous {
  top:1280px;
  left:-180px;
  position: absolute;
}

.gallery-controls-previous::before {

  background-image: url('/images/prev.svg');
  content: '';
  display: inline-block;
  height: 70px;
  left: 430px;
  padding: 2px;
  position: absolute;
  width: 70px;
  cursor:pointer;
}

.gallery-controls-previous:hover::before {
  /* left: -1px; */
}

.gallery-controls-next {
  top:1280px;
  right:-180px;
  position: absolute;
}

.gallery-controls-next::before {
  background-image: url('/images/next.svg');
  content: '';
  display: inline-block;
  height: 70px;
  padding: 2px;
  position: absolute;
  right: 230px;
  width: 70px;
  cursor:pointer;
}

.gallery-controls-next:hover::before {
  /* right: -1px; */
}


.gallery-nav {
  bottom: -15px;
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  position: absolute;
  width: 100%;
  display: none;
}

.gallery-nav li {
  background: #ccc;
  border-radius: 50%;
  height: 10px;
  margin: 0 16px;
  width: 10px;
}

.gallery-nav li.gallery-item-selected {
  background: #555;
}


  @media only screen and (max-width: 1024px) {
	  .gallery{
		  margin-top:567px;
      height:65%;
    }
	  
    .gallery-controls-next::before{
      right:20vw;
    }

    .gallery-controls-next,.gallery-controls-previous{
      top:1452px;
    }


    }

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

      .gallery{
        display: flex;
        flex-direction: column;
        height: 100%;
      }
     .gallery-container{
        order:1;
        margin:70px auto;
       }

       .gallery-controls-previous{
         top:1222px;
         left:-364px;
       }

       .gallery-controls-next{
         top:1222px;
         right:-95px;
       }
            
    }


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

      .gallery{
        margin:75vw auto;
        height: 90%;
      }

      .gallery-controls-previous{
        left:-440px;
        top:1224px;
      }

      .gallery-controls-next{
        top:1224px;
      }
    }


    @media only screen and (max-width: 790px) {
      .gallery-controls-previous{
        left:-397px;
        top:1172px;
      }

      .gallery-controls-next{
        top:1172px;
        right:-132px;
      }


    }



    @media only screen and (max-width: 745px){
      .gallery{
        margin-top:80vw;
      }
    }

    @media only screen and (max-width: 690px){
      .gallery{
        height:84%;
        margin-top: 89vw;
      }

      .gallery-item.gallery-item-selected{
        height:368px;
        width:390px;
        top:-74px;
        }      
    }
    @media only screen and (max-width: 660px){
      .gallery{
        margin-top: 98%;;
      }

    }

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

      .gallery{
        margin-top: 92vw;
      }

      .gallery-controls-previous{
        left:-446px;
        top:1048px;
      }

      .gallery-controls-next{
        top:1048px;
      }


    }

    @media only screen and (max-width: 620px) {
      .gallery{
        margin-top: 85vw;
      }
    }

    @media only screen and (max-width: 590px){
      .gallery{
        margin-top: 95vw;
      }

      .gallery-item.gallery-item-selected{
        width: 358px;;
      }
    }

    @media only screen and (max-width: 450px){
      .gallery-item.gallery-item-selected{
        width: 239px;
        top:-157px;
      }

      .gallery-controls{
        position: absolute;
        top:-436px;
      }

      .gallery-controls-previous{
        left:-466px;
      }
      .gallery-controls-next{
        right:-434px;
      }

      .gallery-item.gallery-item-previous{
        height: 120px;
      }
    }
    
