/* Only the canonical Polish 2026 Lalka (post ID 122): fallback if the Wikidata
   module injects markup from another script or server-side rendering. */
body.single-cmh_movie.postid-122 .smwa-mount,
body.single-cmh_movie.postid-122 #nagrody-filmowe,
body.single-cmh_movie.postid-122 #smwa-facts,
body.single-cmh_movie.postid-122 .smwa-awards-slot,
body.single-cmh_movie.postid-122 .smwa-facts-slot {
    display: none !important;
}

/* Eventim + Renters: one row with equally sized banners on desktop. This only
   affects content moved to the wrapper on actual Helios cinema movie pages. */
main.cmh-movie-page[data-ticket-provider="helios"] .smlaf-ads-row {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(12px, 1.8vw, 24px);
    align-items: stretch;
    width: 100%;
    max-width: 1280px;
    margin: 24px auto;
}
main.cmh-movie-page[data-ticket-provider="helios"] .smlaf-ads-row > .cmh-eventim-local,
main.cmh-movie-page[data-ticket-provider="helios"] .smlaf-ads-row > .cmh-renters-banner {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}
main.cmh-movie-page[data-ticket-provider="helios"] .smlaf-ads-row > aside > small {
    box-sizing: border-box;
    display: block;
    min-height: 24px;
    margin-bottom: 8px;
    line-height: 1.35;
}
main.cmh-movie-page[data-ticket-provider="helios"] .smlaf-ads-row > aside > a {
    box-sizing: border-box;
    display: block;
    position: relative;
    width: 100%;
    max-width: none;
    aspect-ratio: 2 / 1;
    min-height: 0;
    overflow: hidden;
}
main.cmh-movie-page[data-ticket-provider="helios"] .smlaf-ads-row > aside > a > img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    object-fit: fill;
    margin: 0 !important;
    border: 0;
}
/* Do not reserve a blank ad column if Eventim is unavailable for the city/date. */
main.cmh-movie-page[data-ticket-provider="helios"] .smlaf-ads-row.smlaf-single {
    grid-template-columns: minmax(0, min(720px, 100%));
    justify-content: center;
}
main.cmh-movie-page[data-ticket-provider="helios"] .smlaf-ads-row > .cmh-eventim-local[hidden] {
    display: none !important;
}
@media (max-width: 720px) {
    main.cmh-movie-page[data-ticket-provider="helios"] .smlaf-ads-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        max-width: 620px;
        padding: 0;
    }
}
