/* ------------------------
   Grid
------------------------- */
.stg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.stg-card {
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
  margin-bottom: 50px;
}

/* Foto rechts in de card */
.stg-photo {
  display: flex;
  justify-content: flex-end;
}

.stg-photo img {
  border-radius: 50%;
  width: 100px;
  height: 100px;
  object-fit: cover;
  margin-bottom: 10px;
  margin-left: auto;
  margin-top: -50px;
}

.stg-title {
  margin: 10px 0 15px;
  display: block;
  font-weight: 600;
  font-size: 22px;
  line-height: 25px;
  color: #066164;
}

.stg-person {
  margin: 8px 0 10px;
  color: #066164;
}

.stg-person-name {
  font-weight: 600;
  color: #066164;
}

.stg-person-role {
  opacity: .75;
  font-size: 14px;
  line-height: 20px;
  color: #066164;
}

.stg-excerpt {
  margin: 0;
  color: #066164;
}

/* + knop rechts (zet 'm desnoods ook align-self) */
.stg-read-more {
  margin-top: 0;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 30px !important;
  line-height: 1;
  /* optioneel: rechts uitlijnen */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #00B1BF !important;
}

.stg-read-more:hover {
  background: none;
  color: #066164 !important;
}

.stg-play-button {
  font-size: 30px !important;
}

.stg-button-text {
  font-size: 16px !important;
  font-weight: 500;
  line-height: 1;
  margin-left: 4px;
  vertical-align: middle;
}

/* ------------------------
   Modal behavior: 1 scrollbar only
   - Overlay scrolt
   - Pagina erachter locked
------------------------- */

/* Lock scroll op zowel html als body */
html.stg-modal-open,
body.stg-modal-open {
  overflow: hidden !important;
  height: 100% !important;
}

/* Overlay is de enige scroll-container */
.stg-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 177, 191, 0.4);
  z-index: 9999;
  /* De pagina achter de popup blijft geblokkeerd */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 40px 15px;
  box-sizing: border-box;
}

.stg-overlay.active {
  display: block;
}

/* Modal zelf scrollt NIET */
.stg-modal {
  background: #fff;
  padding: 30px;
  max-width: 650px;
  width: 90%;
  height: auto;
  max-height: none;
  border-radius: 16px;
  position: relative;
  box-sizing: border-box;
  margin: 10px auto 40px;
}

.stg-modal iframe {
  display: block !important;
  border: none !important;
  width: 300px !important;
  height: 533px !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}

/* =========================================
   YOUTUBE VIDEO IN POPUP
========================================= */

/* WordPress YouTube embed */
.stg-modal .wp-block-embed {
  margin: 20px 0 10px 0 !important;
  padding: 0 !important;
}

/* Wrapper rond de iframe */
.stg-modal .wp-block-embed__wrapper {
  position: relative !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Belangrijk: WordPress 16:9 truc uitschakelen */
.stg-modal .wp-block-embed__wrapper::before {
  display: none !important;
  content: none !important;
  padding: 0 !important;
}

/* YouTube iframe */
.stg-modal .wp-block-embed iframe {
  position: relative !important;
  display: block !important;
  width: 360px !important;
  height: 640px !important;
  max-width: 100% !important;
  max-height: none !important;
  margin: 20px auto 10px auto !important;
  border: none !important;
}


/* =========================================
   ANDERE MOGELIJKE EMBED-WRAPPERS
========================================= */

.stg-modal .wp-block-embed__wrapper iframe {
  position: relative !important;
}

/* Close button */
.stg-close {
  position: absolute;
  top: 0px;
  right: 10px;
  font-size: 40px !important;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  color: #00B1BF !important;
}

.stg-close:hover {
  background: none;
  color: #066164 !important;
}

#stg-modal-title {
  margin-bottom: 15px;
  display: block;
  font-weight: 600;
  font-size: 28px;
  line-height: 30px;
  color: #066164;
}

/* Modal content: naam/functie onderaan */
.stg-modal-person {
  margin: 6px 0 0;
  text-align: center;
  color: #066164;
}

.stg-modal-person-name {
  font-weight: 600;
  color: #066164;
}

.stg-modal-person-role {
  opacity: .75;
  font-size: 14px;
  line-height: 20px;
  color: #066164;
}

.stg-modal-person-bottom {
  margin-top: 12px;
}

.stg-modal-text {
  text-align: left;
  color: #066164;
}

/* Foto onderaan (geforceerd centreren) */
.stg-modal-photo {
  margin-top: 25px;
}

.stg-modal-photo img {
  display: block !important;
  margin: 0 auto !important;
  float: none !important;
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
}

/* Nettere spacing voor WP content in modal */
#stg-modal-content p:first-child {
  margin-top: 0;
}
#stg-modal-content p:last-child {
  margin-bottom: 0;
}

/* Shortcode kolommen */
.stg-grid.stg-columns-1 {
  grid-template-columns: 1fr;
}

.stg-grid.stg-columns-2 {
  grid-template-columns: repeat(2, 1fr);
}

.stg-grid.stg-columns-3 {
  grid-template-columns: repeat(3, 1fr);
}

.stg-grid.stg-columns-4 {
  grid-template-columns: repeat(4, 1fr);
}

.stg-grid.stg-columns-5 {
  grid-template-columns: repeat(5, 1fr);
}

.stg-grid.stg-columns-6 {
  grid-template-columns: repeat(6, 1fr);
}


/* Op kleinere schermen automatisch minder kolommen */

@media (max-width: 900px) {

  .stg-grid.stg-columns-4,
  .stg-grid.stg-columns-5,
  .stg-grid.stg-columns-6 {
    grid-template-columns: repeat(2, 1fr);
  }

}


@media (max-width: 600px) {

  .stg-grid.stg-columns-2,
  .stg-grid.stg-columns-3,
  .stg-grid.stg-columns-4,
  .stg-grid.stg-columns-5,
  .stg-grid.stg-columns-6 {
    grid-template-columns: 1fr;
  }

