#slider {
    margin: 0px auto 0 auto;
    padding-right: 30px;
    max-width: 740px;
    height: 300px;
    position: relative;
    animation: comein 1.5s ease-in-out;
    margin-right: 0px;
    overflow: hidden;
  }

  .portfolio {
    width: 100%;
    position: absolute;
    right: 0;
    top: 0;
    transition: 0.2s;
    cursor: pointer;
    box-shadow: -2px 0 3px rgba(0, 0, 0, 0.3);
  }
  
  .portfolio img{
    width: 75%;
  }
  
  .portfolio:nth-child(1) {
    left: 10px;
  }
  
  .portfolio:nth-child(1):hover {
    left: 0px;
    transform: rotate(-2deg);
  }
  
  .portfolio:nth-child(2) {
    left: 5%;
  }
  
  .portfolio:nth-child(2):hover {
    left: 0%;
    transform: rotate(-2deg);
  }
  
  .portfolio:nth-child(3) {
    left: 10%;
  }
  
  .portfolio:nth-child(3):hover {
    left: 5%;
    transform: rotate(-2deg);
  }
  
  .portfolio:nth-child(4) {
    left: 15%;
  }
  .portfolio:nth-child(4):hover {
    left: 10%;
    transform: rotate(-2deg);
  }
  
  .portfolio:nth-child(5) {
    left: 20%;
  }
  .portfolio:nth-child(5):hover {
    left: 15%;
    transform: rotate(-2deg);
  }
  .portfolio:nth-child(6) {
    left: 25%;
    transform: rotate(-2deg);
  }
  .portfolio:nth-child(6):hover {
    left: 20%;
    transform: rotate(-4deg);
  }
  
  .opened {
    z-index: 1000;
    left: 0 !important;
    top: -10px;
    transform: rotate(0deg);
    box-shadow: 0 0 3px rgb(255, 51, 51);
    width: 100%;
    max-width: 1140px;
  }
  
  .opened img {
    z-index: 5;
    width: 100%;
  }
  
  .ombra {
    position: absolute;
    bottom: 20px;
    left: 10px;
    width: 90%;
    height: 20px;
    box-shadow: 0 15px 10px rgba(255, 0, 0, 0.548);
    transform: rotate(-2deg);
    display: none;
    z-index: -1;
  }
  
  .ombra:after {
    display: block;
    content: "";
    position: absolute;
    bottom: -8px;
    right: -93px;
    width: 90%;
    height: 20px;
    box-shadow: 0 15px 10px rgba(0, 0, 0, 0.7);
    transform: rotate(4deg);
  }
  
  #navi {
    position: absolute;
    right: 50px;
    bottom: 5px;
    margin: 0 0 0 -62px;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0.8;
    color: white;
    height: 21px;
    border-radius: 20px;
    border: 1px solid #fab846;
    padding: 0px 10px 0 10px;
  }
  
  .circle {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 10px;
    background: #efefef;
    border: 1px solid #000;
    margin-right: 6px;
    cursor: pointer;
  }
  
  .circle:hover {
    background: rgba(255, 0, 0, 0.548);
    border: 1px solid #ccc;
  }
  
  .circle:active,
  .activenav,
  .activenav:hover {
    background: #666;
    border: 1px solid #333;
  }
  
  .activenav {
    cursor: default;
  }
  
  .circle:last-child {
    margin-right: 0;
  }
  
  
@media screen and (max-width: 500px)
{
    .about-top #slider{
      height: 190px;
    }
  }

   @media screen and (max-width: 800px)
  {
    #slider #navi{
      bottom: 35px;
      right: 5px;
    }

  }