/* Shared finite CRM rail: the same card styling on certificates and massage types. */
.mfh-team-gallery {
  --team-olive: #89966f;
  --team-ink: #2f2f2f;
  --team-muted: #6e6e73;
  --team-card: min(330px, calc(100vw - 60px));
  --team-gutter: max(16px, calc((100% - 1180px) / 2 + 16px));
  --team-gap: 24px;
  position: relative;
  z-index: 2;
  padding: 88px 0 64px;
  background: #fff;
  color: var(--team-ink);
  scroll-margin-top: 105px;
}
.mfh-team-gallery .mfh-team-gallery__heading {
  max-width: 900px;
  margin: 0 0 28px;
  text-align: left;
}
.mfh-team-gallery .mfh-team-gallery__eyebrow {
  margin: 0 0 13px;
  color: #77865f;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.mfh-team-gallery .mfh-team-gallery__heading h2 {
  margin: 0 0 18px;
  color: var(--team-ink);
}
.mfh-team-gallery .mfh-team-gallery__description {
  max-width: 760px;
  margin: 0;
  color: var(--team-muted);
  font-size: 18px;
  line-height: 1.5;
}
.mfh-team-gallery .mfh-team-gallery__hint {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--team-muted);
  font-size: 15px;
  line-height: 1.45;
}
.mfh-team-gallery .mfh-team-gallery__all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: #687651;
  font-size: 15px;
  line-height: 1.5;
  text-underline-offset: 4px;
}
.mfh-team-gallery .mfh-team-gallery__filter-scroll {
  max-width: 100%;
  margin: 0 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.mfh-team-gallery .mfh-team-gallery__filter-scroll::-webkit-scrollbar {
  display: none;
}
.mfh-team-gallery .mfh-team-gallery__filters {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: stretch;
  width: max-content;
  height: 85px;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(47, 47, 47, .1);
  border-radius: 120px;
  background: #f5f5f7;
  box-sizing: border-box;
}
.mfh-team-gallery .mfh-team-gallery__filters button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: max-content;
  margin: 0;
  padding: 16px 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--team-ink);
  font: inherit;
  font-size: 20px;
  line-height: 1.55;
  white-space: nowrap;
  cursor: pointer;
  transition: color .22s ease;
  -webkit-tap-highlight-color: transparent;
}
.mfh-team-gallery .mfh-team-gallery__filters button[aria-pressed="true"] {
  color: #fff;
}
.mfh-team-gallery .mfh-team-gallery__filters:not(.is-measured) button[aria-pressed="true"] {
  background: var(--team-olive);
}
.mfh-team-gallery .mfh-team-gallery__filter-pill {
  position: absolute;
  z-index: 0;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: var(--team-pill-width, 0px);
  border-radius: 999px;
  background: var(--team-olive);
  transform: translateX(var(--team-pill-left, 0px));
  transition: transform .4s cubic-bezier(.22, 1, .36, 1), width .4s cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}
.mfh-team-gallery .mfh-team-gallery__inner {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 16px;
  box-sizing: border-box;
}
/* Match the certificate catalogue, studios and gift-information headings. */
.mfh-team-gallery[data-team-context="certificate"] {
  --team-gutter: max(56px, calc((100% - 1660px) / 2));
}
.mfh-team-gallery[data-team-context="certificate"] .mfh-team-gallery__inner {
  width: calc(100% - var(--team-gutter) - var(--team-gutter));
  max-width: none;
  padding-inline: 0;
}
@media (max-width: 1200px) {
  .mfh-team-gallery[data-team-context="certificate"] { --team-gutter: 36px; }
}
@media (max-width: 900px) {
  .mfh-team-gallery[data-team-context="certificate"] { --team-gutter: 24px; }
}
@media (max-width: 600px) {
  .mfh-team-gallery[data-team-context="certificate"] { --team-gutter: 20px; }
}
.mfh-team-gallery .mfh-team-gallery__heading h2 {
  font-family: inherit;
  font-size: 56px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: normal;
}
.mfh-team-gallery .mfh-team-gallery__slider {
  position: relative;
  width: 100%;
  max-width: none;
  height: auto;
  margin: -40px 0 0;
  padding: 56px var(--team-gutter) 4px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-padding-inline: var(--team-gutter);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  box-sizing: border-box;
  cursor: grab;
  transition: height .3s cubic-bezier(.22, 1, .36, 1);
}
.mfh-team-gallery .mfh-team-gallery__slider[hidden] { display: none; }
.mfh-team-gallery .mfh-team-gallery__slider::-webkit-scrollbar { display: none; }
.mfh-team-gallery .mfh-team-gallery__slider.is-dragging {
  scroll-snap-type: none;
  cursor: grabbing;
  user-select: none;
}
.mfh-team-gallery .mfh-team-gallery__track {
  display: flex;
  align-items: flex-start;
  gap: var(--team-gap);
  width: max-content;
  min-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.mfh-team-gallery .mfh-team-gallery__slide {
  flex: 0 0 var(--team-card);
  width: var(--team-card);
  height: auto;
  margin: 0;
  padding: 0;
  scroll-snap-align: start;
  box-sizing: border-box;
}
.mfh-team-gallery .mfh-team-gallery__profile {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 26px;
  background: transparent;
  color: inherit;
  box-shadow: none;
}
.mfh-team-gallery .mfh-team-gallery__portrait-link {
  display: block;
  border: 0;
  border-radius: 26px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.mfh-team-gallery .mfh-team-gallery__portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  isolation: isolate;
  border-radius: inherit;
  background: linear-gradient(150deg, #f1f1f3 0%, #e6e6e9 100%);
}
.mfh-team-gallery .mfh-team-gallery__initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--team-olive);
  font-size: 64px;
  font-weight: 400;
  letter-spacing: -.04em;
}
.mfh-team-gallery .mfh-team-gallery__portrait img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  object-fit: cover;
  object-position: center 22%;
  opacity: 0;
  transition: opacity .25s ease;
}
.mfh-team-gallery .mfh-team-gallery__portrait img.is-loaded,
.mfh-team-gallery .mfh-team-gallery__portrait noscript img {
  opacity: 1;
}
.mfh-team-gallery .mfh-team-gallery__portrait img.is-error {
  visibility: hidden;
}
.mfh-team-gallery .mfh-team-gallery__caption {
  display: grid;
  grid-template-rows: minmax(var(--team-details-height, 0px), auto) auto;
  padding: 16px 2px 0;
  text-align: left;
}
/* The natural detail height is measured once per filter/layout, before placing
   the common action row. An expanded address chooser stays below that row. */
.mfh-team-gallery .mfh-team-gallery__details {
  display: flow-root;
  align-self: start;
  min-width: 0;
  margin: 0;
}
.mfh-team-gallery .mfh-team-gallery__caption h3 {
  min-height: 0;
  margin: 0 0 8px;
  color: var(--team-ink);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.02em;
  overflow-wrap: break-word;
}
.mfh-team-gallery .mfh-team-gallery__category {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 12px;
  color: #687651;
  font-size: 14px;
  line-height: 1.4;
}
.mfh-team-gallery .mfh-team-gallery__category svg,
.mfh-team-gallery .mfh-team-gallery__addresses svg {
  flex: 0 0 17px;
  width: 17px;
  color: #77865f;
}
.mfh-team-gallery .mfh-team-gallery__addresses {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  color: var(--team-muted);
  font-size: 14px;
  line-height: 1.4;
  list-style: none;
}
.mfh-team-gallery .mfh-team-gallery__addresses li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mfh-team-gallery .mfh-team-gallery__addresses li::before {
  content: none;
}
.mfh-team-gallery .mfh-team-gallery__addresses li span {
  min-width: 0;
  overflow-wrap: break-word;
}
.mfh-team-gallery .mfh-team-gallery__note {
  margin: 10px 0 0;
  color: var(--team-muted);
  font-size: 13px;
  line-height: 1.4;
}
.mfh-team-gallery .mfh-team-gallery__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin-top: 16px;
}
.mfh-team-gallery .mfh-team-gallery__book,
.mfh-team-gallery .mfh-team-gallery__more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 11px 10px;
  border: 1px solid #2f2f2f;
  border-radius: 72px;
  background: #fff;
  color: #2f2f2f;
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
  transition: background-color .22s ease, color .22s ease, border-color .22s ease;
  -webkit-tap-highlight-color: transparent;
}
.mfh-team-gallery .mfh-team-gallery__book {
  border-color: var(--team-olive);
  background: var(--team-olive);
  color: #fff;
  list-style: none;
}
.mfh-team-gallery .mfh-team-gallery__book::-webkit-details-marker {
  display: none;
}
.mfh-team-gallery .mfh-team-gallery__book::marker {
  content: '';
}
.mfh-team-gallery .mfh-team-gallery__book:hover,
.mfh-team-gallery .mfh-team-gallery__book:focus-visible {
  border-color: #78855f;
  background: #78855f;
  color: #fff;
}
.mfh-team-gallery .mfh-team-gallery__more:hover,
.mfh-team-gallery .mfh-team-gallery__more:focus-visible {
  background: #2f2f2f;
  color: #fff;
}
.mfh-team-gallery .mfh-team-gallery__more svg,
.mfh-team-gallery .mfh-team-gallery__all svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}
.mfh-team-gallery .mfh-team-gallery__booking {
  min-width: 0;
  margin: 0;
  padding: 0;
}
.mfh-team-gallery .mfh-team-gallery__booking-options {
  width: calc(200% + 10px);
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: #f5f5f7;
  box-sizing: border-box;
}
.mfh-team-gallery .mfh-team-gallery__booking-options p {
  margin: 0 0 5px;
  color: var(--team-muted);
  font-size: 12px;
  line-height: 1.4;
}
.mfh-team-gallery .mfh-team-gallery__booking-options a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 7px 0;
  color: var(--team-ink);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 47, 47, .1);
}
.mfh-team-gallery .mfh-team-gallery__booking-options a:last-child {
  border-bottom: 0;
}
.mfh-team-gallery .mfh-team-gallery__booking-options a svg {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  color: #687651;
}
.mfh-team-gallery [data-team-profile].is-loading {
  opacity: .6;
}
.mfh-team-gallery .mfh-team-gallery__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 20px 0 0;
}
.mfh-team-gallery .mfh-team-gallery__status {
  margin: 0;
  color: var(--team-muted);
  font-size: 14px;
  line-height: 1.5;
}
/* The same native nav-prev icon and visual dimensions as help_navigation. */
.mfh-team-gallery .mfh-team-gallery__controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mfh-team-gallery .mfh-team-gallery__controls button {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
/* Keep the 36px brand artwork while leaving a 44px touch target. */
.mfh-team-gallery .mfh-team-gallery__controls button::before {
  position: absolute;
  inset: -4px;
  content: '';
}
.mfh-team-gallery .mfh-team-gallery__controls button:focus-visible {
  --circle-fill: #e8e8ed;
}
.mfh-team-gallery .mfh-team-gallery__controls button:disabled {
  cursor: default;
}
.mfh-team-gallery .mfh-team-gallery__controls button:disabled svg {
  opacity: .5;
}
.mfh-team-gallery .mfh-team-gallery__controls svg {
  display: block;
  width: 36px;
  height: 36px;
  pointer-events: none;
}
.mfh-team-gallery .mfh-team-gallery__controls [data-team-prev] svg {
  transform: rotate(180deg);
}
/* Quiet mouse focus; keyboard users retain a visible text or fill cue. */
.mfh-team-gallery:focus,
.mfh-team-gallery a:focus,
.mfh-team-gallery a:focus-visible,
.mfh-team-gallery button:focus,
.mfh-team-gallery button:focus-visible,
.mfh-team-gallery summary:focus,
.mfh-team-gallery summary:focus-visible {
  outline: none !important;
  box-shadow: none;
}
.mfh-team-gallery .mfh-team-gallery__portrait-link:focus-visible {
  filter: brightness(.92);
}
.mfh-team-gallery .mfh-team-gallery__all:focus-visible,
.mfh-team-gallery .mfh-team-gallery__booking-options a:focus-visible,
.mfh-team-gallery .mfh-team-gallery__filters button:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.mfh-team-gallery .mfh-team-gallery__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* Only biographies opened from this gallery receive the quiet focus treatment. */
.mfh-team-gallery-modal:focus,
.mfh-team-gallery-modal .master-modal__close:focus,
.mfh-team-gallery-modal .master-modal__close:focus-visible {
  outline: none;
  box-shadow: none;
}
.mfh-team-gallery-modal .master-modal__close:focus-visible svg path:first-child {
  fill: #687651;
}
@media (max-width: 767px) {
  .mfh-team-gallery {
    --team-gap: 16px;
    padding: 54px 0 40px;
    scroll-margin-top: 84px;
  }
  .mfh-team-gallery .mfh-team-gallery__heading {
    margin-bottom: 22px;
  }
  .mfh-team-gallery .mfh-team-gallery__heading h2 {
    font-size: 28px;
    line-height: 1;
  }
  .mfh-team-gallery .mfh-team-gallery__description {
    font-size: 16px;
    line-height: 1.5;
  }
  .mfh-team-gallery .mfh-team-gallery__hint {
    font-size: 14px;
  }
  .mfh-team-gallery .mfh-team-gallery__filters {
    width: 100%;
    min-width: max-content;
    height: 44px;
    margin: 0;
    padding: 3px;
    border-radius: 999px;
  }
  .mfh-team-gallery .mfh-team-gallery__filters button {
    flex: 1 0 auto;
    padding: 7px 10px;
    font-size: 15px;
    line-height: 1.4;
  }
  .mfh-team-gallery .mfh-team-gallery__filter-pill {
    top: 3px;
    bottom: 3px;
  }
  .mfh-team-gallery .mfh-team-gallery__filter-scroll {
    margin-bottom: 16px;
  }
  .mfh-team-gallery .mfh-team-gallery__slider {
    margin-top: -20px;
    padding-top: 36px;
  }
  .mfh-team-gallery .mfh-team-gallery__portrait-link,
  .mfh-team-gallery .mfh-team-gallery__profile {
    border-radius: 23px;
  }
  .mfh-team-gallery .mfh-team-gallery__caption h3 {
    font-size: 22px;
  }
  .mfh-team-gallery .mfh-team-gallery__status {
    font-size: 13px;
  }
}
@media (max-width: 360px) {
  .mfh-team-gallery .mfh-team-gallery__filters button {
    padding-inline: 8px;
  }
  .mfh-team-gallery .mfh-team-gallery__actions {
    gap: 8px;
  }
  .mfh-team-gallery .mfh-team-gallery__book,
  .mfh-team-gallery .mfh-team-gallery__more {
    padding-inline: 7px;
    font-size: 13px;
  }
  .mfh-team-gallery .mfh-team-gallery__booking-options {
    width: calc(200% + 8px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .mfh-team-gallery .mfh-team-gallery__profile,
  .mfh-team-gallery .mfh-team-gallery__portrait img,
  .mfh-team-gallery .mfh-team-gallery__controls button,
  .mfh-team-gallery .mfh-team-gallery__filter-pill,
  .mfh-team-gallery .mfh-team-gallery__slider,
  .mfh-team-gallery .mfh-team-gallery__book,
  .mfh-team-gallery .mfh-team-gallery__more {
    transition: none;
  }
  .mfh-team-gallery .mfh-team-gallery__slider {
    scroll-behavior: auto;
  }
}



.mfh-team-gallery .mfh-team-gallery__footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: #687651;
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
}
.mfh-team-gallery .mfh-team-gallery__footer-link svg { flex: 0 0 14px; }
.mfh-team-gallery .mfh-team-gallery__footer-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.mfh-team-gallery .mfh-team-gallery__controls { flex: 0 0 auto; }
.mfh-team-gallery .mfh-team-gallery__slider:focus { outline: none; }
.mfh-team-gallery-modal .master-modal__title {
  font-family: inherit;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.02em;
}
/* Same descending cascade as the existing home-page studio cards. Delays
   are assigned per visible batch, so the final card never waits 42 steps. */
@media (prefers-reduced-motion: no-preference) {
  .mfh-team-gallery.has-team-reveal .mfh-team-gallery__profile {
    opacity: 0;
    translate: 0 -56px;
    transition: opacity .72s ease var(--team-reveal-delay, 0ms), translate .88s cubic-bezier(.22, 1, .36, 1) var(--team-reveal-delay, 0ms);
  }
  .mfh-team-gallery.has-team-reveal .is-revealed .mfh-team-gallery__profile {
    opacity: 1;
    translate: 0 0;
  }
  .mfh-team-gallery.has-team-reveal .is-reveal-instant .mfh-team-gallery__profile { transition: none; }
}
@media (max-width: 767px) {
  .mfh-team-gallery .mfh-team-gallery__footer { flex-wrap: wrap; }
  .mfh-team-gallery .mfh-team-gallery__controls { margin-left: auto; }
  .mfh-team-gallery .mfh-team-gallery__footer-link {
    order: 3;
    flex-basis: 100%;
    margin: 4px 0 0;
    font-size: 14px;
  }
  .mfh-team-gallery-modal .master-modal__title { font-size: 22px; }
}
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  .mfh-team-gallery.has-team-reveal .mfh-team-gallery__slide:not(.is-revealed) .mfh-team-gallery__profile { translate: 0 -36px; }
}
