/* LMYC — Our Team interactive grid + profile modal */

.lmyc-team-intro {
  padding: clamp(1.75rem, 3vw, 2.5rem) 0 clamp(0.35rem, 0.8vw, 0.65rem);
  background: #fdf8f2;
}

.lmyc-team-intro .lmyc-star-divider {
  margin-bottom: 0.55rem;
}

#shopify-section-our-team {
  background: #fdf8f2;
}

.lmyc-team-intro .page-width {
  max-width: min(var(--page-width), 118rem);
}

.lmyc-team-intro__inner {
  max-width: min(100%, 72rem);
  margin: 0 auto;
  text-align: center;
}

.lmyc-team-intro__eyebrow,
.lmyc-team-intro__title.main-subheading,
.lmyc-team-intro__title.lmyc-pink-eyebrow {
  margin: 0 auto 0.15rem;
  color: #D18E95 !important;
  letter-spacing: 0.18em;
  text-align: center;
  border-bottom: none !important;
  max-width: none;
  width: auto;
}

@media screen and (min-width: 992px) {
  .lmyc-team-intro__title.main-subheading,
  .lmyc-team-intro__title.lmyc-pink-eyebrow {
    white-space: nowrap;
  }
}

.lmyc-team-intro__ornament {
  display: none;
}

.lmyc-team-intro__lead {
  margin: 0;
  font-family: var(--font-heading-family);
  font-size: clamp(2rem, 3.2vw, 2.85rem);
  font-weight: var(--font-heading-weight);
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: #303d1c;
}

.lmyc-team-intro__lead em {
  font-style: italic;
  color: #425936;
}

/* Careers — already certified teachers */
.lmyc-team-careers {
  padding: clamp(1.25rem, 2.5vw, 2rem) 0 clamp(2rem, 3.5vw, 3rem);
  background: #fdf8f2;
}

.lmyc-team-careers .page-width {
  max-width: min(var(--page-width), 118rem);
  display: flex;
  justify-content: center;
}

.lmyc-team-careers__panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  max-width: min(100%, 44rem);
  margin: 0 auto;
  padding: clamp(1.25rem, 2.2vw, 1.65rem) clamp(1.35rem, 2.5vw, 1.85rem);
  border-radius: 1.15rem;
  background: linear-gradient(135deg, #425936 0%, #35482c 100%);
  border: 2px solid rgba(247, 226, 197, 0.35);
  box-shadow: 0 12px 32px rgba(46, 61, 40, 0.16);
  text-align: center;
}

.lmyc-team-careers__copy {
  min-width: 0;
}

.lmyc-team-careers__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-heading-family);
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-weight: 500;
  line-height: 1.25;
  color: #fff;
}

.lmyc-team-careers__text {
  margin: 0;
  max-width: none;
  font-size: clamp(1rem, 1.45vw, 1.12rem);
  line-height: 1.5;
  color: rgba(247, 226, 197, 0.92);
}

.lmyc-team-careers__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  flex-shrink: 0;
  min-height: 3.15rem;
  padding: 0.75rem 1.45rem;
  border-radius: 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #425936;
  background: #f7e2c5;
  border: 2px solid #f7e2c5;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

@media screen and (min-width: 640px) {
  .lmyc-team-careers__panel {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.15rem 1.5rem;
    max-width: min(100%, 52rem);
    text-align: left;
  }

  .lmyc-team-careers__btn {
    align-self: center;
    white-space: nowrap;
  }
}

.lmyc-team-careers__btn:hover,
.lmyc-team-careers__btn:focus-visible {
  color: #303d1c;
  background: #fff;
  border-color: #fff;
  transform: translateY(-2px);
  outline: none;
}

@media screen and (max-width: 700px) {
  .lmyc-team-careers__btn {
    width: 100%;
  }
}

.lmyc-team-page--interactive .lmyc-our-team,
.lmyc-team-page--interactive .lmyc-our-team .page-width,
.lmyc-team-page--interactive .lmyc-team-grid,
.lmyc-team-page--interactive .lmyc-team-grid__row,
.lmyc-team-page--interactive .lmyc-team-card,
.lmyc-team-page--interactive .lmyc-team-card__photo,
.lmyc-team-page--interactive .lmyc-team-card__photo .media-image-column {
  overflow: visible;
}

.lmyc-team-page--interactive .lmyc-our-team .page-width {
  max-width: min(var(--page-width), 147rem);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 2.5vw, 2.5rem);
  padding-right: clamp(1rem, 2.5vw, 2.5rem);
}

.lmyc-team-page--interactive .lmyc-our-team .media-row,
.lmyc-team-page--interactive .lmyc-mentors-more-toggle-wrap,
.lmyc-team-page--interactive .lmyc-mentors-more {
  display: none !important;
}

.lmyc-team-page--interactive .lmyc-our-team {
  padding-top: clamp(0.5rem, 1vw, 0.85rem);
  padding-bottom: clamp(1.75rem, 3vw, 2.75rem);
}

.lmyc-team-page--interactive .lmyc-team-grid {
  margin-top: clamp(0.35rem, 0.8vw, 0.75rem);
  margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
}

.lmyc-team-grid {
  --lmyc-team-gap-row: clamp(2.25rem, 3.5vw, 3.5rem);
  --lmyc-team-gap-col: clamp(2rem, 3.5vw, 3.25rem);
  --lmyc-team-card-max: 30rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--lmyc-team-gap-row);
  max-width: min(100%, 147rem);
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(0.5rem, 1.5vw, 1.5rem);
  box-sizing: border-box;
}

.lmyc-team-grid__row {
  display: grid;
  justify-content: center;
  justify-items: center;
  align-items: start;
  column-gap: var(--lmyc-team-gap-col);
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
}

.lmyc-team-grid__row--3 {
  grid-template-columns: minmax(0, var(--lmyc-team-card-max));
}

.lmyc-team-grid__row--4 {
  grid-template-columns: minmax(0, var(--lmyc-team-card-max));
}

.lmyc-team-card {
  position: relative;
  z-index: 0;
  width: 100%;
  max-width: var(--lmyc-team-card-max);
  margin: 0;
  padding: 1.25rem 0.75rem 1rem;
  box-sizing: border-box;
  text-align: center;
}

.lmyc-team-card:hover,
.lmyc-team-card:focus-within {
  z-index: 2;
}

@media screen and (min-width: 700px) {
  .lmyc-team-grid {
    --lmyc-team-card-max: 28rem;
  }

  .lmyc-team-grid__row--3 {
    grid-template-columns: repeat(2, minmax(0, var(--lmyc-team-card-max)));
  }

  .lmyc-team-grid__row--4 {
    grid-template-columns: repeat(2, minmax(0, var(--lmyc-team-card-max)));
  }
}

@media screen and (min-width: 1100px) {
  .lmyc-team-grid {
    --lmyc-team-gap-row: clamp(5rem, 6.5vw, 8rem);
    --lmyc-team-gap-col: clamp(3.5rem, 4.5vw, 5rem);
    --lmyc-team-card-max: 30rem;
  }

  .lmyc-team-grid__row--3 {
    grid-template-columns: repeat(3, minmax(0, var(--lmyc-team-card-max)));
  }

  /* Same card size as top row; wider span uses left/right space */
  .lmyc-team-grid__row--4 {
    grid-template-columns: repeat(4, minmax(0, var(--lmyc-team-card-max)));
  }

  .lmyc-team-card__photo {
    max-width: 28rem;
  }
}

@media screen and (min-width: 1500px) {
  .lmyc-team-grid {
    --lmyc-team-gap-row: clamp(5.5rem, 6vw, 8.5rem);
    --lmyc-team-gap-col: clamp(4rem, 4.5vw, 5.5rem);
    --lmyc-team-card-max: 32rem;
    padding: 0 clamp(1rem, 2vw, 2rem);
  }

  .lmyc-team-card__photo {
    max-width: 30rem;
  }
}

.lmyc-team-grid--measuring .lmyc-team-card {
  opacity: 0;
  pointer-events: none;
}

.lmyc-team-grid--soft-intro .lmyc-team-card {
  opacity: 0;
  transform: translateY(1.75rem) scale(0.96);
  pointer-events: none;
  transition:
    opacity 1.25s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.lmyc-team-grid--soft-intro .lmyc-team-card.is-settled,
.lmyc-team-grid.is-visible .lmyc-team-card.is-settled {
  opacity: 1;
  filter: none;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.lmyc-team-grid.is-visible:not(.lmyc-team-grid--soft-intro) .lmyc-team-card.is-settled {
  will-change: auto;
  animation: lmyc-team-soft-settle 2.6s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes lmyc-team-soft-settle {
  0% {
    transform: translateY(0) scale(1);
  }
  45% {
    transform: translateY(-0.2rem) scale(1.01);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lmyc-team-grid--soft-intro .lmyc-team-card,
  .lmyc-team-grid.is-visible .lmyc-team-card.is-settled {
    filter: none;
    transform: none;
    animation: none;
    transition: opacity 0.35s ease;
  }
}

.lmyc-team-grid.is-visible .lmyc-team-card {
  pointer-events: auto;
}

.lmyc-team-grid.lmyc-reveal,
.lmyc-team-card.lmyc-reveal {
  filter: none !important;
}

.lmyc-team-card__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: center;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.lmyc-team-card__photo {
  position: relative;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  padding: 0.85rem 0.65rem 1.35rem;
  overflow: visible;
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Soft sage bloom behind every blob — same as Marivic / Akaansha */
.lmyc-team-card__photo::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 14%;
  bottom: 4%;
  z-index: 0;
  border-radius: 48% 52% 46% 54% / 42% 48% 52% 58%;
  background: rgba(66, 89, 54, 0.32);
  filter: blur(2.4rem);
  transform: translateY(0.9rem) scale(0.94);
  pointer-events: none;
}

/* Kill legacy .media-with-text image widths on cloned card photos */
.lmyc-team-page--interactive .lmyc-team-card__photo .media-image-column,
.lmyc-team-page--interactive .lmyc-our-team.media-with-text .lmyc-team-card__photo .media-image-column {
  position: relative !important;
  z-index: 1;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  margin: 0 !important;
  overflow: visible !important;
}

.lmyc-team-card__photo .before-media-image {
  display: none;
}

.lmyc-team-card__photo .blob-svg {
  position: relative;
  z-index: 1;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block;
  overflow: visible;
  filter:
    drop-shadow(0 0.45rem 0.7rem rgba(66, 89, 54, 0.18))
    drop-shadow(0 1.25rem 2.6rem rgba(66, 89, 54, 0.24));
  transition: filter 0.35s ease;
}

.lmyc-team-card__photo .blob-svg__shape {
  fill: #ebe6df;
}

.lmyc-team-card__btn:hover .lmyc-team-card__photo,
.lmyc-team-card__btn:focus-visible .lmyc-team-card__photo {
  transform: translateY(-0.28rem);
}

.lmyc-team-card__btn:hover .lmyc-team-card__photo::after,
.lmyc-team-card__btn:focus-visible .lmyc-team-card__photo::after {
  background: rgba(66, 89, 54, 0.38);
  transform: translateY(1.05rem) scale(0.95);
}

.lmyc-team-card__btn:hover .lmyc-team-card__photo .blob-svg,
.lmyc-team-card__btn:focus-visible .lmyc-team-card__photo .blob-svg {
  filter:
    drop-shadow(0 0.6rem 0.95rem rgba(66, 89, 54, 0.22))
    drop-shadow(0 1.65rem 3.2rem rgba(66, 89, 54, 0.3));
}

.lmyc-team-card__name {
  margin: 1.4rem 0 0.35rem;
  font-family: var(--font-heading-family);
  font-size: clamp(2rem, 2.4vw, 2.45rem);
  font-weight: 500;
  line-height: 1.2;
  color: #303d1c;
}

.lmyc-team-card__expertise {
  margin: 0 0 0.55rem;
  padding: 0 0.35rem;
  color: #425936;
}

.lmyc-mentor-expertise {
  margin: 0.4rem 0 1.1rem;
  color: #425936;
}

.lmyc-team-card__hint {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #425936;
  opacity: 0.72;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.lmyc-team-card__hint::after {
  content: "→";
  transition: transform 0.25s ease;
}

.lmyc-team-card__btn:hover .lmyc-team-card__hint,
.lmyc-team-card__btn:focus-visible .lmyc-team-card__hint {
  opacity: 1;
}

.lmyc-team-card__btn:hover .lmyc-team-card__hint::after,
.lmyc-team-card__btn:focus-visible .lmyc-team-card__hint::after {
  transform: translateX(0.2rem);
}

.lmyc-team-card__btn:focus-visible {
  outline: 2px solid #425936;
  outline-offset: 0.35rem;
  border-radius: 1rem;
}

/* Modal */
.lmyc-team-modal[hidden] {
  display: none !important;
}

.lmyc-team-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.lmyc-team-modal.is-closing {
  pointer-events: none;
}

.lmyc-team-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(48, 61, 28, 0.42);
  backdrop-filter: blur(6px);
  opacity: 0;
  animation: lmyc-team-backdrop-in 0.55s ease forwards;
  cursor: pointer;
}

@keyframes lmyc-team-backdrop-in {
  to {
    opacity: 1;
  }
}

.lmyc-team-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 108rem);
  max-height: min(92dvh, 92vh, 100%);
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: #fffef4;
  border-radius: 1.6rem 1.6rem 0 0;
  box-shadow: 0 -1rem 4rem rgba(48, 61, 28, 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  animation: lmyc-team-dialog-up 0.75s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes lmyc-team-dialog-up {
  to {
    transform: translateY(0);
  }
}

.lmyc-team-modal.is-closing .lmyc-team-modal__backdrop {
  animation: lmyc-team-backdrop-out 0.4s ease forwards;
}

.lmyc-team-modal.is-closing .lmyc-team-modal__dialog {
  animation: lmyc-team-dialog-down 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes lmyc-team-backdrop-out {
  to {
    opacity: 0;
  }
}

@keyframes lmyc-team-dialog-down {
  to {
    transform: translateY(100%);
  }
}

.lmyc-team-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #425936;
  cursor: pointer;
  box-shadow: 0 0.4rem 1.2rem rgba(66, 89, 54, 0.12);
  transition: transform 0.2s ease, background 0.2s ease;
}

.lmyc-team-modal__close:hover {
  transform: scale(1.05);
  background: #fff;
}

.lmyc-team-modal__layout {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 0;
  max-height: none;
  overflow: hidden;
}

.lmyc-team-modal__photo {
  position: relative;
  flex: 0 0 auto;
  padding: 1.35rem 1.35rem 0;
  display: flex;
  justify-content: center;
  background: linear-gradient(180deg, rgba(66, 89, 54, 0.06) 0%, transparent 100%);
  overflow: hidden;
}

.lmyc-team-modal__photo::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: 22%;
  bottom: 8%;
  z-index: 0;
  border-radius: 48% 52% 46% 54% / 42% 48% 52% 58%;
  background: rgba(66, 89, 54, 0.3);
  filter: blur(2.2rem);
  transform: translateY(0.75rem) scale(0.94);
  pointer-events: none;
}

.lmyc-team-modal__photo .media-image-column,
.lmyc-team-modal__photo .before-media-image,
.lmyc-team-modal__photo .blob-svg {
  position: relative;
  z-index: 1;
  width: min(100%, 22rem);
  margin: 0 auto;
  overflow: visible;
}

.lmyc-team-modal__photo .blob-svg {
  overflow: visible;
  filter:
    drop-shadow(0 0.55rem 0.85rem rgba(66, 89, 54, 0.16))
    drop-shadow(0 1.35rem 2.8rem rgba(66, 89, 54, 0.2));
}

.lmyc-team-modal__photo .before-media-image {
  display: none;
}

.lmyc-team-modal__content {
  flex: 1 1 auto;
  min-height: 0;
  padding: 1.25rem 1.35rem 2.4rem;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  opacity: 0;
  transform: translateY(0.6rem);
  animation: lmyc-team-content-in 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) 0.2s forwards;
}

@keyframes lmyc-team-content-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lmyc-team-modal__content .h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-heading-family);
  font-size: clamp(2.2rem, 3vw, 2.8rem);
  color: #303d1c;
}

.lmyc-team-modal__content .main-subheading {
  margin-bottom: 0;
  color: #425936;
  max-width: none !important;
  width: 100%;
  white-space: nowrap;
  border-bottom: 0;
  padding-bottom: 0;
}

.lmyc-team-modal__content .lmyc-mentor-expertise {
  display: none;
}

.lmyc-team-modal__content .lmyc-mentor-bio--compact {
  margin-top: 1.2rem;
  padding-top: 0;
  border-top: 0;
}

.lmyc-team-modal__content .lmyc-mentor-credentials {
  margin-top: 2rem;
}

.lmyc-team-modal__content .lmyc-mentor-profile {
  width: 100%;
  max-width: none;
}

.lmyc-team-modal__content .lmyc-mentor-credentials__list {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr));
}

.lmyc-team-modal__content .lmyc-mentor-credentials__item {
  align-items: center;
  padding: 0.7rem 0.85rem;
}

.lmyc-team-modal__content .lmyc-mentor-credentials__icon {
  flex: 0 0 2.8rem;
  width: 2.8rem;
  height: 2.8rem;
}

.lmyc-team-modal__content .lmyc-mentor-credentials__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.lmyc-team-modal__content .lmyc-mentor-credentials__text {
  font-size: 1.26rem;
  line-height: 1.38;
}

.lmyc-team-modal__content .lmyc-mentor-bio,
.lmyc-team-modal__content .lmyc-mentor-teaching-style,
.lmyc-team-modal__content .main-description,
.lmyc-team-modal__content .main-description p {
  max-width: none !important;
  width: 100%;
  column-count: auto;
  columns: auto;
}

.lmyc-team-modal__content .lmyc-mentor-bio,
.lmyc-team-modal__content .lmyc-mentor-teaching-style {
  margin-top: 2.4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(66, 89, 54, 0.12);
}

body.lmyc-team-modal-open {
  overflow: hidden;
  touch-action: none;
}

.lmyc-team-modal {
  touch-action: none;
}

.lmyc-team-modal__dialog,
.lmyc-team-modal__layout,
.lmyc-team-modal__content {
  touch-action: pan-y;
}

html.lmyc-team-scroll-locked,
body.lmyc-team-scroll-locked {
  overflow: hidden !important;
  overscroll-behavior: none;
}

@media screen and (max-width: 899px) {
  .lmyc-team-modal__dialog {
    height: min(96dvh, 96vh, 100%);
    max-height: min(96dvh, 96vh, 100%);
  }

  .lmyc-team-modal__layout {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }

  .lmyc-team-modal__photo {
    flex: 0 0 auto;
    max-height: min(24vh, 13.5rem);
    padding: 0.75rem 1rem 0;
  }

  .lmyc-team-modal__photo .media-image-column,
  .lmyc-team-modal__photo .before-media-image,
  .lmyc-team-modal__photo .blob-svg {
    width: min(100%, 10.5rem);
    max-height: min(22vh, 12rem);
  }

  .lmyc-team-modal__content {
    flex: 1 1 0;
    min-height: 0;
    max-height: none;
    padding: 1.35rem 1.45rem calc(2.1rem + env(safe-area-inset-bottom, 0px));
    scroll-padding-bottom: 1.5rem;
  }

  .lmyc-team-modal__content::after {
    content: "";
    position: sticky;
    bottom: 0;
    display: block;
    height: 2.75rem;
    margin-top: -2.75rem;
    background: linear-gradient(180deg, rgba(255, 254, 244, 0) 0%, rgba(255, 254, 244, 0.92) 72%, #fffef4 100%);
    pointer-events: none;
  }

  .lmyc-team-modal__content .h2 {
    font-size: clamp(2.55rem, 9vw, 3.1rem);
    margin-bottom: 0.75rem;
  }

  .lmyc-team-modal__content .main-subheading {
    font-size: 1.38rem;
    line-height: 1.48;
    white-space: normal;
  }

  .lmyc-team-modal__content .lmyc-mentor-credentials {
    margin-top: 1.65rem;
  }

  .lmyc-team-modal__content .lmyc-mentor-credentials__label {
    font-size: 1.15rem;
    letter-spacing: 0.16em;
    margin-bottom: 0.95rem;
  }

  .lmyc-team-modal__content .lmyc-mentor-credentials__list {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .lmyc-team-modal__content .lmyc-mentor-credentials__item {
    align-items: flex-start;
    padding: 0.95rem 1rem;
    gap: 0.85rem;
  }

  .lmyc-team-modal__content .lmyc-mentor-credentials__icon {
    flex: 0 0 3.1rem;
    width: 3.1rem;
    height: 3.1rem;
    margin-top: 0.05rem;
  }

  .lmyc-team-modal__content .lmyc-mentor-credentials__icon svg {
    width: 1.65rem;
    height: 1.65rem;
  }

  .lmyc-team-modal__content .lmyc-mentor-credentials__text {
    font-size: 1.42rem;
    line-height: 1.48;
  }

  .lmyc-team-modal__content .lmyc-mentor-bio,
  .lmyc-team-modal__content .lmyc-mentor-teaching-style {
    margin-top: 1.85rem;
    padding-top: 1.65rem;
  }

  .lmyc-team-modal__content .lmyc-mentor-bio > * + * {
    margin-top: 1.35rem;
  }
}

@media screen and (max-width: 480px) {
  .lmyc-team-modal__content .main-subheading,
  .lmyc-mentor-profile .main-subheading {
    white-space: normal;
  }
}

@media screen and (min-width: 900px) {
  .lmyc-team-modal {
    align-items: center;
    padding: 2rem;
  }

  .lmyc-team-modal__dialog {
    border-radius: 1.6rem;
    max-height: min(88vh, 100%);
    transform: translateY(2rem) scale(0.96);
    opacity: 0;
    animation: lmyc-team-dialog-center 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  }

  @keyframes lmyc-team-dialog-center {
    to {
      transform: translateY(0) scale(1);
      opacity: 1;
    }
  }

  .lmyc-team-modal.is-closing .lmyc-team-modal__dialog {
    animation: lmyc-team-dialog-center-out 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }

  @keyframes lmyc-team-dialog-center-out {
    to {
      transform: translateY(1.5rem) scale(0.96);
      opacity: 0;
    }
  }

  .lmyc-team-modal__layout {
    display: grid;
    grid-template-columns: minmax(14rem, 20rem) minmax(0, 1fr);
    align-items: start;
    gap: 2rem 3rem;
    padding: 2.4rem 3rem 2.6rem 2.4rem;
    max-height: min(88dvh, 88vh, 100%);
    overflow: hidden;
  }

  .lmyc-team-modal__photo {
    padding: 0;
    background: transparent;
    position: sticky;
    top: 0;
    max-height: none;
  }

  .lmyc-team-modal__photo .media-image-column,
  .lmyc-team-modal__photo .before-media-image,
  .lmyc-team-modal__photo .blob-svg {
    width: min(100%, 18rem);
    max-height: none;
  }

  .lmyc-team-modal__content {
    padding: 0 0.25rem 0 0;
    max-height: calc(88dvh - 4.8rem);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .lmyc-team-modal__content .lmyc-mentor-credentials__list {
    grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr));
  }
}

@media screen and (min-width: 1280px) {
  .lmyc-team-modal__layout {
    grid-template-columns: minmax(15rem, 21rem) minmax(0, 1fr);
    gap: 2.2rem 3.5rem;
    padding: 2.6rem 3.5rem 2.8rem 2.6rem;
  }

  .lmyc-team-modal__content .lmyc-mentor-credentials__list {
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  }
}

/* Same photo framing inside blob masks as Akaansha / Marivic */
.lmyc-team-card__photo .blob-svg image,
.lmyc-team-modal__photo .blob-svg image,
.lmyc-mentor-photo .blob-svg image,
.lmyc-team-card__photo .media-image-column .blob-svg image {
  transform: translateX(-14%);
  transform-origin: center center;
}

@media (prefers-reduced-motion: reduce) {
  .lmyc-team-modal__backdrop,
  .lmyc-team-modal__dialog,
  .lmyc-team-modal__content,
  .lmyc-team-card__photo,
  .lmyc-team-grid--soft-intro .lmyc-team-card {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }

  .lmyc-team-grid--measuring .lmyc-team-card {
    opacity: 1;
  }
}
