/* Container for images and hover effect */
.image-container {
    position: relative;
    display: inline-block;
    width: 450px;
    height: 250px;
    margin: 10px;
    cursor: pointer;
}

/* Style for the image */
.image-container img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: transform 0.2s ease-in-out;
}

.image-text {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.5); 
    padding: 5px;
    width: 100%;
}


.trash-icon {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 18px;
    color: #fff;
    background-color: rgba(255, 0, 0, 0.8);
    padding: 8px 8px; 
    border-radius: 4px; /* Square shape with small rounded corners */
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s, opacity 0.2s;
}

/* Show trash icon on hover */
.image-container:hover .trash-icon {
    visibility: visible;
    opacity: 1;
}

/* Add zoom effect to the image on hover */
.image-container:hover img {
    transform: scale(1.05);
}

/* Navigation buttons */
.previmage, .nextimage {
    position: absolute;
    top: 50%;
    width: 30px;
    height: 30px;
    /* background-color: rgba(0, 0, 0, 0.6); */
    color: #ffff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color 0.2s ease-in-out;
}

/* Positioning prev and next inside the image */
.previmage {
    left: 5px;
}

.nextimage {
    right: 5px;
}

/* Show navigation buttons on hover */
.image-container:hover .previmage,
.image-container:hover .nextimage {
    visibility: visible;
    opacity: 1;
}