/**
 * Public styles for Image Sources Manager
 *
 * @package Image_Credit_Companion
 */

/* Main container - neutral defaults; theme classes set the colors. */
.eiam-image-sources {
    margin: 20px 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Prefix label */
.eiam-image-sources .eiam-prefix {
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

/* Prefix label above the table frame (classic and modern): a heading line
   in the page's text color, not part of the framed table. */
.eiam-table-prefix {
    display: block;
    margin: 20px 0 0;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: inherit;
}

.eiam-table-prefix + .eiam-table-container {
    margin-top: 10px;
}

/* List styles */
.eiam-image-sources.eiam-list {
    /* List container */
}

.eiam-image-sources .eiam-image-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.eiam-image-sources.eiam-ul .eiam-image-list {
    list-style: disc;
    margin-left: 20px;
}

.eiam-image-sources.eiam-ol .eiam-image-list {
    list-style: decimal;
    margin-left: 20px;
}

.eiam-image-sources .eiam-image-item {
    margin-bottom: 8px;
    padding: 0;
}

.eiam-image-sources .eiam-image-item:last-child {
    margin-bottom: 0;
}

/* Inline style */
.eiam-image-sources.eiam-inline {
    display: inline;
}

.eiam-image-sources.eiam-inline .eiam-image-item {
    display: inline;
    margin-bottom: 0;
}

.eiam-image-sources.eiam-inline .eiam-image-item:not(:last-child)::after {
    content: ', ';
}

/* Table style */
.eiam-table-container {
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: none;
}

.eiam-image-sources-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
    font-size: 14px;
    line-height: 1.5;
}

/* Explicit light theme */
.eiam-table-container.eiam-theme-light {
    border-color: #e0e0e0;
    box-shadow: none;
}
.eiam-image-sources-table.eiam-theme-light {
    background: transparent;
    color: #333;
}
.eiam-image-sources-table.eiam-theme-light thead {
    background: #f8f9fa;
}
.eiam-image-sources-table.eiam-theme-light th {
    color: #333;
    border-bottom-color: #e0e0e0;
}
.eiam-image-sources-table.eiam-theme-light td {
    border-bottom-color: #f0f0f0;
}
.eiam-image-sources-table.eiam-theme-light tbody tr {
    background: #fff;
}
.eiam-image-sources-table.eiam-theme-light tbody tr:hover {
    background: #f8f9fa;
}
.eiam-image-sources-table.eiam-theme-light a {
    color: #4a4a4a;
}
.eiam-image-sources-table.eiam-theme-light a:hover {
    color: #737373;
}

/* Explicit dark theme */
.eiam-table-container.eiam-theme-dark {
    border-color: #2c2c2c;
    box-shadow: none;
}
.eiam-image-sources-table.eiam-theme-dark {
    background: transparent;
    color: #e8e8e8;
}
.eiam-image-sources-table.eiam-theme-dark thead {
    background: #1a1a1a;
}
.eiam-image-sources-table.eiam-theme-dark th {
    color: #ffffff;
    font-weight: 600;
    border-bottom-color: #2c2c2c;
}
.eiam-image-sources-table.eiam-theme-dark td {
    border-bottom-color: #1a1a1a;
}
.eiam-image-sources-table.eiam-theme-dark tbody tr {
    background: #0a0a0a;
}
.eiam-image-sources-table.eiam-theme-dark tbody tr:hover {
    background: #141414;
}
.eiam-image-sources-table.eiam-theme-dark a {
    color: #d4d4d4;
}
.eiam-image-sources-table.eiam-theme-dark a:hover {
    color: #a3a3a3;
}
.eiam-image-sources-table.eiam-theme-dark .eiam-title-link,
.eiam-image-sources-table.eiam-theme-dark .eiam-title-text {
    color: #e8e8e8;
}
.eiam-image-sources-table.eiam-theme-dark .eiam-author-text {
    color: #d1d1d1;
}
.eiam-image-sources-table.eiam-theme-dark .eiam-missing {
    color: #9ca3af;
}
.eiam-image-sources-table.eiam-theme-dark .eiam-no-thumbnail {
    background: #1a1a1a;
    border: none;
    color: #9ca3af;
}
.eiam-image-sources-table.eiam-theme-dark .eiam-thumbnail-img {
    border: none;
}

/* Auto theme - fully inherits the WordPress theme.
   Uses transparent backgrounds + currentColor so colors come from the theme. */
.eiam-table-container.eiam-theme-auto {
    border: 1px solid currentColor;
    border-color: color-mix(in srgb, currentColor 15%, transparent);
    background: transparent;
    box-shadow: none;
}

.eiam-image-sources-table.eiam-theme-auto,
.eiam-image-sources-table.eiam-theme-auto thead,
.eiam-image-sources-table.eiam-theme-auto tbody,
.eiam-image-sources-table.eiam-theme-auto tbody tr {
    background: transparent;
    color: inherit;
}

.eiam-image-sources-table.eiam-theme-auto thead {
    background: color-mix(in srgb, currentColor 5%, transparent);
}

.eiam-image-sources-table.eiam-theme-auto th,
.eiam-image-sources-table.eiam-theme-auto td {
    color: inherit;
    border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}

.eiam-image-sources-table.eiam-theme-auto th {
    font-weight: 600;
}

.eiam-image-sources-table.eiam-theme-auto tbody tr:hover {
    background: color-mix(in srgb, currentColor 4%, transparent);
}

.eiam-image-sources-table.eiam-theme-auto a {
    color: inherit;
}

.eiam-image-sources-table.eiam-theme-auto .eiam-author-text,
.eiam-image-sources-table.eiam-theme-auto .eiam-title-text {
    color: inherit;
}

.eiam-image-sources-table.eiam-theme-auto .eiam-missing {
    color: inherit;
    opacity: 0.7;
}

.eiam-image-sources-table.eiam-theme-auto .eiam-no-thumbnail {
    background: color-mix(in srgb, currentColor 8%, transparent);
    border: 1px solid color-mix(in srgb, currentColor 15%, transparent);
    color: inherit;
}

.eiam-image-sources-table.eiam-theme-auto .eiam-thumbnail-img {
    border: 1px solid color-mix(in srgb, currentColor 15%, transparent);
}

/* Fallback for browsers without color-mix() support (pre-2023 Safari/Firefox) */
@supports not (color: color-mix(in srgb, red, blue)) {
    .eiam-table-container.eiam-theme-auto {
        border-color: rgba(127, 127, 127, 0.3);
    }
    .eiam-image-sources-table.eiam-theme-auto thead {
        background: rgba(127, 127, 127, 0.08);
    }
    .eiam-image-sources-table.eiam-theme-auto th,
    .eiam-image-sources-table.eiam-theme-auto td {
        border-bottom-color: rgba(127, 127, 127, 0.2);
    }
    .eiam-image-sources-table.eiam-theme-auto tbody tr:hover {
        background: rgba(127, 127, 127, 0.06);
    }
    .eiam-image-sources-table.eiam-theme-auto .eiam-no-thumbnail {
        background: rgba(127, 127, 127, 0.12);
        border-color: rgba(127, 127, 127, 0.25);
    }
    .eiam-image-sources-table.eiam-theme-auto .eiam-thumbnail-img {
        border-color: rgba(127, 127, 127, 0.25);
    }
}

.eiam-image-sources-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
}

.eiam-image-sources-table th {
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
    white-space: nowrap;
}

.eiam-image-sources-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.eiam-image-sources-table tbody tr {
    background: #fff;
}

.eiam-image-sources-table tbody tr:hover {
    background: #f8f9fa;
}

.eiam-image-sources-table tbody tr:last-child td {
    border-bottom: none;
}

/* Table column widths. --eiam-thumb-width comes from the "Table Image
   Width" setting (or the image_width shortcode attribute), default 60px. */
.eiam-image-sources-table .eiam-thumbnail {
    width: calc(var(--eiam-thumb-width, 60px) + 20px);
    height: auto;
    margin: 0;
    text-align: center;
}

/* Reset border-radius on all thumbnail column cells, then apply only
   to the left corners of the top (th) and bottom (last td) rows */
.eiam-image-sources-table th.eiam-thumbnail,
.eiam-image-sources-table td.eiam-thumbnail {
    border-radius: 0;
}

.eiam-image-sources-table thead th.eiam-thumbnail {
    border-top-left-radius: 4px;
}

.eiam-image-sources-table tbody tr:last-child td.eiam-thumbnail {
    border-bottom-left-radius: 4px;
}

.eiam-image-sources-table .eiam-title {
    min-width: 150px;
    max-width: 200px;
}

.eiam-image-sources-table .eiam-author {
    min-width: 120px;
}

.eiam-image-sources-table .eiam-license {
    min-width: 120px;
}

.eiam-image-sources-table .eiam-source {
    min-width: 100px;
}

.eiam-image-sources-table .eiam-usage {
    min-width: 150px;
}

/* Table content styles */
.eiam-thumbnail-img {
    width: var(--eiam-thumb-width, 60px);
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
    display: block;
    margin: 0 auto;
}

/* Cropped sizes such as "Thumbnail" stay square, as before 1.5.0. */
.eiam-thumbs-square .eiam-thumbnail-img {
    aspect-ratio: 1 / 1;
}

.eiam-no-thumbnail {
    width: 60px;
    height: 60px;
    background: #f0f0f1;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #646970;
    text-align: center;
    margin: 0 auto;
}

.eiam-title-link,
.eiam-title-text {
    font-weight: 500;
    color: #333;
}

.eiam-title-link:hover {
    color: #0073aa;
    text-decoration: underline;
}

.eiam-no-title {
    color: #646970;
    font-style: italic;
}

.eiam-author-text {
    font-weight: 500;
    color: #333;
}

.eiam-license-link,
.eiam-license-text {
    color: #0073aa;
    font-weight: 500;
}

.eiam-license-link:hover {
    color: #005177;
    text-decoration: underline;
}

.eiam-source-link {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.eiam-source-link:hover {
    color: #005177;
    text-decoration: underline;
}

.eiam-missing {
    color: #646970;
    font-style: italic;
    font-size: 13px;
}

.eiam-usage-list {
    line-height: 1.4;
}

.eiam-post-link {
    color: #0073aa;
    text-decoration: none;
    font-size: 13px;
    display: block;
    margin-bottom: 2px;
}

/* The links are blocks already; the <br> between them added an empty line. */
.eiam-usage-list br {
    display: none;
}

.eiam-post-link:hover {
    color: #005177;
    text-decoration: underline;
}

.eiam-post-link:last-child {
    margin-bottom: 0;
}

/* Text elements */
.eiam-image-sources .eiam-author {
    font-weight: 500;
}

.eiam-image-sources .eiam-title {
    font-style: italic;
}

.eiam-image-sources .eiam-license-wrapper {
    /* License wrapper */
}

.eiam-image-sources .eiam-license {
    /* License link */
}

.eiam-image-sources .eiam-source {
    /* Source link */
}

.eiam-image-sources .eiam-note {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

/* Links */
.eiam-image-sources a {
    color: #0073aa;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.eiam-image-sources a:hover {
    color: #005177;
    border-bottom-color: #005177;
}

.eiam-image-sources a:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Status badges */
.eiam-status-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.eiam-status-badge.eiam-complete {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.eiam-status-badge.eiam-incomplete {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Thumbnails */
.eiam-thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 10px;
    vertical-align: middle;
}

.eiam-no-thumbnail {
    width: 50px;
    height: 50px;
    background: #f0f0f1;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #646970;
    text-align: center;
    margin-right: 10px;
    vertical-align: middle;
}

/* Block preview styles */
.eiam-block-preview {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 16px;
    background: #f8f9fa;
    margin: 8px 0;
}

.eiam-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.eiam-preview-scope {
    font-size: 12px;
    color: #646970;
    background: #e0e0e0;
    padding: 2px 6px;
    border-radius: 3px;
}

.eiam-preview-content {
    /* Preview content */
}

.eiam-preview-text {
    margin: 0 0 8px 0;
    color: #646970;
    font-style: italic;
}

.eiam-preview-attributes {
    font-size: 11px;
    color: #8c8f94;
}

.eiam-show-missing {
    color: #d63638;
}

/* ============================================================
   PER-IMAGE CREDIT DISPLAY (caption below / overlay on image)
   ============================================================ */

.eiam-credit-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
    line-height: 0;
    /* Keep the overlay above theme images with their own z-index without
       leaking a high z-index into the page. */
    isolation: isolate;
}

/* Caption mode: the wrapper generates no box at all (display: contents),
   so the image keeps exactly the size, position and layout the theme gives
   it — the credit simply flows in right after the image. */
.eiam-credit-wrap.eiam-credit-below {
    display: contents;
}

/* Featured images in overlay mode: fill the theme container completely so
   cover-style layouts (object-fit / absolutely positioned images stretched
   to their container) keep working — a shrink-wrapped inline box would
   collapse to zero size and hide the image. */
.eiam-credit-wrap.eiam-credit-featured {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
}

/* Caption mode wins over the featured sizing (no box at all is safest). */
.eiam-credit-wrap.eiam-credit-below.eiam-credit-featured {
    display: contents;
}

/* Caption below the image */
.eiam-credit-wrap .eiam-credit-caption,
figcaption.eiam-credit-caption {
    display: block;
    font-size: 12px;
    line-height: 1.5;
    opacity: 0.75;
    margin-top: 4px;
    text-align: left;
}

.wp-block-image figcaption.eiam-credit-caption {
    margin-top: 0.5em;
    margin-bottom: 0;
}

figcaption .eiam-credit {
    font-size: 0.9em;
    opacity: 0.8;
    white-space: nowrap;
}

/* Overlay on the image.
   Background color/opacity and the edge distance (bottom/left/right/max-width)
   are set via inline styles from the plugin settings; the values below are
   matching fallbacks. */
.eiam-credit-overlay {
    position: absolute;
    bottom: 8px;
    max-width: calc(100% - 16px);
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 11px;
    line-height: 1.4;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Above cover-block layers (background image z:0, inner container z:1)
       and above theme images that set their own z-index. */
    z-index: 10;
    pointer-events: auto;
}

/* Credit attached inside a Cover block that uses the featured image as its
   background — the overlay positions against the cover container itself. */
.wp-block-cover > .eiam-credit-overlay.eiam-credit-cover {
    position: absolute;
}

.eiam-credit-part > object {
    display: inline;
    width: auto;
    height: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    vertical-align: baseline;
}

.eiam-credit-overlay a {
    color: #fff;
    text-decoration: underline;
    border-bottom: none;
}

.eiam-credit-overlay a:hover {
    color: #e0e0e0;
    border-bottom: none;
}

/* Keep every credit part inline so theme CSS (block-level links etc.)
   cannot stack the parts unintentionally. */
.eiam-credit-overlay a,
.eiam-credit-overlay .eiam-credit-prefix,
.eiam-credit-overlay .eiam-credit-part,
.eiam-credit-overlay .eiam-credit-sep {
    display: inline;
    float: none;
    margin: 0;
    padding: 0;
}

/* Stacked layout: one credit part per line, separators hidden */
.eiam-credit-overlay.eiam-credit-stacked {
    white-space: normal;
    text-overflow: clip;
}

.eiam-credit-overlay.eiam-credit-stacked .eiam-credit-prefix,
.eiam-credit-overlay.eiam-credit-stacked .eiam-credit-part {
    display: block;
}

.eiam-credit-overlay.eiam-credit-stacked .eiam-credit-sep {
    display: none;
}

.eiam-credit-bottom-left {
    left: 8px;
}

.eiam-credit-bottom-right {
    right: 8px;
}

.eiam-credit-bottom-center {
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

/* Responsive design */
@media (max-width: 768px) {
    .eiam-image-sources {
        font-size: 13px;
    }

    .eiam-image-sources.eiam-ul .eiam-image-list,
    .eiam-image-sources.eiam-ol .eiam-image-list {
        margin-left: 15px;
    }

    /* List thumbnails (ul / ol / inline). Scoped to the image element so the
       table's thumbnail *cell* (which shares the class name) is not resized. */
    img.eiam-thumbnail,
    .eiam-image-sources .eiam-no-thumbnail {
        width: 40px;
        height: 40px;
        margin-right: 8px;
    }

    /* ------------------------------------------------------------------
       Table: card layout. Each row becomes a card, each cell a two-column
       grid "label | value". No absolute positioning and no column widths,
       so theme table styles cannot make labels and values overlap.
       ------------------------------------------------------------------ */
    /* The frame moves onto the cards; the container must lose its own
       border and background in every theme. [class] lifts the specificity
       above the theme rules (.eiam-table-container.eiam-theme-*). */
    .eiam-table-container,
    .eiam-table-container[class] {
        border: none;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        overflow-x: visible;
    }

    .eiam-image-sources-table,
    .eiam-image-sources-table tbody,
    .eiam-image-sources-table tbody tr,
    .eiam-image-sources-table tbody td,
    .eiam-image-sources-table tbody td[class] {
        display: block;
        width: auto;
        min-width: 0;
        max-width: none;
        box-sizing: border-box;
    }

    .eiam-image-sources-table {
        border: 0;
        font-size: 13px;
        table-layout: auto;
    }

    .eiam-image-sources-table thead {
        display: none;
    }

    .eiam-image-sources-table tbody tr {
        margin-bottom: 16px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 12px;
        background: #fff;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .eiam-image-sources-table tbody tr:hover {
        background: #f8f9fa;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    }

    .eiam-image-sources-table tbody tr:last-child {
        margin-bottom: 0;
    }

    .eiam-image-sources-table tbody td,
    .eiam-image-sources-table tbody td[class] {
        display: grid;
        grid-template-columns: 6.5em minmax(0, 1fr);
        column-gap: 12px;
        align-items: start;
        text-align: left;
        padding: 8px 0;
        border: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .eiam-image-sources-table tbody td:last-child {
        border-bottom: 0;
    }

    .eiam-image-sources-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #333;
        text-align: left;
    }

    .eiam-image-sources-table tbody td.eiam-thumbnail,
    .eiam-image-sources-table tbody td[class].eiam-thumbnail {
        display: block;
        width: auto;
        padding: 0 0 10px;
        text-align: left;
    }

    .eiam-image-sources-table tbody td.eiam-thumbnail::before {
        content: none;
    }

    .eiam-image-sources-table .eiam-thumbnail-img {
        width: var(--eiam-thumb-width, 60px);
        max-width: 100%;
        height: auto;
        margin: 0;
    }

    .eiam-image-sources-table .eiam-no-thumbnail {
        width: 60px;
        height: 60px;
        margin: 0;
    }

    .eiam-image-sources-table .eiam-usage-list {
        max-width: none;
    }

    /* Card layout for dark theme */
    .eiam-image-sources-table.eiam-theme-dark tbody tr {
        background: #0a0a0a;
        border-color: #2c2c2c;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    }

    .eiam-image-sources-table.eiam-theme-dark tbody tr:hover {
        background: #141414;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    }

    .eiam-image-sources-table.eiam-theme-dark tbody td {
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }

    .eiam-image-sources-table.eiam-theme-dark tbody td::before {
        color: #ffffff;
    }

    /* Card layout for auto theme. Only tints of the inherited text color,
       never a fixed light or dark background: the page decides the colors. */
    .eiam-image-sources-table.eiam-theme-auto tbody tr {
        background: transparent;
        background: color-mix(in srgb, currentColor 3%, transparent);
        border: 1px solid rgba(127, 127, 127, 0.3);
        border-color: color-mix(in srgb, currentColor 15%, transparent);
        box-shadow: none;
    }

    .eiam-image-sources-table.eiam-theme-auto tbody tr:hover {
        background: rgba(127, 127, 127, 0.06);
        background: color-mix(in srgb, currentColor 6%, transparent);
        box-shadow: none;
    }

    .eiam-image-sources-table.eiam-theme-auto tbody td {
        border-bottom-color: currentColor;
        border-bottom-color: color-mix(in srgb, currentColor 12%, transparent);
    }

    .eiam-image-sources-table.eiam-theme-auto tbody td::before {
        color: inherit;
        opacity: 0.8;
    }

    }

@media (max-width: 480px) {
    .eiam-image-sources {
        font-size: 12px;
        margin: 15px 0;
    }

    .eiam-image-sources.eiam-ul .eiam-image-list,
    .eiam-image-sources.eiam-ol .eiam-image-list {
        margin-left: 10px;
    }

    .eiam-image-sources .eiam-image-item {
        margin-bottom: 6px;
    }

    /* Smaller card padding on very small screens */
    .eiam-image-sources-table tbody tr {
        padding: 10px;
        margin-bottom: 12px;
    }

    .eiam-image-sources-table tbody td,
    .eiam-image-sources-table tbody td[class] {
        grid-template-columns: 6.5em minmax(0, 1fr);
        column-gap: 10px;
        padding: 6px 0;
        font-size: 12px;
    }

    .eiam-image-sources-table tbody td::before {
        font-size: 11px;
    }

    .eiam-image-sources-table .eiam-no-thumbnail {
        width: 50px;
        height: 50px;
    }

    .eiam-post-link {
        font-size: 11px;
    }
}

/* Print styles */
@media print {
    .eiam-image-sources {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .eiam-image-sources a {
        color: #000;
        text-decoration: underline;
    }
    
    .eiam-image-sources a[href]:after {
        content: " (" attr(href) ")";
        font-size: 10px;
        color: #666;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .eiam-image-sources {
        border: 1px solid currentColor;
        padding: 10px;
    }
    
    .eiam-image-sources a {
        text-decoration: underline;
        font-weight: bold;
    }
    
    .eiam-image-sources .eiam-author {
        font-weight: bold;
    }
    
    .eiam-image-sources .eiam-title {
        font-weight: bold;
    }
    
    .eiam-status-badge {
        border-width: 2px;
        font-weight: bold;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .eiam-image-sources a {
        transition: none;
    }
}

/* Pagination */
.eiam-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 16px 0;
}

.eiam-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.eiam-pagination a:hover {
    background: #f8f9fa;
    border-color: #0073aa;
    color: #0073aa;
}

.eiam-pagination a.eiam-pagination-current {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
    pointer-events: none;
}

.eiam-pagination a.eiam-pagination-prev,
.eiam-pagination a.eiam-pagination-next {
    padding: 0 16px;
    font-weight: 600;
}

/* Pagination - Explicit Light Theme */
.eiam-pagination.eiam-theme-light a {
    background: #fff;
    border-color: #ddd;
    color: #333;
}

.eiam-pagination.eiam-theme-light a:hover {
    background: #f8f9fa;
    border-color: #0073aa;
    color: #0073aa;
}

.eiam-pagination.eiam-theme-light a.eiam-pagination-current {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
}

/* Pagination - Explicit Dark Theme */
.eiam-pagination.eiam-theme-dark a {
    background: #1a1a1a;
    border-color: #404040;
    color: #e8e8e8;
}

.eiam-pagination.eiam-theme-dark a:hover {
    background: #2c2c2c;
    border-color: #60a5fa;
    color: #60a5fa;
}

.eiam-pagination.eiam-theme-dark a.eiam-pagination-current {
    background: #404040;
    border-color: #404040;
    color: #ffffff;
}

/* Pagination - Auto Theme (inherits from WordPress theme) */
.eiam-pagination.eiam-theme-auto a {
    background: transparent;
    border: 1px solid rgba(127, 127, 127, 0.35);
    border-color: color-mix(in srgb, currentColor 25%, transparent);
    color: inherit;
}

.eiam-pagination.eiam-theme-auto a:hover {
    background: rgba(127, 127, 127, 0.1);
    background: color-mix(in srgb, currentColor 8%, transparent);
    border-color: color-mix(in srgb, currentColor 40%, transparent);
}

.eiam-pagination.eiam-theme-auto a.eiam-pagination-current {
    background: rgba(127, 127, 127, 0.18);
    background: color-mix(in srgb, currentColor 14%, transparent);
    border-color: color-mix(in srgb, currentColor 40%, transparent);
    font-weight: 600;
}

/* ========================================
   CUSTOM THEME STYLES (CSS Variables)
   ======================================== */

/* Custom Theme - Uses CSS variables set inline */
.eiam-table-container.eiam-theme-custom {
    border-color: var(--eiam-table-border, #e0e0e0);
    background: var(--eiam-table-bg, #ffffff);
}

.eiam-image-sources-table.eiam-theme-custom {
    background: transparent;
    color: var(--eiam-table-text, #333333);
}

.eiam-image-sources-table.eiam-theme-custom thead {
    background: var(--eiam-table-header-bg, #f5f5f5);
}

.eiam-image-sources-table.eiam-theme-custom th {
    color: var(--eiam-table-header-text, #333333);
    border-bottom-color: var(--eiam-table-border, #e0e0e0);
}

.eiam-image-sources-table.eiam-theme-custom td {
    color: var(--eiam-table-text, #333333);
    border-bottom-color: var(--eiam-table-border, #e0e0e0);
}

.eiam-image-sources-table.eiam-theme-custom tbody tr {
    background: var(--eiam-table-row-bg, #ffffff);
}

.eiam-image-sources-table.eiam-theme-custom tbody tr:hover {
    background: var(--eiam-table-row-hover-bg, #f8f9fa);
}

.eiam-image-sources-table.eiam-theme-custom a {
    color: var(--eiam-link-color, #4a4a4a);
}

.eiam-image-sources-table.eiam-theme-custom a:hover {
    color: var(--eiam-link-hover-color, #737373);
}

/* Custom pagination */
.eiam-pagination.eiam-theme-custom {
    background: var(--eiam-pagination-bg, #f5f5f5);
}

.eiam-pagination.eiam-theme-custom a {
    color: var(--eiam-pagination-text, #333333);
    background: var(--eiam-pagination-bg, #f5f5f5);
    border-color: var(--eiam-table-border, #e0e0e0);
}

.eiam-pagination.eiam-theme-custom a:hover {
    background: var(--eiam-pagination-hover-bg, #e0e0e0);
}

.eiam-pagination.eiam-theme-custom a.eiam-pagination-current {
    background: var(--eiam-pagination-active-bg, #007cba);
    color: var(--eiam-pagination-active-text, #ffffff);
    border-color: var(--eiam-pagination-active-bg, #007cba);
}

/* Custom theme - Responsive card view */
@media (max-width: 768px) {
    .eiam-image-sources-table.eiam-theme-custom tbody tr {
        background: var(--eiam-table-row-bg, #ffffff);
        border-color: var(--eiam-table-border, #e0e0e0);
    }

    .eiam-image-sources-table.eiam-theme-custom tbody tr:hover {
        background: var(--eiam-table-row-hover-bg, #f8f9fa);
    }

    .eiam-image-sources-table.eiam-theme-custom tbody td {
        border-bottom-color: var(--eiam-table-border, #e0e0e0);
    }

    .eiam-image-sources-table.eiam-theme-custom tbody td::before {
        color: var(--eiam-table-header-text, #333333);
    }
}

/* ============================================================
   THEMES FOR UL / OL / INLINE OUTPUT STYLES
   These mirror the table themes so the output style setting
   works consistently across all output formats.
   ============================================================ */

/* --- AUTO theme (list / inline) --- */
.eiam-image-sources.eiam-theme-auto {
    color: inherit;
    background: transparent;
}
.eiam-image-sources.eiam-theme-auto .eiam-prefix {
    color: inherit;
    opacity: 0.85;
}
.eiam-image-sources.eiam-theme-auto a {
    color: inherit;
}
.eiam-image-sources.eiam-theme-auto .eiam-license,
.eiam-image-sources.eiam-theme-auto .eiam-source,
.eiam-image-sources.eiam-theme-auto .eiam-author {
    color: inherit;
}
/* --- LIGHT theme (list / inline) --- */
.eiam-image-sources.eiam-theme-light {
    color: #333;
    background: transparent;
}
.eiam-image-sources.eiam-theme-light .eiam-prefix {
    color: #1d2327;
}
.eiam-image-sources.eiam-theme-light a {
    color: #2271b1;
    text-decoration: underline;
    text-decoration-color: rgba(34, 113, 177, 0.4);
}
.eiam-image-sources.eiam-theme-light a:hover {
    color: #135e96;
    text-decoration-color: currentColor;
}
.eiam-image-sources.eiam-theme-light .eiam-author {
    font-weight: 500;
    color: #1d2327;
}
.eiam-image-sources.eiam-theme-light .eiam-license-wrapper {
    color: #50575e;
}
/* --- DARK theme (list / inline) --- */
.eiam-image-sources.eiam-theme-dark {
    color: #e8e8e8;
    background: transparent;
}
.eiam-image-sources.eiam-theme-dark .eiam-prefix {
    color: #ffffff;
}
.eiam-image-sources.eiam-theme-dark a {
    color: #7eb6ff;
    text-decoration: underline;
    text-decoration-color: rgba(126, 182, 255, 0.4);
}
.eiam-image-sources.eiam-theme-dark a:hover {
    color: #b3d4ff;
    text-decoration-color: currentColor;
}
.eiam-image-sources.eiam-theme-dark .eiam-author {
    font-weight: 500;
    color: #ffffff;
}
.eiam-image-sources.eiam-theme-dark .eiam-license-wrapper {
    color: #a3a3a3;
}
/* --- CUSTOM theme (list / inline) --- */
.eiam-image-sources.eiam-theme-custom {
    color: var(--eiam-table-text, #333333);
    background: transparent;
}
.eiam-image-sources.eiam-theme-custom .eiam-prefix {
    color: var(--eiam-table-text, #333333);
}
.eiam-image-sources.eiam-theme-custom a {
    color: var(--eiam-link-color, #4a4a4a);
}
.eiam-image-sources.eiam-theme-custom a:hover {
    color: var(--eiam-link-hover-color, #737373);
}
.eiam-image-sources.eiam-theme-custom .eiam-author {
    font-weight: 500;
    color: var(--eiam-table-text, #333333);
}

/* ==================================================================
/* ==================================================================
   Modern table design (Settings > Output > Table Design = "Modern").
   Only the shape changes: rounded frame, quiet header row, rounded
   thumbnails, the license as a pill, cards on narrow content. Every color
   is a theme variable, so Light, Dark, Auto and Custom Colors apply the
   same way as in the classic design (Custom sets the variables inline).

   Layout steps follow the width of the content column, not the browser
   window (container queries): a theme with a 640px content area gets the
   compact table on a desktop, a full-width template keeps the wide table
   on a tablet. Browsers without container queries (pre-2023) keep the
   wide table and scroll it horizontally.

   The frame sits on the <table>, not on the container, because an element
   cannot be styled by its own container query.

   Kept at the end of the file so it wins ties with the classic rules.
   ================================================================== */
.eiam-table-container.eiam-design-modern {
    --eiam-table-bg: #ffffff;
    --eiam-table-border: #e5e7eb;
    --eiam-table-header-bg: #f9fafb;
    --eiam-table-header-text: #6b7280;
    --eiam-table-row-bg: #ffffff;
    --eiam-table-row-hover-bg: #f9fafb;
    --eiam-table-text: #111827;
    --eiam-link-color: #374151;
    --eiam-link-hover-color: #111827;
    container-type: inline-size;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow-x: auto;
}

.eiam-table-container.eiam-design-modern.eiam-theme-dark {
    --eiam-table-bg: #13161d;
    --eiam-table-border: #262b35;
    --eiam-table-header-bg: #171b23;
    --eiam-table-header-text: #9aa3b2;
    --eiam-table-row-bg: #13161d;
    --eiam-table-row-hover-bg: #171b23;
    --eiam-table-text: #e6e9f0;
    --eiam-link-color: #c9cfda;
    --eiam-link-hover-color: #ffffff;
}

/* Auto: tints of the page's text color only, never a fixed background. */
.eiam-table-container.eiam-design-modern.eiam-theme-auto {
    --eiam-table-bg: transparent;
    --eiam-table-border: color-mix(in srgb, currentColor 14%, transparent);
    --eiam-table-header-bg: color-mix(in srgb, currentColor 5%, transparent);
    --eiam-table-header-text: color-mix(in srgb, currentColor 72%, transparent);
    --eiam-table-row-bg: transparent;
    --eiam-table-row-hover-bg: color-mix(in srgb, currentColor 4%, transparent);
    --eiam-table-text: currentColor;
    --eiam-link-color: currentColor;
    --eiam-link-hover-color: currentColor;
}

@supports not (color: color-mix(in srgb, red, blue)) {
    .eiam-table-container.eiam-design-modern.eiam-theme-auto {
        --eiam-table-border: rgba(127, 127, 127, 0.3);
        --eiam-table-header-bg: rgba(127, 127, 127, 0.08);
        --eiam-table-header-text: rgba(127, 127, 127, 0.9);
        --eiam-table-row-hover-bg: rgba(127, 127, 127, 0.06);
    }
}

/* The frame: separate borders so the corners can be rounded per cell. */
.eiam-image-sources-table.eiam-design-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--eiam-table-border);
    border-radius: 14px;
    background: var(--eiam-table-bg);
    color: var(--eiam-table-text);
    font-size: 14px;
    line-height: 1.5;
}

.eiam-image-sources-table.eiam-design-modern thead {
    background: transparent;
    border-bottom: 0;
}

.eiam-image-sources-table.eiam-design-modern th {
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: left;
    color: var(--eiam-table-header-text);
    background: var(--eiam-table-header-bg);
    border-bottom: 1px solid var(--eiam-table-border);
}

.eiam-image-sources-table.eiam-design-modern thead th:first-child {
    border-top-left-radius: 13px;
}

.eiam-image-sources-table.eiam-design-modern thead th:last-child {
    border-top-right-radius: 13px;
}

.eiam-image-sources-table.eiam-design-modern td {
    padding: 14px 16px;
    vertical-align: middle;
    color: var(--eiam-table-text);
    background: var(--eiam-table-row-bg);
    border-bottom: 1px solid color-mix(in srgb, var(--eiam-table-border) 60%, transparent);
}

@supports not (color: color-mix(in srgb, red, blue)) {
    .eiam-image-sources-table.eiam-design-modern td {
        border-bottom-color: var(--eiam-table-border);
    }
}

.eiam-image-sources-table.eiam-design-modern tbody tr,
.eiam-image-sources-table.eiam-design-modern tbody tr:hover {
    background: transparent;
    box-shadow: none;
}

.eiam-image-sources-table.eiam-design-modern tbody tr:hover td {
    background: var(--eiam-table-row-hover-bg);
}

.eiam-image-sources-table.eiam-design-modern tbody tr:last-child td {
    border-bottom: 0;
}

.eiam-image-sources-table.eiam-design-modern tbody tr:last-child td:first-child {
    border-bottom-left-radius: 13px;
}

.eiam-image-sources-table.eiam-design-modern tbody tr:last-child td:last-child {
    border-bottom-right-radius: 13px;
}

.eiam-image-sources-table.eiam-design-modern .eiam-thumbnail-img {
    border: 0;
    border-radius: 10px;
}

/* Placeholder for images without a file: themed instead of fixed light grey. */
.eiam-image-sources-table.eiam-design-modern .eiam-no-thumbnail {
    background: var(--eiam-table-header-bg);
    border: 1px solid var(--eiam-table-border);
    border-radius: 10px;
    color: var(--eiam-table-header-text);
}

.eiam-image-sources-table.eiam-design-modern a {
    color: var(--eiam-link-color);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
}

.eiam-image-sources-table.eiam-design-modern a:hover {
    color: var(--eiam-link-hover-color);
}

.eiam-image-sources-table.eiam-design-modern .eiam-title-link,
.eiam-image-sources-table.eiam-design-modern .eiam-title-text {
    font-weight: 600;
    color: var(--eiam-table-text);
    text-decoration: none;
}

.eiam-image-sources-table.eiam-design-modern .eiam-title-link:hover {
    text-decoration: underline;
}

.eiam-image-sources-table.eiam-design-modern .eiam-license-link,
.eiam-image-sources-table.eiam-design-modern .eiam-license-text {
    display: inline-block;
    padding: 3px 10px;
    border: 1px solid var(--eiam-table-border);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--eiam-table-text);
    text-decoration: none;
    white-space: nowrap;
}

.eiam-image-sources-table.eiam-design-modern .eiam-license-link:hover {
    border-color: var(--eiam-link-hover-color);
    color: var(--eiam-link-hover-color);
}

.eiam-image-sources-table.eiam-design-modern .eiam-author-text {
    color: var(--eiam-table-text);
}

.eiam-image-sources-table.eiam-design-modern .eiam-post-link,
.eiam-image-sources-table.eiam-design-modern .eiam-missing {
    color: color-mix(in srgb, var(--eiam-table-text) 65%, transparent);
    font-style: normal;
    opacity: 1;
}

.eiam-image-sources-table.eiam-design-modern .eiam-post-link {
    font-size: inherit;
    margin-bottom: 2px;
}

@supports not (color: color-mix(in srgb, red, blue)) {
    .eiam-image-sources-table.eiam-design-modern .eiam-post-link,
    .eiam-image-sources-table.eiam-design-modern .eiam-missing {
        color: var(--eiam-table-text);
        opacity: 0.65;
    }
}

/* Step 1 – compact table: the content column is narrower than ~820px
   (typical single-column themes). Tighter cells, smaller type, the
   license pill may wrap. */
@container (max-width: 820px) {
    .eiam-image-sources-table.eiam-design-modern {
        font-size: 13px;
    }

    /* The classic column minimums (640px in total) would force a scrollbar
       here; let the columns share the available width instead. */
    .eiam-image-sources-table.eiam-design-modern th[class],
    .eiam-image-sources-table.eiam-design-modern td[class] {
        min-width: 0;
        max-width: none;
        white-space: normal;
    }

    .eiam-image-sources-table.eiam-design-modern .eiam-thumbnail-img {
        width: min(var(--eiam-thumb-width, 60px), 48px);
    }

    /* Short cells keep their content width so Title and Author get the
       rest instead of the pill and the source link wrapping word by word. */
    .eiam-image-sources-table.eiam-design-modern th[class].eiam-thumbnail,
    .eiam-image-sources-table.eiam-design-modern th[class].eiam-license,
    .eiam-image-sources-table.eiam-design-modern th[class].eiam-source {
        width: 1%;
    }

    .eiam-image-sources-table.eiam-design-modern .eiam-license-link,
    .eiam-image-sources-table.eiam-design-modern .eiam-license-text,
    .eiam-image-sources-table.eiam-design-modern .eiam-source-link {
        white-space: nowrap;
    }

    .eiam-image-sources-table.eiam-design-modern th {
        padding: 10px 12px;
        font-size: 11px;
    }

    .eiam-image-sources-table.eiam-design-modern td {
        padding: 12px;
    }

    .eiam-image-sources-table.eiam-design-modern .eiam-license-link,
    .eiam-image-sources-table.eiam-design-modern .eiam-license-text {
        padding: 2px 8px;
        font-size: 11px;
    }
}

/* Step 2 – cards: one card per image, thumbnail left, label + value lines
   right. The site-wide table (six columns incl. "Used in") switches at a
   content width of ~720px, the per-post table (five columns) at ~620px.
   The two blocks below are identical apart from the :has() selector. */
@container (max-width: 720px) {
    .eiam-image-sources-table.eiam-design-modern:has(.eiam-usage) {
        display: block;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .eiam-image-sources-table.eiam-design-modern:has(.eiam-usage) thead {
        display: none;
    }

    .eiam-image-sources-table.eiam-design-modern:has(.eiam-usage) tbody {
        display: grid;
        gap: 12px;
    }

    .eiam-image-sources-table.eiam-design-modern:has(.eiam-usage) tbody tr {
        display: grid;
        grid-template-columns: var(--eiam-thumb-width, 60px) minmax(0, 1fr);
        column-gap: 14px;
        row-gap: 6px;
        padding: 14px;
        margin: 0;
        border: 1px solid var(--eiam-table-border);
        border-radius: 12px;
        background: var(--eiam-table-row-bg);
        box-shadow: none;
    }

    .eiam-image-sources-table.eiam-design-modern:has(.eiam-usage) tbody tr:hover {
        background: var(--eiam-table-row-hover-bg);
        box-shadow: none;
    }

    .eiam-image-sources-table.eiam-design-modern:has(.eiam-usage) tbody td,
    .eiam-image-sources-table.eiam-design-modern:has(.eiam-usage) tbody td[class],
    .eiam-image-sources-table.eiam-design-modern:has(.eiam-usage) tbody tr:hover td,
    .eiam-image-sources-table.eiam-design-modern:has(.eiam-usage) tbody tr:last-child td {
        display: grid;
        grid-template-columns: 5.5em minmax(0, 1fr);
        column-gap: 8px;
        align-items: baseline;
        justify-items: start;
        grid-column: 2;
        min-width: 0;
        max-width: none;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        font-size: 13px;
        text-align: left;
    }

    .eiam-image-sources-table.eiam-design-modern:has(.eiam-usage) tbody td::before {
        content: attr(data-label);
        display: block;
        font-size: 12px;
        font-weight: 500;
        color: var(--eiam-table-header-text);
        opacity: 1;
    }

    .eiam-image-sources-table.eiam-design-modern:has(.eiam-usage) tbody td.eiam-thumbnail,
    .eiam-image-sources-table.eiam-design-modern:has(.eiam-usage) tbody td[class].eiam-thumbnail {
        display: block;
        grid-column: 1;
        grid-row: 1 / span 6;
    }

    .eiam-image-sources-table.eiam-design-modern:has(.eiam-usage) tbody td.eiam-thumbnail::before {
        content: none;
    }

    .eiam-image-sources-table.eiam-design-modern:has(.eiam-usage) .eiam-thumbnail-img {
        width: var(--eiam-thumb-width, 60px);
        margin: 0;
    }
}

@container (max-width: 620px) {
    .eiam-image-sources-table.eiam-design-modern {
        display: block;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .eiam-image-sources-table.eiam-design-modern thead {
        display: none;
    }

    .eiam-image-sources-table.eiam-design-modern tbody {
        display: grid;
        gap: 12px;
    }

    .eiam-image-sources-table.eiam-design-modern tbody tr {
        display: grid;
        grid-template-columns: var(--eiam-thumb-width, 60px) minmax(0, 1fr);
        column-gap: 14px;
        row-gap: 6px;
        padding: 14px;
        margin: 0;
        border: 1px solid var(--eiam-table-border);
        border-radius: 12px;
        background: var(--eiam-table-row-bg);
        box-shadow: none;
    }

    .eiam-image-sources-table.eiam-design-modern tbody tr:hover {
        background: var(--eiam-table-row-hover-bg);
        box-shadow: none;
    }

    .eiam-image-sources-table.eiam-design-modern tbody td,
    .eiam-image-sources-table.eiam-design-modern tbody td[class],
    .eiam-image-sources-table.eiam-design-modern tbody tr:hover td,
    .eiam-image-sources-table.eiam-design-modern tbody tr:last-child td {
        display: grid;
        grid-template-columns: 5.5em minmax(0, 1fr);
        column-gap: 8px;
        align-items: baseline;
        justify-items: start;
        grid-column: 2;
        min-width: 0;
        max-width: none;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        font-size: 13px;
        text-align: left;
    }

    .eiam-image-sources-table.eiam-design-modern tbody td::before {
        content: attr(data-label);
        display: block;
        font-size: 12px;
        font-weight: 500;
        color: var(--eiam-table-header-text);
        opacity: 1;
    }

    .eiam-image-sources-table.eiam-design-modern tbody td.eiam-thumbnail,
    .eiam-image-sources-table.eiam-design-modern tbody td[class].eiam-thumbnail {
        display: block;
        grid-column: 1;
        grid-row: 1 / span 6;
    }

    .eiam-image-sources-table.eiam-design-modern tbody td.eiam-thumbnail::before {
        content: none;
    }

    .eiam-image-sources-table.eiam-design-modern .eiam-thumbnail-img {
        width: var(--eiam-thumb-width, 60px);
        margin: 0;
    }
}

@container (max-width: 400px) {
    .eiam-image-sources-table.eiam-design-modern tbody tr {
        padding: 12px;
        column-gap: 12px;
    }

    .eiam-image-sources-table.eiam-design-modern tbody td,
    .eiam-image-sources-table.eiam-design-modern tbody td[class] {
        font-size: 12px;
    }

    .eiam-image-sources-table.eiam-design-modern tbody td,
    .eiam-image-sources-table.eiam-design-modern tbody td[class] {
        grid-template-columns: 5em minmax(0, 1fr);
    }

    .eiam-image-sources-table.eiam-design-modern tbody td::before {
        font-size: 11px;
    }
}
