/* Events page + homepage events strip (Nov 2026) */
.ev-grid{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:28px; }
@media (max-width:1060px){ .ev-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); } }
@media (max-width:680px){ .ev-grid{ grid-template-columns:1fr; gap:22px; } }
.ev-card{ background:#fff; border:1px solid var(--line); border-radius:18px; overflow:hidden; display:flex; flex-direction:column; scroll-margin-top:110px; }
.ev-card:target{ box-shadow:0 0 0 2px var(--peach); }
.ev-photo{ margin:0; aspect-ratio:4/3; background:var(--peach-dust); overflow:hidden; }
.ev-photo img{ width:100%; height:100%; object-fit:cover; display:block; }
.ev-nophoto{ display:flex; align-items:center; justify-content:center; }
.ev-nophoto img{ width:42%; height:auto; object-fit:contain; opacity:.85; }
.ev-body{ padding:20px 22px 22px; display:flex; flex-direction:column; flex:1; }
.ev-date{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; font-size:.82rem; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--green-text); margin:0 0 8px; }
body.ar .ev-date{ letter-spacing:0; font-size:.9rem; }
.ev-badge{ background:var(--brown); color:#fff; border-radius:999px; padding:3px 10px; font-size:.72rem; letter-spacing:.06em; }
.ev-title{ font-size:1.28rem; line-height:1.3; margin:0 0 6px; color:var(--brown); }
.ev-title a{ color:inherit; text-decoration:none; }
.ev-title a:hover{ text-decoration:underline; text-underline-offset:3px; }
.ev-place{ font-size:.92rem; color:var(--muted); margin:0 0 12px; }
.ev-place::before{ content:""; display:inline-block; width:7px; height:7px; border-radius:50%; background:var(--peach); margin-inline-end:8px; vertical-align:middle; position:relative; top:-1px; }
.ev-text{ font-size:.98rem; line-height:1.6; color:var(--ink); margin:0 0 14px; }
.ev-people{ font-size:.92rem; color:var(--muted); margin:auto 0 0; padding-top:12px; border-top:1px solid var(--line); }
.ev-people a{ color:var(--brown); text-decoration:underline; text-decoration-color:rgba(99,63,23,.35); text-underline-offset:3px; }
.ev-price{ font-weight:600; color:var(--brown); margin:10px 0 0; }
.ev-actions{ display:flex; flex-wrap:wrap; align-items:center; gap:12px 18px; margin-top:14px; }
.ev-ig{ display:inline-block; padding:10px 0; margin:-10px 0; font-size:.92rem; color:var(--brown); text-decoration:underline; text-underline-offset:3px; }
.ev-reg{ padding:11px 22px !important; font-size:.95rem; }
.ev-text:last-child{ margin-bottom:0; }
/* empty upcoming state */
.ev-grid.is-empty{ display:block; }
.ev-empty{ background:var(--peach-dust); border:1px dashed rgba(207,161,132,.8); border-radius:18px; padding:28px; max-width:640px; }
.ev-empty-title{ font-family:var(--serif); color:var(--brown); font-size:1.35rem; margin:0 0 8px; }
body.ar .ev-empty-title{ font-family:var(--arabic); font-weight:600; }
.ev-empty p{ margin:0 0 18px; color:var(--muted); }
.ev-empty .btn-ghost{ display:inline-block; }
/* in the media */
.md-list{ list-style:none; margin:0; padding:0; border-top:1px solid var(--line); }
.md-row{ display:grid; grid-template-columns:150px minmax(0,1fr) minmax(0,220px) 70px; gap:6px 24px; align-items:baseline; padding:16px 4px; border-bottom:1px solid var(--line); }
.md-date{ font-size:.86rem; color:var(--green-text); font-weight:600; }
.md-main{ display:flex; flex-direction:column; gap:2px; }
.md-outlet{ color:var(--brown); font-weight:600; }
.md-topic{ color:var(--ink); }
.md-who{ font-size:.92rem; color:var(--muted); }
.md-who a{ color:var(--brown); text-decoration:underline; text-decoration-color:rgba(99,63,23,.35); text-underline-offset:3px; }
.md-link{ justify-self:end; padding:10px 0; margin:-10px 0; font-size:.92rem; color:var(--brown); text-decoration:underline; text-underline-offset:3px; }
.md-more{ display:none; }
#evMedia.show-all .md-more{ display:grid; }
.md-toggle{ display:block; margin:24px auto 0; cursor:pointer; }
@media (max-width:760px){
  .md-row{ grid-template-columns:minmax(0,1fr) auto; gap:4px 16px; padding:14px 2px; }
  .md-date{ grid-column:1 / -1; }
  .md-main{ grid-column:1; }
  .md-who{ grid-column:1; }
  .md-link{ grid-column:2; grid-row:2 / span 2; align-self:center; }
}
/* events page layout */
.ev-section-head{ display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin-bottom:28px; }
.ev-section-head h2{ font-size:clamp(1.6rem, 2.6vw, 2.2rem); margin:0; }
.ev-section-head p{ margin:0; color:var(--muted); }
/* homepage strip */
.home-events .ev-more{ text-align:center; margin-top:34px; }
.ev-title + .ev-text{ margin-top:8px; }
.md-toggle{ margin-inline:auto; }
/* homepage: shorter cards; on phones a sideways swipe row instead of a tall stack */
.home-events .ev-text{ display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
@media (max-width:680px){
  .home-events .ev-grid{ display:flex; overflow-x:auto; scroll-snap-type:x mandatory; gap:14px; margin-inline:-20px; padding:4px 20px 12px; scrollbar-width:none; }
  .home-events .ev-grid::-webkit-scrollbar{ display:none; }
  .home-events .ev-card{ flex:0 0 82%; scroll-snap-align:center; }
}
/* gallery button on the card photo */
.ev-open{ display:block; width:100%; height:100%; padding:0; border:0; cursor:zoom-in; position:relative; background:none; }
.ev-open img{ transition:transform .4s ease; }
.ev-open:hover img, .ev-open:focus-visible img{ transform:scale(1.03); }
.ev-open:focus-visible{ outline:3px solid var(--peach); outline-offset:-3px; }
.ev-count{ position:absolute; inset-inline-end:12px; bottom:12px; display:inline-flex; align-items:center; gap:6px; background:rgba(58,42,22,.78); color:#fff; border-radius:999px; padding:6px 12px; font-size:.82rem; line-height:1; backdrop-filter:blur(4px); }
body.ar .ev-count{ font-size:.9rem; }
/* viewer */
html.evlb-open, html.evlb-open body{ overflow:hidden; }
.evlb{ position:fixed; inset:0; z-index:9999; background:rgba(20,14,8,.96); display:grid; grid-template-rows:auto minmax(0,1fr) auto; grid-template-columns:100%; color:#fff; }
.evlb[hidden]{ display:none; }
.evlb-top{ display:flex; align-items:center; gap:16px; padding:12px 16px 8px 22px; }
.evlb-cap{ flex:1; font-size:1rem; opacity:.92; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.evlb-count{ font-size:.9rem; opacity:.75; font-variant-numeric:tabular-nums; }
.evlb-btn{ width:46px; height:46px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; color:#fff; background:rgba(255,255,255,.1); cursor:pointer; }
.evlb-btn:hover{ background:rgba(255,255,255,.2); }
.evlb-btn:focus-visible{ outline:2px solid #fff; outline-offset:2px; }
.evlb-stage{ position:relative; display:flex; align-items:center; justify-content:center; min-height:0; min-width:0; padding:0 72px; }
.evlb-stage img, .evlb-stage video{ max-width:100%; max-height:100%; max-height:calc(100vh - 170px); max-height:calc(100dvh - 170px); width:auto; height:auto; object-fit:contain; border-radius:8px; display:block; background:#000; }
.evlb-prev, .evlb-next{ position:absolute; top:50%; transform:translateY(-50%); z-index:2; }
.evlb-prev{ left:14px; } .evlb-next{ right:14px; }
.evlb-thumbs{ display:flex; gap:8px; justify-content:center; padding:10px 16px 16px; overflow-x:auto; scrollbar-width:none; }
.evlb-thumbs::-webkit-scrollbar{ display:none; }
.evlb-th{ flex:0 0 auto; width:64px; height:48px; border-radius:6px; overflow:hidden; padding:0; opacity:.5; cursor:pointer; position:relative; border:2px solid transparent; }
.evlb-th img{ width:100%; height:100%; object-fit:cover; display:block; }
.evlb-th.on{ opacity:1; border-color:#fff; }
.evlb-th.is-video::after{ content:""; position:absolute; left:50%; top:50%; transform:translate(-40%,-50%); border-style:solid; border-width:7px 0 7px 11px; border-color:transparent transparent transparent #fff; filter:drop-shadow(0 0 2px rgba(0,0,0,.6)); }
.evlb.single .evlb-prev, .evlb.single .evlb-next, .evlb.single .evlb-thumbs{ display:none; }
@media (max-width:700px){
  .evlb-stage{ padding:0 8px; }
  .evlb-prev, .evlb-next{ top:auto; bottom:16px; transform:none; width:42px; height:42px; }
  .evlb-thumbs{ padding:10px 64px 16px; justify-content:flex-start; }
  .evlb-th{ width:54px; height:42px; }
}
/* one upcoming event: a wide card (photo beside the text) instead of one card in a 3-column grid (Nov 19) */
.ev-grid.is-single{ display:block; }
.ev-grid.is-single .ev-card{ flex-direction:row; max-width:980px; }
.ev-grid.is-single .ev-photo{ flex:0 0 44%; aspect-ratio:auto; min-height:100%; }
.ev-grid.is-single .ev-photo img{ aspect-ratio:4/3; height:100%; }
.ev-grid.is-single .ev-body{ padding:28px 32px; justify-content:center; }
.ev-grid.is-single .ev-people{ margin-top:4px; }
@media (max-width:760px){
  .ev-grid.is-single .ev-card{ flex-direction:column; }
  .ev-grid.is-single .ev-photo{ flex:none; aspect-ratio:4/3; }
  .ev-grid.is-single .ev-body{ padding:20px 22px 22px; }
}
