/* Events & Videos: scoped media gallery, using the existing UHOLF brand. */
.events-page{padding:64px 0 72px}
.events-intro{max-width:740px}
.events-intro .page-title{text-align:left;text-transform:none;font-size:clamp(34px,5vw,54px);margin:0 0 18px}
.events-intro p{font-size:18px;color:var(--muted);max-width:56ch;margin-bottom:30px}
.events-intro .events-kicker,.events-give .events-kicker{font-family:Arial,sans-serif;text-transform:uppercase;font-size:11px;line-height:1.5;letter-spacing:2px;color:var(--pink-soft);margin:0 0 16px}
.events-topics{display:flex;gap:32px;flex-wrap:wrap;border-block:1px solid var(--line);margin-bottom:42px}
.events-topics a{padding:16px 0;text-decoration:none;min-height:48px}
.events-topics a:hover{color:var(--pink-soft)}
.events-section,.events-give{scroll-margin-top:120px}
.events-section+.events-section{border-top:1px solid var(--line);margin-top:48px;padding-top:40px}
.events-section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:22px}
.events-section-heading h2{font-size:28px;margin:0}
.events-section-heading p{font-size:15px;color:var(--muted);margin:0}
.event-video-grid,.event-flyer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}
.event-flyer-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 24px}
.event-video,.event-flyer{margin:0;min-width:0}
.event-video video{width:100%;height:440px;background:var(--bg-2);object-fit:contain;border:1px solid var(--line);border-radius:5px}
.event-video figcaption,.event-flyer figcaption{font-size:17px;padding-top:14px}
.event-photo{margin-top:24px}
.event-photo summary{cursor:pointer;text-decoration:underline;text-underline-offset:5px;padding:12px 0;min-height:48px;width:fit-content}
.event-photo summary:focus-visible{outline:2px solid var(--pink);outline-offset:4px}
.event-photo img{max-width:360px;width:100%;height:auto;margin-top:18px}
.flyer-open{display:block;width:100%;padding:0;border:1px solid var(--line);background:var(--bg-2);cursor:zoom-in;border-radius:5px;overflow:hidden}
.flyer-open img{width:100%;height:auto;aspect-ratio:4/5;object-fit:contain}
.flyer-open:hover{outline:1px solid var(--pink-soft);outline-offset:3px}
.events-give{display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);gap:40px;align-items:center;background:var(--bg-2);border:1px solid var(--line);padding:32px;margin:0 0 56px}
.events-give-intro{min-width:0}
.events-give-intro .btn{margin-top:26px;white-space:normal}
.commercial-video{margin:0;min-width:0}
.commercial-video video{display:block;width:100%;height:auto;aspect-ratio:16/9;background:#fff;border:1px solid var(--line)}
.commercial-video figcaption{padding-top:12px;font-size:15px;color:var(--muted);line-height:1.7}
.commercial-note{font-size:13px}
.events-give h2{font-size:clamp(30px,3.5vw,44px);line-height:1.15;color:var(--pink-soft);margin:0 0 18px}
.events-give p{color:var(--muted);max-width:60ch;margin:0}
.events-give .btn{white-space:nowrap;min-height:48px}
.flyer-dialog{width:min(1050px,calc(100% - 24px));max-height:92dvh;overflow:auto;background:#111;color:var(--text);padding:20px;border:1px solid #444;border-radius:5px}
.flyer-dialog::backdrop{background:rgb(0 0 0 / .88)}
.flyer-dialog-bar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-bottom:16px;position:sticky;top:0;background:#111;z-index:1}
.flyer-dialog h2{font-size:20px;margin:0}
.flyer-close{font:inherit;background:var(--pink-soft);color:#111;border:0;border-radius:3px;min-height:44px;padding:8px 18px;cursor:pointer}
.flyer-dialog img{width:100%;height:auto}
@media(max-width:760px){
  .events-page{padding:40px 0 48px}
  .events-intro p{font-size:16px}
  .events-topics{gap:20px;margin-bottom:30px;font-size:14px}
  .events-section-heading{display:block}
  .events-section-heading h2{font-size:25px;margin-bottom:8px}
  .event-video-grid,.event-flyer-grid{grid-template-columns:1fr;gap:28px}
  .event-video video{height:auto;aspect-ratio:9/16;max-height:560px}
  .events-give{display:block;padding:24px 18px;margin-bottom:40px}
  .events-give-intro{display:block}
  .events-give .btn{margin-top:22px}
  .commercial-video{margin-top:28px}
  .events-section,.events-give{scroll-margin-top:105px}
  .flyer-dialog{padding:12px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
