.event-page .event-shell { border-radius: 8px; }
.event-page .event-shell::before { content: none; }
.event-page .event-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-top: 20px; }
.event-page .event-grid:empty { display: none; }
.event-page .event-card { max-width: 560px; width: 100%; text-align: start; border: 1px solid #cad6e3; border-radius: 8px; box-shadow: none; }
.event-page .event-card[id] { scroll-margin-block-start: 90px; }
.event-page .event-card h2 { font-size: 20px; line-height: 1.35; margin: 0; padding: 0; word-break: break-word; letter-spacing: 0; }
.event-card-body { display: grid; gap: 8px; padding: 16px; }
.event-card-body p { margin: 0; color: #425770; font-size: 14px; line-height: 1.5; }
.event-card-body .event-card-period { padding: 0; }
.event-card-body .event-enquiry { display: inline-flex; align-items: center; min-height: 44px; justify-self: start; color: #244675; text-decoration: underline; text-underline-offset: 3px; }
.event-page .event-card-poster { display: block; width: 100%; min-height: 44px; background: #edf2f6; border-top: 1px solid #cad6e3; color: #244675; text-align: center; }
.event-page .event-card-poster img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: contain; display: block; cursor: zoom-in; }
.event-card-poster span { display: grid; place-items: center; min-height: 44px; font-weight: 600; padding: 6px 12px; }
.event-card-poster:focus-visible { outline: 2px solid #244675; outline-offset: -3px; }
.event-page .event-load-message { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; min-height: 48px; }
.event-load-message p { margin: 0; }
.event-load-message button { min-height: 44px; }
.event-poster-dialog { width: min(760px, calc(100% - 24px)); max-width: none; max-height: calc(100% - 28px); max-height: calc(100dvh - 28px); border: 1px solid #cad6e3; border-radius: 8px; padding: 0; margin: auto; overflow: hidden; background: white; color: #19344e; }
.event-poster-dialog[open] { display: flex; flex-direction: column; }
.event-poster-dialog::backdrop { background: rgb(16 29 43 / 82%); }
html:has(.event-poster-dialog[open]) { overflow: hidden; }
.event-poster-toolbar { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; flex: 0 0 auto; padding: 8px 12px; border-bottom: 1px solid #dce5ec; background: white; }
.event-poster-toolbar h2 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 17px; line-height: 1.3; margin: 0; overflow-wrap: anywhere; }
.event-poster-toolbar button { display: inline-flex; align-items: center; justify-content: center; justify-self: start; gap: 6px; min-width: 44px; min-height: 44px; padding: 6px 12px; border: 1px solid #244675; border-radius: 6px; background: #244675; color: white; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.event-poster-toolbar button:hover { background: #1b375d; }
.event-poster-toolbar button:focus-visible { outline: 2px solid #244675; outline-offset: 2px; }
.event-poster-media { min-height: 0; overflow: auto; }
.event-poster-dialog img { display: block; width: 100%; max-height: min(77vh, 780px); object-fit: contain; }
@media (max-width: 400px) { .event-poster-toolbar { grid-template-columns: minmax(0, 1fr); gap: 8px; } }
