/* Stable media frames: image orientation never changes card geometry. */
.event-card .event-card-img-wrap{position:relative;display:block!important;aspect-ratio:auto!important;height:auto!important;min-height:0!important;overflow:hidden;background:#f5f0e8}
.event-card .event-poster-link,.event-card--photo .event-poster-link,.event-card--landscape .event-poster-link{position:relative;display:block;width:100%;height:auto!important;aspect-ratio:2/3!important;overflow:hidden;background:#f5f0e8}
.event-card .event-poster-link>img{position:absolute;inset:0;display:block;width:100%!important;height:100%!important;max-width:100%;max-height:none!important;object-fit:contain!important;object-position:center!important;transform:none!important}
.event-card.event-card--photo .event-poster-link>img{object-fit:cover!important;object-position:center 35%!important}
.event-card .event-card-date{position:static!important;display:flex;align-items:baseline;gap:7px;min-height:46px;margin:0!important;text-align:left!important;box-shadow:none!important}
.poster-rail{grid-auto-columns:calc((100% - 80px)/5);gap:20px;align-items:stretch}
.poster-rail .event-card{display:flex;flex-direction:column;align-self:stretch;height:100%;min-width:0}
.poster-rail .event-card-body{flex:1 1 auto;min-width:0}.poster-rail .event-card-footer{margin-top:auto}
.poster-rail .event-card-title{font-size:16px;line-height:1.4;overflow-wrap:break-word}
/* Photos use landscape frames; complete covers retain their own portrait frame. */
.blog-card-img:not(.editorial-book-image),.activity-card-img,.nature-card-img,.game-card-img,.planner-library-card-image,.sidebar-item-img{position:relative;display:block;aspect-ratio:4/3!important;height:auto!important;min-height:0!important;overflow:hidden}
.blog-card-img:not(.editorial-book-image)>img,.activity-card-img>img,.nature-card-img>img,.game-card-img>img,.planner-library-card-image>img,.sidebar-item-img>img{display:block;width:100%!important;height:100%!important;position:absolute;inset:0;object-fit:cover;object-position:center}
.hero-card .hero-card-img{position:relative;width:100%;aspect-ratio:4/3!important;height:auto!important;min-height:0!important;overflow:hidden;background:#f5f0e8}
.hero-card .hero-card-img>img{position:absolute;inset:0;display:block;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important}
.hero-card--movie .hero-card-img{aspect-ratio:16/9!important}
.detail-hero-img{width:100%!important;height:auto!important;max-height:min(78vh,720px)!important;object-fit:contain!important;object-position:center!important}
.culture-book img,.child-book-cover img,.article-book-cover{object-fit:contain!important}
@media(max-width:1100px){.poster-rail{grid-auto-columns:calc((100% - 54px)/4);gap:18px}}
@media(max-width:800px){.poster-rail{grid-auto-columns:calc((100% - 32px)/3);gap:16px}}
@media(max-width:600px){.poster-rail{grid-auto-columns:72%;gap:14px}.poster-rail .event-card-title{font-size:16px}}
/* Wide artwork fills the thumbnail; the detail view keeps the complete original. */
.event-card.event-card--landscape .event-poster-link>img{object-fit:cover!important}
.event-card.event-card--landscape .event-poster-link>img[src*="bremen-banner"]{object-position:100% center!important}

img.planner-library-card-image{width:100%;object-fit:cover;object-position:center}
