/* ARTW RAXO RSS only. Existing layouts untouched when RSS is disabled. */
.raxo-rss-item .raxo-image,
.allmode-item.raxo-rss-item .allmode-img { position: relative; }

/* A single RSS label on the top-left of the picture for every RAXO layout. */
.raxo-rss-item .raxo-image::before,
.allmode-item.raxo-rss-item .allmode-img::before {
    top: 8px !important;
    left: 8px !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 7 !important;
}

/* Configurable local WebP watermark, visually independent from RSS tag. */
.raxo-rss-item .raxo-rss-overlay-logo {
    position: absolute !important;
    bottom: 8px;
    left: 8px;
    z-index: 8 !important;
    pointer-events: none;
    display: block;
    width: 44px;
    max-width: 22%;
    height: auto;
    line-height: 0;
    background: transparent;
    box-shadow: none;
}
.raxo-rss-item .raxo-rss-overlay-logo > img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    background: transparent !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
}


/* ARTW RSS v20 - dimensions from the module's TOP image settings.
 * The browser is allowed to shrink the width to the available module column,
 * but no longer shrinks the configured height as a consequence. This aligns
 * picture bottoms and headlines between different RSS module widths.
 * All selectors are restricted to RSS cards; Joomla/LB image layouts are intact.
 */
.raxo-rss-item picture.artw-rss-picture {
    display: block !important;
    box-sizing: border-box;
    position: relative;
    width: 100% !important;
    max-width: var(--artw-rss-image-width, 270px) !important;
    height: var(--artw-rss-image-height, 200px) !important;
    overflow: hidden;
}
.raxo-rss-item picture.artw-rss-picture > img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-position: center center !important;
    object-fit: cover !important;
}
.raxo-rss-item picture.artw-rss-picture.artw-rss-fit > img {
    object-fit: contain !important;
}
