/* Tredmolen Extra's — stijlen. Plugin uitzetten = alles terug. */

/* ---- Oude pijltjes 'Vorige/Volgende' en 'door <auteur>' verbergen ---- */
.post-navigation-link-previous,
.post-navigation-link-next,
.wp-block-post-author-name {
  display: none !important;
}

/* ---- Knoppenrij, altijd in beeld (sticky) ---- */
.tm-toolbar {
  position: sticky;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin: 2.5rem auto 0;
  padding: 0.8rem 1rem;
  border-top: 1px solid #ddd;
  max-width: 620px;
  background: #fafaf8;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}
@media (max-width: 600px) {
  .tm-toolbar { gap: 0.4rem; padding: 0.5rem 0.6rem; }
  .tm-toolbar .tm-btn { font-size: 0.85rem; padding: 0.4rem 0.8rem; }
}
.tm-btn {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.5rem 1.1rem;
  border: 1px solid #1a1a1a;
  border-radius: 0.3rem;
  background: #fff;
  color: #1a1a1a;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
}
.tm-btn:hover { background: #1a1a1a; color: #fff; }
.tm-info {
  display: inline-block;
  width: 1.15rem;
  height: 1.15rem;
  line-height: 1.15rem;
  text-align: center;
  border: 1px solid #888;
  border-radius: 50%;
  font-size: 0.7rem;
  font-style: italic;
  font-family: Georgia, serif;
  color: #555;
  cursor: pointer;
  user-select: none;
}
.tm-note {
  flex-basis: 100%;
  font-size: 0.85rem;
  color: #555;
  background: #f6f6f4;
  border-radius: 0.3rem;
  padding: 0.7rem 0.9rem;
  margin: 0;
}

/* ---- 'Meer'-lijst: titels + datum binnen de rubriek ---- */
.tm-meer-panel {
  flex-basis: 100%;
  margin: 0;
  padding: 0.4rem 0 0;
  max-height: 45vh;
  overflow-y: auto;
}
.tm-meer-panel h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666;
  margin: 0.4rem 0;
}
.tm-meer-panel ul { list-style: none; margin: 0; padding: 0; }
.tm-meer-panel li { margin: 0; padding: 0; }
.tm-meer-panel a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  padding: 0.45rem 0.5rem;
  text-decoration: none;
  color: #1a1a1a;
  border-bottom: 1px solid #eee;
}
.tm-meer-panel a:hover { background: #f2f2ef; }
.tm-meer-panel .tm-date {
  flex-shrink: 0;
  font-size: 0.8rem;
  color: #888;
}
.tm-meer-panel .tm-current {
  font-style: italic;
  color: #888;
  pointer-events: none;
}


/* ---- Kleinere kopfoto op de homepage ---- */
.home img.wp-image-11 { width: 500px !important; max-width: 100%; height: auto; }

/* ---- Rubrieken-carrousel op de homepage (uniforme foto's) ---- */
.tm-caro {
  position: relative;
  max-width: 1180px;
  margin: 0 auto 2.5rem;
  padding: 0 3.2rem;
  box-sizing: border-box;
}
.tm-caro-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.tm-caro-track::-webkit-scrollbar { display: none; }
.tm-caro-card {
  flex: 0 0 calc((100% - 2rem) / 3);
  scroll-snap-align: start;
  text-align: center;
  text-decoration: none;
  color: inherit;
}
.tm-caro-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.3rem;
  display: block;
}
.tm-caro-card .tm-caro-name { margin-top: 0.55rem; font-size: 1rem; }
.tm-caro-card:hover .tm-caro-name { text-decoration: underline; }
.tm-caro-btn {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid #1a1a1a;
  border-radius: 50%;
  background: #fff;
  color: #1a1a1a;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.tm-caro-btn:hover { background: #1a1a1a; color: #fff; }
.tm-caro-btn--prev { left: 0.2rem; }
.tm-caro-btn--next { right: 0.2rem; }
@media (max-width: 700px) {
  .tm-caro { padding: 0 2.6rem; }
  .tm-caro-card { flex-basis: 85%; }
}

/* ---- puntjes op de i: lange streep op de homepage weg ---- */
.home hr.wp-block-separator.is-style-wide { display: none; }

/* ---- puntjes op de i: rubrieksnaam gecentreerd, cursief, iets kleiner ---- */
h1.wp-block-query-title {
  text-align: center;
  font-style: italic;
  font-size: 1.5rem;
}

/* ---- Rubrieksfoto's ---- */
.tm-cat-photo {
  text-align: center;
  margin: 1.5rem auto;
  max-width: 760px;
}
.tm-cat-photo img {
  max-width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: 0.3rem;
}
.tm-cat-photo--meer { margin: 0.6rem auto 0.2rem; }
.tm-cat-photo--meer img { max-height: 140px; width: 100%; }

/* ---- Formulier 'Rechten verwerven' (modaal) ---- */
.tm-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}
.tm-modal {
  background: #fff;
  border-radius: 0.4rem;
  padding: 1.6rem;
  max-width: 26rem;
  width: calc(100% - 2rem);
  max-height: 85vh;
  overflow-y: auto;
}
.tm-modal h2 { margin: 0 0 0.4rem; font-size: 1.2rem; }
.tm-modal p.tm-small { font-size: 0.85rem; color: #555; margin: 0 0 1rem; }
.tm-modal label { display: block; font-size: 0.9rem; margin: 0.7rem 0 0.2rem; }
.tm-modal input, .tm-modal textarea {
  width: 100%; box-sizing: border-box;
  padding: 0.45rem; font-family: inherit; font-size: 0.95rem;
  border: 1px solid #bbb; border-radius: 0.25rem;
}
.tm-modal .tm-modal-actions { margin-top: 1.2rem; display: flex; gap: 0.6rem; }

/* ---- Herbruikbare gedicht-opmaak (briefing punt 11) ---- */
.gedicht {
  white-space: pre-wrap;
  font-family: inherit;
  line-height: 1.75;
  margin: 1.5rem auto;
  max-width: 34rem;
}
