.event-album { scroll-margin-top: 130px; }
.event-album .album-heading { display: flex; justify-content: space-between; gap: 28px; align-items: end; margin-bottom: 28px; }
.event-album h2 { margin: 0 0 12px; }
.album-heading p { margin: 6px 0; }
.album-count { color: #76530b; font-weight: 700; white-space: nowrap; }
.album-cover { margin: 0 0 30px; }
.album-cover a { display: block; background: #051f49; }
.album-cover img { display: block; width: 100%; max-height: 650px; object-fit: contain; }
.album-cover figcaption { padding: 12px 0; color: #40516c; font-size: 16px; }
.event-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 18px; }
.event-photo { margin: 0; min-width: 0; }
.event-photo > a { display: block; background: #eef1f5; border-radius: 4px; overflow: hidden; }
.event-photo img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: contain; transition: transform .2s; }
.event-photo a:hover img { transform: scale(1.02); }
.event-photo figcaption { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; color: #40516c; font-size: 16px; }
.event-photo figcaption span:last-child { color: #051f49; }
.event-photo[hidden], .album-more[hidden], .event-lightbox:not([open]) { display: none !important; }
.album-actions { margin-top: 32px; display: flex; align-items: center; flex-wrap: wrap; gap: 20px 28px; }
.album-source { margin-top: 24px; max-width: 800px; color: #40516c; }
.event-lightbox { padding: 0; border: 0; max-width: none; max-height: none; width: 100%; height: 100%; background: #071322; color: white; }
.event-lightbox::backdrop { background: #071322; }
.event-lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lightbox-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 22px; border-bottom: 1px solid #40516c; }
.lightbox-toolbar h2 { color: white !important; font-size: 18px !important; margin: 0; }
.lightbox-toolbar > div { display: flex; align-items: center; gap: 16px; }
.event-lightbox button { display: inline-grid; place-items: center; width: 48px; height: 48px; padding: 10px; border: 1px solid #7f91ad; border-radius: 4px; background: #14263f; color: white; cursor: pointer; flex: 0 0 auto; }
.event-lightbox button:hover { background: #25446a; }
.event-lightbox .icon { width: 24px; height: 24px; }
.lightbox-stage { display: grid; grid-template-columns: 60px minmax(0, 1fr) 60px; gap: 12px; align-items: center; min-height: 0; padding: 16px; }
.lightbox-stage figure { display: flex; justify-content: center; align-items: center; margin: 0; min-height: 0; height: 100%; }
.lightbox-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox-caption { padding: 14px 24px max(18px, env(safe-area-inset-bottom)); text-align: center; border-top: 1px solid #40516c; }
.lightbox-caption p { margin: 0 0 6px; font-size: 16px; }
.lightbox-caption a { color: #ffda7b; font-size: 16px; }
.album-open:focus-visible, .album-actions a:focus-visible, .event-lightbox :focus-visible { outline: 3px solid #d89a18; outline-offset: 4px; }
.event-highlight { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.event-highlight figure { margin: 0; }
.event-highlight img { display: block; width: 100%; height: auto; }
.event-highlight figcaption { color: #40516c; font-size: 16px; padding-top: 10px; }
.event-highlight h2 { margin-top: 8px; }
.event-highlight .button { margin-top: 14px; }
@media (max-width: 760px) {
  .event-album .album-heading { display: block; }
  .album-count { display: block; margin-top: 12px; }
  .event-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .event-photo figcaption { font-size: 16px; }
  .event-photo figcaption span:last-child { display: none; }
  .event-highlight { grid-template-columns: 1fr; gap: 20px; }
  .lightbox-toolbar { padding: 10px 12px; }
  .lightbox-toolbar h2 { font-size: 16px !important; max-width: 185px; }
  .lightbox-toolbar > div { gap: 8px; }
  .lightbox-stage { grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr) 48px; padding: 8px; gap: 8px; }
  .lightbox-stage figure { grid-area: 1 / 1 / 2 / 3; }
  .lightbox-stage [data-lightbox-prev] { grid-column: 1; grid-row: 2; justify-self: start; }
  .lightbox-stage [data-lightbox-next] { grid-column: 2; grid-row: 2; justify-self: end; }
  .lightbox-stage button { width: 44px; height: 48px; }
  .lightbox-caption { padding: 12px 16px max(20px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .event-photo img { transition: none; } }
