/* Ediva Theme Manager 0.3.0 — Random Posts layouts */

body.ediva-random-layout-compact [id^="arpw-widget-"] img.arpw-thumbnail {
    content-visibility: auto;
}

/*
 * W wąskich panelach bocznych wariant kompaktowy układa obraz nad
 * tekstem. Container query nie zmienia szerokich sekcji redakcyjnych.
 */
body.ediva-random-layout-compact .arpw-widget-random {
    container-name: ediva-random-compact-widget;
    container-type: inline-size;
}

@container ediva-random-compact-widget (max-width: 520px) {
    .arpw-ul {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    .arpw-li {
        display: block !important;
        float: none !important;
        clear: both !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 0 18px !important;
        overflow: hidden !important;
    }

    .arpw-li > a:first-child {
        display: block !important;
        float: none !important;
        clear: both !important;
        width: 100% !important;
        margin: 0 0 10px !important;
    }

    .arpw-li img.arpw-thumbnail,
    .arpw-li > a:first-child img {
        display: block !important;
        float: none !important;
        clear: both !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
        margin: 0 !important;
        object-fit: cover !important;
        object-position: center !important;
    }

    .arpw-title,
    .arpw-summary,
    .arpw-time,
    .arpw-meta {
        display: block !important;
        clear: both !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

body.ediva-random-layout-full [id^="arpw-widget-"] .arpw-ul,
body.ediva-random-layout-full [id^="arpw-widget-"] > ul {
    display: grid;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.ediva-random-layout-full [id^="arpw-widget-"] .arpw-li,
body.ediva-random-layout-full [id^="arpw-widget-"] > ul > li {
    display: block;
    min-height: 0;
    margin: 0;
    padding: 0 0 20px;
    overflow: hidden;
    border-bottom: 1px solid currentColor;
}

body.ediva-random-layout-full [id^="arpw-widget-"] .arpw-thumbnail,
body.ediva-random-layout-full [id^="arpw-widget-"] li > a:first-child img,
body.ediva-random-layout-full [id^="arpw-widget-"] li > img:first-child {
    display: block;
    float: none !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 0 12px !important;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
}

body.ediva-random-layout-full [id^="arpw-widget-"] .arpw-title {
    display: block;
    margin-top: 0;
    font-weight: 700;
    line-height: 1.35;
}

body.ediva-random-layout-full [id^="arpw-widget-"] .arpw-summary {
    display: block;
    margin-top: 7px;
    line-height: 1.55;
}

body.ediva-random-layout-full [id^="arpw-widget-"] .arpw-time,
body.ediva-random-layout-full [id^="arpw-widget-"] .arpw-meta {
    display: block;
    margin-top: 6px;
    font-size: 0.82em;
    opacity: 0.72;
}

/* EDIVA_FULL_CARD_INLINE_031_START */
html body.ediva-random-layout-full [id^="arpw-widget-"] .arpw-ul,
html body.ediva-random-layout-full [id^="arpw-widget-"] > ul {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

html body.ediva-random-layout-full [id^="arpw-widget-"] .arpw-li,
html body.ediva-random-layout-full [id^="arpw-widget-"] > ul > li {
    display: block !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 0 20px !important;
    overflow: hidden !important;
    border-bottom: 1px solid rgba(30, 30, 30, 0.18);
}

html body.ediva-random-layout-full [id^="arpw-widget-"] .arpw-li > a:first-child,
html body.ediva-random-layout-full [id^="arpw-widget-"] > ul > li > a:first-child {
    display: block !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    margin: 0 0 12px !important;
}

html body.ediva-random-layout-full [id^="arpw-widget-"] img.arpw-thumbnail,
html body.ediva-random-layout-full [id^="arpw-widget-"] li > a:first-child img,
html body.ediva-random-layout-full [id^="arpw-widget-"] li > img:first-child {
    display: block !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
}

html body.ediva-random-layout-full [id^="arpw-widget-"] .arpw-title {
    display: block !important;
    clear: both !important;
    margin: 0 !important;
    font-weight: 700;
    line-height: 1.35;
}

html body.ediva-random-layout-full [id^="arpw-widget-"] .arpw-summary {
    display: block !important;
    clear: both !important;
    margin: 7px 0 0 !important;
    line-height: 1.55;
}

html body.ediva-random-layout-full [id^="arpw-widget-"] .arpw-time,
html body.ediva-random-layout-full [id^="arpw-widget-"] .arpw-meta {
    display: block !important;
    clear: both !important;
    margin: 6px 0 0 !important;
    font-size: 0.82em;
    opacity: 0.72;
}
/* EDIVA_FULL_CARD_INLINE_031_END */
