/* ===== DEBUG MODE - HIERARCHY VISUALIZER ===== */

/* Base style */
.field-component {
    position: relative;
    margin: 8px;
    padding: 12px;
    border: 2px dashed #999;
    background: rgba(0, 0, 0, 0.02);
}

/* Depth coloring */
.field-component .field-component {
    border-color: #007acc;
    background: rgba(0, 122, 204, 0.05);
}

.field-component .field-component .field-component {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.05);
}

.field-component .field-component .field-component .field-component {
    border-color: #ff9800;
    background: rgba(255, 152, 0, 0.05);
}

/* Title highlight */
.field-title {
    font-weight: bold;
    color: #d63384;
    margin-bottom: 4px;
}

/* Value highlight */
.field-value {
    padding: 6px;
    background: rgba(255, 255, 255, 0.6);
    border-left: 4px solid #ccc;
}

/* Show block info */
[data-epi-block-id] {
    position: relative;
    border: 2px solid red;
    padding: 10px;
    margin: 10px 0;
}

[data-epi-block-id]::before {
    content: "Block: " attr(data-epi-content-name)
             " | ID: " attr(data-epi-block-id);
    display: block;
    font-size: 16px;
    font-weight: bold;
    background: black;
    color: lime;
    padding: 4px;
    margin-bottom: 6px;
}

/* ===== IMAGE GALLERY ===== */

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    align-items: stretch;
}

.image-gallery__item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    padding: 10px;
    height: 200px; /* altura padrão igual para todos */
}

.image-gallery__item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* NÃO corta */
}