/* RC4: responsive event image composition. Same original photo, adapted to card and detail. */
/* Frame is stable while image is always fully visible; backdrop fills unused space. */
.event-card .event-image:has(.event-image-foreground) {
  position:relative!important; display:grid!important;place-items:center!important;
  isolation:isolate;overflow:hidden!important;background:#20201e!important;
  padding:0!important;min-width:0;
}
.event-card .event-image .event-image-backdrop {
  position:absolute!important;inset:-18px!important;width:calc(100% + 36px)!important;
  height:calc(100% + 36px)!important;max-height:none!important;
  object-fit:cover!important;object-position:center!important;
  filter:blur(22px) brightness(.55) saturate(.75)!important;
  transform:none!important;pointer-events:none;z-index:0;
}
.event-card .event-image .event-image-foreground {
  position:relative!important;inset:auto!important;width:100%!important;
  height:100%!important;max-height:none!important;
  object-fit:contain!important;object-position:center center!important;
  filter:none!important;transform:none!important;z-index:1;
}
/* Home shows consistent landscape cards; no crop of portraits or faces. */
#homeLatestEvents .event-card .event-image {aspect-ratio:16/9!important;height:auto!important;}
/* Full details have a more generous frame on larger screens. */
.event-detail-view .event-card .event-image {aspect-ratio:3/2!important;height:auto!important;max-height:min(68vh,650px)!important;}
/* Events listing also gets a predictable automatic frame. */
#eventGrid .event-card .event-image {aspect-ratio:16/10!important;height:auto!important;min-height:0!important;}
@media(max-width:650px){
  #homeLatestEvents .event-card .event-image {aspect-ratio:16/10!important;}
  .event-detail-view .event-card .event-image {aspect-ratio:4/3!important;max-height:65vh!important;}
  #eventGrid .event-card .event-image {aspect-ratio:4/3!important;}
}
@media(prefers-reduced-motion:reduce){.event-card .event-image img{transition:none!important}}
