/* Public events listing + detail — card grid with yellow accents */
:root {
  --ev-yellow: #f5c518;
  --ev-yellow-dark: #e0b200;
  --ev-ink: #111111;
  --ev-muted: #6b6b6b;
  --ev-border: #e8e4dc;
  --ev-bg: #f7f5f0;
  --ev-white: #ffffff;
  --ev-radius: 14px;
  --ev-font: "DM Sans", "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

body.ev-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--ev-font);
  color: var(--ev-ink);
  background: var(--ev-bg);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.ev-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 1rem clamp(1rem, 3vw, 2.5rem);
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
}

.ev-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
}

.ev-brand img {
  height: 44px;
  width: auto;
}

.ev-top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.ev-top-nav a:hover { color: var(--ev-yellow-dark); }

.ev-main {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2.5rem) 3rem;
}

/* Cleaner WordPress / iframe embed */
body.ev-body.is-embed .ev-top,
body.ev-body.is-embed .ev-footer {
  display: none;
}

body.ev-body.is-embed .ev-main {
  padding-top: 1rem;
}

.ev-footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--ev-muted);
  font-size: 0.85rem;
}

.ev-hero-band {
  text-align: center;
  padding: 1.25rem 0 0.5rem;
}

.ev-hero-band h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ev-hero-band p {
  margin: 0.45rem 0 0;
  color: var(--ev-muted);
}

.ev-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin: 1.5rem 0 1.75rem;
}

.ev-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 2px solid var(--ev-yellow);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: transparent;
  color: var(--ev-ink);
  transition: background 0.15s ease, color 0.15s ease;
}

.ev-pill:hover,
.ev-pill.is-active {
  background: var(--ev-yellow);
  color: #111;
}

.ev-empty {
  text-align: center;
  color: var(--ev-muted);
  padding: 2rem 1rem;
}

.ev-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.ev-card {
  background: var(--ev-white);
  border-radius: var(--ev-radius);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.06);
}

.ev-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: #ddd8ce;
  overflow: hidden;
}

.ev-card-media img,
.ev-card-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ev-card-placeholder {
  background:
    linear-gradient(135deg, #efeae0, #d8d2c4);
}

.ev-badge {
  position: absolute;
  bottom: 0.65rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--ev-yellow);
  color: #111;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ev-badge-status { left: 0.65rem; }
.ev-badge-price { right: 0.65rem; }

.ev-card-body { padding: 1rem 1.05rem 1.2rem; }

.ev-card-title {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
  line-height: 1.25;
  font-weight: 800;
}

.ev-card-title a:hover { color: var(--ev-yellow-dark); }

.ev-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  align-items: center;
  margin-bottom: 0.55rem;
  font-size: 0.82rem;
  color: var(--ev-muted);
}

.ev-chip {
  display: inline-flex;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: var(--ev-yellow);
  color: #111;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.ev-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.ev-meta-item svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.ev-card-excerpt {
  margin: 0;
  color: var(--ev-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

/* Detail */
.ev-detail { padding-top: 0.5rem; }

.ev-detail-hero {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: #ddd8ce;
}

.ev-detail-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.ev-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.95fr);
  gap: 1.5rem;
  align-items: stretch;
}

.ev-detail-main {
  min-width: 0;
  height: 100%;
  background: var(--ev-white);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.05);
  padding: 1.15rem 1.2rem 1.15rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ev-detail-main-head { flex: 0 0 auto; margin-bottom: 0.75rem; }

.ev-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.ev-kicker a { color: var(--ev-muted); }
.ev-kicker a:hover { color: var(--ev-ink); }

.ev-detail-main h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/*
 * Show ~2 paragraphs, then scroll inside the box.
 * Height is capped so long copy cannot stretch the left card past the details card.
 */
.ev-detail-copy-scroll {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 14em; /* ~2 fuller paragraphs at line-height 1.65 */
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--ev-border);
  border-radius: 12px;
  background: #faf8f4;
  scrollbar-gutter: stable;
}

.ev-detail-copy-hint {
  flex: 0 0 auto;
  margin: 0.9rem 0 0;
  font-size: 0.82rem;
}

.ev-detail-copy-scroll::-webkit-scrollbar { width: 8px; }
.ev-detail-copy-scroll::-webkit-scrollbar-thumb {
  background: #d4cbb8;
  border-radius: 999px;
}

.ev-detail-copy {
  color: #333;
  line-height: 1.65;
  margin: 0;
}

.ev-detail-aside {
  min-width: 0;
  display: flex;
  align-self: start;
  height: auto;
}

.ev-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.35rem;
}

.ev-tag {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #cfc9bd;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #444;
}

.ev-video {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  margin: 0 0 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
}

.ev-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.ev-detail-below {
  margin-top: 2rem;
  width: 100%;
  clear: both;
  position: relative;
  z-index: 1;
  isolation: isolate;
}

.ev-gallery {
  width: 100%;
}

.ev-gallery h2,
.ev-details-card-head h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 800;
}

.ev-gallery-lead {
  margin: -0.25rem 0 1rem;
  color: var(--ev-muted);
  font-size: 0.92rem;
}

/* Freestanding gallery images — shadow on the photo, no card chrome */
.ev-gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.35rem 1.25rem;
  align-items: end;
  justify-items: center;
  padding: 0.35rem 0.15rem 0.75rem;
}

.ev-gallery-item {
  display: block;
  min-width: 0;
  width: 100%;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.ev-gallery-item:hover {
  transform: translateY(-4px);
  filter: brightness(1.02);
}

.ev-gallery-item figure {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.ev-gallery-item img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  background: #fff;
  box-shadow:
    0 2px 4px rgba(17, 17, 17, 0.06),
    0 12px 28px rgba(17, 17, 17, 0.14),
    0 28px 48px rgba(17, 17, 17, 0.08);
}

.ev-gallery-item.is-single {
  max-width: 360px;
  justify-self: start;
}

.ev-gallery-mosaic[data-gallery-count="2"] .ev-gallery-item:nth-child(2),
.ev-gallery-mosaic[data-gallery-count="3"] .ev-gallery-item:nth-child(2),
.ev-gallery-mosaic[data-gallery-count="4"] .ev-gallery-item:nth-child(even),
.ev-gallery-mosaic[data-gallery-count="5"] .ev-gallery-item:nth-child(even) {
  transform: rotate(1.25deg);
}

.ev-gallery-mosaic[data-gallery-count="3"] .ev-gallery-item:nth-child(3),
.ev-gallery-mosaic[data-gallery-count="5"] .ev-gallery-item:nth-child(3) {
  transform: rotate(-1.1deg);
}

.ev-gallery-mosaic[data-gallery-count="2"] .ev-gallery-item:hover,
.ev-gallery-mosaic[data-gallery-count="3"] .ev-gallery-item:hover,
.ev-gallery-mosaic[data-gallery-count="4"] .ev-gallery-item:hover,
.ev-gallery-mosaic[data-gallery-count="5"] .ev-gallery-item:hover {
  transform: translateY(-4px) rotate(0deg);
}

.ev-details-card {
  background: var(--ev-white);
  border-radius: 16px;
  padding: 1.15rem 1.2rem 1.35rem;
  box-shadow: 0 12px 30px rgba(17, 17, 17, 0.07);
  width: 100%;
  display: flex;
  flex-direction: column;
}

.ev-details-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ev-details-list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--ev-border);
}

.ev-details-list li:first-child { border-top: 0; }

.ev-details-list strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ev-muted);
  margin-bottom: 0.15rem;
}

.ev-details-list p {
  margin: 0;
  font-weight: 600;
}

.ev-dates-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.85rem 1.75rem;
  min-width: 0;
  flex: 1;
}

.ev-date-part {
  min-width: 0;
}

.ev-date-part strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ev-muted);
  margin-bottom: 0.15rem;
}

.ev-date-part p {
  margin: 0;
  font-weight: 600;
  white-space: nowrap;
}

.ev-ico {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(245, 197, 24, 0.35);
  color: #8a6a00;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.ev-details-actions {
  margin-top: auto;
  padding-top: 1rem;
  display: grid;
  gap: 0.55rem;
}

.ev-btn-primary,
.ev-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  font-weight: 800;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ev-btn-primary {
  background: var(--ev-yellow);
  color: #111;
}

.ev-btn-primary:hover { background: var(--ev-yellow-dark); }

.ev-btn-secondary {
  background: transparent;
  color: #111;
  border: 2px solid var(--ev-yellow);
}

.ev-btn-secondary:hover {
  background: rgba(245, 197, 24, 0.18);
}

.ev-muted { color: var(--ev-muted); margin: 0; }

.ev-alert {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-weight: 600;
}
.ev-alert-ok { background: #e8f8ef; color: #1f6b3a; }
.ev-alert-err { background: #fdecec; color: #9b2c2c; }

@media (max-width: 960px) {
  .ev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ev-detail-grid { grid-template-columns: 1fr; }
  .ev-detail-main,
  .ev-detail-aside { height: auto; align-self: stretch; }
  .ev-detail-copy-scroll {
    flex: none;
    max-height: 15em;
  }

  /* Feature image: show full artwork on tablet/mobile (no crop) */
  .ev-detail-hero {
    background: transparent;
    overflow: visible;
  }

  .ev-detail-hero img {
    max-height: none;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(17, 17, 17, 0.1);
  }
}

@media (max-width: 640px) {
  .ev-grid { grid-template-columns: 1fr; }

  .ev-top {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    padding: 0.85rem 1rem 1rem;
  }

  .ev-brand {
    justify-content: center;
  }

  .ev-brand img {
    height: 40px;
  }

  .ev-top-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    width: 100%;
  }

  .ev-top-nav a {
    text-align: center;
    padding: 0.55rem 0.35rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--ev-border);
    font-size: 0.78rem;
    font-weight: 700;
  }

  .ev-hero-band {
    padding-top: 1rem;
  }

  .ev-hero-band h1 {
    font-size: 1.65rem;
  }

  /* Listing cards: show full feature image (no crop) */
  .ev-card-media {
    aspect-ratio: auto;
    background: #f0ebe3;
  }

  .ev-card-media img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
  }

  .ev-card-placeholder {
    min-height: 160px;
  }

  .ev-badge {
    bottom: 0.5rem;
  }

  .ev-gallery-mosaic {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .ev-gallery-item.is-single {
    max-width: min(320px, 100%);
    justify-self: center;
  }
  .ev-gallery-item img { max-height: 70vh; }
}
