/* =============================================================================
   EVENTS GRID & EVENT TILE (BEM/component refactor)
============================================================================= */

/* =========================
   GRID/CONTAINER STYLES
========================= */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: var(--space-md);
  justify-items: stretch;
  align-items: stretch;
  padding: var(--space-sm);
}
section.events-grid {
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
}
#eventsGrid:empty {
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* =========================
   EVENT TILE STYLES
========================= */
.event-tile {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: var(--nyc-light-pink);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0;
  margin: var(--space-xs);
  min-width: 0;
  max-width: 100%;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}
.event-tile:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px) scale(1.01);
}
.event-tile__img-container {
  flex: 0 0 25%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-width: 100px;
  max-width: 160px;
  overflow: hidden;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  background: var(--nyc-white);
}
.event-tile__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  margin: 0;
}
.event-tile__details {
  flex: 1 1 75%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-sm);
  gap: var(--space-xxs);
}
.event-tile__details h3 {
  font-size: var(--font-md-sm);
  margin: 0 0 var(--space-xxs) 0;
  color: var(--nyc-navy);
}
.event-tile__date {
  font-size: var(--font-sm);
  color: var(--nyc-navy);
  margin: 0 0 var(--space-xxxs) 0;
}
.event-tile__location {
  font-size: var(--font-sm);
  color: var(--nyc-navy);
  margin: 0;
}
.event-tile__text {
  padding: var(--space-sm);
}
.event-tile__text h3 {
  font-size: var(--font-xl);
  margin: 0 0 var(--space-xs) 0;
  color: var(--nyc-navy);
}
.event-tile__text p {
  font-size: var(--font-sm);
  margin: 0;
  color: var(--nyc-navy);
}
.event-tile__recurring-badge {
  background-color: var(--nyc-fuschia);
  color: var(--nyc-white);
  font-size: var(--font-xs);
  padding: var(--space-xxs) var(--space-xs);
  border-radius: var(--radius-xs);
  position: absolute;
  top: var(--space-xs);
  right: var(--space-xs);
}
.event-tile.event-tile--horizontal {
  margin-left: auto;
  margin-right: auto;
  max-width: 950px;
  width: 100%;
  box-sizing: border-box;
}
/* ...existing code up to the end of the last media query... */
.event-detail__content h1 {
  font-size: var(--font-md);
}
.event-detail__description {
  padding: 0;
  font-size: var(--font-xs-sm);
}
.event-detail__image img {
  max-width: 100vw;
  border-radius: var(--space-xs);
}

.mt-sm {
  margin-top: var(--space-sm) !important;
}

/* =========================
   MEDIA QUERIES: ≤975px
========================= */
@media (max-width: 975px) {
  .events-grid,
  .day-events-grid.events-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    padding: 0 var(--space-sm) !important;
  }
  .event-tile.event-tile--horizontal,
  .day-events-grid.events-grid .event-tile.event-tile--horizontal {
    flex-direction: row;
    align-items: center;
    height: auto;
    min-height: 0;
    max-height: none;
    width: 100%;
  }
  .event-tile,
  .day-events-grid.events-grid .event-tile {
    min-height: 0;
    max-height: none;
    height: auto;
    width: 100%;
    align-items: center;
  }
  .event-tile__img-container,
  .day-events-grid.events-grid .event-tile__img-container {
    height: 100%;
    min-width: 100px;
    max-width: 160px;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .event-tile__img,
  .day-events-grid.events-grid .event-tile__img {
    height: auto;
    width: 100%;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    margin: 0;
    object-fit: cover;
    display: block;
  }
  .event-tile__details,
  .day-events-grid.events-grid .event-tile__details {
    padding: var(--space-sm);
    justify-content: center;
    align-items: flex-start;
    width: 100%;
  }
}

/* =========================
   MEDIA QUERIES: ≤900px
========================= */
@media (max-width: 900px) {
  .events-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    padding: 0 var(--space-sm) !important;
  }
  .event-tile.event-tile--horizontal {
    height: auto;
    min-height: 0;
    align-items: stretch;
  }
}

/* ===============================
   MEDIA QUERIES: ≤700px, ≤600px
=============================== */
@media (max-width: 700px), (max-width: 600px) {
  .events-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
    padding: 0 var(--space-sm) !important;
  }
  .event-tile.event-tile--horizontal {
    flex-direction: row;
    height: auto;
    min-height: 0;
    align-items: center;
    justify-content: flex-start;
  }
  .event-tile,
  .event-tile.event-tile--horizontal {
    display: flex;
    flex-direction: row;
    min-height: 120px;
    height: auto;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    overflow: hidden;
  }
  .event-tile.event-tile--horizontal .event-tile__img-container,
  .event-tile__img-container {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    min-height: 100px;
    max-height: 200px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    background: var(--nyc-white);
    margin: 0;
    padding: 0;
  }
  .event-tile.event-tile--horizontal .event-tile__img,
  .event-tile__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin: 0;
    display: block;
  }
  .event-tile__details {
    padding: var(--space-xs);
    width: 100%;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    text-align: left;
    margin-top: 0;
  }
  .event-tile__details h3,
  .event-tile__date,
  .event-tile__location {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }
  .event-tile__details h3 {
    font-size: var(--font-md-sm);
  }
  .event-tile__date,
  .event-tile__location {
    font-size: var(--font-sm);
  }
  .event-tile__text h3 {
    font-size: var(--font-xl);
  }
  .event-tile__text p {
    font-size: var(--font-sm);
  }
}
/* ===============================
   MEDIA QUERIES: ≤450px
=============================== */
@media (max-width: 450px) {
  .event-tile__details h3 {
    font-size: var(--font-sm);
  }
  .event-tile__date,
  .event-tile__location {
    font-size: var(--font-xs-sm);
  }
  .event-tile__text h3 {
    font-size: var(--font-sm);
  }
  .event-tile__text p {
    font-size: var(--font-xs-sm);
  }
}