/* Image page CSS extracted from page.php inline <style> for cacheability */
    #pubbeforebuttons {
        padding-top:10px;
        padding-bottom:20px;
        margin-left:0px;
    }

    .jc-image-meta-card {
        margin-top: 6px;
        background: #ffffff;
        border: 1px solid #d6d6d6;
        border-radius: 8px;
        padding: 10px;
        box-shadow: none !important;
    }

    .jc-image-meta-table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        table-layout: fixed;
        border: 0 !important;
        box-shadow: none !important;
    }

    .jc-image-meta-table th,
    .jc-image-meta-table td {
        padding: 8px 4px;
        border: 0 !important;
        border-bottom: 1px solid #e5e5e5 !important;
        vertical-align: top;
        text-align: left;
        box-shadow: none !important;
    }

    .jc-image-meta-table tr:last-child th,
    .jc-image-meta-table tr:last-child td {
        border-bottom: 0 !important;
    }

    .jc-image-meta-table th {
        width: 56%;
        color: #3e3e3e;
        font-weight: 600;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .jc-image-meta-table td {
        width: 44%;
        color: #2d2d2d;
        word-break: break-word;
        text-align: right;
        overflow-wrap: anywhere;
    }

    .jc-image-meta-table .ico {
        display: inline-block;
        width: 18px;
        margin-right: 6px;
        text-align: center;
        color: #a6a6a6;
        opacity: 0.9;
        filter: grayscale(100%) saturate(0%) brightness(0.92);
    }

    .jc-image-meta-card .jc-image-meta-table {
        width: 100%;
        table-layout: fixed;
    }

    .jc-image-meta-card .jc-image-meta-table th {
        width: 46%;
    }

    .jc-image-meta-card .jc-image-meta-table td {
        width: 54%;
        text-align: right;
        vertical-align: top;
    }

    .jc-image-meta-card .tag-container {
        margin: 0;
        display: flex !important;
        flex-wrap: wrap !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 4px !important;
        text-align: right;
        line-height: 1.35;
        width: 100%;
        max-width: 100%;
        padding-right: 0 !important;
    }

    .jc-image-meta-card .tag-container .tag {
        display: inline-flex !important;
        flex: 0 0 auto !important;
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .jc-image-meta-card .tag-container .tag a {
        display: inline-block !important;
        width: auto !important;
        max-width: 100%;
        margin: 0 !important;
        padding: 2px 7px;
        background: #f3e0a7;
        border: 1px solid #ecd690;
        border-radius: 5px;
        color: #2d2d2d !important;
        text-decoration: none;
        font-weight: 400;
        white-space: nowrap;
        line-height: 1.2;
        box-shadow: none !important;
        transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    }

    .jc-image-meta-card .tag-container .tag + .tag::before {
        content: none;
    }

    .jc-image-meta-card .tag-container .jc-meta-tag-chip {
        display: inline-flex !important;
        flex: 0 0 auto !important;
        width: auto !important;
        margin: 0 !important;
        padding: 2px 7px;
        background: #f3e0a7;
        border: 1px solid #ecd690;
        border-radius: 5px;
        color: #2d2d2d !important;
        text-decoration: none;
        font-weight: 400;
        white-space: nowrap;
        line-height: 1.2;
        box-shadow: none !important;
        transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    }

    .jc-image-meta-card .tag-container > a {
        display: inline-flex !important;
        flex: 0 0 auto !important;
        width: auto !important;
        margin: 0 !important;
        padding: 2px 7px;
        background: #f3e0a7;
        border: 1px solid #ecd690;
        border-radius: 5px;
        color: #2d2d2d !important;
        text-decoration: none;
        font-weight: 400;
        white-space: nowrap;
        line-height: 1.2;
        box-shadow: none !important;
        transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    }

    .jc-image-meta-card .gal-container {
        margin: 0;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: flex-end !important;
        align-items: center !important;
        gap: 4px !important;
        text-align: right;
        width: 100%;
        max-width: 100%;
        padding-right: 0 !important;
    }

    .jc-image-meta-card .gal-container .gal {
        display: inline-flex !important;
        flex: 0 0 auto !important;
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        margin-right: 0 !important;
    }

    .jc-image-meta-card .gal-container .gal a,
    .jc-image-meta-card .gal-container > a,
    .jc-image-meta-card .gal-container .jc-meta-gallery-chip {
        display: inline-flex !important;
        flex: 0 0 auto !important;
        align-items: center;
        margin: 0 !important;
        padding: 2px 7px !important;
        background: #9ec7ea !important;
        border: 1px solid #86b5da !important;
        border-radius: 5px;
        color: #2d2d2d !important;
        white-space: nowrap;
        line-height: 1.2;
        font-weight: 400;
        text-decoration: none;
        box-shadow: none !important;
        transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    }

    .jc-image-meta-card .tag-container .tag a:hover,
    .jc-image-meta-card .tag-container .jc-meta-tag-chip:hover,
    .jc-image-meta-card .tag-container > a:hover,
    .jc-image-meta-card .gal-container .gal a:hover,
    .jc-image-meta-card .gal-container > a:hover,
    .jc-image-meta-card .gal-container .jc-meta-gallery-chip:hover {
        transform: translateY(-1px);
        text-decoration: none !important;
    }

    .jc-image-meta-card .tag-container .tag a:hover,
    .jc-image-meta-card .tag-container .jc-meta-tag-chip:hover,
    .jc-image-meta-card .tag-container > a:hover {
        background: #efdaa0;
        border-color: #e6cc79;
    }

    .jc-image-meta-card .gal-container .gal a:hover,
    .jc-image-meta-card .gal-container > a:hover,
    .jc-image-meta-card .gal-container .jc-meta-gallery-chip:hover {
        background: #8fbce3 !important;
        border-color: #6fa2cb !important;
        box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    }

    .jc-image-meta-table tr.jc-row-permission td {
        font-size: 0.9em;
        line-height: 1.3;
    }

    .jc-image-meta-table tr.jc-row-permission td a {
        font-size: inherit;
    }

    .jc-vote-widget {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 8px;
        width: 100%;
        margin: 0;
        padding: 0;
        white-space: nowrap;
        font-size: 0.98em;
        color: #6a6a6a;
        line-height: 1.15;
    }

    .jc-vote-btn {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        margin: 0;
        padding: 2px 6px;
        border: 0;
        border-radius: 5px;
        background: transparent;
        background-image: none !important;
        color: #666666;
        font: inherit;
        cursor: pointer;
        appearance: none;
        -webkit-appearance: none;
        transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
        box-shadow: none !important;
    }

    .jc-vote-btn:hover:not([disabled]) {
        color: #4f4f4f;
    }

    .jc-vote-btn:hover:not([disabled]) .jc-vote-btn-icon {
        filter: none;
        opacity: 0.92;
    }

    .jc-vote-btn-up:hover:not([disabled]) {
        background: rgba(47, 93, 55, 0.10);
    }

    .jc-vote-btn-down:hover:not([disabled]) {
        background: rgba(123, 52, 52, 0.10);
    }

    .jc-vote-btn:focus-visible:not([disabled]) {
        outline: none;
        box-shadow: none;
    }

    /* Neutralise le fond gris global du theme sur les boutons de vote */
    .jc-vote-widget .jc-vote-btn:focus:not([disabled]),
    .jc-vote-widget .jc-vote-btn:active:not([disabled]) {
        background: transparent !important;
        background-image: none !important;
        box-shadow: none !important;
        outline: none;
    }

    .jc-vote-btn[disabled],
    .jc-vote-btn:disabled {
        cursor: default;
        opacity: 0.58;
        background: transparent !important;
        background-image: none !important;
        border-color: transparent !important;
        box-shadow: none !important;
        color: #666666 !important;
        -webkit-text-fill-color: #666666 !important;
    }

    .jc-vote-btn-icon {
        font-size: 1.02em;
        line-height: 1;
        filter: grayscale(100%) saturate(0%);
        opacity: 0.82;
        transition: filter 0.15s ease, opacity 0.15s ease;
    }

    .jc-vote-btn-number {
        font-weight: 500;
        color: #606060;
    }

    .jc-vote-btn.is-selected-up .jc-vote-btn-icon {
        filter: none;
        opacity: 1;
    }

    .jc-vote-btn.is-selected-up {
        background: transparent !important;
    }

    .jc-vote-btn.is-selected-up .jc-vote-btn-number {
        color: #2f5d37;
    }

    .jc-vote-btn.is-selected-up[disabled],
    .jc-vote-btn.is-selected-up:disabled {
        opacity: 1;
    }

    .jc-vote-btn.is-selected-down .jc-vote-btn-icon {
        filter: none;
        opacity: 1;
    }

    .jc-vote-btn.is-selected-down {
        background: transparent !important;
    }

    .jc-vote-btn.is-selected-down .jc-vote-btn-number {
        color: #7b3434;
    }

    .jc-vote-btn.is-selected-down[disabled],
    .jc-vote-btn.is-selected-down:disabled {
        opacity: 1;
    }

    .jc-vote-btn.is-passive {
        opacity: 0.6;
    }

    .jc-vote-sep {
        color: #9a9a9a;
    }

    .jc-vote-positive,
    .jc-vote-total {
        color: #6a6a6a;
    }

    .jc-vote-positive-wrap[hidden] {
        display: none !important;
    }

    .jc-image-meta-table tr.jc-row-votes td {
        padding-top: 22px !important;
        padding-bottom: 2px !important;
        text-align: left !important;
    }
