/* FullCalendar base tweaks */
.mindfeeder-calendar { 
  --fc-button-bg-color: #1f2937;
  --fc-button-text-color: #fff;
  --fc-button-border-color: transparent;
  --fc-button-hover-bg-color: #111827;
  --fc-button-active-bg-color: #0b1220;
  --fc-page-bg-color: transparent;
  --fc-neutral-bg-color: rgba(0,0,0,0.03);
}
.mindfeeder-calendar .fc { font-size: 0.95rem; }
.mindfeeder-calendar .fc .fc-toolbar {
  padding: .5rem .75rem;
  border-radius: 4px;
  margin-bottom: .5rem;
}
/* Prevent Elementor/Theme from styling links/buttons */
.mindfeeder-calendar .fc a { text-decoration: none !important; color: inherit !important; box-shadow: none !important; }
.mindfeeder-calendar .fc .fc-button { border: none !important; box-shadow: none !important; text-decoration: none !important; }
.mindfeeder-calendar .fc .fc-button:focus { outline: none !important; box-shadow: none !important; }
.mindfeeder-calendar .fc .fc-daygrid-event { white-space: normal; }

/* Mobile-friendly header sizing */
@media (max-width: 640px) {
  .mindfeeder-calendar .fc .fc-toolbar-title { font-size: 1.05rem; text-align: center; }
  .mindfeeder-calendar .fc .fc-button { font-size: 0.85rem; padding: .25rem .5rem; }
  .mindfeeder-calendar .fc .fc-toolbar-chunk { display: flex; align-items: center; }
}

/* Modal & lightbox */
.mfcal-no-scroll, .mfcal-no-scroll body { overflow: hidden !important; }
#mfcal-modal-root { /* z-index + position set via JS */ }
.mfcal-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(20,22,26,.72);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.mfcal-modal {
  background: #fff; color: #111; border-radius: 12px;
  width: min(760px, 100%);
  max-height: 90vh; overflow: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
  position: relative;
}
.mfcal-modal-close {
  position: sticky; top: 0; margin-left: auto;
  display: block; border: 0; background: transparent; font-size: 2rem; line-height: 1;
  padding: .25rem .75rem; cursor: pointer; color: #555;
}
.mfcal-modal-close:hover { color: #000; }
.mfcal-modal-content { padding: 10px 20px 20px 20px; }
.mfcal-modal-title { margin: 0 0 .375rem 0; font-size: 1.5rem; line-height: 1.25; }
.mfcal-modal-when { margin-bottom: .25rem; font-weight: 600; }
.mfcal-modal-loc { margin-bottom: .5rem; }
.mfcal-modal-desc { margin-top: .25rem; line-height: 1.5; }
.mfcal-modal-desc a { text-decoration: underline; word-break: break-word; }
.mfcal-modal-images { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
.mfcal-modal-images img { width: 100%; height: auto; display: block; border-radius: 8px; }
@media (min-width: 640px) {
  .mfcal-modal-images { grid-template-columns: 1fr 1fr; }
}

/* Fullscreen Lightbox (above modal) */
.mfcal-lightbox-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.92);
  display: flex; align-items: center; justify-content: center;
}
.mfcal-lightbox {
  position: relative; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 0 48px;
}
.mfcal-lightbox-img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  border-radius: 4px;
}
.mfcal-lightbox-close, .mfcal-lightbox-prev, .mfcal-lightbox-next {
  position: absolute; z-index: 2;
  background: rgba(0,0,0,.6); color: #fff; border: none; cursor: pointer;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: 999px; font-size: 24px; line-height: 1;
}
.mfcal-lightbox-close { top: 16px; right: 16px; }
.mfcal-lightbox-prev { left: 16px; }
.mfcal-lightbox-next { right: 16px; }
.mfcal-lightbox-prev:hover, .mfcal-lightbox-next:hover, .mfcal-lightbox-close:hover { background: rgba(0,0,0,.85); }
