.team-grid {
	overflow: scroll;
	padding: 0 15rem;
}
/* Frontend horizontal scroll layout */
.team-grid {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	width: max-content;
    align-items: center;
	margin-top: -50px;
	overflow: hidden;
}



.wp-block-mytheme-team-block {
  overflow: hidden;
  position: relative;
}


.wp-block-group.team-member-info {
    display: none;
}

/* Team Member Card */
.team-member {
    width: 140px;
    position: relative;
}

.team-member:after {
    position: absolute;
    width: 100%;
    height: 100%;
    display: block;
    content: "";
    top: 0;
    left: 0;
    z-index: 10;
}
.team-member .figure-wrapper figure img {
    object-fit: contain;
    min-width: 400px;
    margin-left: -130px;
    height: 100%;
    width: 400px;
}
.team-member-info {
/*     position: absolute;
    top: 0;
    z-index: 10;
    transform: scale(0.1); */
}

/* Inspringen */
/* .team-grid > div:nth-of-type(8n+1) {
}

.team-grid > div:nth-of-type(8n+2) {
    margin-top: 50px;
}
.team-grid > div:nth-of-type(8n+3) {
    margin-top: 50px;
}
.team-grid > div:nth-of-type(8n+4) {
    margin-top: 75px;
}

.team-grid > div:nth-of-type(8n+5) {
}

.team-grid > div:nth-of-type(8n+6) {
    margin-top: 50px;
}
.team-grid > div:nth-of-type(8n+7) {
    margin-top: 50px;
}
.team-grid > div:nth-of-type(8n+8) {
    margin-top: 75px;
}
 */


/* Your existing hover effects */
.team-member .figure-wrapper figure:last-of-type {
    position: absolute;
    top: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.wp-block-group.figure-wrapper figure {
    margin-top: 0;
}

.team-member:hover .wp-block-group.figure-wrapper figure:last-of-type {
    opacity: 1;
}

/* Smooth scrolling for manual interaction */
.wp-block-mytheme-team-block {
  cursor: grab;
  user-select: none;
}

.wp-block-mytheme-team-block:active {
  cursor: grabbing;
}

/* Hide scrollbar but keep functionality */
.wp-block-mytheme-team-block::-webkit-scrollbar {
  display: none;
}

.wp-block-mytheme-team-block {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* GSAP */
/* Cursor */
.cursor {
    z-index: 1000;
    background-color: var(--wp--preset--color--accent-1);
    pointer-events: none;
    color: #fff;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    transition: opacity .2s;
    position: fixed;
    inset: 0% auto auto 0%;
}

.cursor-paragraph {
    margin: 0px;
}

.cursor-paragraph span {
    color: var(--wp--preset--color--accent-6);
}

/* Show cursor only when hovering over team members with content AND inside team grid */
body:has(.team-member:hover) .cursor:not([data-hidden="true"]) {
	opacity: 1;
}

/* Hide cursor by default and when no content */
.cursor:empty,
.cursor[data-empty="true"],
.cursor[data-hidden="true"] {
	opacity: 0 !important;
}


/* Team members custom */
.team-member:nth-of-type(1) {
    margin-bottom: -70px;
    margin-right: -23px;
}

.team-member:nth-of-type(2) {
    z-index: 1;
    margin-bottom: -150px;
}


.team-member:nth-of-type(3) {
    margin-bottom: -30px;
}

.team-member:nth-of-type(4) {
    margin-bottom: -100px;
    z-index: 1;
    margin-left: -35px;
}


.team-member:nth-of-type(5) {
    margin-top: 0;
    margin-e]: 20px;
    margin-left: -30px;
}

.team-member:nth-of-type(6) {
}

.team-member:nth-of-type(7) {
    margin-bottom: -100px;
    margin-left: -30px;
    z-index: 1;
}

.team-member:nth-of-type(8) {
    margin-bottom: -30px;
}

.team-member:nth-of-type(9) {
    margin-left: 40px;
    z-index: 1;
}

.team-member:nth-of-type(10) {
    margin-left: 0;
}

.team-member:nth-of-type(11) {
    margin-left: -20px;
    z-index: 1;
    margin-bottom: -100px;
}


.team-member:nth-of-type(12) {
    margin-left: -15px;
}


.team-member:nth-of-type(13) {
    margin-left: -50px;
    margin-bottom: -50px;
}


.team-member:nth-of-type(14) {
    margin-bottom: -110px;
    margin-left: 50px;
}


.team-member:nth-of-type(15) {
    margin-bottom: -60px;
    margin-left: -55px;
    z-index: 1;
}


.team-member:nth-of-type(16) {
    margin-left: -50px;
}


.team-member:nth-of-type(17) {
    margin-bottom: -60px;
    margin-left: -15px;
    z-index: 1;
}


.team-member:nth-of-type(19) {
    margin-bottom: -90px;
}

.team-member:nth-of-type(20) {
    margin-bottom: -60px;
    margin-left: 25px;
}
.team-member:nth-of-type(21) {
    margin-bottom: -50px;
    margin-left: -5px;
}

.team-member:nth-of-type(22) {
    margin-bottom: -100px;
    margin-left: 40px;
    z-index: 1;
}

.team-member:nth-of-type(23) {
    margin-left: -35px;
}

.team-member:nth-of-type(24) {
    margin-left: -20px;
    margin-bottom: -30px;
}

.team-member:nth-of-type(25) {
    margin-bottom: -170px;
    z-index: 1;
    margin-left: 50px;
}

.team-member:nth-of-type(26) {
    margin-left: -40px;
    margin-top: -30px;
}


.team-member:nth-of-type(27) {
    margin-left: -10px;
    margin-bottom: -30px;
}

.team-member:nth-of-type(28) {
    margin-bottom: -100px;
    z-index: 1;
}

.team-member:nth-of-type(29) {
    margin-bottom: -70px;
    margin-left: -30px;
}

.team-member:nth-of-type(30) {
    margin-left: -20px;
    margin-bottom: -140px;
}

.team-member:nth-of-type(31) {
    margin-bottom: -40px;
    margin-left: 50px;
}

.team-member:nth-of-type(32) {
    margin-bottom: -90px;
    margin-left: -30px;
    z-index: 1;
}

.team-member:nth-of-type(33) {
    margin-bottom: -20px;
    margin-left: -40px;
}


.team-member:nth-of-type(34) {
    margin-bottom: -150px;
    z-index: 1;
    margin-left: -50px;
}

.team-member:nth-of-type(35) {
    margin-bottom: -145px;
    margin-left: 30px;
}

.team-member:nth-of-type(36) {
    margin-bottom: -70px;
}
.team-member:nth-of-type(37) {
    margin-left: -20px;
}
.team-member:nth-of-type(38) {
    margin-left: -50px;
    margin-bottom: -70px;
    z-index: 1;
}
.team-member:nth-of-type(39) {
    margin-left: -20px;
    margin-bottom: -60px;
    margin-right: -20px;
}


.team-member:nth-of-type(41) {
    margin-left: -20px;
}

.team-member:nth-of-type(42) {
    margin-bottom: -20px;
    margin-left: -30px;
}






