/* ------------------------
   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;
}

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

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

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

.stg-excerpt {
  margin: 0;
}

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

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

/* ------------------------
   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: rgba(0, 0, 0, .6);
  z-index: 9999;
  overflow-y: auto; /* enige scrollbar */
  -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: 800px;
  width: 100%;
  border-radius: 16px;
  position: relative;
  box-sizing: border-box;
  margin: 40px auto;
}

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

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

#stg-modal-title {
	margin-bottom: 15px;
}

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

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

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

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

.stg-modal-text {
  text-align: left;
}

/* 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;
}
