@media(min-width:480px) and (max-width:991px){

   div#imagePreview{
   flex-wrap: wrap;

  }

  .image-container {
    max-width: calc(50% - 10px) !important;
  }


}

@media(max-width:479px){

  .image-container {
      width:100%;
      max-width: unset !important;
  }

}


.image-container div{
 white-space: nowrap;       
  overflow: hidden;          
  text-overflow: ellipsis;   
  width: 100%;              
  display: block;
  
}




@media(max-width:392px){

   .prev-img-col button {
     width: 75% !important;
  }

}

@media(max-width:991px){

   .prev-img-col {
    flex-wrap: wrap;
  }

   .prev-img-col button {
    font-size:14px !important;
  }

}

@media(max-widtH:767px){
    
    
   div#imagePreview {
    max-height: 400px;
    overflow: auto;
   }
    
}





/*=-------------------------------------------*/


/* Your existing styles stay unchanged */
.single-tools #content div#primary main#main {margin: 50px 0 !important;}
.image-container:hover button.remove-button {
    background: red;
}
div#imagePreview {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 20px;
    padding: 0;
    flex-wrap: wrap;
    margin-bottom: 40px;
    border: 1px solid #ccc5;
    padding: 20px;
    background: #0001;
    border-radius: 5px;
}
.image-container {
    width: 100%;
    height: auto;
    position: relative;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    max-width: calc(25% - 15px);
    border-radius: 5px;
    font-weight: 500;
}
.remove-button {
    position: absolute;
    top: -5px;
    right: -5px;
    cursor: pointer;
    font-size: 25px;
    width: 25px;
    height: 25px;
    line-height: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 5px;
}
#page2 h2 {
    font-size: 30px !important;
    margin: 0 auto 0 0;
    text-transform: capitalize;
    font-weight: 600;
}
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
button {
    background-color: #117eef;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
}
.prev-img-col {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
div#page1 {
    display: block;
    width: 100%;
    max-width: 550px;
    text-align: center;
    padding: 25px;
    box-shadow: 0 0 15px 0px #0002;
    border-radius: 10px;
    margin: 10px auto 30px;
}
.file-input {
    color: #0e65bf;
    cursor: pointer;
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 3px;
    font-family: system-ui;
    font-size: 24px;
    min-height: 225px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: 2px dashed;
    margin: auto;
}
input#imageInput {
    display: none;
}
button#downloadLink {
    background: green;
    color: #fff !important;
    text-align: center;
    padding: 10px 20px;
    border-radius: 5px;
    margin: 0;
    font-weight: 500;
}
div#page2 {
    text-align: center;
}


/* --------------------  */


.file-input.drop-zone {
    display: flex;
    flex-direction: column;
    padding: 40px;
    border: 2px dashed #0e65bf;
    border-radius: 10px;
    text-align: center;
    color: #0e65bf;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    position: relative;
}

.file-input.drop-zone.drag-over {
    background-color: #eef;
    border-color: #007bff;
    color: #0e65bf;
}

.drag-drop-hint {
    font-size: 16px;
    color: #0e65bf;
    margin-top: 8px;
    display: inline-block;
}