.carousel-wrapper {
    width: 90%;
    margin: auto;
    padding-top: 20px;
  }
  
  /* Apply 'border-box' to 'box-sizing' so border and padding is included in the width and height. */
  .carousel-wrapper * {
    box-sizing: border-box;
  }
  
  /* We'll be using the 'transform' property to move the carousel's items, so setting the 'transform-style' to 'preserve-3d' will make sure our nested elements are rendered properly in the 3D space. */
  .carousel {
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    transform-style: preserve-3d;
    height: 350px;
  }
  
  /* By default we're hiding items (except the initial one) until the JS initiates. Elements are absolutely positioned with a width of 100% (as we're styling for mobile first), letting the content's height dictate the height of the carousel. Our magic property here for all our animation needs is 'transition', taking the properties we wish to animate 'transform' and 'opacity', along with the length of time in seconds. */
  .carousel-box-container {
    opacity: 0;
    position: absolute;
    top:0;
    width: 100%;
    margin: auto;
    z-index: 100;
    transition: transform .5s, opacity .5s, z-index .5s;
  }
  
  /* Display the initial item and bring it to the front using 'z-index'. These styles also apply to the 'active' item. */
  .carousel-box-container.initial,
  .carousel-box-container.active {
    opacity: 1;
    /* position: relative; */
    z-index: 900;
  }
  
  /* Set 'z-index' to sit behind our '.active' item. */
  .carousel-box-container.prev,
  .carousel-box-container.next {
    z-index: 800;
  }
  
  /* Translate previous item to the left */
  .carousel-box-container.prev {
    transform: translateX(-100%);
  }
  
  /* Translate next item to the right */
  .carousel-box-container.next {
    transform: translateX(100%);
  }
  
  /* Style navigation buttons to sit in the middle, either side of the carousel. */
  .carousel__button--prev,
  .carousel__button--next {
    position: absolute;
    top:50%;
    width: 3rem;
    height: 3rem;
    transform: translateY(-50%);
    cursor: pointer; 
    z-index: 1001; /* Sit on top of everything */
  /*  opacity: 0;  Hide buttons until carousel is initialised 
    transition:opacity 1s;*/
  }
  
  .carousel__button--next {
      transform: translateX(50%);
      transform: translateY(-50%);
  }
  
  .carousel__button--prev {
    left:0;
    background-image: url(https://media-asbestoslaw-com.s3.amazonaws.com/dev/settlements-lawsuits-page/prevarrowupdated.svg);
    background-repeat: no-repeat;
  }

  .carousel__button--prev:hover {
    background-image: url(https://media-asbestoslaw-com.s3.amazonaws.com/dev/settlements-lawsuits-page/prevarrow_hover.svg);
    background-repeat: no-repeat;
    transition: 0.5s;
  }
  
  .carousel__button--next {
    right:0;
    background-image: url(https://media-asbestoslaw-com.s3.amazonaws.com/dev/settlements-lawsuits-page/nextarrowupdated.svg);
    background-repeat: no-repeat;
    background-position-x: 62px;
  }

  .carousel__button--next:hover {
    right:0;
    background-image: url(https://media-asbestoslaw-com.s3.amazonaws.com/dev/settlements-lawsuits-page/nextarrow_hover.svg);
    background-repeat: no-repeat;
    background-position-x: 62px;
    transition: 0.5s;
  }
  
  
  /* Use pseudo elements to insert arrows inside of navigation buttons */
  .carousel__button--prev::after,
  .carousel__button--next::after {
    position: absolute;
    width: 10px;
    height: 10px;
    top: 50%;
    left: 54%;
    border-right: 2px solid black;
    border-bottom: 2px solid black;
    transform: translate(-50%, -50%) rotate(135deg);
  } 
  
  .carousel__button--next::after {
    left: 47%;
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  @media screen and (min-width: 1000px) {
    .carousel__button--prev {
        left: -38px;
    }
      
    .carousel__button--next, .carousel__button--next:hover {
        right: -38px;
    }

  }

  @media screen and (min-width: 750px) {
    .carousel {
      -webkit-transform-style: preserve-3d;
      -moz-transform-style: preserve-3d;
      transform-style: preserve-3d;
      height: 195px;
    }
  }