.photo-picker-thumb,
.photo-picker-add-tile {
    width: 80px;
    height: 80px;
    border-radius: 0.375rem;
}

.photo-picker-thumb {
    position: relative;
    cursor: grab;
    overflow: hidden;
}

.photo-picker-thumb.dragging {
    opacity: 0.4;
}

.photo-picker-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.375rem;
}

.photo-picker-thumb .photo-picker-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 1.25rem;
    height: 1.25rem;
    padding: 0;
    background-color: #fff;
    background-image: none;
    filter: none;
    border: 1px solid #000;
    border-radius: 50%;
    opacity: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-picker-thumb .photo-picker-remove::before {
    content: "";
    display: block;
    width: 0.6rem;
    height: 0.6rem;
    background-color: #000;
    -webkit-mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
    mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.photo-picker-thumb .photo-picker-remove:hover {
    background-color: #fff;
    opacity: 1;
}

.photo-picker-thumb .photo-picker-remove:hover::before {
    background-color: #dc3545;
}

.photo-picker-add-tile {
    border: 2px dashed var(--bs-border-color);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--bs-secondary-color);
}

.photo-picker-add-tile:hover {
    background: var(--bs-tertiary-bg);
}

.photo-picker-add-tile:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.photo-picker-thumbs.drag-over {
    outline: 2px dashed var(--bs-primary);
    outline-offset: 4px;
    border-radius: 0.375rem;
    background-color: rgba(var(--bs-primary-rgb), 0.08);
}
