.rsvp-events-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 2rem auto;
  max-width: 900px;
}
.rsvp-events-container {
  width: 100%;
  max-height: 480px;
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.5rem;
  background: #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
}
.rsvp-event-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 10px;
}
.rsvp-event-row:not(:last-child) {
  border-bottom: 1px solid #f1f5f9;
}
.rsvp-event-row:hover {
  background: #f8fafc;
}
.rsvp-event-title {
  font-weight: 600;
  text-decoration: none;
}
.rsvp-event-meta {
  font-size: 0.9rem;
  color: #64748b;
  margin-top: 0.25rem;
}
.rsvp-button {
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid #0ea5e9;
  background: #0ea5e9;
  color: #fff;
  text-decoration: none;
}
.rsvp-button:hover {
  filter: brightness(0.95);
}
.rsvp-button-wide {
  width: 100%;
  text-align: center;
}

/* Single */
.rsvp-event-single {
  --event-bg: none;
  background: #f8fafc;
}
.rsvp-event-hero {
  position: relative;
  background-image: var(--event-bg);
  background-size: cover;
  background-position: center;
  min-height: 240px;
  border-bottom: 1px solid #e5e7eb;
}
.rsvp-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.45),
    rgba(0, 0, 0, 0.25),
    rgba(0, 0, 0, 0.45)
  );
}
.rsvp-hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 3rem 1rem;
  max-width: 1100px;
  margin: 0 auto;
}
.rsvp-hero-title {
  color: #fff;
  font-size: 2.2rem;
  margin: 0 0 0.5rem;
}
.rsvp-hero-meta {
  opacity: 0.95;
}
.rsvp-hero-cta {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.rsvp-badge.full {
  background: #ef4444;
  color: #fff;
  border-radius: 12px;
  padding: 0.3rem 0.6rem;
}
.rsvp-ical {
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  text-decoration: none;
}

.rsvp-event-grid {
  gap: 1.25rem;
  max-width: 1100px;
  margin: 1rem auto;
  padding: 0 1rem;
}
.rsvp-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.rsvp-featured {
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.rsvp-gallery-placeholder {
  padding: 2rem;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  color: #64748b;
  text-align: center;
}
.rsvp-details {
  margin-top: 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
}
.rsvp-form {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.rsvp-form input {
  width: 100%;
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
}
.rsvp-attendees {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
  max-height: 650px;
  overflow: auto;
}
.rsvp-attendees-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.rsvp-attendee {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
  padding: 0.5rem 0;
}
.rsvp-avatar {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #e2e8f0;
  color: #0f172a;
  font-weight: 700;
}

@media (max-width: 900px) {
  .rsvp-event-grid {
    grid-template-columns: 1fr;
  }
  .rsvp-attendees {
    order: -1;
  }
}

body.single-rsvp_event .sidebar,
body.single-rsvp_event #secondary,
body.single-rsvp_event .widget-area {
  display: none !important;
}

/* Expand content area (works for many themes) */
body.single-rsvp_event #primary,
body.single-rsvp_event .content-area,
body.single-rsvp_event .site-content,
body.single-rsvp_event .container,
body.single-rsvp_event .entry-content {
  max-width: 100% !important;
  width: 100% !important;
  float: none !important;
}

body.single-rsvp_event .content-area {
  margin: 0 auto !important;
}

