.photo-gallery-edit-controls {
    margin: 1.5rem 0;
}

.photo-gallery-photos-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.photo-gallery-photo-item {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.75rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
}

.photo-gallery-photo-item__drag-handle {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    margin-right: 0.25rem;
}

.photo-gallery-photo-item__drag-handle span {
    font-size: 18px;
    line-height: 1;
    color: #94a3b8;
    user-select: none;
}

.photo-gallery-photo-item__thumbnail {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 0.25rem;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-gallery-photo-item__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-gallery-photo-item__thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 12px;
}

.photo-gallery-photo-item__thumbnail img[src=""],
.photo-gallery-photo-item__thumbnail img:not([src]) {
    display: none;
}

.photo-gallery-photo-item__input {
    flex: 1;
    min-width: 0;
}

.photo-gallery-photo-item__input input {
    width: 100%;
}

.photo-gallery-photo-item__remove {
    flex-shrink: 0;
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 0.375rem;
    color: #dc2626;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.photo-gallery-photo-item__remove:hover {
    background: #fecaca;
    border-color: #f87171;
    color: #991b1b;
}

.photo-gallery-photo-item__remove:active {
    transform: scale(0.95);
}

.photo-gallery-photo-item__remove i,
.photo-gallery-photo-item__remove svg {
    width: 16px;
    height: 16px;
    display: block;
    flex-shrink: 0;
    stroke-width: 2;
    color: inherit;
}

/* Ensure Lucide icons render properly */
.photo-gallery-photo-item__remove i[data-lucide] {
    display: inline-block;
}

.photo-gallery-photo-item__remove svg {
    display: block;
}

.photo-gallery-photo-item.dragging {
    opacity: 0.5;
}

.photo-gallery-photo-item.drag-over {
    border-color: #4f46e5;
    background: #eef2ff;
}

.photo-gallery-photos-list.dragging-active {
    cursor: grabbing;
}

.photo-gallery-empty {
    padding: 3rem;
    text-align: center;
    color: #6b7280;
}
