#lightbox {
    position: fixed;
    top: 0;
    padding-top: 20px;
    z-index: 10000;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    text-align: center;
}

#lightbox .close {
    position: fixed;
    right: 8.5%;
    width: 350px;
    z-index: 10001;
    padding: 22px;
    height: 350px;
    top: 0;
}


#lightbox .close i {
    color: black;
    font-size: 26px;
    padding: 5px;
}

#lightbox img {
    box-shadow: 0 0 25px #111;
    -webkit-box-shadow: 0 0 25px #111;
    -moz-box-shadow: 0 0 25px #111;
    max-width: 940px;
}

#lightbox #over {
    position: fixed;
    left: 22%;
    width: 350px;
    z-index: 10001;
    padding-top: 20px;
    height: 250px;
    top: 0;
    text-align: center;
}

.conte {
    font-family: 'Open Sans Condensed', sans-serif;
    text-align: center;
    padding: 20px;
    width: 350px;
    height: 130%;
    font-size: 17px;
    line-height: 20px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    clear: left;
    text-align: justify;
}

.name {
    text-align: left;
    font-family: 'Open Sans Condensed', sans-serif;
    margin-left: 10px;
    font-size: 30px;
    display: block !important;
}

 @media (max-width:1080px) {
    #lightbox .close {
        position: fixed;
        right: 5%;
        width: 250px;
        z-index: 10001;
        height: 250px;
        top: 0;
    }
    #lightbox .close i {
        color: black;
        font-size: 26px;
        padding: 2px;
    }
    #lightbox img {
        max-width: 930px;
    }
    #lightbox #over {
        left: 17%;
   
    }
    .conte {
       
        width: 350px;
        height: 130%;
        font-size: 17px;
        line-height: 20px;
       
    }
    .name {
        margin-left: 10px;
        font-size: 30px;
       
    }
}

@media (max-width:950px) {
    #lightbox {
        padding-top: 30px;
    }
    #lightbox .close {
        position: fixed;
        right: 4%;
        width: 250px;
        padding-top: 30px;
    }
    #lightbox .close i {
        color: black;
        font-size: 26px;
        padding: 2px;
    }
    #lightbox img {
        max-width: 670px;
    }
    #lightbox #over {
       
        left: 12%;
        width: 340px;
        padding-top: 28px;
        height: 320px;
    }
    .conte {
        
        width: 310px;
        height: 300px;
        font-size: 15px;
        line-height: 18px;
     
    }
    .name {
        
        margin-left: 10px;
        font-size: 25px;
    }
}

@media (max-width:890px) {
    #lightbox {
        padding-top: 120px;
    }
    #lightbox #over {
        padding-top: 105px;
    }
    #lightbox .close {
        right: 2%;
        padding-top: 120px;
    }
    #lightbox img {
        box-shadow: 0 0 25px #111;
    }
}

@media (max-width: 820px) {
    #lightbox .close {
        position: fixed;
        right: 2%;
        width: 250px;
        z-index: 10001;
        height: 250px;
        top: 0;
    }
    #lightbox img {
     
        max-width: 610px;
    }
}

@media (max-width:790px) {

    #lightbox img {
        max-width: 590px;
    }
}

@media (max-width:760px) {
   
    #lightbox img {
   
        max-width: 570px;
    }
}

@media (max-width:730px) {
    #lightbox .close {
       
        right: 2%;
       
    }
    #lightbox img {
      
        max-width: 540px;
    }
}

@media (max-width:700px) {
    #lightbox .close {
 
        right: 1%;
     
    }
    #lightbox img {

        max-width: 520px;
    }
    .conte {
        width: 330px;
        height: 260px;
        font-size: 13px;
        line-height: 16px;
      
    }
    .name {
     
        margin-left: 10px;
        font-size: 20px;
    }
}

@media (max-width:670px) {
    #lightbox .close {
      
        right: 1%;
      
    }
    #lightbox img {
      
        max-width: 500px;
    }
}

@media (max-width:640px) {
    #lightbox .close {
     
        right: 0%;
       
    }
    #lightbox img {
   
        max-width: 490px;
    }
    
    
}

@media (max-width:610px) {
  
    #lightbox img {
       
        max-width: 450px;
    }
    .conte {
     
        
        width: 310px;
        height: 230px;
    
    }
    .name {
   
        margin-left: 10px;
        font-size: 18px;
    }
}

@media (max-width:590px) {
    #lightbox .close {
        right: -1%;
      
    }
    #lightbox img {
        max-width: 430px;
    }
    .conte {
        width: 310px;
        height: 210px;
    
    }
}

@media (max-width:560px) {
   
    #lightbox img {
        max-width: 410px;
    }
    .conte {
        padding: 20px;
        width: 300px;
        height: 210px;
        font-size: 12px;
        line-height: 13px;
    
    }
    
}

@media (max-width:530px) {
    #lightbox .close {
        right: -8%;
    }
    #lightbox img {
        max-width: 400px;
    }
}

@media (max-width:500px) {
    #lightbox .close {
        right: -8%;
    }
    #lightbox img {
        max-width: 370px;
    }

      #lightbox #over {
 
    left: 10%;
   

}

}

@media (max-width:470px) {
    #lightbox .close {
        right: -8%;
    }
    #lightbox img {
        max-width: 350px;
    }
    .conte {
        width: 300px;
        height: 160px;
        font-size: 12px;
        line-height: 12px;
    }
    .name {
        font-size: 18px;
    }
}

@media (max-width:470px) {
    #lightbox .close {
        right: -10%;
    }
}

@media (max-width:440px) {
    #lightbox .close {
        right: -14%;
    }

      #lightbox #over {
 
    left: 9%;
   

}

}

@media (max-width:410px) {
    #lightbox .close {
        right: -18%;
    }
}

@media (max-width:380px) {
    #lightbox .close {
        right: -20%;
    }
}

@media (max-width:350px) {
    #lightbox .close {
        right: -24%;
    }
    #lightbox img {
        max-width: 330px;
    }
}

@media (max-width:330px) {
    #lightbox .close {
        right: -26%;
    }
    #lightbox img {
        max-width: 310px;
    }
}

@media (max-width:320px) {
    #lightbox .close {
        right: -28%;
    }
    #lightbox img {
        max-width: 280px;
    }
    #lightbox #over {
    left: 7%;
}

 .conte {
        width: 240px;
        height: 120px;
        font-size: 8px;
        line-height: 10px;
    
    }
}
