/* ===========================
   TicketsFest Frontend Styles v9.4.5
   i18n-ready badges · Language switcher · Refined design
   =========================== */

/* ─── Tokens ─── */
:root {
  --tfe-bg: #f6f7fb;
  --tfe-text: #0f172a;
  --tfe-muted: #6b7280;
  --tfe-line: #dbeafe;
  --tfe-primary: #1d4ed8;
  --tfe-primary-hover: #1e40af;
  --tfe-accent-yellow: #ffcc00;
  --tfe-red: #d73149;
  --tfe-green: #10b981;
  --tfe-radius: 24px;
  --tfe-font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --tfe-shadow: 0 10px 26px rgba(15,23,42,0.08);
  --tfe-shadow-strong: 0 26px 70px rgba(15,23,42,0.16);
}

/* ─── Base ─── */
.tfe-wrap {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
  font-family: var(--tfe-font-main);
  box-sizing: border-box;
}
.tfe-wrap * { box-sizing: border-box; }


/* ════════════════════════════════════════════════
   1. Toolbar & Filters
   ════════════════════════════════════════════════ */

.tfe-toolbar-compact {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  margin: 0 0 26px 0;
  justify-content: center;
  align-items: center;
}

.tfe-select-chip {
  appearance: none; -webkit-appearance: none;
  background: #fff;
  border: 1px solid var(--tfe-line);
  border-radius: 999px;
  padding: 10px 38px 10px 18px;
  font-size: 14px;
  font-weight: 700;
  color: #1e3a8a;
  cursor: pointer;
  width: 200px;
  flex: 0 0 auto;
  box-shadow: 0 10px 24px rgba(15,23,42,0.06);
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%233b82f6%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 10px;
  transition: border-color .2s ease;
}
.tfe-select-chip:hover { border-color: var(--tfe-primary); }
.tfe-select-chip:disabled { opacity: 0.6; cursor: not-allowed; background-color: #f8fafc; }

.tfe-btn-reset {
  background: none;
  color: var(--tfe-muted);
  border: none;
  text-decoration: underline;
  font-size: 13px;
  cursor: pointer;
  padding: 0 10px;
  flex-shrink: 0;
  font-weight: 700;
}

@media (max-width: 520px) {
  .tfe-toolbar-compact { flex-direction: column; align-items: stretch; }
  .tfe-select-chip { width: 100%; }
}


/* ════════════════════════════════════════════════
   2. Grid & Cards
   ════════════════════════════════════════════════ */

.tfe-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .tfe-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1200px) { .tfe-grid { grid-template-columns: repeat(5, 1fr); gap: 24px; } }

/* Mobile horizontal scroll */
@media (max-width: 768px) {
  .tfe-grid {
    display: flex !important;
    flex-direction: row;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 24px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin-right: -20px; padding-right: 20px;
    grid-template-columns: none !important;
  }
  .tfe-grid .tfe-card-item {
    min-width: 260px; max-width: 260px;
    scroll-snap-align: center;
    flex-shrink: 0;
  }
}

/* Card */
.tfe-card-item {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--tfe-radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
  transition: transform .25s ease, box-shadow .25s ease;
  transform: translateZ(0);
}
.tfe-card-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--tfe-shadow-strong);
}
.tfe-card-link { position: absolute; inset: 0; z-index: 20; }
.tfe-card-inner { width: 100%; height: 100%; position: relative; }
.tfe-poster {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  background: #e2e8f0;
}


/* v9.4.5 — visible event card caption */
.tfe-card-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 8;
  padding: 48px 16px 16px;
  color: #fff;
  background: linear-gradient(180deg, rgba(15,23,42,0) 0%, rgba(15,23,42,.72) 38%, rgba(15,23,42,.96) 100%);
  pointer-events: none;
}
.tfe-card-caption-top { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-bottom:8px; }
.tfe-card-caption-date,
.tfe-card-caption-promo {
  display:inline-flex; align-items:center;
  min-height:24px;
  border-radius:999px;
  padding:5px 9px;
  font-size:10px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.02em;
  backdrop-filter: blur(8px);
}
.tfe-card-caption-date { background:rgba(255,255,255,.92); color:var(--tfe-primary); }
.tfe-card-caption-promo { background:rgba(249,115,22,.95); color:#fff; }
.tfe-card-caption-title {
  margin:0 0 6px;
  color:#fff;
  font-size:15px;
  line-height:1.16;
  font-weight:950;
  letter-spacing:-.02em;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.tfe-card-caption-meta {
  color:rgba(255,255,255,.82);
  font-size:12px;
  font-weight:700;
  line-height:1.3;
  display:-webkit-box;
  -webkit-line-clamp:1;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.tfe-card-caption-row { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:11px; }
.tfe-card-caption-price { color:#fff; font-size:12px; font-weight:950; line-height:1.2; }
.tfe-card-caption-cta {
  flex:0 0 auto;
  border-radius:999px;
  padding:7px 10px;
  background:#fff;
  color:var(--tfe-primary);
  font-size:11px;
  font-weight:950;
  line-height:1;
  box-shadow:0 12px 24px rgba(15,23,42,.18);
}
.tfe-card-status--soldout .tfe-card-caption-cta { color:#b91c1c; }
.tfe-card-status--ended .tfe-card-caption-cta { color:#334155; }
.tfe-card-status--notify .tfe-card-caption-cta { color:#1d4ed8; }
.tfe-poster--empty {
  display:flex !important;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#1d4ed8,#0f172a) !important;
  color:#fff;
  font-weight:950;
  letter-spacing:.02em;
  text-align:center;
  padding:18px;
}
.tfe-card-item:hover .tfe-card-caption { opacity:.12; transition:opacity .2s ease; }


/* ════════════════════════════════════════════════
   3. Overlay & Content
   ════════════════════════════════════════════════ */

.tfe-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, #3b82f6 0%, var(--tfe-primary) 100%);
  padding: 18px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s ease, visibility .28s ease;
  color: #fff;
  z-index: 5;
  pointer-events: none;
}
.tfe-card-item:hover .tfe-overlay,
.tfe-card-item.active .tfe-overlay {
  opacity: 1;
  visibility: visible;
}

.tfe-date-badge {
  background: #fff;
  color: var(--tfe-primary);
  font-size: 11px;
  font-weight: 900;
  padding: 5px 11px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 10px 22px rgba(0,0,0,0.10);
  margin-bottom: auto;
}
.tfe-ov-top{display:flex;gap:8px;align-items:flex-start;flex-wrap:wrap}.tfe-promo-badge{background:#f97316;color:#fff;font-size:11px;font-weight:950;padding:5px 11px;border-radius:999px;text-transform:uppercase;box-shadow:0 10px 22px rgba(0,0,0,.12)}

.tfe-ov-center {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tfe-title {
  color: #fff;
  font-size: 16px;
  font-weight: 950;
  text-transform: uppercase;
  margin: 10px 0 8px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tfe-meta { font-size: 12px; opacity: .96; line-height: 1.35; }
.tfe-price { font-weight: 900; font-size: 14px; margin-top: 6px; }
.tfe-ov-bottom { margin-top: auto; z-index: 10; }

.tfe-btn-details {
  background: #fff;
  color: var(--tfe-primary) !important;
  text-align: center;
  padding: 11px 12px;
  border-radius: 16px;
  font-weight: 950;
  text-decoration: none;
  display: block;
  font-size: 13px;
  box-shadow: 0 14px 30px rgba(15,23,42,0.12);
  transition: transform .18s ease;
}


/* ════════════════════════════════════════════════
   4. Slider (Swiper)
   ════════════════════════════════════════════════ */

.tfe-slider-shell { width: 100%; position: relative; }

.tfe-slider-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: -6px 0 14px 0;
}

.tfe-slider-controls { display: flex; align-items: center; gap: 10px; }

.tfe-nav-btn {
  width: 46px; height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(191,219,254,0.95);
  background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(248,251,255,0.95) 100%);
  box-shadow: 0 14px 30px rgba(15,23,42,0.10);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  color: var(--tfe-primary);
}
.tfe-nav-btn:hover {
  transform: translateY(-3px);
  background: var(--tfe-primary);
  color: #fff;
  border-color: var(--tfe-primary);
}
.tfe-nav-btn svg { width: 18px; height: 18px; display: block; }
.tfe-nav-btn.swiper-button-disabled {
  opacity: .35 !important;
  pointer-events: none !important;
  filter: grayscale(1);
}
.tfe-swiper {
  width: 100%;
  overflow: visible !important;
  padding-bottom: 20px !important;
}


/* ════════════════════════════════════════════════
   5. Extras (Load More, Empty State)
   ════════════════════════════════════════════════ */

.tfe-load-more-wrap { text-align: center; margin-top: 34px; }

.tfe-btn-load-more {
  display: inline-block;
  background: var(--tfe-primary);
  color: #fff;
  border: none;
  padding: 12px 34px;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(15,23,42,0.12);
  transition: transform .15s ease;
}
.tfe-btn-load-more:hover { transform: translateY(-2px); }

.tfe-no-events {
  grid-column: 1/-1;
  text-align: center;
  padding: 40px 20px;
  color: var(--tfe-muted);
  font-size: 16px;
  background: #fff;
  border-radius: var(--tfe-radius);
  border: 1px dashed var(--tfe-line);
}


/* ════════════════════════════════════════════════
   6. i18n-Ready Badges (via data-attributes)
   ════════════════════════════════════════════════
   Badges now read text from data-badge-text attribute
   set in PHP via tfe_i18n(), making them translatable.

   PHP outputs:
     data-soldout="1" data-badge-text="РОЗПРОДАНО"
     data-promo="1" data-badge-text="PROMO"
   ════════════════════════════════════════════════ */

/* Sold Out badge */
.tfe-card-item[data-soldout="1"]::after {
  content: attr(data-badge-text);
  position: absolute; right: 12px; top: 12px;
  padding: 6px 10px; border-radius: 10px;
  background: var(--tfe-red);
  color: #fff; font-weight: 900; font-size: 11px;
  box-shadow: 0 4px 10px rgba(0,0,0,.15);
  z-index: 15;
  pointer-events: none;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}


/* Ended badge */
.tfe-card-item[data-ended="1"]::after {
  content: attr(data-badge-text);
  position: absolute; right: 12px; top: 12px;
  padding: 6px 10px; border-radius: 10px;
  background: #334155;
  color: #fff; font-weight: 900; font-size: 11px;
  box-shadow: 0 4px 10px rgba(0,0,0,.15);
  z-index: 15;
  pointer-events: none;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Promo badge (only if NOT sold out) */
.tfe-card-item[data-promo="1"]:not([data-soldout="1"]):not([data-ended="1"])::after {
  content: attr(data-badge-text);
  position: absolute; right: 12px; top: 12px;
  padding: 6px 10px; border-radius: 10px;
  background: var(--tfe-green);
  color: #fff; font-weight: 900; font-size: 11px;
  box-shadow: 0 4px 10px rgba(0,0,0,.15);
  z-index: 15;
  pointer-events: none;
  text-transform: uppercase;
}

/* Fallback: if no data-badge-text, show nothing gracefully */
.tfe-card-item[data-soldout="1"]:not([data-badge-text])::after {
  content: "SOLD OUT";
}
.tfe-card-item[data-promo="1"]:not([data-soldout="1"]):not([data-badge-text])::after {
  content: "PROMO";
}

/* Price highlight for promo */
.tfe-card-item[data-promo="1"] .tfe-price {
  color: var(--tfe-accent-yellow);
}


/* ════════════════════════════════════════════════
   7. Language Switcher (Frontend)
   ════════════════════════════════════════════════
   Usage in theme:
     <nav class="tfe-lang-switcher">
       <a href="/" class="tfe-lang-link active" data-lang="ua">🇺🇦 UA</a>
       <a href="/en/" class="tfe-lang-link" data-lang="en">🇬🇧 EN</a>
       <a href="/pl/" class="tfe-lang-link" data-lang="pl">🇵🇱 PL</a>
     </nav>
   ════════════════════════════════════════════════ */

.tfe-lang-switcher {
  display: flex;
  gap: 4px;
  align-items: center;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(219,234,254,0.7);
  box-shadow: 0 4px 12px rgba(15,23,42,0.06);
}

.tfe-lang-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--tfe-muted);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.tfe-lang-link:hover {
  color: var(--tfe-primary);
  background: rgba(29,78,216,0.06);
}
.tfe-lang-link.active {
  background: var(--tfe-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(29,78,216,0.25);
}

/* Compact variant (flags only) */
.tfe-lang-switcher.compact .tfe-lang-link {
  padding: 5px 8px;
  font-size: 14px;
  gap: 0;
}
.tfe-lang-switcher.compact .tfe-lang-code {
  display: none;
}

/* Dropdown variant for many languages */
.tfe-lang-dropdown {
  position: relative;
}
.tfe-lang-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(219,234,254,0.7);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--tfe-text);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15,23,42,0.06);
  transition: border-color 0.2s;
}
.tfe-lang-dropdown-trigger:hover {
  border-color: var(--tfe-primary);
}
.tfe-lang-dropdown-trigger::after {
  content: '';
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.5;
}
.tfe-lang-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 160px;
  background: #fff;
  border: 1px solid var(--tfe-line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15,23,42,0.12);
  padding: 6px;
  z-index: 100;
}
.tfe-lang-dropdown.open .tfe-lang-dropdown-menu {
  display: block;
  animation: tfe-fade-down 0.2s ease;
}
@keyframes tfe-fade-down {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.tfe-lang-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tfe-text);
  text-decoration: none;
  transition: background 0.15s;
}
.tfe-lang-dropdown-item:hover {
  background: #f1f5f9;
}
.tfe-lang-dropdown-item.active {
  background: var(--tfe-primary);
  color: #fff;
}
.tfe-lang-dropdown-item .tfe-lang-flag {
  font-size: 16px;
}


/* ════════════════════════════════════════════════
   8. RTL Support (future-proof)
   ════════════════════════════════════════════════ */

[dir="rtl"] .tfe-toolbar-compact { direction: rtl; }
[dir="rtl"] .tfe-select-chip {
  padding: 10px 18px 10px 38px;
  background-position: left 14px center;
}
[dir="rtl"] .tfe-card-item[data-soldout="1"]::after,
[dir="rtl"] .tfe-card-item[data-promo="1"]::after,
[dir="rtl"] .tfe-card-item[data-ended="1"]::after {
  right: auto; left: 12px;
}
[dir="rtl"] .tfe-date-badge { direction: ltr; }
/* =========================================================
   v9.5.1 — frontend card/mobile stability fixes
   ========================================================= */
.tfe-wrap,
.tfe-instance,
.tfe-slider-shell,
.tfe-swiper { max-width: 100%; }
.tfe-btn-details,
.tfe-card-caption-cta,
.tfe-btn-load-more { min-height: 42px; display:flex; align-items:center; justify-content:center; text-decoration:none!important; }
.tfe-card-caption-title,
.tfe-card-caption-meta { overflow-wrap: anywhere; }

@media (hover: none) {
  .tfe-card-item:hover { transform: none; }
  .tfe-card-item:hover .tfe-card-caption { opacity: 1; }
  .tfe-overlay { display: none; }
}

@media (max-width: 768px) {
  .tfe-wrap { padding-left: 16px; padding-right: 16px; overflow-x: hidden; }
  .tfe-toolbar-compact { align-items: stretch; justify-content: flex-start; }
  .tfe-grid { margin-right: -16px; padding-right: 16px; }
  .tfe-grid .tfe-card-item { min-width: 238px; max-width: 238px; }
  .tfe-card-caption { padding: 44px 14px 14px; }
  .tfe-card-caption-title { font-size: 14px; }
  .tfe-card-caption-row { align-items: stretch; flex-direction: column; gap: 8px; }
  .tfe-card-caption-cta { width: 100%; padding: 9px 10px; }
  .tfe-nav-btn { width: 42px; height: 42px; }
  .tfe-slider-head { justify-content: center; margin-top: 0; }
}

@media (max-width: 390px) {
  .tfe-grid .tfe-card-item { min-width: 220px; max-width: 220px; }
  .tfe-card-caption-date,
  .tfe-card-caption-promo { font-size: 9px; padding: 4px 7px; }
}


/* =====================================================
   v9.5.2 — Advanced events filters
   ===================================================== */
.tfe-advanced-filters{
  margin:0 0 30px;
  padding:18px;
  border:1px solid rgba(191,219,254,.95);
  border-radius:28px;
  background:rgba(255,255,255,.92);
  box-shadow:0 18px 50px rgba(15,23,42,.08);
  backdrop-filter:blur(14px);
}
.tfe-filter-searchline{display:grid;grid-template-columns:minmax(220px,1.6fr) minmax(180px,.9fr);gap:12px;margin-bottom:12px;}
.tfe-filter-gridline{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;align-items:center;}
.tfe-filter-input{
  width:100%;
  min-height:44px;
  border:1px solid var(--tfe-line);
  border-radius:999px;
  background:#fff;
  color:#0f172a;
  padding:10px 15px;
  font-size:14px;
  font-weight:750;
  outline:none;
  box-shadow:0 10px 24px rgba(15,23,42,.04);
}
.tfe-filter-input:focus,.tfe-advanced-filters .tfe-select-chip:focus{border-color:var(--tfe-primary);box-shadow:0 0 0 4px rgba(29,78,216,.12);}
.tfe-advanced-filters .tfe-select-chip{width:100%;min-height:44px;}
.tfe-filter-actions{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:14px;}
.tfe-btn-apply{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 22px;border:0;border-radius:999px;background:var(--tfe-primary);color:#fff;font-weight:950;cursor:pointer;box-shadow:0 14px 32px rgba(29,78,216,.22);}
.tfe-btn-apply:hover{background:var(--tfe-primary-hover);}
.tfe-btn-reset--link{display:inline-flex;align-items:center;min-height:42px;text-decoration:none!important;color:var(--tfe-muted)!important;font-weight:850;}
@media(max-width:1100px){.tfe-filter-gridline{grid-template-columns:repeat(3,minmax(0,1fr));}.tfe-filter-searchline{grid-template-columns:1fr 1fr;}}
@media(max-width:680px){.tfe-advanced-filters{border-radius:24px;padding:14px}.tfe-filter-searchline,.tfe-filter-gridline{grid-template-columns:1fr}.tfe-filter-actions{justify-content:stretch;align-items:stretch;flex-direction:column}.tfe-btn-apply,.tfe-btn-reset--link{width:100%;justify-content:center}.tfe-advanced-filters .tfe-select-chip,.tfe-filter-input{border-radius:18px;}}


/* =====================================================
   v9.6.3 — Better archive cards and empty states
   ===================================================== */
.tfe-instance .tfe-grid{align-items:stretch}
.tfe-instance .tfe-card-item{isolation:isolate}
.tfe-instance .tfe-card-inner{background:#0f172a;border:1px solid rgba(191,219,254,.92);box-shadow:0 18px 52px rgba(15,23,42,.12)}
.tfe-instance .tfe-card-caption{position:absolute;left:0;right:0;bottom:0;z-index:4;padding:58px 16px 16px;background:linear-gradient(180deg,rgba(15,23,42,0),rgba(15,23,42,.74) 34%,rgba(15,23,42,.94));color:#fff;transition:opacity .22s ease,transform .22s ease}
.tfe-card-caption-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.tfe-card-caption-date{display:inline-flex;align-items:center;border-radius:999px;background:rgba(255,255,255,.94);color:#1d4ed8;padding:6px 10px;font-size:11px;font-weight:950;box-shadow:0 8px 22px rgba(15,23,42,.16)}
.tfe-card-caption-promo{display:inline-flex;border-radius:999px;background:#10b981;color:#fff;padding:6px 9px;font-size:10px;font-weight:950;text-transform:uppercase;letter-spacing:.06em}
.tfe-card-caption-title{margin:0 0 8px;color:#fff;font-size:18px;line-height:1.12;font-weight:950;letter-spacing:-.025em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tfe-card-caption-meta{color:rgba(255,255,255,.78);font-size:12px;line-height:1.35;font-weight:700;min-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tfe-card-caption-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}
.tfe-card-caption-price{color:#fff;font-size:13px;font-weight:900;white-space:nowrap}
.tfe-card-caption-cta{display:inline-flex;align-items:center;justify-content:center;min-height:34px;border-radius:999px;padding:8px 12px;background:#fff;color:#1d4ed8;font-size:12px;font-weight:950;white-space:nowrap;box-shadow:0 12px 28px rgba(15,23,42,.18)}
.tfe-card-status--notify .tfe-card-caption-cta{background:#f8fafc;color:#0f172a}.tfe-card-status--soldout .tfe-card-caption-cta,.tfe-card-status--ended .tfe-card-caption-cta{background:#e2e8f0;color:#475569}.tfe-card-status--tickets .tfe-card-caption-cta{background:#ffcc00;color:#0f172a}
.tfe-instance .tfe-card-item:hover .tfe-card-caption{opacity:0;transform:translateY(8px)}
.tfe-no-events--archive{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:250px;padding:48px 26px;border:1px dashed rgba(37,99,235,.32);background:linear-gradient(180deg,#fff,#f8fbff);box-shadow:0 18px 46px rgba(15,23,42,.06)}
.tfe-no-events--archive strong{display:block;color:#0f172a;font-size:clamp(22px,3vw,32px);line-height:1.08;font-weight:950;letter-spacing:-.035em;margin-bottom:8px}.tfe-no-events--archive p{max-width:560px;margin:0 auto 18px;color:#64748b;font-size:15px;line-height:1.6;font-weight:650}.tfe-no-events__button{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:12px 18px;background:#1d4ed8;color:#fff!important;text-decoration:none;font-weight:950;box-shadow:0 14px 32px rgba(29,78,216,.24)}
@media(max-width:720px){.tfe-card-caption{padding:52px 14px 14px}.tfe-card-caption-title{font-size:17px}.tfe-card-caption-row{gap:8px}.tfe-card-caption-price{font-size:12px}.tfe-card-caption-cta{min-height:38px;padding:9px 12px}.tfe-no-events--archive{min-height:220px;padding:34px 18px}}
@media(hover:none){.tfe-instance .tfe-card-item:hover .tfe-card-caption{opacity:1;transform:none}.tfe-instance .tfe-overlay{display:none!important}.tfe-card-caption-cta{min-height:42px}}

/* =====================================================
   v9.6.7 — Public page performance
   ===================================================== */
.tfe-instance .tfe-card-inner{contain:layout paint;content-visibility:auto;contain-intrinsic-size:360px 450px;}
.tfe-instance .tfe-card-inner img.tfe-poster{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center top!important;display:block!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;aspect-ratio:4/5!important;box-sizing:border-box!important;box-shadow:none!important;background:#e2e8f0;}
.tfe-instance .tfe-poster--empty{display:flex;align-items:center;justify-content:center;aspect-ratio:4/5;background:linear-gradient(135deg,#0f172a,#1d4ed8);color:#fff;font-weight:950;letter-spacing:.04em;}
.tfe-instance .tfe-grid{content-visibility:auto;contain-intrinsic-size:900px;}
.tfe-instance--featured{content-visibility:auto;contain-intrinsic-size:620px;}
@media (prefers-reduced-motion: reduce){.tfe-instance *{transition:none!important;animation:none!important;scroll-behavior:auto!important}}


/* =====================================================
   v9.6.8 — Card localization polish
   ===================================================== */
.tfe-card-caption-title{hyphens:auto;word-break:normal;}
.tfe-card-caption-meta{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;}
.tfe-card-caption-cta{text-align:center;line-height:1.15;}
.tfe-advanced-filters .tfe-select-chip,
.tfe-filter-input{min-width:0;}
@media(max-width:520px){
  .tfe-card-caption-row{align-items:stretch;}
  .tfe-card-caption-price{white-space:normal;}
}

/* =====================================================
   v9.9.64 — Mobile poster rendering fix
   Disable content-visibility/contain on mobile event grids because it can
   prevent lazy posters from painting on Safari/iOS and Chromium mobile.
   ===================================================== */
@media (max-width: 768px){
  .tfe-instance,
  .tfe-instance .tfe-grid,
  .tfe-instance--featured,
  .tfe-instance .tfe-card-item,
  .tfe-instance .tfe-card-inner{
    content-visibility: visible !important;
    contain: none !important;
    contain-intrinsic-size: auto !important;
  }

  .tfe-instance .tfe-card-inner img.tfe-poster{
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    aspect-ratio: 4 / 5 !important;
    object-fit: cover !important;
    object-position: center top !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .tfe-instance .tfe-poster--empty{
    width: 100% !important;
    min-height: 100% !important;
  }
}


/* v9.9.75 — related/event card overlay safety
   Keeps the static caption visible by default and the overlay visible only on hover/focus-capable devices. */
.tfe-card-item .tfe-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.tfe-card-item:hover .tfe-overlay,
.tfe-card-item.active .tfe-overlay,
.tfe-card-item:focus-within .tfe-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
@media (hover: none) {
  .tfe-card-item .tfe-overlay {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  .tfe-card-item .tfe-card-caption {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* v9.9.83 — Mobile event sliders restored globally.
   Applies to event shortcode grids on single-event, events archives, theatre/category pages, taxonomies and home blocks.
   This intentionally uses a native horizontal scroll fallback, so it works even when Swiper is not used. */
@media (max-width: 768px) {
  .tfe-page-wrapper .tfe-instance[data-mobile-slider="1"][data-layout="grid"],
  .tfe-events-page .tfe-instance[data-mobile-slider="1"][data-layout="grid"],
  body.single-event .tfe-instance[data-mobile-slider="1"][data-layout="grid"],
  body.single-tour .tfe-instance[data-mobile-slider="1"][data-layout="grid"],
  body.single-performer .tfe-instance[data-mobile-slider="1"][data-layout="grid"],
  .tfe-instance[data-mobile-slider="1"][data-layout="grid"] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    contain: none !important;
    content-visibility: visible !important;
  }

  .tfe-page-wrapper .tfe-instance[data-mobile-slider="1"][data-layout="grid"] > .tfe-grid,
  .tfe-events-page .tfe-instance[data-mobile-slider="1"][data-layout="grid"] > .tfe-grid,
  body.single-event .tfe-instance[data-mobile-slider="1"][data-layout="grid"] > .tfe-grid,
  body.single-tour .tfe-instance[data-mobile-slider="1"][data-layout="grid"] > .tfe-grid,
  body.single-performer .tfe-instance[data-mobile-slider="1"][data-layout="grid"] > .tfe-grid,
  .tfe-instance[data-mobile-slider="1"][data-layout="grid"] > .tfe-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
    grid-auto-flow: column !important;
    gap: 16px !important;
    width: calc(100% + 18px) !important;
    max-width: none !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 2px 18px 24px 0 !important;
    margin: 0 -18px 0 0 !important;
    scroll-snap-type: x mandatory !important;
    scroll-padding-left: 0 !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-x !important;
    overscroll-behavior-x: contain !important;
    scrollbar-width: none !important;
    contain: none !important;
    content-visibility: visible !important;
  }

  .tfe-instance[data-mobile-slider="1"][data-layout="grid"] > .tfe-grid::-webkit-scrollbar {
    display: none !important;
  }

  .tfe-page-wrapper .tfe-instance[data-mobile-slider="1"][data-layout="grid"] > .tfe-grid > .tfe-card-item,
  .tfe-events-page .tfe-instance[data-mobile-slider="1"][data-layout="grid"] > .tfe-grid > .tfe-card-item,
  body.single-event .tfe-instance[data-mobile-slider="1"][data-layout="grid"] > .tfe-grid > .tfe-card-item,
  body.single-tour .tfe-instance[data-mobile-slider="1"][data-layout="grid"] > .tfe-grid > .tfe-card-item,
  body.single-performer .tfe-instance[data-mobile-slider="1"][data-layout="grid"] > .tfe-grid > .tfe-card-item,
  .tfe-instance[data-mobile-slider="1"][data-layout="grid"] > .tfe-grid > .tfe-card-item {
    width: 238px !important;
    min-width: 238px !important;
    max-width: 238px !important;
    flex: 0 0 238px !important;
    flex-shrink: 0 !important;
    scroll-snap-align: start !important;
  }

  .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-inner {
    height: auto !important;
  }
}

@media (max-width: 390px) {
  .tfe-instance[data-mobile-slider="1"][data-layout="grid"] > .tfe-grid > .tfe-card-item {
    width: 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;
    flex-basis: 220px !important;
  }
}

/* v9.9.83 — Swiper fallback: if CDN/JS init is delayed, real slider markup is still swipeable on mobile. */
@media (max-width: 768px) {
  .tfe-instance[data-mobile-slider="1"][data-layout="slider"] .tfe-swiper:not(.swiper-initialized) {
    overflow: visible !important;
  }

  .tfe-instance[data-mobile-slider="1"][data-layout="slider"] .tfe-swiper:not(.swiper-initialized) > .swiper-wrapper {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 16px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-x !important;
    scrollbar-width: none !important;
    padding: 2px 18px 24px 0 !important;
  }

  .tfe-instance[data-mobile-slider="1"][data-layout="slider"] .tfe-swiper:not(.swiper-initialized) > .swiper-wrapper::-webkit-scrollbar {
    display: none !important;
  }

  .tfe-instance[data-mobile-slider="1"][data-layout="slider"] .tfe-swiper:not(.swiper-initialized) .swiper-slide {
    width: 238px !important;
    min-width: 238px !important;
    max-width: 238px !important;
    flex: 0 0 238px !important;
    scroll-snap-align: start !important;
  }
}


/* v9.9.99 — Clean decorative overlay: semantic event data exists once in .tfe-card-caption. */
.tfe-overlay--clean{
  justify-content:flex-end;
  align-items:stretch;
  background:linear-gradient(180deg,rgba(15,23,42,0),rgba(29,78,216,.92));
}
.tfe-overlay--clean .tfe-ov-bottom{margin-top:auto;width:100%;}
.tfe-overlay--clean .tfe-btn-details{width:100%;justify-content:center;}

/* =====================================================
   v10.0.1 — Device-responsive event cards and filters
   iPhone SE/mini/standard/Pro/Pro Max + Android narrow/standard/large.
   ===================================================== */
:root{
  --tfe-card-mobile-w: clamp(220px, 68vw, 292px);
  --tfe-card-mobile-gap: 14px;
  --tfe-card-mobile-gutter: clamp(14px, 4.4vw, 20px);
}

.tfe-instance,
.tfe-instance *{box-sizing:border-box;}
.tfe-instance{max-width:100%;min-width:0;}
.tfe-instance .tfe-grid{min-width:0;}
.tfe-advanced-filters{max-width:100%;}
.tfe-filter-input,
.tfe-advanced-filters .tfe-select-chip{font-size:16px;}

@media (max-width: 820px){
  .tfe-advanced-filters{
    padding:14px !important;
    border-radius:22px !important;
  }
  .tfe-filter-searchline,
  .tfe-filter-gridline{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:10px !important;
  }
  .tfe-filter-input,
  .tfe-advanced-filters .tfe-select-chip,
  .tfe-btn-apply,
  .tfe-btn-reset--link{
    width:100% !important;
    min-height:48px !important;
    border-radius:16px !important;
  }
  .tfe-filter-actions{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:10px !important;
    align-items:stretch !important;
  }
}

@media (max-width: 768px){
  .tfe-instance[data-mobile-slider="1"][data-layout="grid"]{
    width:100% !important;
    max-width:100% !important;
    overflow:visible !important;
  }

  .tfe-instance[data-mobile-slider="1"][data-layout="grid"] > .tfe-grid{
    display:flex !important;
    flex-flow:row nowrap !important;
    gap:var(--tfe-card-mobile-gap) !important;
    width:calc(100% + var(--tfe-card-mobile-gutter)) !important;
    max-width:none !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    padding:2px var(--tfe-card-mobile-gutter) 24px 0 !important;
    margin:0 calc(-1 * var(--tfe-card-mobile-gutter)) 0 0 !important;
    scroll-snap-type:x mandatory !important;
    -webkit-overflow-scrolling:touch !important;
    touch-action:pan-x !important;
    overscroll-behavior-x:contain !important;
    scrollbar-width:none !important;
    contain:none !important;
    content-visibility:visible !important;
  }
  .tfe-instance[data-mobile-slider="1"][data-layout="grid"] > .tfe-grid::-webkit-scrollbar{display:none !important;}

  .tfe-instance[data-mobile-slider="1"][data-layout="grid"] > .tfe-grid > .tfe-card-item,
  .tfe-instance[data-mobile-slider="1"][data-layout="slider"] .swiper-slide{
    width:var(--tfe-card-mobile-w) !important;
    min-width:var(--tfe-card-mobile-w) !important;
    max-width:var(--tfe-card-mobile-w) !important;
    flex:0 0 var(--tfe-card-mobile-w) !important;
    scroll-snap-align:start !important;
  }

  .tfe-instance[data-mobile-slider="1"][data-layout="slider"] .tfe-swiper:not(.swiper-initialized) > .swiper-wrapper{
    gap:var(--tfe-card-mobile-gap) !important;
    padding-right:var(--tfe-card-mobile-gutter) !important;
  }

  .tfe-card-inner{
    aspect-ratio:4 / 5 !important;
    min-height:0 !important;
  }
  .tfe-card-caption{
    padding:48px 13px 13px !important;
  }
  .tfe-card-caption-title{
    font-size:clamp(14px, 4.4vw, 17px) !important;
    line-height:1.12 !important;
    -webkit-line-clamp:2 !important;
  }
  .tfe-card-caption-meta{
    font-size:12px !important;
    line-height:1.28 !important;
    white-space:normal !important;
    -webkit-line-clamp:2 !important;
  }
  .tfe-card-caption-row{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:8px !important;
    align-items:stretch !important;
  }
  .tfe-card-caption-price{
    white-space:normal !important;
    min-height:16px !important;
  }
  .tfe-card-caption-cta{
    width:100% !important;
    min-height:42px !important;
    padding:10px 12px !important;
    border-radius:999px !important;
  }
}

/* iPhone Pro Max / Pixel Pro / Galaxy Ultra widths */
@media (min-width: 414px) and (max-width: 540px){
  :root{--tfe-card-mobile-w: min(70vw, 292px);}
}

/* iPhone standard / Android 390–413px */
@media (min-width: 390px) and (max-width: 413px){
  :root{--tfe-card-mobile-w: min(72vw, 276px);}
}

/* iPhone SE / older Android */
@media (max-width: 375px){
  :root{
    --tfe-card-mobile-w: min(76vw, 238px);
    --tfe-card-mobile-gap: 12px;
    --tfe-card-mobile-gutter: 14px;
  }
  .tfe-card-caption{padding:42px 12px 12px !important;}
  .tfe-card-caption-date,
  .tfe-card-caption-promo{font-size:9px !important;padding:4px 7px !important;}
  .tfe-card-caption-title{font-size:14px !important;}
  .tfe-card-caption-cta{min-height:40px !important;font-size:12px !important;}
}

/* Very narrow embedded browsers, old 320px Android webviews. */
@media (max-width: 340px){
  :root{--tfe-card-mobile-w: 230px;}
  .tfe-card-caption-meta{font-size:11px !important;}
}


/* =====================================================
   v10.0.2 — Phone layout hotfix
   Converts mobile event sections from half-cut horizontal sliders into
   stable one-column cards on iPhone/Android. Keeps desktop/tablet unchanged.
   ===================================================== */
@media (max-width: 767px){
  .tfe-page-wrapper .tfe-slider-lock .tfe-instance[data-mobile-slider="1"][data-layout="grid"],
  .tfe-page-wrapper .tfe-slider-lock .tfe-instance[data-layout="grid"],
  .tfe-events-page .tfe-instance[data-mobile-slider="1"][data-layout="grid"],
  .tfe-events-page .tfe-instance[data-layout="grid"]{
    width:100%!important;
    max-width:100%!important;
    overflow:visible!important;
  }

  .tfe-page-wrapper .tfe-slider-lock .tfe-instance[data-mobile-slider="1"][data-layout="grid"] > .tfe-grid,
  .tfe-page-wrapper .tfe-slider-lock .tfe-instance[data-layout="grid"] > .tfe-grid,
  .tfe-events-page .tfe-instance[data-mobile-slider="1"][data-layout="grid"] > .tfe-grid,
  .tfe-events-page .tfe-instance[data-layout="grid"] > .tfe-grid{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:18px!important;
    width:100%!important;
    max-width:420px!important;
    margin:0 auto!important;
    padding:0!important;
    overflow:visible!important;
    scroll-snap-type:none!important;
    touch-action:auto!important;
    contain:none!important;
    content-visibility:visible!important;
  }

  .tfe-page-wrapper .tfe-slider-lock .tfe-instance[data-mobile-slider="1"][data-layout="grid"] > .tfe-grid > .tfe-card-item,
  .tfe-page-wrapper .tfe-slider-lock .tfe-instance[data-layout="grid"] > .tfe-grid > .tfe-card-item,
  .tfe-events-page .tfe-instance[data-mobile-slider="1"][data-layout="grid"] > .tfe-grid > .tfe-card-item,
  .tfe-events-page .tfe-instance[data-layout="grid"] > .tfe-grid > .tfe-card-item{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    flex:none!important;
    margin:0 auto!important;
    scroll-snap-align:unset!important;
  }

  .tfe-card-inner{
    width:100%!important;
    height:100%!important;
    aspect-ratio:4/5!important;
  }
  .tfe-card-caption{
    padding:48px 14px 14px!important;
  }
  .tfe-card-caption-title{
    font-size:clamp(18px,5vw,24px)!important;
    line-height:1.08!important;
    -webkit-line-clamp:2!important;
  }
  .tfe-card-caption-meta{
    font-size:14px!important;
    line-height:1.25!important;
    -webkit-line-clamp:2!important;
  }
  .tfe-card-caption-price{
    font-size:15px!important;
  }
  .tfe-card-caption-cta{
    width:100%!important;
    min-height:48px!important;
    font-size:16px!important;
    border-radius:999px!important;
  }

  .tfe-advanced-filters{
    width:100%!important;
    max-width:100%!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  .tfe-filter-searchline,
  .tfe-filter-gridline,
  .tfe-filter-actions{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:12px!important;
    width:100%!important;
  }
  .tfe-filter-input,
  .tfe-advanced-filters .tfe-select-chip,
  .tfe-btn-apply,
  .tfe-btn-reset--link{
    min-height:58px!important;
    border-radius:18px!important;
    font-size:16px!important;
  }
}

@media (max-width: 375px){
  .tfe-page-wrapper .tfe-slider-lock .tfe-instance[data-layout="grid"] > .tfe-grid,
  .tfe-events-page .tfe-instance[data-layout="grid"] > .tfe-grid{
    max-width:100%!important;
    gap:16px!important;
  }
  .tfe-card-caption-title{font-size:18px!important;}
  .tfe-card-caption-meta{font-size:13px!important;}
  .tfe-card-caption-cta{min-height:46px!important;font-size:15px!important;}
}


/* =====================================================
   CRM EVENT v10.0.3 — Emergency mobile card reset
   This is intentionally stronger than older theme mobile-slider rules.
   ===================================================== */
@media (max-width: 767px){
  body.home .tfe-slider-lock .tfe-instance[data-layout="grid"],
  body.page-template-page-home-dots .tfe-slider-lock .tfe-instance[data-layout="grid"],
  .tfe-events-page .tfe-instance[data-layout="grid"]{
    width:100%!important;
    max-width:100%!important;
    overflow:visible!important;
    contain:none!important;
    content-visibility:visible!important;
  }

  body.home .tfe-slider-lock .tfe-instance[data-layout="grid"] > .tfe-grid,
  body.page-template-page-home-dots .tfe-slider-lock .tfe-instance[data-layout="grid"] > .tfe-grid,
  .tfe-events-page .tfe-instance[data-layout="grid"] > .tfe-grid{
    display:grid!important;
    grid-template-columns:1fr!important;
    grid-auto-flow:row!important;
    gap:22px!important;
    width:100%!important;
    max-width:min(390px, calc(100vw - 36px))!important;
    min-width:0!important;
    margin:0 auto!important;
    padding:0!important;
    overflow:visible!important;
    scroll-snap-type:none!important;
    transform:none!important;
    touch-action:auto!important;
  }

  body.home .tfe-slider-lock .tfe-instance[data-layout="grid"] > .tfe-grid > .tfe-card-item,
  body.page-template-page-home-dots .tfe-slider-lock .tfe-instance[data-layout="grid"] > .tfe-grid > .tfe-card-item,
  .tfe-events-page .tfe-instance[data-layout="grid"] > .tfe-grid > .tfe-card-item{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    flex:none!important;
    flex-basis:auto!important;
    margin:0 auto!important;
    scroll-snap-align:unset!important;
    overflow:visible!important;
  }

  body.home .tfe-card-inner,
  body.page-template-page-home-dots .tfe-card-inner,
  .tfe-events-page .tfe-card-inner{
    width:100%!important;
    max-width:100%!important;
    aspect-ratio:4/5!important;
    height:auto!important;
    min-height:0!important;
    border-radius:28px!important;
    overflow:hidden!important;
  }

  body.home .tfe-card-caption,
  body.page-template-page-home-dots .tfe-card-caption,
  .tfe-events-page .tfe-card-caption{padding:58px 18px 18px!important;}

  body.home .tfe-card-caption-title,
  body.page-template-page-home-dots .tfe-card-caption-title,
  .tfe-events-page .tfe-card-caption-title{
    font-size:clamp(22px,7vw,30px)!important;
    line-height:1.02!important;
    -webkit-line-clamp:2!important;
  }

  body.home .tfe-card-caption-meta,
  body.page-template-page-home-dots .tfe-card-caption-meta,
  .tfe-events-page .tfe-card-caption-meta{font-size:16px!important;line-height:1.24!important;white-space:normal!important;}

  body.home .tfe-card-caption-row,
  body.page-template-page-home-dots .tfe-card-caption-row,
  .tfe-events-page .tfe-card-caption-row{display:grid!important;grid-template-columns:1fr!important;gap:12px!important;}

  body.home .tfe-card-caption-cta,
  body.page-template-page-home-dots .tfe-card-caption-cta,
  .tfe-events-page .tfe-card-caption-cta{
    width:100%!important;
    min-height:54px!important;
    font-size:18px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
  }
}

/* =====================================================
   CRM EVENT v10.0.4 — mobile event cards like ticket marketplace
   Goal: phone cards render as a clean 2-column poster grid with details under poster,
   not as dark overlay cards or squeezed mini tiles.
   ===================================================== */
@media (max-width: 767px){
  body .tfe-instance[data-layout="grid"],
  body .tfe-instance[data-mobile-slider="1"][data-layout="grid"],
  body .tfe-slider-lock .tfe-instance[data-layout="grid"]{
    width:100%!important;
    max-width:100%!important;
    overflow:visible!important;
    contain:none!important;
    content-visibility:visible!important;
  }

  body .tfe-instance[data-layout="grid"] > .tfe-grid,
  body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] > .tfe-grid,
  body .tfe-slider-lock .tfe-instance[data-layout="grid"] > .tfe-grid{
    display:grid!important;
    grid-template-columns:repeat(2, minmax(0, 1fr))!important;
    grid-auto-flow:row!important;
    align-items:start!important;
    gap:30px 18px!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin:0!important;
    padding:0 20px!important;
    overflow:visible!important;
    scroll-snap-type:none!important;
    -webkit-overflow-scrolling:auto!important;
    transform:none!important;
    touch-action:auto!important;
    contain:none!important;
    content-visibility:visible!important;
  }

  body .tfe-instance[data-layout="grid"] > .tfe-grid > .tfe-card-item,
  body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] > .tfe-grid > .tfe-card-item,
  body .tfe-slider-lock .tfe-instance[data-layout="grid"] > .tfe-grid > .tfe-card-item{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    flex:none!important;
    flex-basis:auto!important;
    aspect-ratio:auto!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    overflow:visible!important;
    scroll-snap-align:unset!important;
    transform:none!important;
  }

  body .tfe-instance[data-layout="grid"] .tfe-card-inner,
  body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-inner,
  body .tfe-slider-lock .tfe-instance[data-layout="grid"] .tfe-card-inner{
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
    min-height:0!important;
    aspect-ratio:auto!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    overflow:visible!important;
    contain:none!important;
    content-visibility:visible!important;
  }

  body .tfe-instance[data-layout="grid"] .tfe-card-inner img.tfe-poster,
  body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-inner img.tfe-poster,
  body .tfe-slider-lock .tfe-instance[data-layout="grid"] .tfe-card-inner img.tfe-poster,
  body .tfe-instance[data-layout="grid"] .tfe-poster--empty,
  body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-poster--empty,
  body .tfe-slider-lock .tfe-instance[data-layout="grid"] .tfe-poster--empty{
    display:block!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    aspect-ratio:4/5!important;
    object-fit:cover!important;
    object-position:center top!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    background:#e5e7eb!important;
  }

  body .tfe-instance[data-layout="grid"] .tfe-card-caption,
  body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption,
  body .tfe-slider-lock .tfe-instance[data-layout="grid"] .tfe-card-caption{
    position:static!important;
    inset:auto!important;
    display:block!important;
    width:100%!important;
    min-height:0!important;
    padding:12px 0 0!important;
    margin:0!important;
    color:#1f2937!important;
    background:transparent!important;
    opacity:1!important;
    visibility:visible!important;
    transform:none!important;
    pointer-events:none!important;
  }

  body .tfe-instance[data-layout="grid"] .tfe-card-caption-top,
  body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-top,
  body .tfe-slider-lock .tfe-instance[data-layout="grid"] .tfe-card-caption-top{
    display:block!important;
    margin:0 0 8px!important;
  }

  body .tfe-instance[data-layout="grid"] .tfe-card-caption-date,
  body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-date,
  body .tfe-slider-lock .tfe-instance[data-layout="grid"] .tfe-card-caption-date{
    display:block!important;
    min-height:0!important;
    padding:0!important;
    margin:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
    color:#1f2937!important;
    font-size:15px!important;
    line-height:1.25!important;
    font-weight:500!important;
    text-transform:none!important;
    letter-spacing:0!important;
  }

  body .tfe-instance[data-layout="grid"] .tfe-card-caption-promo,
  body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-promo,
  body .tfe-slider-lock .tfe-instance[data-layout="grid"] .tfe-card-caption-promo{
    display:none!important;
  }

  body .tfe-instance[data-layout="grid"] .tfe-card-caption-title,
  body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-title,
  body .tfe-slider-lock .tfe-instance[data-layout="grid"] .tfe-card-caption-title{
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    overflow:hidden!important;
    margin:0 0 10px!important;
    color:#171a22!important;
    font-size:clamp(17px, 4.8vw, 21px)!important;
    line-height:1.14!important;
    font-weight:900!important;
    letter-spacing:-.025em!important;
    text-transform:none!important;
    text-shadow:none!important;
    hyphens:auto!important;
  }

  body .tfe-instance[data-layout="grid"] .tfe-card-caption-meta,
  body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-meta,
  body .tfe-slider-lock .tfe-instance[data-layout="grid"] .tfe-card-caption-meta{
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    overflow:hidden!important;
    min-height:0!important;
    margin:0!important;
    color:#2f343d!important;
    font-size:15px!important;
    line-height:1.35!important;
    font-weight:500!important;
    text-shadow:none!important;
    white-space:normal!important;
  }

  body .tfe-instance[data-layout="grid"] .tfe-card-caption-row,
  body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-row,
  body .tfe-slider-lock .tfe-instance[data-layout="grid"] .tfe-card-caption-row{
    display:block!important;
    margin:10px 0 0!important;
    padding:0!important;
  }

  body .tfe-instance[data-layout="grid"] .tfe-card-caption-price,
  body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-price,
  body .tfe-slider-lock .tfe-instance[data-layout="grid"] .tfe-card-caption-price{
    display:block!important;
    margin:0 0 12px!important;
    color:#1f2937!important;
    font-size:15px!important;
    line-height:1.25!important;
    font-weight:500!important;
    white-space:normal!important;
    text-shadow:none!important;
  }

  body .tfe-instance[data-layout="grid"] .tfe-card-caption-cta,
  body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-cta,
  body .tfe-slider-lock .tfe-instance[data-layout="grid"] .tfe-card-caption-cta{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    min-height:44px!important;
    padding:0 10px!important;
    border-radius:8px!important;
    background:#ffcc00!important;
    color:#111827!important;
    box-shadow:none!important;
    font-size:15px!important;
    line-height:1!important;
    font-weight:900!important;
    text-align:center!important;
    text-shadow:none!important;
    white-space:nowrap!important;
  }

  body .tfe-instance[data-layout="grid"] .tfe-overlay,
  body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-overlay,
  body .tfe-slider-lock .tfe-instance[data-layout="grid"] .tfe-overlay,
  body .tfe-instance[data-layout="grid"] .tfe-card-item::after,
  body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-item::after,
  body .tfe-slider-lock .tfe-instance[data-layout="grid"] .tfe-card-item::after{
    display:none!important;
    content:none!important;
  }

  body .tfe-instance[data-layout="grid"] .tfe-card-link,
  body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-link,
  body .tfe-slider-lock .tfe-instance[data-layout="grid"] .tfe-card-link{
    position:absolute!important;
    inset:0!important;
    z-index:20!important;
  }

  body .tfe-instance[data-layout="grid"] .tfe-card-item:hover,
  body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-item:hover,
  body .tfe-slider-lock .tfe-instance[data-layout="grid"] .tfe-card-item:hover{
    transform:none!important;
    box-shadow:none!important;
  }

  body .tfe-instance[data-layout="grid"] .tfe-card-item:hover .tfe-card-caption,
  body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-item:hover .tfe-card-caption,
  body .tfe-slider-lock .tfe-instance[data-layout="grid"] .tfe-card-item:hover .tfe-card-caption{
    opacity:1!important;
    transform:none!important;
  }

  .tfe-load-more-wrap{
    padding:0 20px!important;
  }
}

@media (max-width: 360px){
  body .tfe-instance[data-layout="grid"] > .tfe-grid,
  body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] > .tfe-grid,
  body .tfe-slider-lock .tfe-instance[data-layout="grid"] > .tfe-grid{
    gap:26px 14px!important;
    padding-left:16px!important;
    padding-right:16px!important;
  }
  body .tfe-instance[data-layout="grid"] .tfe-card-caption-title,
  body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-title,
  body .tfe-slider-lock .tfe-instance[data-layout="grid"] .tfe-card-caption-title{
    font-size:16px!important;
  }
  body .tfe-instance[data-layout="grid"] .tfe-card-caption-date,
  body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-date,
  body .tfe-slider-lock .tfe-instance[data-layout="grid"] .tfe-card-caption-date,
  body .tfe-instance[data-layout="grid"] .tfe-card-caption-meta,
  body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-meta,
  body .tfe-slider-lock .tfe-instance[data-layout="grid"] .tfe-card-caption-meta,
  body .tfe-instance[data-layout="grid"] .tfe-card-caption-price,
  body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-price,
  body .tfe-slider-lock .tfe-instance[data-layout="grid"] .tfe-card-caption-price{
    font-size:14px!important;
  }
  body .tfe-instance[data-layout="grid"] .tfe-card-caption-cta,
  body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-cta,
  body .tfe-slider-lock .tfe-instance[data-layout="grid"] .tfe-card-caption-cta{
    min-height:42px!important;
    font-size:14px!important;
  }
}


/* =====================================================
   v10.0.5 — Mobile event catalogue structure
   Structure only: poster first, details under poster, 2-column phone grid.
   Keeps TicketsFest identity; does not copy a third-party visual style.
   ===================================================== */
@media (max-width: 767px){
  .tfe-wrap,
  .tfe-instance,
  .tfe-instance[data-layout="grid"],
  .tfe-instance[data-mobile-slider="1"][data-layout="grid"]{
    width:100%!important;
    max-width:100%!important;
    overflow:visible!important;
  }

  .tfe-instance[data-layout="grid"] > .tfe-grid,
  .tfe-instance[data-mobile-slider="1"][data-layout="grid"] > .tfe-grid{
    display:grid!important;
    grid-template-columns:repeat(2, minmax(0, 1fr))!important;
    grid-auto-flow:row!important;
    gap:24px 16px!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
    transform:none!important;
    scroll-snap-type:none!important;
  }

  .tfe-instance[data-layout="grid"] > .tfe-grid > .tfe-card-item,
  .tfe-instance[data-mobile-slider="1"][data-layout="grid"] > .tfe-grid > .tfe-card-item{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:auto!important;
    aspect-ratio:auto!important;
    flex:none!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    overflow:visible!important;
    transform:none!important;
  }

  .tfe-instance[data-layout="grid"] .tfe-card-inner,
  .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-inner{
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    aspect-ratio:auto!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    overflow:visible!important;
    contain:none!important;
    content-visibility:visible!important;
  }

  .tfe-instance[data-layout="grid"] .tfe-card-inner img.tfe-poster,
  .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-inner img.tfe-poster,
  .tfe-instance[data-layout="grid"] .tfe-poster--empty,
  .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-poster--empty{
    display:block!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    aspect-ratio:4/5!important;
    object-fit:cover!important;
    object-position:center top!important;
    border-radius:18px!important;
    background:#e5e7eb!important;
    box-shadow:0 10px 24px rgba(15,23,42,.10)!important;
  }

  .tfe-instance[data-layout="grid"] .tfe-card-caption,
  .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption{
    position:static!important;
    inset:auto!important;
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    padding:10px 0 0!important;
    color:#111827!important;
    background:transparent!important;
    opacity:1!important;
    visibility:visible!important;
    transform:none!important;
    pointer-events:none!important;
    text-shadow:none!important;
  }

  .tfe-instance[data-layout="grid"] .tfe-card-caption-title,
  .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-title{
    order:1!important;
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    overflow:hidden!important;
    margin:0 0 7px!important;
    color:#111827!important;
    font-size:clamp(15px, 4.1vw, 18px)!important;
    line-height:1.15!important;
    font-weight:900!important;
    letter-spacing:-.025em!important;
    text-shadow:none!important;
  }

  .tfe-instance[data-layout="grid"] .tfe-card-caption-top,
  .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-top{
    order:2!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:6px!important;
    margin:0 0 7px!important;
    min-width:0!important;
  }

  .tfe-instance[data-layout="grid"] .tfe-card-caption-date,
  .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-date{
    display:block!important;
    min-height:0!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    color:#334155!important;
    font-size:13px!important;
    line-height:1.25!important;
    font-weight:650!important;
    white-space:normal!important;
    text-transform:none!important;
    letter-spacing:0!important;
  }

  .tfe-instance[data-layout="grid"] .tfe-card-caption-promo,
  .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-promo{
    display:inline-flex!important;
    align-items:center!important;
    min-height:20px!important;
    padding:3px 7px!important;
    border-radius:999px!important;
    background:#eef2ff!important;
    color:#1d4ed8!important;
    font-size:10px!important;
    line-height:1!important;
    font-weight:900!important;
    letter-spacing:.02em!important;
  }

  .tfe-instance[data-layout="grid"] .tfe-card-caption-meta,
  .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-meta{
    order:3!important;
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    overflow:hidden!important;
    margin:0 0 8px!important;
    color:#4b5563!important;
    font-size:13px!important;
    line-height:1.35!important;
    font-weight:550!important;
    white-space:normal!important;
    text-shadow:none!important;
  }

  .tfe-instance[data-layout="grid"] .tfe-card-caption-row,
  .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-row{
    order:4!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    gap:9px!important;
    margin:0!important;
    padding:0!important;
  }

  .tfe-instance[data-layout="grid"] .tfe-card-caption-price,
  .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-price{
    display:block!important;
    margin:0!important;
    color:#111827!important;
    font-size:13.5px!important;
    line-height:1.25!important;
    font-weight:800!important;
    white-space:normal!important;
    text-shadow:none!important;
  }

  .tfe-instance[data-layout="grid"] .tfe-card-caption-cta,
  .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-cta{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    min-height:38px!important;
    padding:0 10px!important;
    border-radius:999px!important;
    background:#ffcc00!important;
    color:#111827!important;
    box-shadow:none!important;
    font-size:13px!important;
    line-height:1!important;
    font-weight:900!important;
    text-align:center!important;
    text-shadow:none!important;
    white-space:nowrap!important;
  }

  .tfe-instance[data-layout="grid"] .tfe-overlay,
  .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-overlay,
  .tfe-instance[data-layout="grid"] .tfe-card-item::after,
  .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-item::after{
    display:none!important;
    content:none!important;
  }

  .tfe-instance[data-layout="grid"] .tfe-card-link,
  .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-link{
    position:absolute!important;
    inset:0!important;
    z-index:20!important;
  }

  .tfe-instance[data-layout="grid"] .tfe-card-item:hover,
  .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-item:hover,
  .tfe-instance[data-layout="grid"] .tfe-card-item:hover .tfe-card-caption,
  .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-item:hover .tfe-card-caption{
    transform:none!important;
    opacity:1!important;
    box-shadow:none!important;
  }
}

@media (max-width: 340px){
  .tfe-instance[data-layout="grid"] > .tfe-grid,
  .tfe-instance[data-mobile-slider="1"][data-layout="grid"] > .tfe-grid{
    grid-template-columns:1fr!important;
    gap:24px!important;
  }
}

/* =====================================================
   CRM EVENT v10.0.6 — FORCE PHONE TWO-COLUMN EVENT CATALOGUE
   Fixes old high-specificity one-column mobile rules from v10.0.2/v10.0.3.
   This block intentionally has stronger selectors and stays at the very end.
   ===================================================== */
@media (max-width: 767px){
  html body .tfe-page-wrapper .tfe-slider-lock .tfe-instance[data-layout="grid"] > .tfe-grid,
  html body .tfe-page-wrapper .tfe-slider-lock .tfe-instance[data-mobile-slider="1"][data-layout="grid"] > .tfe-grid,
  html body .tfe-events-page .tfe-instance[data-layout="grid"] > .tfe-grid,
  html body .tfe-events-page .tfe-instance[data-mobile-slider="1"][data-layout="grid"] > .tfe-grid,
  html body.home .tfe-slider-lock .tfe-instance[data-layout="grid"] > .tfe-grid,
  html body.home .tfe-slider-lock .tfe-instance[data-mobile-slider="1"][data-layout="grid"] > .tfe-grid,
  html body.page-template-page-home-dots .tfe-slider-lock .tfe-instance[data-layout="grid"] > .tfe-grid,
  html body.page-template-page-home-dots .tfe-slider-lock .tfe-instance[data-mobile-slider="1"][data-layout="grid"] > .tfe-grid,
  html body .tfe-instance[data-layout="grid"] > .tfe-grid,
  html body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] > .tfe-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-auto-flow:row!important;
    align-items:start!important;
    gap:22px 14px!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
    scroll-snap-type:none!important;
    -webkit-overflow-scrolling:auto!important;
    transform:none!important;
    touch-action:auto!important;
    contain:none!important;
    content-visibility:visible!important;
  }

  html body .tfe-page-wrapper .tfe-slider-lock .tfe-instance[data-layout="grid"] > .tfe-grid > .tfe-card-item,
  html body .tfe-page-wrapper .tfe-slider-lock .tfe-instance[data-mobile-slider="1"][data-layout="grid"] > .tfe-grid > .tfe-card-item,
  html body .tfe-events-page .tfe-instance[data-layout="grid"] > .tfe-grid > .tfe-card-item,
  html body .tfe-events-page .tfe-instance[data-mobile-slider="1"][data-layout="grid"] > .tfe-grid > .tfe-card-item,
  html body.home .tfe-slider-lock .tfe-instance[data-layout="grid"] > .tfe-grid > .tfe-card-item,
  html body.home .tfe-slider-lock .tfe-instance[data-mobile-slider="1"][data-layout="grid"] > .tfe-grid > .tfe-card-item,
  html body.page-template-page-home-dots .tfe-slider-lock .tfe-instance[data-layout="grid"] > .tfe-grid > .tfe-card-item,
  html body.page-template-page-home-dots .tfe-slider-lock .tfe-instance[data-mobile-slider="1"][data-layout="grid"] > .tfe-grid > .tfe-card-item,
  html body .tfe-instance[data-layout="grid"] > .tfe-grid > .tfe-card-item,
  html body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] > .tfe-grid > .tfe-card-item{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:auto!important;
    aspect-ratio:auto!important;
    flex:none!important;
    flex-basis:auto!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    overflow:visible!important;
    scroll-snap-align:unset!important;
    transform:none!important;
    contain:none!important;
    content-visibility:visible!important;
  }

  html body .tfe-page-wrapper .tfe-slider-lock .tfe-instance[data-layout="grid"] .tfe-card-inner,
  html body .tfe-page-wrapper .tfe-slider-lock .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-inner,
  html body .tfe-events-page .tfe-instance[data-layout="grid"] .tfe-card-inner,
  html body .tfe-events-page .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-inner,
  html body.home .tfe-slider-lock .tfe-instance[data-layout="grid"] .tfe-card-inner,
  html body.home .tfe-slider-lock .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-inner,
  html body.page-template-page-home-dots .tfe-slider-lock .tfe-instance[data-layout="grid"] .tfe-card-inner,
  html body.page-template-page-home-dots .tfe-slider-lock .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-inner,
  html body .tfe-instance[data-layout="grid"] .tfe-card-inner,
  html body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-inner{
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
    min-height:0!important;
    aspect-ratio:auto!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    overflow:visible!important;
  }

  html body .tfe-instance[data-layout="grid"] .tfe-card-inner img.tfe-poster,
  html body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-inner img.tfe-poster,
  html body .tfe-instance[data-layout="grid"] .tfe-poster--empty,
  html body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-poster--empty{
    width:100%!important;
    height:auto!important;
    aspect-ratio:4/5!important;
    object-fit:cover!important;
    object-position:center top!important;
    border-radius:16px!important;
    display:block!important;
  }

  html body .tfe-instance[data-layout="grid"] .tfe-card-caption,
  html body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption{
    position:static!important;
    inset:auto!important;
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    padding:9px 0 0!important;
    margin:0!important;
    background:transparent!important;
    color:#111827!important;
    opacity:1!important;
    visibility:visible!important;
    transform:none!important;
    text-shadow:none!important;
    pointer-events:none!important;
  }

  html body .tfe-instance[data-layout="grid"] .tfe-card-caption-title,
  html body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-title{
    order:1!important;
    font-size:clamp(14px,3.9vw,17px)!important;
    line-height:1.15!important;
    font-weight:900!important;
    color:#111827!important;
    margin:0 0 6px!important;
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    overflow:hidden!important;
  }

  html body .tfe-instance[data-layout="grid"] .tfe-card-caption-top,
  html body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-top{
    order:2!important;
    display:flex!important;
    gap:5px!important;
    margin:0 0 6px!important;
    align-items:center!important;
  }

  html body .tfe-instance[data-layout="grid"] .tfe-card-caption-date,
  html body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-date,
  html body .tfe-instance[data-layout="grid"] .tfe-card-caption-meta,
  html body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-meta,
  html body .tfe-instance[data-layout="grid"] .tfe-card-caption-price,
  html body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-price{
    color:#334155!important;
    background:transparent!important;
    box-shadow:none!important;
    border:0!important;
    padding:0!important;
    text-shadow:none!important;
    font-size:12.5px!important;
    line-height:1.3!important;
    white-space:normal!important;
  }

  html body .tfe-instance[data-layout="grid"] .tfe-card-caption-meta,
  html body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-meta{
    order:3!important;
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    overflow:hidden!important;
    margin:0 0 7px!important;
  }

  html body .tfe-instance[data-layout="grid"] .tfe-card-caption-row,
  html body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-row{
    order:4!important;
    display:flex!important;
    flex-direction:column!important;
    gap:8px!important;
    margin:0!important;
    padding:0!important;
  }

  html body .tfe-instance[data-layout="grid"] .tfe-card-caption-price,
  html body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-price{
    color:#111827!important;
    font-weight:800!important;
    margin:0!important;
  }

  html body .tfe-instance[data-layout="grid"] .tfe-card-caption-cta,
  html body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-cta{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    min-height:36px!important;
    border-radius:999px!important;
    background:#ffcc00!important;
    color:#111827!important;
    font-size:12.5px!important;
    font-weight:900!important;
    padding:0 8px!important;
    box-shadow:none!important;
    text-shadow:none!important;
  }

  html body .tfe-instance[data-layout="grid"] .tfe-overlay,
  html body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-overlay,
  html body .tfe-instance[data-layout="grid"] .tfe-card-item::after,
  html body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-item::after{
    display:none!important;
    content:none!important;
  }
}

@media (max-width: 340px){
  html body .tfe-instance[data-layout="grid"] > .tfe-grid,
  html body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] > .tfe-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:20px 10px!important;
  }
}

/* =====================================================
   CRM EVENT v10.0.7 — MOBILE CARD ALIGNMENT / CENTERING
   Keeps 2-column catalogue, but fixes row drift when titles/venues have different lengths.
   Poster → title → date → location → price → CTA are aligned across both columns.
   ===================================================== */
@media (max-width: 767px){
  html body .tfe-instance[data-layout="grid"] > .tfe-grid,
  html body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] > .tfe-grid,
  html body .tfe-slider-lock .tfe-instance[data-layout="grid"] > .tfe-grid,
  html body .tfe-slider-lock .tfe-instance[data-mobile-slider="1"][data-layout="grid"] > .tfe-grid,
  html body .tfe-events-page .tfe-instance[data-layout="grid"] > .tfe-grid,
  html body .tfe-events-page .tfe-instance[data-mobile-slider="1"][data-layout="grid"] > .tfe-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    justify-content:center!important;
    align-items:stretch!important;
    gap:28px 18px!important;
    width:min(100%, 640px)!important;
    max-width:100%!important;
    margin-left:auto!important;
    margin-right:auto!important;
    padding-left:18px!important;
    padding-right:18px!important;
    box-sizing:border-box!important;
    overflow:visible!important;
  }

  html body .tfe-instance[data-layout="grid"] > .tfe-grid > .tfe-card-item,
  html body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] > .tfe-grid > .tfe-card-item,
  html body .tfe-slider-lock .tfe-instance[data-layout="grid"] > .tfe-grid > .tfe-card-item,
  html body .tfe-slider-lock .tfe-instance[data-mobile-slider="1"][data-layout="grid"] > .tfe-grid > .tfe-card-item,
  html body .tfe-events-page .tfe-instance[data-layout="grid"] > .tfe-grid > .tfe-card-item,
  html body .tfe-events-page .tfe-instance[data-mobile-slider="1"][data-layout="grid"] > .tfe-grid > .tfe-card-item{
    height:100%!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:flex-start!important;
    min-width:0!important;
    width:100%!important;
    box-sizing:border-box!important;
  }

  html body .tfe-instance[data-layout="grid"] .tfe-card-inner,
  html body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-inner,
  html body .tfe-slider-lock .tfe-instance[data-layout="grid"] .tfe-card-inner,
  html body .tfe-slider-lock .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-inner,
  html body .tfe-events-page .tfe-instance[data-layout="grid"] .tfe-card-inner,
  html body .tfe-events-page .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-inner{
    height:100%!important;
    display:flex!important;
    flex-direction:column!important;
    min-width:0!important;
    width:100%!important;
  }

  html body .tfe-instance[data-layout="grid"] .tfe-card-caption,
  html body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption,
  html body .tfe-slider-lock .tfe-instance[data-layout="grid"] .tfe-card-caption,
  html body .tfe-slider-lock .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption,
  html body .tfe-events-page .tfe-instance[data-layout="grid"] .tfe-card-caption,
  html body .tfe-events-page .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption{
    flex:1 1 auto!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    min-width:0!important;
    padding-top:11px!important;
  }

  html body .tfe-instance[data-layout="grid"] .tfe-card-caption-title,
  html body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-title,
  html body .tfe-slider-lock .tfe-instance[data-layout="grid"] .tfe-card-caption-title,
  html body .tfe-slider-lock .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-title,
  html body .tfe-events-page .tfe-instance[data-layout="grid"] .tfe-card-caption-title,
  html body .tfe-events-page .tfe-instance[data-mobile-slider="1"] .tfe-card-caption-title{
    order:1!important;
    min-height:calc(2 * 1.14em)!important;
    height:calc(2 * 1.14em)!important;
    margin:0 0 8px!important;
    display:-webkit-box!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
  }

  html body .tfe-instance[data-layout="grid"] .tfe-card-caption-top,
  html body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-top,
  html body .tfe-slider-lock .tfe-instance[data-layout="grid"] .tfe-card-caption-top,
  html body .tfe-slider-lock .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-top,
  html body .tfe-events-page .tfe-instance[data-layout="grid"] .tfe-card-caption-top,
  html body .tfe-events-page .tfe-instance[data-mobile-slider="1"] .tfe-card-caption-top{
    order:2!important;
    min-height:1.35em!important;
    height:1.35em!important;
    margin:0 0 7px!important;
    overflow:hidden!important;
  }

  html body .tfe-instance[data-layout="grid"] .tfe-card-caption-date,
  html body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-date,
  html body .tfe-slider-lock .tfe-instance[data-layout="grid"] .tfe-card-caption-date,
  html body .tfe-slider-lock .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-date,
  html body .tfe-events-page .tfe-instance[data-layout="grid"] .tfe-card-caption-date,
  html body .tfe-events-page .tfe-instance[data-mobile-slider="1"] .tfe-card-caption-date{
    line-height:1.35!important;
  }

  html body .tfe-instance[data-layout="grid"] .tfe-card-caption-meta,
  html body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-meta,
  html body .tfe-slider-lock .tfe-instance[data-layout="grid"] .tfe-card-caption-meta,
  html body .tfe-slider-lock .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-meta,
  html body .tfe-events-page .tfe-instance[data-layout="grid"] .tfe-card-caption-meta,
  html body .tfe-events-page .tfe-instance[data-mobile-slider="1"] .tfe-card-caption-meta{
    order:3!important;
    min-height:calc(2 * 1.32em)!important;
    height:calc(2 * 1.32em)!important;
    margin:0 0 9px!important;
    display:-webkit-box!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
  }

  html body .tfe-instance[data-layout="grid"] .tfe-card-caption-row,
  html body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-row,
  html body .tfe-slider-lock .tfe-instance[data-layout="grid"] .tfe-card-caption-row,
  html body .tfe-slider-lock .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-row,
  html body .tfe-events-page .tfe-instance[data-layout="grid"] .tfe-card-caption-row,
  html body .tfe-events-page .tfe-instance[data-mobile-slider="1"] .tfe-card-caption-row{
    order:4!important;
    margin-top:auto!important;
    display:flex!important;
    flex-direction:column!important;
    gap:10px!important;
  }

  html body .tfe-instance[data-layout="grid"] .tfe-card-caption-price,
  html body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-price,
  html body .tfe-slider-lock .tfe-instance[data-layout="grid"] .tfe-card-caption-price,
  html body .tfe-slider-lock .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-price,
  html body .tfe-events-page .tfe-instance[data-layout="grid"] .tfe-card-caption-price,
  html body .tfe-events-page .tfe-instance[data-mobile-slider="1"] .tfe-card-caption-price{
    min-height:1.3em!important;
    height:1.3em!important;
    margin:0!important;
    overflow:hidden!important;
  }

  html body .tfe-instance[data-layout="grid"] .tfe-card-caption-cta,
  html body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-cta,
  html body .tfe-slider-lock .tfe-instance[data-layout="grid"] .tfe-card-caption-cta,
  html body .tfe-slider-lock .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-cta,
  html body .tfe-events-page .tfe-instance[data-layout="grid"] .tfe-card-caption-cta,
  html body .tfe-events-page .tfe-instance[data-mobile-slider="1"] .tfe-card-caption-cta{
    min-height:40px!important;
    height:40px!important;
    border-radius:999px!important;
  }
}

@media (max-width: 360px){
  html body .tfe-instance[data-layout="grid"] > .tfe-grid,
  html body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] > .tfe-grid,
  html body .tfe-slider-lock .tfe-instance[data-layout="grid"] > .tfe-grid,
  html body .tfe-events-page .tfe-instance[data-layout="grid"] > .tfe-grid{
    gap:24px 14px!important;
    padding-left:14px!important;
    padding-right:14px!important;
  }
}

/* =====================================================
   CRM EVENT v10.0.8 — MOBILE CARD CENTERING FIX
   Keeps the 2-column catalogue, but centers all visible card details inside each column.
   This block stays last because older emergency mobile rules use strong selectors.
   ===================================================== */
@media (max-width: 767px){
  html body .tfe-instance[data-layout="grid"] > .tfe-grid,
  html body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] > .tfe-grid,
  html body .tfe-slider-lock .tfe-instance[data-layout="grid"] > .tfe-grid,
  html body .tfe-slider-lock .tfe-instance[data-mobile-slider="1"][data-layout="grid"] > .tfe-grid,
  html body .tfe-events-page .tfe-instance[data-layout="grid"] > .tfe-grid,
  html body .tfe-events-page .tfe-instance[data-mobile-slider="1"][data-layout="grid"] > .tfe-grid{
    width:min(100%, 620px)!important;
    max-width:100%!important;
    margin-left:auto!important;
    margin-right:auto!important;
    justify-content:center!important;
    justify-items:center!important;
    align-items:stretch!important;
    box-sizing:border-box!important;
  }

  html body .tfe-instance[data-layout="grid"] > .tfe-grid > .tfe-card-item,
  html body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] > .tfe-grid > .tfe-card-item,
  html body .tfe-slider-lock .tfe-instance[data-layout="grid"] > .tfe-grid > .tfe-card-item,
  html body .tfe-slider-lock .tfe-instance[data-mobile-slider="1"][data-layout="grid"] > .tfe-grid > .tfe-card-item,
  html body .tfe-events-page .tfe-instance[data-layout="grid"] > .tfe-grid > .tfe-card-item,
  html body .tfe-events-page .tfe-instance[data-mobile-slider="1"][data-layout="grid"] > .tfe-grid > .tfe-card-item{
    width:100%!important;
    max-width:100%!important;
    justify-self:center!important;
    text-align:center!important;
  }

  html body .tfe-instance[data-layout="grid"] .tfe-card-caption,
  html body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption,
  html body .tfe-slider-lock .tfe-instance[data-layout="grid"] .tfe-card-caption,
  html body .tfe-slider-lock .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption,
  html body .tfe-events-page .tfe-instance[data-layout="grid"] .tfe-card-caption,
  html body .tfe-events-page .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption{
    align-items:center!important;
    text-align:center!important;
    width:100%!important;
  }

  html body .tfe-instance[data-layout="grid"] .tfe-card-caption-title,
  html body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-title,
  html body .tfe-slider-lock .tfe-instance[data-layout="grid"] .tfe-card-caption-title,
  html body .tfe-slider-lock .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-title,
  html body .tfe-events-page .tfe-instance[data-layout="grid"] .tfe-card-caption-title,
  html body .tfe-events-page .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-title,
  html body .tfe-instance[data-layout="grid"] .tfe-card-caption-date,
  html body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-date,
  html body .tfe-slider-lock .tfe-instance[data-layout="grid"] .tfe-card-caption-date,
  html body .tfe-slider-lock .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-date,
  html body .tfe-events-page .tfe-instance[data-layout="grid"] .tfe-card-caption-date,
  html body .tfe-events-page .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-date,
  html body .tfe-instance[data-layout="grid"] .tfe-card-caption-meta,
  html body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-meta,
  html body .tfe-slider-lock .tfe-instance[data-layout="grid"] .tfe-card-caption-meta,
  html body .tfe-slider-lock .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-meta,
  html body .tfe-events-page .tfe-instance[data-layout="grid"] .tfe-card-caption-meta,
  html body .tfe-events-page .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-meta,
  html body .tfe-instance[data-layout="grid"] .tfe-card-caption-price,
  html body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-price,
  html body .tfe-slider-lock .tfe-instance[data-layout="grid"] .tfe-card-caption-price,
  html body .tfe-slider-lock .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-price,
  html body .tfe-events-page .tfe-instance[data-layout="grid"] .tfe-card-caption-price,
  html body .tfe-events-page .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-price{
    width:100%!important;
    max-width:100%!important;
    text-align:center!important;
    justify-content:center!important;
    align-self:center!important;
  }

  html body .tfe-instance[data-layout="grid"] .tfe-card-caption-top,
  html body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-top,
  html body .tfe-slider-lock .tfe-instance[data-layout="grid"] .tfe-card-caption-top,
  html body .tfe-slider-lock .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-top,
  html body .tfe-events-page .tfe-instance[data-layout="grid"] .tfe-card-caption-top,
  html body .tfe-events-page .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-top{
    width:100%!important;
    justify-content:center!important;
    text-align:center!important;
  }

  html body .tfe-instance[data-layout="grid"] .tfe-card-caption-row,
  html body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-row,
  html body .tfe-slider-lock .tfe-instance[data-layout="grid"] .tfe-card-caption-row,
  html body .tfe-slider-lock .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-row,
  html body .tfe-events-page .tfe-instance[data-layout="grid"] .tfe-card-caption-row,
  html body .tfe-events-page .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-row{
    width:100%!important;
    align-items:center!important;
    text-align:center!important;
  }

  html body .tfe-instance[data-layout="grid"] .tfe-card-caption-cta,
  html body .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-cta,
  html body .tfe-slider-lock .tfe-instance[data-layout="grid"] .tfe-card-caption-cta,
  html body .tfe-slider-lock .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-cta,
  html body .tfe-events-page .tfe-instance[data-layout="grid"] .tfe-card-caption-cta,
  html body .tfe-events-page .tfe-instance[data-mobile-slider="1"][data-layout="grid"] .tfe-card-caption-cta{
    width:100%!important;
    margin-left:auto!important;
    margin-right:auto!important;
    text-align:center!important;
    justify-content:center!important;
  }
}


/* =====================================================
   CRM EVENT v10.0.9 — SITEWIDE MOBILE EVENT CARD SAFETY
   Global fallback for every [display_events] block, regardless of page template.
   ===================================================== */
@media (max-width: 767px){
  html body .tfe-wrap.tfe-instance[data-layout="grid"] > .tfe-grid,
  html body main .tfe-wrap.tfe-instance[data-layout="grid"] > .tfe-grid,
  html body .entry-content .tfe-wrap.tfe-instance[data-layout="grid"] > .tfe-grid,
  html body .site-main .tfe-wrap.tfe-instance[data-layout="grid"] > .tfe-grid,
  html body .tfe-section .tfe-wrap.tfe-instance[data-layout="grid"] > .tfe-grid,
  html body .tfe-related-events .tfe-wrap.tfe-instance[data-layout="grid"] > .tfe-grid,
  html body .tfe-artist-events .tfe-wrap.tfe-instance[data-layout="grid"] > .tfe-grid,
  html body .tfe-tour-events .tfe-wrap.tfe-instance[data-layout="grid"] > .tfe-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:28px 18px!important;
    width:min(100%,620px)!important;
    max-width:100%!important;
    margin-left:auto!important;
    margin-right:auto!important;
    padding-left:18px!important;
    padding-right:18px!important;
    box-sizing:border-box!important;
    overflow:visible!important;
    justify-content:center!important;
    justify-items:center!important;
    align-items:stretch!important;
  }

  html body .tfe-wrap.tfe-instance[data-layout="grid"] > .tfe-grid > .tfe-card-item{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    display:flex!important;
    flex-direction:column!important;
    text-align:center!important;
    justify-self:center!important;
  }

  html body .tfe-wrap.tfe-instance[data-layout="grid"] .tfe-card-caption{
    position:static!important;
    display:flex!important;
    flex:1 1 auto!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:flex-start!important;
    width:100%!important;
    text-align:center!important;
    padding:12px 0 0!important;
    background:transparent!important;
    color:#0f172a!important;
    opacity:1!important;
    transform:none!important;
  }

  html body .tfe-wrap.tfe-instance[data-layout="grid"] .tfe-card-caption-title{
    min-height:calc(2 * 1.14em)!important;
    height:calc(2 * 1.14em)!important;
    margin:0 0 8px!important;
    color:#0f172a!important;
    font-size:17px!important;
    line-height:1.14!important;
    text-align:center!important;
    display:-webkit-box!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
  }

  html body .tfe-wrap.tfe-instance[data-layout="grid"] .tfe-card-caption-top,
  html body .tfe-wrap.tfe-instance[data-layout="grid"] .tfe-card-caption-date,
  html body .tfe-wrap.tfe-instance[data-layout="grid"] .tfe-card-caption-meta,
  html body .tfe-wrap.tfe-instance[data-layout="grid"] .tfe-card-caption-price{
    width:100%!important;
    max-width:100%!important;
    text-align:center!important;
    justify-content:center!important;
    align-self:center!important;
  }

  html body .tfe-wrap.tfe-instance[data-layout="grid"] .tfe-card-caption-top{
    order:2!important;
    min-height:1.35em!important;
    height:1.35em!important;
    margin:0 0 7px!important;
    display:flex!important;
  }

  html body .tfe-wrap.tfe-instance[data-layout="grid"] .tfe-card-caption-date{
    display:block!important;
    background:transparent!important;
    color:#334155!important;
    padding:0!important;
    box-shadow:none!important;
    font-size:13px!important;
    font-weight:800!important;
    line-height:1.35!important;
  }

  html body .tfe-wrap.tfe-instance[data-layout="grid"] .tfe-card-caption-meta{
    order:3!important;
    min-height:calc(2 * 1.32em)!important;
    height:calc(2 * 1.32em)!important;
    margin:0 0 9px!important;
    color:#334155!important;
    font-size:13px!important;
    line-height:1.32!important;
    display:-webkit-box!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
  }

  html body .tfe-wrap.tfe-instance[data-layout="grid"] .tfe-card-caption-row{
    order:4!important;
    width:100%!important;
    margin-top:auto!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    gap:10px!important;
    text-align:center!important;
  }

  html body .tfe-wrap.tfe-instance[data-layout="grid"] .tfe-card-caption-price{
    min-height:1.3em!important;
    height:1.3em!important;
    margin:0!important;
    overflow:hidden!important;
    color:#0f172a!important;
    font-size:13px!important;
    font-weight:900!important;
  }

  html body .tfe-wrap.tfe-instance[data-layout="grid"] .tfe-card-caption-cta{
    width:100%!important;
    min-height:40px!important;
    height:40px!important;
    border-radius:999px!important;
    margin-left:auto!important;
    margin-right:auto!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
  }
}
@media (max-width: 360px){
  html body .tfe-wrap.tfe-instance[data-layout="grid"] > .tfe-grid{
    gap:24px 14px!important;
    padding-left:14px!important;
    padding-right:14px!important;
  }
}

/* =====================================================
   CRM EVENT v10.1.0 — single-event/mobile catalogue hard override
   The old v9.9.83 native mobile slider rules were still affecting single-event related events.
   This block forces the current 2-column catalogue structure, including related events.
   ===================================================== */
@media (max-width: 767px){
  html body.single-event .tfe-slider-safe-area,
  html body.single-event .tfe-related-events,
  html body.single-event .tfe-related-events-grid-safe,
  html body.single-event .tfe-wrap.tfe-instance[data-layout="grid"],
  html body.single-event .tfe-instance[data-layout="grid"]{
    width:100%!important;
    max-width:100%!important;
    overflow:visible!important;
    padding-left:0!important;
    padding-right:0!important;
    margin-left:auto!important;
    margin-right:auto!important;
    contain:none!important;
    content-visibility:visible!important;
  }

  html body.single-event .tfe-wrap.tfe-instance[data-layout="grid"] > .tfe-grid,
  html body.single-event .tfe-instance[data-layout="grid"] > .tfe-grid,
  html body.single-event .tfe-slider-safe-area .tfe-instance[data-layout="grid"] > .tfe-grid,
  html body.single-event .tfe-related-events-grid-safe .tfe-instance[data-layout="grid"] > .tfe-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-auto-flow:row!important;
    flex-direction:initial!important;
    flex-wrap:initial!important;
    gap:28px 18px!important;
    width:min(100%,620px)!important;
    max-width:100%!important;
    margin-left:auto!important;
    margin-right:auto!important;
    padding:0 18px!important;
    overflow:visible!important;
    justify-content:center!important;
    justify-items:center!important;
    align-items:stretch!important;
    scroll-snap-type:none!important;
    -webkit-overflow-scrolling:auto!important;
    touch-action:auto!important;
  }

  html body.single-event .tfe-instance[data-layout="grid"] > .tfe-grid > .tfe-card-item,
  html body.single-event .tfe-wrap.tfe-instance[data-layout="grid"] > .tfe-grid > .tfe-card-item{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    flex:initial!important;
    flex-shrink:1!important;
    scroll-snap-align:none!important;
    justify-self:center!important;
    text-align:center!important;
  }

  html body.single-event .tfe-instance[data-layout="grid"] .tfe-card-caption,
  html body.single-event .tfe-instance[data-layout="grid"] .tfe-card-caption-title,
  html body.single-event .tfe-instance[data-layout="grid"] .tfe-card-caption-date,
  html body.single-event .tfe-instance[data-layout="grid"] .tfe-card-caption-meta,
  html body.single-event .tfe-instance[data-layout="grid"] .tfe-card-caption-price,
  html body.single-event .tfe-instance[data-layout="grid"] .tfe-card-caption-row,
  html body.single-event .tfe-instance[data-layout="grid"] .tfe-card-caption-top{
    text-align:center!important;
    align-items:center!important;
    justify-content:center!important;
  }
}
