/* === Kaart === */
.rw-team-card{
  position:relative;
  width:100%;
  max-width:820px;
  aspect-ratio:4/5;
  background:#122020;
  overflow:hidden;
  border-radius:10px;
  color:#fff;
  font-family:system-ui,sans-serif;
  border: 2px solid rgba(255, 255, 255, 0.15);
}
.rw-card-inner{ position:relative; width:100%; height:100%; }

/* === Foto === */
.rw-image-wrapper{
  position:absolute;
  inset:0;
  overflow:hidden;
  transition:all .6s ease;
  z-index:4;
}
.rw-photo{
  position:absolute;
  top:50%;
  left:50%;
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  transform:translate(-50%, -50%);
  transition:transform .6s ease, width .6s ease, height .6s ease;
  display:block;
}

/* === Naam overlay (nu apart van foto) === */
.rw-name-overlay{
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  background:linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.35) 40%, transparent 80%);
  padding:2rem 2rem 1.5rem;
  transition:opacity .4s ease, transform .5s ease;
  z-index:5;
}
.rw-name-static{
  font-size:2.4rem;
  font-weight:700;
  color:#fff;
}
.rw-role-static{
  font-size:1.05rem;
  color:rgba(255,255,255,0.85);
  margin-bottom:20px ;
  letter-spacing:0.3px;
}
.rw-team-card.active .rw-name-overlay{
  opacity:0;
  transform:translateY(20px);
}
/* === Info === */
.rw-info{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:2rem;
  opacity:0;
  pointer-events:none;
  transition:opacity .6s ease;
  z-index:7; /* hoger dan miniature image wrapper */
}
.rw-textblock{
  position:relative;
  z-index:8;
  transform:translateY(30px);
  transition:transform .6s ease;
  margin-bottom:60px;
}
.rw-team-card.active .rw-textblock{ transform:translateY(0); }

.rw-name{ font-size:2.5rem; }
.rw-role{ font-size:1rem; color:#cbd5d6; margin:0 0 1.2rem; }
.rw-desc{ color:#c6d1d3; font-size:1rem; line-height:1.5; margin-bottom:1.5rem; }

/* LinkedIn: grotere hit-area en betrouwbare hover */
.rw-linkedin{
  --rw-li-size: 28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:calc(var(--rw-li-size) + 10px);
  height:calc(var(--rw-li-size) + 10px);
  border-radius:10px;
  color:#fff;
  opacity:.9;
  transition:background .25s ease, color .25s ease, opacity .25s ease, transform .2s ease;
  pointer-events:auto;
  position:relative;
  z-index:9;
}
.rw-li-svg{
  width:var(--rw-li-size);
  height:var(--rw-li-size);
  display:block;
}
.rw-linkedin:hover{
  background:rgba(255,255,255,.12);
  color:#E8F764;
  opacity:1;
  transform:translateY(-1px);
}

/* === Buttons === */
.rw-toggle-btn{
  position:absolute;
  background:rgba(0,0,0,.35);
  border:none;
  width:62px;
  height:62px;
  border-radius:8px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:background .3s, transform .3s;
  z-index:10;
}
.rw-toggle-btn:hover{ background:rgba(255,255,255,.25); transform:scale(1.05); }
.rw-plus{ top:1rem; right:1rem; }
.rw-minus{ top:1rem; left:1rem; display:none; }

/* === Active state === */
.rw-team-card.active .rw-image-wrapper{
  width:140px;
  height:140px;
  top:1.5rem;
  right:1.5rem;
  left:auto;
  bottom:auto;
  border-radius:10px;
  overflow:hidden;
  pointer-events:none;
  z-index:6;
}
.rw-team-card.active .rw-photo{
  width:100%;
  height:100%;
  object-fit:cover;
  transform:translate(-50%, -50%);
}

.rw-team-card.active .rw-info{ opacity:1; pointer-events:auto; }
.rw-team-card.active .rw-plus{ display:none; }
.rw-team-card.active .rw-minus{ display:flex; }




/* ===========================
   MOBILE OVERRIDES
=========================== */
@media (max-width: 767px) {

  .rw-textblock{
    margin-bottom: 0;
  }

  .rw-desc{
    margin-bottom: 1.5rem;
  }

  .rw-name{
    font-size: 1.9rem;
  }

  .rw-role{
    font-size: 0.9rem;
  }

  .rw-info{
    padding: 1.3rem;
  }

  .rw-team-card.active .rw-image-wrapper{
    width: 100px;
    height: 110px;
  }

}