/* Image block styles */
.image-block-content {
    position: relative;
    min-height: 0;
}

.image-element {
    max-width: 100%;
    border-radius: var(--border-radius);
    display: block;
}

.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    background: var(--color-bg-secondary);
    border: 2px dashed var(--color-border);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--color-text-light);
}

.image-placeholder:hover {
    border-color: var(--color-accent);
    background: var(--color-accent-light);
    color: var(--color-accent);
}

.placeholder-icon {
    font-size: 32px;
    margin-bottom: var(--spacing-sm);
    opacity: 0.6;
}

.placeholder-text {
    font-size: var(--font-size-sm);
    font-weight: 500;
}

/* Image loading states */
.image-element[src=""] {
    display: none;
}

.image-element:not([src]) {
    display: none;
}

/* Image change button */
.image-change-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    z-index: 10;
}

.image-block-content:hover .image-change-btn {
    opacity: 1;
}

.image-change-btn:hover {
    background: var(--color-hover);
    border-color: var(--color-accent);
    transform: translate(-50%, -50%) translateY(-1px);
    box-shadow: var(--shadow-lg);
}

/* Image hover effects */
.image-block:hover .image-element {
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

/* Responsive images */
@media (max-width: 768px) {
    .image-element {
        width: 100% !important;
        height: auto !important;
    }
}