/* Always show thumbnail actions and position in opposite corners */
.thumbnail-actions {
    position: absolute;
    top: 5px;
    right: 5px;
    bottom: 5px;
    left: 5px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    opacity: 1 !important; /* Override the hover effect */
    pointer-events: none; /* Allow clicks to pass through to the image */
}

.thumbnail-btn {
    pointer-events: auto; /* Re-enable clicks for the buttons */
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
    position: relative;
}

/* Position rotate button in bottom-left corner */
.thumbnail-btn:nth-child(1) {
    margin-top: auto; /* pushes to bottom */
    margin-right: auto; /* pushes to left */
}

/* Position delete button in top-right corner (default position) */
.thumbnail-btn:nth-child(2) {
    margin-left: auto; /* pushes to right */
    margin-bottom: auto; /* pushes to top */
}

.thumbnail-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}