
#my_gallery_container {
    width: 100%; /* Adjust width as necessary */
    padding: 10px;
    box-sizing: border-box;
}
.my_gallery_images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); 
    gap: 10px; 
    list-style: none; 
    padding: 0;
}
.my_gallery_images li {
    position: relative;
    overflow: hidden; 
}
.my_gallery_images img {
    width: 100%; 
    height: 100px;
    vertical-align: middle; 
    transition: transform 0.3s ease; 
}
.my_gallery_images .remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    display: none;
    color: white;
    background-color: red; 
    border-radius: 50%;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    cursor: pointer;
}
.my_gallery_images li:hover .remove-image {
    display: block; 
}
.my_gallery_images .image-wrapper {
    position: relative;
    display: inline-block;
}
.my_gallery_images .remove-image {
    position: absolute;
    top: 5px;  
    right: 5px; 
    display: none;
    color: white;
    background: red;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    cursor: pointer;
}
.my_gallery_images .image-wrapper:hover .remove-image {
    display: block;
}