/* --- Hoofdstuk acht: sponsors ---------------------------------------------- */
.so-sponsors {
  background: linear-gradient(180deg, transparent, rgba(214, 162, 58, 0.08));
}
.so-sponsors__inner { text-align: center; }
.so-sponsors__intro {
  max-width: 560px;
  margin: 14px auto 0;
}

/* Logogrid: 3 kolommen, vierkante witte tegels */
.so-sponsors__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 760px;
  margin: 36px auto 0;
}
.so-sponsors__grid > .wp-block-image,
.so-sponsors__grid > .wp-block-image > a,
.so-sponsors__item {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border-gold-soft);
  background: #fff;
  padding: 20px;
  overflow: hidden;
  min-width: 0;
}
.so-sponsors__grid > .wp-block-image { margin: 0; }
.so-sponsors__grid > .wp-block-image > a { border: none; padding: 0; background: none; border-radius: 0; aspect-ratio: auto; width: 100%; height: 100%; transition: transform 0.16s ease; }
.so-sponsors__grid > .wp-block-image > a:hover { transform: scale(1.04); }
.so-sponsors__grid > .wp-block-image > a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.so-sponsors__grid > .wp-block-image figcaption { display: none; }
.so-sponsors__grid > .wp-block-image img,
.so-sponsors__logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.so-sponsors__cta { margin-top: 26px; }

@media (max-width: 560px) {
  .so-sponsors__grid { grid-template-columns: 1fr 1fr; }
}


/* In de editor: het logogrid krijgt dezelfde tegels; het "+"-blok om een logo toe te voegen past ook in het raster */
.so-sponsors__grid > .block-editor-inner-blocks,
.so-sponsors__grid > .block-editor-inner-blocks > .block-editor-block-list__layout { display: contents; }
.so-sponsors__grid .block-editor-block-list__layout > .wp-block-image {
  aspect-ratio: 1 / 1; margin: 0; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border-gold-soft); background: #fff; padding: 20px; overflow: hidden; min-width: 0;
}
.so-sponsors__grid .block-editor-block-list__layout > .wp-block-image > * { width: 100% !important; height: 100% !important; max-width: 100%; max-height: 100%; display: flex; align-items: center; justify-content: center; }
.so-sponsors__grid .block-editor-block-list__layout > .wp-block-image img { width: 100% !important; height: 100% !important; max-width: 100%; max-height: 100%; object-fit: contain; }
.so-sponsors__grid .block-editor-block-list__layout > .wp-block-image figcaption { display: none; }
.so-sponsors__grid > .block-editor-inner-blocks .block-list-appender { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; border: 1.5px dashed var(--border-gold); border-radius: 14px; }
