/* Main image display styles */
.gallery-image-wrapper {
    position: relative;
}

.image-actions {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 8px;
}

.main-display-image {
    border: 3px solid #1890ff !important;
}

/* Reposition delete icon to top-right */
.delete-image-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: rgba(255, 255, 255, 0.7);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.2s;
    z-index: 10; /* 保持z-index为10，优先于其他元素 */
    color: var(--danger-color); /* 使用CSS变量以保持一致性 */
}

.delete-image-icon:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
}

.delete-image-icon svg {
    width: 16px;
    height: 16px;
}

/* Position main image badge at bottom-left */
.main-image-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background-color: #1890ff;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
    z-index: 5;
}

/* Position set main image button at bottom-right */
.set-main-image-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 3px;
    padding: 3px 8px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    z-index: 5;
}

.set-main-image-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .delete-image-icon {
        width: 32px;
        height: 32px;
    }
    
    .delete-image-icon svg {
        width: 20px;
        height: 20px;
    }
}
