/* ==========================================================================
   Events (Views/Events; Docs/website-cms-map.md, "Events, redesigned"), laid out like the news pages: the events pages
   use the news layout in css/news.css (nw-: top stories, tiles, list, side column, article page) and css/shaadi.css
   (.sh colours, buttons, sort, pager, empty message, toast). This file adds only what events need; everything is
   prefixed ev-. Flat: thin lines, no shadows or gradients.
   ========================================================================== */

/* ---------- photos: the "Coming up" flag, the number of photos, an event without photos ---------- */
.ev-photo { position: relative; }
.ev-flag { position: absolute; left: 10px; top: 10px; z-index: 1; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--vs-chip-flag, #e11d2e); font-size: 11.5px; font-weight: 800; letter-spacing: .02em; color: #fff; }
.ev-flag.is-inline { position: static; }
.ev-count { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; background: rgba(21, 40, 51, .78); font-size: 12px; font-weight: 700; color: #fff; }
.ev-noimg { --nw-hue: 22; }

/* where an event was: one line under the name */
.ev-where { display: flex; align-items: center; gap: 6px; min-width: 0; margin: 0 !important; font-size: 13.5px; color: var(--sh-muted); }
.ev-where i { flex: none; font-size: 13px; }
.ev-where span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-lead .ev-where { margin: -2px 0 8px !important; font-size: 14px; }

/* no coming events: one quiet line under the top events */
.ev-none { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: -12px 0 34px; padding: 14px 18px; border: 1px solid var(--vs-card-line, #ebe4db); border-radius: var(--vs-card-radius); font-size: 14.5px; color: var(--sh-ink-2); }
.ev-none > i { font-size: 22px; color: var(--sh-red-ink); }
.ev-none > div { flex: 1 1 260px; min-width: 0; }
.ev-none b { color: var(--sh-ink); }

/* ---------- the side column ---------- */
.ev-side-sub { margin-top: 18px !important; }
.nw .ev-mini { grid-template-columns: 54px minmax(0, 1fr); }
.ev-day { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 54px; height: 54px; border: 1px solid var(--sh-line); border-radius: 10px; background: #fff; line-height: 1.1; }
.ev-day b { font-size: 19px; font-weight: 800; color: var(--sh-ink); }
.ev-day small { font-size: 9.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--sh-red-ink); }
.ev-day i { font-size: 20px; color: var(--sh-muted); }

/* ---------- an event's page ---------- */
.ev-kicker-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ev-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0 0 24px; border: 1px solid var(--vs-card-line, #ebe4db); border-radius: var(--vs-card-radius); background: var(--vs-card-line, #ebe4db); overflow: hidden; }   /* the 1px gap draws the lines between the cells */
.ev-facts > div { min-width: 0; padding: 14px 18px; background: #fff; }
.ev-facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.ev-facts dt { display: flex; align-items: center; gap: 7px; margin: 0 0 4px; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--sh-muted); }
.ev-facts dt i { font-size: 13px; color: var(--sh-red-ink); }
.ev-facts dd { margin: 0; font-size: 15.5px; font-weight: 600; line-height: 1.55; color: var(--sh-ink); overflow-wrap: anywhere; }
.nw .ev-map { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; font-size: 13.5px; font-weight: 700; color: var(--sh-red-ink); white-space: nowrap; }
.ev-map i { font-size: 11px; }
.ev-contact { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 4px; font-size: 14px; font-weight: 600; }
.nw .ev-contact a { display: inline-flex; align-items: center; gap: 6px; color: var(--sh-ink-2); }
.nw .ev-contact a:hover { color: var(--sh-red-ink); }

.ev-rsvp { margin: 0 0 26px; padding: 18px 20px; border: 1px solid var(--vs-card-line, #ebe4db); border-radius: var(--vs-card-radius); background: #fff; }
.ev-rsvp-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; margin-bottom: 14px; }
.ev-rsvp-head .vs-rsvp-n { margin: 0; font-size: 14px; }
.ev-rsvp-past { display: flex; align-items: center; gap: 8px; margin: -8px 0 24px !important; font-size: 14.5px; color: var(--sh-muted); }

.ev-cover a { display: block; cursor: zoom-in; }
.ev-about-title { margin: 4px 0 12px; }
.ev-photos { margin-top: 30px; }
.ev-sec-n { margin-left: 4px; font-size: 14px; font-weight: 700; color: var(--sh-muted); }
.ev-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ev-gallery a { display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--vs-card-inner); background: #efe7dc; cursor: zoom-in; }
.ev-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ev-gallery a:hover img { transform: scale(1.04); }
.ev-gallery a:focus-visible { outline: 2px solid var(--sh-ink); outline-offset: 2px; }
.ev-comments { margin-top: 34px; }
.ev-comments .vs-box { padding: 22px 24px; }

/* ---------- smaller screens ---------- */
@media (max-width: 767px) {
    .ev-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .ev-facts { grid-template-columns: minmax(0, 1fr); }
    .nw-item-photo .ev-flag { left: 6px; top: 6px; height: 20px; padding: 0 7px; font-size: 10.5px; }
    .nw-item-photo .ev-count { right: 6px; bottom: 6px; height: 20px; padding: 0 7px; font-size: 11px; }
    .nw-item .ev-where { font-size: 12.5px; }
    .ev-comments .vs-box { padding: 18px; }
}
@media (max-width: 340px) {
    .ev-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
