.ld-scrolljack-container {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%); /* Break out of .wrap constraints to be full width */
  margin-right: calc(-50vw + 50%);
}

.ld-carousel-sticky {
  position: sticky;
  top: 80px; /* offset for nav */
  width: 100%;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow: hidden;
  perspective: 1200px;
}

.ld-sticky-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ld-carousel-track {
  position: relative;
  width: 100%;
  height: clamp(340px, 60vh, 500px); /* Responsive height */
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
}

.ld-carousel-draggable {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
}

.ld-carousel-card {
  position: absolute;
  /* Use responsive width and aspect ratio instead of fixed px */
  width: clamp(240px, 65vw, 300px);
  aspect-ratio: 280 / 400;
  background: #fff;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  will-change: transform, opacity, filter;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transform-origin: center center;
}

/* Full Width Image */
.ld-card-img-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #f4f6f9;
}

.ld-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* MODAL */
.ld-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
}

.ld-modal-container {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 90vw;
  max-width: 800px;
  height: auto;
  max-height: 85vh;
  background: #fff;
  border-radius: 24px;
  z-index: 10000;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.ld-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #111;
  z-index: 10;
  transition: background 0.2s;
}

.ld-modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.ld-modal-content {
  display: flex;
  flex-direction: row;
  height: 100%;
  width: 100%;
}

.ld-modal-img-wrap {
  flex: 0 0 45%;
  background: #f4f6f9;
  aspect-ratio: 280 / 400;
}

.ld-modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.ld-modal-info {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  min-width: 0;
  box-sizing: border-box;
}

.ld-modal-info h3 {
  font-size: 2rem;
  margin: 0;
  color: #111;
  font-weight: 800;
  line-height: 1.1;
}

.ld-modal-role {
  color: var(--blue, #0055FF);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 10px 0 24px 0;
}

.ld-modal-bio {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #444;
  font-style: italic;
  border-left: 3px solid var(--blue, #0055FF);
  padding-left: 16px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .ld-carousel-sticky {
    top: 60px;
  }
  .ld-carousel-card {
    /* Larger relative width on mobile for zoomed-in look */
    width: clamp(260px, 75vw, 350px);
  }
  .ld-carousel-track {
    height: clamp(380px, 65vh, 520px);
  }
  .ld-modal-container {
    border-radius: 16px;
    width: 92vw;
  }
  .ld-modal-content {
    flex-direction: column;
    overflow-y: auto;
  }
  .ld-modal-img-wrap {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 280 / 400;
    height: auto;
  }
  .ld-modal-info {
    padding: 24px;
    flex: 1 1 auto;
    overflow-y: visible;
  }
  .ld-modal-info h3 {
    font-size: 1.5rem;
  }
  .ld-modal-role {
    font-size: 1rem;
    margin: 8px 0 16px 0;
  }
  .ld-modal-bio {
    font-size: 1rem;
  }
}
