html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
  font-size: 14px;
}

html {
  scroll-behavior: smooth;
}

#calendar {
  max-width: 1100px;
  margin: 40px auto;
}

/* Aanpassingen voor mobiel */
@media (max-width: 600px) {
  #calendar {
    max-width: none;
    width: 100%;
    height: 500px;
    margin: 20px auto;
  }

  .fc-toolbar-title {
    font-size: 1.25rem;
  }
}

/* Algemene event stijlen */
.fc-event-title,
.fc-event .subline {
  display: block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.fc-event-title {
  margin-left: 0.5rem;
  font-size: 1em;
  font-weight: bold;
}

.fc-event .subline {
  margin-left: 0.5rem;
  font-size: 0.7em;
  margin-top: 2px;
}

/* Event aanpassingen voor maandweergave */
.fc-daygrid-event {
  height: auto !important;
  min-height: 45px;
  padding: 2px 5px;
}

/* Custom event container die zorgt voor verticale plaatsing */
.custom-event-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
}

/* Modal stijlen */
.modal-content {
  background: white;
  padding: 1.5rem;
  margin: 10% auto;
  max-width: 600px;
  border-radius: 0.5rem;
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
}

.modal.show {
  display: flex !important;
  justify-content: center;
  align-items: center;
}

.modal .close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

/* WhatsApp modal stijlen */
.whatsapp-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.whatsapp-modal-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  max-width: 400px;
  width: 90%;
}

/* Gallery class: make it free untill it comes into view. */
.gallery { content-visibility: auto; contain-intrinsic-size: 1200px; }

/* Houd de avatar-wrapper ALTÍJD vierkant (Tailwind 2.x compatibel) */
/* Foto is vierkant op mobiel, full-height kolom op desktop */
/* Foto-kolom: vaste breedte, volle kaart-hoogte op ALLE schermen */
.team-pic{
  position: relative;
  flex: 0 0 9rem;   /* vaste kolombreedte op mobile */
  width: 9rem;
  height: auto;     /* hoogte volgt de kaart */
  align-self: stretch;  /* forceer meerekken met kaarthoogte */
  overflow: hidden;
}

@media (min-width:768px){
  .team-pic{
    flex-basis: 12rem;  /* bredere kolom op desktop */
    width: 12rem;
  }
}

/* Afbeelding moet de hele kolom vullen */
.team-pic > img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

